diff --git a/food-server/.classpath b/food-server/.classpath new file mode 100644 index 0000000..002ad57 --- /dev/null +++ b/food-server/.classpath @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/food-server/.project b/food-server/.project new file mode 100644 index 0000000..731624e --- /dev/null +++ b/food-server/.project @@ -0,0 +1,23 @@ + + + food-server + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/food-server/.settings/org.eclipse.core.resources.prefs b/food-server/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/food-server/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/food-server/.settings/org.eclipse.jdt.core.prefs b/food-server/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..2f5cc74 --- /dev/null +++ b/food-server/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/food-server/.settings/org.eclipse.m2e.core.prefs b/food-server/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/food-server/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/food-server/assembly.xml b/food-server/assembly.xml new file mode 100644 index 0000000..9321d7b --- /dev/null +++ b/food-server/assembly.xml @@ -0,0 +1,57 @@ + + + package + + dir + zip + + true + + + src/main/bin + bin + + + src/main/resources + conf + + config.properties + logback.xml + + + + src/main/conf + conf + + + src/main/logs + logs + + + src/main/lib + lib + + + src/main/temp + temp + + + src/main/webapps + webapps + + + + + ${project.build.directory}/${artifactId}-${version}.jar + lib + ${artifactId}-${version}.jar + + + + + lib + runtime + + + \ No newline at end of file diff --git a/food-server/food-server.iml b/food-server/food-server.iml new file mode 100644 index 0000000..c0b9ea4 --- /dev/null +++ b/food-server/food-server.iml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/lib/qiniu-logging-plugin-logback-1.0.1.jar b/food-server/lib/qiniu-logging-plugin-logback-1.0.1.jar new file mode 100644 index 0000000..2c7da6d Binary files /dev/null and b/food-server/lib/qiniu-logging-plugin-logback-1.0.1.jar differ diff --git a/food-server/pom.xml b/food-server/pom.xml new file mode 100644 index 0000000..7a85f70 --- /dev/null +++ b/food-server/pom.xml @@ -0,0 +1,198 @@ + + + 4.0.0 + + com.jwsaas + food-parent + 2.0.0 + + food-server + food-server + http://maven.apache.org + + + UTF-8 + true + + 1.1.12 + 2.3.27-incubating + 3.4.0 + 1.3.0 + + + + + + com.jwsaas + food-api + + + com.jwsaas + common-utils + + + com.jwsaas + common-dubbo + + + dubbo + com.alibaba + + + netty + io.netty + + + + + com.alibaba + dubbo + 2.6.5 + + + netty + org.jboss.netty + + + + + org.slf4j + slf4j-api + + + org.slf4j + jcl-over-slf4j + + + org.slf4j + jul-to-slf4j + + + org.slf4j + log4j-over-slf4j + + + ch.qos.logback + logback-classic + + + ch.qos.logback + logback-access + + + org.aspectj + aspectjrt + + + org.aspectj + aspectjweaver + + + mysql + mysql-connector-java + + + org.springframework + spring-test + + + + org.redisson + redisson + + + de.ruedigermoeller + fst + + + + com.alibaba + druid + ${druid.version} + + + + org.freemarker + freemarker + ${freemarker.version} + + + + org.springframework + spring-jdbc + + + org.mybatis + mybatis + ${mybatis.version} + + + org.mybatis + mybatis-spring + ${mybatis.spring.version} + + + junit + junit + + + org.apache.httpcomponents + httpclient + 4.5.3 + + + org.apache.httpcomponents + httpmime + 4.5.2 + + + com.alibaba + fastjson + 1.2.60 + + + + com.qiniu + qiniu-logging-plugin-logback + 1.0.1 + system + ${basedir}/lib/qiniu-logging-plugin-logback-1.0.1.jar + + + + + + + maven-assembly-plugin + + false + + assembly.xml + + + + + make-assembly + package + + single + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + config.properties + logback.xml + + + + + + + diff --git a/food-server/src/main/bin/install.bat b/food-server/src/main/bin/install.bat new file mode 100644 index 0000000..046a68c --- /dev/null +++ b/food-server/src/main/bin/install.bat @@ -0,0 +1,140 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general passthrough startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem _PASS_THROUGH tells the script to pass all parameters through to the JVM +rem as is. +rem If _WRAPPER_CONF_OVERRIDE is specified then all parameters will be passed. +rem If not set then all parameters starting with the second will be passed. +set _PASS_THROUGH=true + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -i %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -i %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause + + diff --git a/food-server/src/main/bin/middleware b/food-server/src/main/bin/middleware new file mode 100644 index 0000000..ad47abe --- /dev/null +++ b/food-server/src/main/bin/middleware @@ -0,0 +1,2162 @@ +#! /bin/sh + +# +# Copyright (c) 1999, 2016 Tanuki Software, Ltd. +# http://www.tanukisoftware.com +# All rights reserved. +# +# This software is the proprietary information of Tanuki Software. +# You shall use it only in accordance with the terms of the +# license agreement you entered into with Tanuki Software. +# http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +# +# Java Service Wrapper sh script. Suitable for starting and stopping +# wrapped Java applications on UNIX platforms. +# + +#----------------------------------------------------------------------------- +# These settings can be modified to fit the needs of your application +# Optimized for use with version 3.5.28 of the Wrapper. + +#******************************************************************** +# NOTE - This script has been modified to run the TestWrapper sample +# application and should NOT be used as a base for your own +# applications. All of the documentation assumes that you are +# working from the default source script: +# WRAPPER_HOME/src/bin/sh.script.in +#******************************************************************** + +# IMPORTANT - Please always stop and uninstall an application before making +# any changes to this file. Failure to do so could remove the +# script's ability to control the application. + +# Initialization block for the install_initd and remove_initd scripts used by +# SUSE linux, CentOS and RHEL distributions. +# Note: From CentOS 6, make sure the BEGIN INIT INFO section is before any line +# of code otherwise the service won't be displayed in the Service +# Configuration GUI. +### BEGIN INIT INFO +# Provides: wrapper +# Required-Start: $local_fs $network $syslog +# Should-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Wrapper Sample Application +# Description: Wrapper Sample Application Description +### END INIT INFO + +# Application +APP_NAME="food-2.0_server" +APP_LONG_NAME="Food-2.0 Server Application" + +# If uncommented (and set to false), APP_NAME and APP_LONG_NAME will no longer +# be passed to the wrapper. See documentation for details. +#APP_NAME_PASS_TO_WRAPPER=false + +# Wrapper +WRAPPER_CMD="./wrapper" +WRAPPER_CONF="../conf/wrapper.conf" + +# Priority at which to run the wrapper. See "man nice" for valid priorities. +# nice is only used if a priority is specified. +PRIORITY= + +# Location of the pid file. +PIDDIR="." + +# PIDFILE_CHECK_PID tells the script to double check whether the pid in the pid +# file actually exists and belongs to this application. When not set, only +# check the pid, but not what it is. This is only needed when multiple +# applications need to share the same pid file. +PIDFILE_CHECK_PID=true + +# FIXED_COMMAND tells the script to use a hard coded action rather than +# expecting the first parameter of the command line to be the command. +# By default the command will will be expected to be the first parameter. +#FIXED_COMMAND=console + +# PASS_THROUGH tells the script to pass all arguments through to the JVM +# as is. If FIXED_COMMAND is specified then all arguments will be passed. +# If not set then all arguments starting with the second will be passed. +PASS_THROUGH=true + +# If uncommented, causes the Wrapper to be shutdown using an anchor file. +# When launched with the 'start' command, it will also ignore all INT and +# TERM signals. +#IGNORE_SIGNALS=true + +# Wrapper will start the JVM asynchronously. Your application may have some +# initialization tasks and it may be desirable to wait a few seconds +# before returning. For example, to delay the invocation of following +# startup scripts. Setting WAIT_AFTER_STARTUP to a positive number will +# cause the start command to delay for the indicated period of time +# (in seconds). +# +WAIT_AFTER_STARTUP=0 + +# If set, wait for the wrapper to report that the daemon has started +WAIT_FOR_STARTED_STATUS=true +WAIT_FOR_STARTED_TIMEOUT=120 + +# If set, the status, start_msg and stop_msg commands will print out detailed +# state information on the Wrapper and Java processes. +#DETAIL_STATUS=true + +# If set, the 'pause' and 'resume' commands will be enabled. These make it +# possible to pause the JVM or Java application without completely stopping +# the Wrapper. See the wrapper.pausable and wrapper.pausable.stop_jvm +# properties for more information. +#PAUSABLE=true + +# If specified, the Wrapper will be run as the specified user. +# IMPORTANT - Make sure that the user has the required privileges to write +# the PID file and wrapper.log files. Failure to be able to write the log +# file will cause the Wrapper to exit without any way to write out an error +# message. +# NOTE - This will set the user which is used to run the Wrapper as well as +# the JVM and is not useful in situations where a privileged resource or +# port needs to be allocated prior to the user being changed. +#RUN_AS_USER= + +# Set the full path to the 'su' command (substitute user). +# NOTE - In case 'su' is not in the PATH, you can set the absolute path here, +# for example: +# SU_BIN=/bin/su +# NOTE - For Red Hat, the script will use '/sbin/runuser' if it is present and +# ignore the value of SU_BIN. +SU_BIN=su + +# Set option for 'su'. +# In case the user set in RUN_AS_USER has no bash set, the 'su' command will fail. +# The workaround for GNU/Linux system is to specify which bash to use with +# the '-s' option. +#SU_OPTS="-s /bin/bash" + +# Set the full path to the 'id' command. +# For example: +# ID_BIN=/usr/bin/id +ID_BIN=id + +# By default we show a detailed usage block. Uncomment to show brief usage. +#BRIEF_USAGE=true + +# OS service management tool: flag for using Upstart when installing (rather than init.d rc.d) +USE_UPSTART= + +# OS service management tool: flag for using systemd when installing +USE_SYSTEMD= + +# When installing on Mac OSX platforms, the following domain will be used to +# prefix the plist file name. +PLIST_DOMAIN=org.tanukisoftware.wrapper + +# When installing on Mac OSX platforms, this parameter controls whether the daemon +# is to be kept continuously running or to let demand and conditions control the +# invocation. +MACOSX_KEEP_RUNNING="false" + +# The following two lines are used by the chkconfig command. Change as is +# appropriate for your application. They should remain commented. +# chkconfig: 2345 20 80 +# description: Test Wrapper Sample Application + +# Set run level to use when installing the application to start and stop on +# system startup and shutdown. It is important that the application always +# be uninstalled before making any changes to the run levels. +# It is also possible to specify different run levels based on the individual +# platform. When doing so this script will look for defined run levels in +# the following order: +# 1) "RUN_LEVEL_S_$DIST_OS" or "RUN_LEVEL_K_$DIST_OS", where "$DIST_OS" is +# the value of DIST_OS. "RUN_LEVEL_S_solaris=20" for example. +# 2) RUN_LEVEL_S or RUN_LEVEL_K, to specify specify start or stop run levels. +# 3) RUN_LEVEL, to specify a general run level. +RUN_LEVEL=20 + +# Do not modify anything beyond this point +#----------------------------------------------------------------------------- + +# check if we are running under Cygwin terminal. +# Note: on some OS's (for example Solaris, MacOS), -o is not a valid parameter +# and it shows an error message. We redirect stderr to null so the error message +# doesn't show up. +CYGWIN=`uname -o 2>/dev/null` +if [ "$CYGWIN" = "Cygwin" ] +then + eval echo `gettext 'This script is not compatible with Cygwin. Please use the Wrapper batch files to control the Wrapper.'` + exit 1 +fi + +if [ -n "$FIXED_COMMAND" ] +then + COMMAND="$FIXED_COMMAND" +else + COMMAND="$1" +fi + +# check if there is a parameter "sysd" +SYSD= +if [ $# -gt 1 ] ; then + if [ $2 = "sysd" ] ; then + SYSD=1 + fi +fi + +# default location for the service file +SYSTEMD_SERVICE_FILE="/etc/systemd/system/$APP_NAME.service" + +# Required for HP-UX Startup +if [ `uname -s` = "HP-UX" -o `uname -s` = "HP-UX64" ] ; then + PATH=$PATH:/usr/bin +fi + +# Get the fully qualified path to the script +case $0 in + /*) + SCRIPT="$0" + ;; + *) + PWD=`pwd` + SCRIPT="$PWD/$0" + ;; +esac + +# Resolve the true real path without any sym links. +CHANGED=true +while [ "X$CHANGED" != "X" ] +do + # Change spaces to ":" so the tokens can be parsed. + SAFESCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'` + # Get the real path to this script, resolving any symbolic links + TOKENS=`echo $SAFESCRIPT | sed -e 's;/; ;g'` + REALPATH= + for C in $TOKENS; do + # Change any ":" in the token back to a space. + C=`echo $C | sed -e 's;:; ;g'` + REALPATH="$REALPATH/$C" + # If REALPATH is a sym link, resolve it. Loop for nested links. + while [ -h "$REALPATH" ] ; do + LS="`ls -ld "$REALPATH"`" + LINK="`expr "$LS" : '.*-> \(.*\)$'`" + if expr "$LINK" : '/.*' > /dev/null; then + # LINK is absolute. + REALPATH="$LINK" + else + # LINK is relative. + REALPATH="`dirname "$REALPATH"`""/$LINK" + fi + done + done + + if [ "$REALPATH" = "$SCRIPT" ] + then + CHANGED="" + else + SCRIPT="$REALPATH" + fi +done + +# Get the location of the script. +REALDIR=`dirname "$REALPATH"` +# Normalize the path +REALDIR=`cd "${REALDIR}"; pwd` + +# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if +# the working directory is later changed. +FIRST_CHAR=`echo $PIDDIR | cut -c1,1` +if [ "$FIRST_CHAR" != "/" ] +then + PIDDIR=$REALDIR/$PIDDIR +fi +# Same test for WRAPPER_CMD +FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1` +if [ "$FIRST_CHAR" != "/" ] +then + WRAPPER_CMD=$REALDIR/$WRAPPER_CMD +fi +# Same test for WRAPPER_CONF +FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1` +if [ "$FIRST_CHAR" != "/" ] +then + WRAPPER_CONF=$REALDIR/$WRAPPER_CONF +fi + +# Process ID +ANCHORFILE="$PIDDIR/$APP_NAME.anchor" +COMMANDFILE="$PIDDIR/$APP_NAME.command" +STATUSFILE="$PIDDIR/$APP_NAME.status" +JAVASTATUSFILE="$PIDDIR/$APP_NAME.java.status" +PIDFILE="$PIDDIR/$APP_NAME.pid" +LOCKDIR="/var/lock/subsys" +LOCKFILE="$LOCKDIR/$APP_NAME" +pid="" + +# Resolve the location of the 'ps' command +PS_BIN="/usr/ucb/ps" + if [ ! -x "$PS_BIN" ] + then + PS_BIN="/usr/bin/ps" + if [ ! -x "$PS_BIN" ] + then + PS_BIN="/bin/ps" + if [ ! -x "$PS_BIN" ] + then + eval echo `gettext 'Unable to locate "ps".'` + eval echo `gettext 'Please report this message along with the location of the command on your system.'` + exit 1 + fi + fi + fi + +TR_BIN="/usr/bin/tr" +if [ ! -x "$TR_BIN" ] +then + TR_BIN="/bin/tr" + if [ ! -x "$TR_BIN" ] + then + eval echo `gettext 'Unable to locate "tr".'` + eval echo `gettext 'Please report this message along with the location of the command on your system.'` + exit 1 + fi +fi +# Resolve the os +DIST_OS=`uname -s | $TR_BIN "[A-Z]" "[a-z]" | $TR_BIN -d ' '` +case "$DIST_OS" in + 'sunos') + DIST_OS="solaris" + ;; + 'hp-ux' | 'hp-ux64') + # HP-UX needs the XPG4 version of ps (for -o args) + DIST_OS="hpux" + UNIX95="" + export UNIX95 + ;; + 'darwin') + DIST_OS="macosx" + ;; + 'unix_sv') + DIST_OS="unixware" + ;; + 'os/390') + DIST_OS="zos" + ;; +esac + +# Compare Versions $1<$2=0, $1==$2=1, $1>$2=2 +compareVersions () { + if [ "$1" = "$2" ] + then + return 1 + else + local i=1 + while true + do + local v1=`echo "$1" | cut -d '.' -f $i` + local v2=`echo "$2" | cut -d '.' -f $i` + if [ "X$v1" = "X" ] + then + if [ "X$v2" = "X" ] + then + return 1 + fi + v1="0" + elif [ "X$v2" = "X" ] + then + v2="0" + fi + if [ $v1 -lt $v2 ] + then + return 0 + elif [ $v1 -gt $v2 ] + then + return 2 + fi + i=`expr $i + 1` + done + fi +} + +# Resolve the architecture +if [ "$DIST_OS" = "macosx" ] +then + OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*\|[0-9]*\.[0-9]*'` + DIST_ARCH="universal" + compareVersions "$OS_VER" "10.5.0" + if [[ $? < 1 ]] + then + DIST_BITS="32" + KEY_KEEP_ALIVE="OnDemand" + else + # Note: "OnDemand" has been deprecated and replaced from Mac OS X 10.5 by "KeepAlive" + KEY_KEEP_ALIVE="KeepAlive" + + if [ "X`/usr/sbin/sysctl -n hw.cpu64bit_capable`" = "X1" ] + then + DIST_BITS="64" + else + DIST_BITS="32" + fi + fi + APP_PLIST_BASE=${PLIST_DOMAIN}.${APP_NAME} + APP_PLIST=${APP_PLIST_BASE}.plist +else + if [ "$DIST_OS" = "linux" ] + then + DIST_ARCH= + else + DIST_ARCH=`uname -p 2>/dev/null | $TR_BIN "[A-Z]" "[a-z]" | $TR_BIN -d ' '` + fi + if [ "X$DIST_ARCH" = "X" ] + then + DIST_ARCH="unknown" + fi + if [ "$DIST_ARCH" = "unknown" ] + then + DIST_ARCH=`uname -m 2>/dev/null | $TR_BIN "[A-Z]" "[a-z]" | $TR_BIN -d ' '` + fi + case "$DIST_ARCH" in + 'athlon' | 'i386' | 'i486' | 'i586' | 'i686') + DIST_ARCH="x86" + if [ "${DIST_OS}" = "solaris" ] ; then + DIST_BITS=`isainfo -b` + else + DIST_BITS="32" + fi + ;; + 'amd64' | 'x86_64') + DIST_ARCH="x86" + DIST_BITS="64" + ;; + 'ia32') + DIST_ARCH="ia" + DIST_BITS="32" + ;; + 'ia64' | 'ia64n' | 'ia64w') + DIST_ARCH="ia" + DIST_BITS="64" + ;; + 'ip27') + DIST_ARCH="mips" + DIST_BITS="32" + ;; + 'power' | 'powerpc' | 'power_pc' | 'ppc64') + if [ "${DIST_ARCH}" = "ppc64" ] ; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + DIST_ARCH="ppc" + if [ "${DIST_OS}" = "aix" ] ; then + if [ `getconf KERNEL_BITMODE` -eq 64 ]; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + fi + ;; + 'pa_risc' | 'pa-risc') + DIST_ARCH="parisc" + if [ `getconf KERNEL_BITS` -eq 64 ]; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + ;; + 'sun4u' | 'sparcv9' | 'sparc') + DIST_ARCH="sparc" + DIST_BITS=`isainfo -b` + ;; + '9000/800' | '9000/785') + DIST_ARCH="parisc" + if [ `getconf KERNEL_BITS` -eq 64 ]; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + ;; + '2064' | '2066' | '2084' | '2086' | '2094' | '2096' | '2097' | '2098' | '2817') + DIST_ARCH="390" + DIST_BITS="64" + ;; + armv*) + if [ -z "`readelf -A /proc/self/exe | grep Tag_ABI_VFP_args`" ] ; then + DIST_ARCH="armel" + DIST_BITS="32" + else + DIST_ARCH="armhf" + DIST_BITS="32" + fi + ;; + esac +fi + +# OSX always places Java in the same location so we can reliably set JAVA_HOME +if [ "$DIST_OS" = "macosx" ] +then + if [ -z "$JAVA_HOME" ]; then + if [ -x /usr/libexec/java_home ]; then + JAVA_HOME=`/usr/libexec/java_home`; export JAVA_HOME + else + JAVA_HOME="/Library/Java/Home"; export JAVA_HOME + fi + fi +fi + +# Test Echo +ECHOTEST=`echo -n "x"` +if [ "$ECHOTEST" = "x" ] +then + ECHOOPT="-n " + ECHOOPTC="" +else + ECHOOPT="" + ECHOOPTC="\c" +fi + + +gettext() { + "$WRAPPER_CMD" --translate "$1" "$WRAPPER_CONF" 2>/dev/null + if [ $? != 0 ] ; then + echo "$1" + fi +} + +outputFile() { + if [ -f "$1" ] + then + eval echo `gettext ' $1 Found but not executable.'`; + else + echo " $1" + fi +} + +# Decide on the wrapper binary to use. +# If the bits of the OS could be detected, we will try to look for the +# binary with the correct bits value. If it doesn't exist, fall back +# and look for the 32-bit binary. If that doesn't exist either then +# look for the default. +WRAPPER_TEST_CMD="" +if [ -f "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS" ] +then + WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS" + if [ ! -x "$WRAPPER_TEST_CMD" ] + then + chmod +x "$WRAPPER_TEST_CMD" 2>/dev/null + fi + if [ -x "$WRAPPER_TEST_CMD" ] + then + WRAPPER_CMD="$WRAPPER_TEST_CMD" + else + outputFile "$WRAPPER_TEST_CMD" + WRAPPER_TEST_CMD="" + fi +fi +if [ -f "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32" -a -z "$WRAPPER_TEST_CMD" ] +then + WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32" + if [ ! -x "$WRAPPER_TEST_CMD" ] + then + chmod +x "$WRAPPER_TEST_CMD" 2>/dev/null + fi + if [ -x "$WRAPPER_TEST_CMD" ] + then + WRAPPER_CMD="$WRAPPER_TEST_CMD" + else + outputFile "$WRAPPER_TEST_CMD" + WRAPPER_TEST_CMD="" + fi +fi +if [ -f "$WRAPPER_CMD" -a -z "$WRAPPER_TEST_CMD" ] +then + WRAPPER_TEST_CMD="$WRAPPER_CMD" + if [ ! -x "$WRAPPER_TEST_CMD" ] + then + chmod +x "$WRAPPER_TEST_CMD" 2>/dev/null + fi + if [ -x "$WRAPPER_TEST_CMD" ] + then + WRAPPER_CMD="$WRAPPER_TEST_CMD" + else + outputFile "$WRAPPER_TEST_CMD" + WRAPPER_TEST_CMD="" + fi +fi +if [ -z "$WRAPPER_TEST_CMD" ] +then + eval echo `gettext 'Unable to locate any of the following binaries:'` + outputFile "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS" + if [ ! "$DIST_BITS" = "32" ] + then + outputFile "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32" + fi + outputFile "$WRAPPER_CMD" + + exit 1 +fi + + +# Build the nice clause +if [ "X$PRIORITY" = "X" ] +then + CMDNICE="" +else + CMDNICE="nice -$PRIORITY" +fi + +# Build the anchor file clause. +if [ "X$IGNORE_SIGNALS" = "X" ] +then + ANCHORPROP= + IGNOREPROP= +else + ANCHORPROP=wrapper.anchorfile=\"$ANCHORFILE\" + IGNOREPROP=wrapper.ignore_signals=TRUE +fi + +# Build the status file clause. +if [ "X$DETAIL_STATUS$WAIT_FOR_STARTED_STATUS" = "X" ] +then + STATUSPROP= +else + STATUSPROP="wrapper.statusfile=\"$STATUSFILE\" wrapper.java.statusfile=\"$JAVASTATUSFILE\"" +fi + +# Build the command file clause. +if [ -n "$PAUSABLE" ] +then + COMMANDPROP="wrapper.commandfile=\"$COMMANDFILE\" wrapper.pausable=TRUE" +else + COMMANDPROP= +fi + +if [ ! -n "$WAIT_FOR_STARTED_STATUS" ] +then + WAIT_FOR_STARTED_STATUS=true +fi + +if [ $WAIT_FOR_STARTED_STATUS = true ] ; then + DETAIL_STATUS=true +fi + + +# Build the lock file clause. Only create a lock file if the lock directory exists on this platform. +LOCKPROP= +if [ -d $LOCKDIR ] +then + if [ -w $LOCKDIR ] + then + LOCKPROP=wrapper.lockfile=\"$LOCKFILE\" + fi +fi + +# Build app name clause +if [ ! -n "$APP_NAME_PASS_TO_WRAPPER" ] +then + APP_NAME_PASS_TO_WRAPPER=true +fi +if [ $APP_NAME_PASS_TO_WRAPPER = false ] +then + APPNAMEPROP= +else + APPNAMEPROP="wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\"" +fi + +# Decide on run levels. +RUN_LEVEL_S_DIST_OS_TMP=`eval "echo \$\{RUN_LEVEL_S_${DIST_OS}\}"` +RUN_LEVEL_S_DIST_OS=`eval "echo ${RUN_LEVEL_S_DIST_OS_TMP}"` +if [ "X${RUN_LEVEL_S_DIST_OS}" != "X" ] ; then + APP_RUN_LEVEL_S=${RUN_LEVEL_S_DIST_OS} +elif [ "X$RUN_LEVEL_S" != "X" ] ; then + APP_RUN_LEVEL_S=$RUN_LEVEL_S +else + APP_RUN_LEVEL_S=$RUN_LEVEL +fi +APP_RUN_LEVEL_S_CHECK=`echo "$APP_RUN_LEVEL_S" | sed "s/[(0-9)*]/0/g"` +if [ "X${APP_RUN_LEVEL_S_CHECK}" != "X00" ] ; then + eval echo `gettext 'Run level \"${APP_RUN_LEVEL_S}\" must be numeric and have a length of two \(00-99\).'` + exit 1; +fi +RUN_LEVEL_K_DIST_OS_TMP=`eval "echo \$\{RUN_LEVEL_K_${DIST_OS}\}"` +RUN_LEVEL_K_DIST_OS=`eval "echo ${RUN_LEVEL_K_DIST_OS_TMP}"` +if [ "X${RUN_LEVEL_K_DIST_OS}" != "X" ] ; then + APP_RUN_LEVEL_K=${RUN_LEVEL_K_DIST_OS} +elif [ "X$RUN_LEVEL_K" != "X" ] ; then + APP_RUN_LEVEL_K=$RUN_LEVEL_K +else + APP_RUN_LEVEL_K=$RUN_LEVEL +fi +APP_RUN_LEVEL_K_CHECK=`echo "$APP_RUN_LEVEL_K" | sed "s/[(0-9)*]/0/g"` +if [ "X${APP_RUN_LEVEL_K_CHECK}" != "X00" ] ; then + eval echo `gettext 'Run level \"${APP_RUN_LEVEL_K}\" must be numeric and have a length of two \(00-99\).'` + exit 1; +fi + +prepAdditionalParams() { + ADDITIONAL_PARA="" + if [ ! -n "$PASS_THROUGH" ] + then + PASS_THROUGH=false + fi + if [ $PASS_THROUGH = true ] ; then + ADDITIONAL_PARA="--" + while [ -n "$1" ] ; do + ADDITIONAL_PARA="$ADDITIONAL_PARA \"$1\"" + shift + done + elif [ -n "$1" ] ; then + eval echo `gettext "WARNING: Extra arguments will be ignored. Please run \'$0 help\' for usage."` + fi +} + +checkUser() { + # $1 touchLock flag + # $2.. [command] args + + # Check the configured user. If necessary rerun this script as the desired user. + if [ "X$RUN_AS_USER" != "X" ] + then + # Resolve the location of the 'id' command + ID_BIN="/usr/xpg4/bin/id" + if [ ! -x "$ID_BIN" ] + then + ID_BIN="/usr/bin/id" + if [ ! -x "$ID_BIN" ] + then + eval echo `gettext 'Unable to locate "id".'` + eval echo `gettext 'Please report this message along with the location of the command on your system.'` + exit 1 + fi + fi + + if [ "`$ID_BIN -u -n`" = "$RUN_AS_USER" ] + then + # Already running as the configured user. Avoid password prompts by not calling su. + RUN_AS_USER="" + fi + fi + if [ "X$RUN_AS_USER" != "X" ] + then + if [ "`$ID_BIN -u -n "$RUN_AS_USER" 2>/dev/null`" != "$RUN_AS_USER" ] + then + eval echo `gettext 'User $RUN_AS_USER does not exist.'` + exit 1 + fi + + # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be + # able to create the lock file. The Wrapper will be able to update this file once it + # is created but will not be able to delete it on shutdown. If $1 is set then + # the lock file should be created for the current command + if [ "X$LOCKPROP" != "X" ] + then + if [ "X$1" != "X" ] + then + # Resolve the primary group + RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1` + if [ "X$RUN_AS_GROUP" = "X" ] + then + RUN_AS_GROUP=$RUN_AS_USER + fi + touch $LOCKFILE + chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE + fi + fi + + # Still want to change users, recurse. This means that the user will only be + # prompted for a password once. Variables shifted by 1 + shift + + # Wrap the parameters so they can be passed. + ADDITIONAL_PARA="" + while [ -n "$1" ] ; do + if [ "$1" = 'installstart' ] ; then + # At this point the service is already installed. When we will fork the process we only need to start the service. + ADDITIONAL_PARA="$ADDITIONAL_PARA \"start\"" + else + ADDITIONAL_PARA="$ADDITIONAL_PARA \"$1\"" + fi + shift + done + + # Use "runuser" if this exists. + # runuser should be used on RedHat in preference to su. + if test -f "/sbin/runuser" + then + /sbin/runuser - $RUN_AS_USER -c "\"$REALPATH\" $ADDITIONAL_PARA" + else + $SU_BIN - $RUN_AS_USER -c "\"$REALPATH\" $ADDITIONAL_PARA" $SU_OPTS + fi + RUN_AS_USER_EXITCODE=$? + + # we check if the previous command has failed + if [ $RUN_AS_USER_EXITCODE -ne 0 ] + then + if [ $RUN_AS_USER_EXITCODE -eq 1 ] + then + checkForkCommand + else + eval echo `gettext 'Error executing the requested command with user \"$RUN_AS_USER\" \(error code $RUN_AS_USER_EXITCODE\).'` + echo "" + fi + fi + + # Now that we are the original user again, we may need to clean up the lock file. + if [ "X$LOCKPROP" != "X" ] + then + getpid + if [ "X$pid" = "X" ] + then + # Wrapper is not running so make sure the lock file is deleted. + if [ -f "$LOCKFILE" ] + then + rm "$LOCKFILE" + fi + fi + fi + + exit $RUN_AS_USER_EXITCODE + fi +} + +# Try to fork by executing a simple command. +# With this function, we want to make sure we are able to fork. +checkForkCommand() { + + if test -f "/sbin/runuser" + then + /sbin/runuser - $RUN_AS_USER -c "ls \"$REALPATH\"" > /dev/null 2>&1 & + else + $SU_BIN - $RUN_AS_USER -c "ls \"$REALPATH\"" $SU_OPTS > /dev/null 2>&1 & + fi + CHECK_EXITCODE=$? + + if [ $CHECK_EXITCODE -ne 0 ] + then + # clearly a problem with forking + eval echo `gettext 'Error: unable to create fork process.'` + eval echo `gettext 'Advice:'` + eval echo `gettext 'One possible cause of failure is when the user \(\"$RUN_AS_USER\"\) has no shell.'` + eval echo `gettext 'In this case, two solutions are available by editing the script file:'` + eval echo `gettext '1. Use \"SU_OPTS\" to set the shell for the user.'` + eval echo `gettext '2. Use a OS service management tool (only available on some platforms).'` + echo "" + fi +} + +getpid() { + pid="" + if [ -f "$PIDFILE" ] + then + if [ -r "$PIDFILE" ] + then + pid=`cat "$PIDFILE"` + if [ "X$pid" != "X" ] + then + if [ "X$PIDFILE_CHECK_PID" != "X" ] + then + # It is possible that 'a' process with the pid exists but that it is not the + # correct process. This can happen in a number of cases, but the most + # common is during system startup after an unclean shutdown. + # The ps statement below looks for the specific wrapper command running as + # the pid. If it is not found then the pid file is considered to be stale. + case "$DIST_OS" in + 'freebsd') + pidtest=`$PS_BIN -p $pid -o args | tail -1` + if [ "X$pidtest" = "XCOMMAND" ] + then + pidtest="" + fi + ;; + 'macosx') + pidtest=`$PS_BIN -ww -p $pid -o command | grep -F "$WRAPPER_CMD" | tail -1` + ;; + 'solaris') + if [ -f "/usr/bin/pargs" ] + then + pidtest=`pargs $pid | fgrep "$WRAPPER_CMD" | tail -1` + else + case "$PS_BIN" in + '/usr/ucb/ps') + pidtest=`$PS_BIN -auxww $pid | fgrep "$WRAPPER_CMD" | tail -1` + ;; + '/usr/bin/ps') + TRUNCATED_CMD=`$PS_BIN -o comm -p $pid | tail -1` + COUNT=`echo $TRUNCATED_CMD | wc -m` + COUNT=`echo ${COUNT}` + COUNT=`expr $COUNT - 1` + TRUNCATED_CMD=`echo $WRAPPER_CMD | cut -c1-$COUNT` + pidtest=`$PS_BIN -o comm -p $pid | fgrep "$TRUNCATED_CMD" | tail -1` + ;; + '/bin/ps') + TRUNCATED_CMD=`$PS_BIN -o comm -p $pid | tail -1` + COUNT=`echo $TRUNCATED_CMD | wc -m` + COUNT=`echo ${COUNT}` + COUNT=`expr $COUNT - 1` + TRUNCATED_CMD=`echo $WRAPPER_CMD | cut -c1-$COUNT` + pidtest=`$PS_BIN -o comm -p $pid | fgrep "$TRUNCATED_CMD" | tail -1` + ;; + *) + echo "Unsupported ps command $PS_BIN" + exit 1 + ;; + esac + fi + ;; + 'hpux') + pidtest=`$PS_BIN -p $pid -x -o args | grep -F "$WRAPPER_CMD" | tail -1` + ;; + 'zos') + TRUNCATED_CMD=`$PS_BIN -p $pid -o args | tail -1` + COUNT=`echo $TRUNCATED_CMD | wc -m` + COUNT=`echo ${COUNT}` + COUNT=`expr $COUNT - 1` + TRUNCATED_CMD=`echo $WRAPPER_CMD | cut -c1-$COUNT` + pidtest=`$PS_BIN -p $pid -o args | grep -F "$TRUNCATED_CMD" | tail -1` + ;; + *) + pidtest=`$PS_BIN -p $pid -o args | grep -F "$WRAPPER_CMD" | tail -1` + ;; + esac + else + # Check to see whether the pid exists as a running process, but in this mode, don't check what that pid is. + case "$DIST_OS" in + 'solaris') + case "$PS_BIN" in + '/usr/ucb/ps') + pidtest=`$PS_BIN $pid | grep "$pid" | awk '{print $1}' | tail -1` + ;; + '/usr/bin/ps') + pidtest=`$PS_BIN -p $pid -o pid | grep "$pid" | tail -1` + ;; + '/bin/ps') + pidtest=`$PS_BIN -p $pid -o pid | grep "$pid" | tail -1` + ;; + *) + echo "Unsupported ps command $PS_BIN" + exit 1 + ;; + esac + ;; + *) + pidtest=`$PS_BIN -p $pid -o pid | grep "$pid" | tail -1` + ;; + esac + fi + + if [ "X$pidtest" = "X" ] + then + # This is a stale pid file. + rm -f "$PIDFILE" + eval echo `gettext 'Removed stale pid file: $PIDFILE'` + pid="" + fi + fi + else + eval echo `gettext 'Cannot read $PIDFILE.'` + exit 1 + fi + fi +} + +getstatus() { + STATUS= + if [ -f "$STATUSFILE" ] + then + if [ -r "$STATUSFILE" ] + then + STATUS=`cat "$STATUSFILE"` + fi + fi + if [ "X$STATUS" = "X" ] + then + STATUS="Unknown" + fi + + JAVASTATUS= + if [ -f "$JAVASTATUSFILE" ] + then + if [ -r "$JAVASTATUSFILE" ] + then + JAVASTATUS=`cat "$JAVASTATUSFILE"` + fi + fi + if [ "X$JAVASTATUS" = "X" ] + then + JAVASTATUS="Unknown" + fi +} + +testpid() { + case "$DIST_OS" in + 'solaris') + case "$PS_BIN" in + '/usr/ucb/ps') + pid=`$PS_BIN $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` + ;; + '/usr/bin/ps') + pid=`$PS_BIN -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` + ;; + '/bin/ps') + pid=`$PS_BIN -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` + ;; + *) + echo "Unsupported ps command $PS_BIN" + exit 1 + ;; + esac + ;; + *) + pid=`$PS_BIN -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` 2>/dev/null + ;; + esac + if [ "X$pid" = "X" ] + then + # Process is gone so remove the pid file. + rm -f "$PIDFILE" + pid="" + fi +} + +launchdtrap() { + stopit + exit +} + +waitforwrapperstop() { + getpid + while [ "X$pid" != "X" ] ; do + sleep 1 + getpid + done +} + +launchinternal() { + getpid + trap launchdtrap TERM + if [ "X$pid" = "X" ] + then + prepAdditionalParams "$@" + + # The string passed to eval must handles spaces in paths correctly. + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.daemonize=TRUE $APPNAMEPROP $ANCHORPROP $IGNOREPROP $STATUSPROP $COMMANDPROP $LOCKPROP wrapper.script.version=3.5.28 $ADDITIONAL_PARA" + eval $COMMAND_LINE + else + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + # launchd expects that this script stay up and running so we need to do our own monitoring of the Wrapper process. + if [ $WAIT_FOR_STARTED_STATUS = true ] + then + waitforwrapperstop + fi +} + +console() { + eval echo `gettext 'Running $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + trap '' 3 + + prepAdditionalParams "$@" + + # The string passed to eval must handles spaces in paths correctly. + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" $APPNAMEPROP $ANCHORPROP $STATUSPROP $COMMANDPROP $LOCKPROP wrapper.script.version=3.5.28 $ADDITIONAL_PARA" + eval $COMMAND_LINE + else + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi +} + +waitforjavastartup() { + getstatus + eval echo $ECHOOPT `gettext 'Waiting for $APP_LONG_NAME...$ECHOOPTC'` + + # Wait until the timeout or we have something besides Unknown. + counter=15 + while [ "$JAVASTATUS" = "Unknown" -a $counter -gt 0 -a -n "$JAVASTATUS" ] ; do + echo $ECHOOPT".$ECHOOPTC" + sleep 1 + getstatus + counter=`expr $counter - 1` + done + + if [ -n "$WAIT_FOR_STARTED_TIMEOUT" ] ; then + counter=$WAIT_FOR_STARTED_TIMEOUT + else + counter=120 + fi + while [ "$JAVASTATUS" != "STARTED" -a "$JAVASTATUS" != "Unknown" -a $counter -gt 0 -a -n "$JAVASTATUS" ] ; do + echo $ECHOOPT".$ECHOOPTC" + sleep 1 + getstatus + counter=`expr $counter - 1` + done + echo "" +} + +startwait() { + if [ $WAIT_FOR_STARTED_STATUS = true ] + then + waitforjavastartup + fi + # Sleep for a few seconds to allow for intialization if required + # then test to make sure we're still running. + # + i=0 + while [ $i -lt $WAIT_AFTER_STARTUP ] + do + sleep 1 + echo $ECHOOPT".$ECHOOPTC" + i=`expr $i + 1` + done + if [ $WAIT_AFTER_STARTUP -gt 0 -o $WAIT_FOR_STARTED_STATUS = true ] + then + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext ' WARNING: $APP_LONG_NAME may have failed to start.'` + exit 1 + else + eval echo `gettext ' running: PID:$pid'` + fi + else + echo "" + fi +} + +mustBeRootOrExit() { + if [ `id | sed 's/^uid=//;s/(.*$//'` != "0" ] ; then + eval echo `gettext 'Must be root to perform this action.'` + exit 1 + fi +} + + +macosxStart() { + # The daemon has been installed. + eval echo `gettext 'Starting $APP_LONG_NAME. Detected Mac OSX and installed launchd daemon.'` + mustBeRootOrExit + + getpid + if [ "X$pid" != "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + + # If the daemon was just installed, it may not be loaded. + LOADED_PLIST=`launchctl list | grep ${APP_PLIST_BASE}` + if [ "X${LOADED_PLIST}" = "X" ] ; then + launchctl load /Library/LaunchDaemons/${APP_PLIST} + fi + # If launchd is set to run the daemon already at Load, we don't need to call start + getpid + if [ "X$pid" = "X" ] ; then + launchctl start ${APP_PLIST_BASE} + fi + + startwait +} + +macosxStop() { + # The daemon should be running. + eval echo `gettext 'Stopping $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + else + if [ "$MACOSX_KEEP_RUNNING" = "true" ] ; then + echo "" + eval echo `gettext 'Daemon is set to be kept continuously running and it will be automatically restarted.'` + eval echo `gettext 'To stop the daemon you need to uninstall it.'` + eval echo `gettext 'If you want to use the \"stop\" argument, you need to find MACOSX_KEEP_RUNNING'` + eval echo `gettext 'at the beginning of the script file and set it to \"false\".'` + echo "" + fi + launchctl stop ${APP_PLIST_BASE} + fi +} + +macosxRestart() { + # The daemon should be running. + eval echo `gettext 'Restarting $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + else + if [ "$MACOSX_KEEP_RUNNING" = "true" ] ; then + # by stopping it, launchd will automatically restart it + launchctl stop ${APP_PLIST_BASE} + else + launchctl unload "/Library/LaunchDaemons/${APP_PLIST}" + sleep 1 + launchctl load "/Library/LaunchDaemons/${APP_PLIST}" + fi + fi + + startwait +} + +upstartstart() { + # The daemon has been installed. + eval echo `gettext 'Starting $APP_LONG_NAME. Detected Linux and installed upstart.'` + mustBeRootOrExit + + getpid + if [ "X$pid" != "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + + /sbin/start ${APP_NAME} + + startwait +} + +upstartStop() { + # The daemon has been installed. + eval echo `gettext 'Stopping $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + fi + + /sbin/stop ${APP_NAME} +} + +upstartRestart() { + # The daemon has been installed. + eval echo `gettext 'Restarting $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + fi + + /sbin/restart ${APP_NAME} + + startwait +} + +systemdInstall() { + eval echo `gettext ' Installing the $APP_LONG_NAME daemon using systemd...'` + if [ -f "${REALDIR}/${APP_NAME}.service" ] ; then + eval echo `gettext ' a custom service file ${APP_NAME}.service found'` + cp "${REALDIR}/${APP_NAME}.service" "${SYSTEMD_SERVICE_FILE}" + else + eval echo `gettext ' creating default service file...'` + echo "[Unit]" > "${SYSTEMD_SERVICE_FILE}" + echo "Description=${APP_LONG_NAME}" >> "${SYSTEMD_SERVICE_FILE}" + echo "After=syslog.target" >> "${SYSTEMD_SERVICE_FILE}" + echo "" >> "${SYSTEMD_SERVICE_FILE}" + echo "[Service]" >> "${SYSTEMD_SERVICE_FILE}" + echo "Type=forking" >> "${SYSTEMD_SERVICE_FILE}" + echo "ExecStart=${REALPATH} start sysd" >> "${SYSTEMD_SERVICE_FILE}" + echo "ExecStop=${REALPATH} stop sysd" >> "${SYSTEMD_SERVICE_FILE}" + if [ "X${RUN_AS_USER}" != "X" ] ; then + echo "User=${RUN_AS_USER}" >> "${SYSTEMD_SERVICE_FILE}" + fi + echo "" >> "${SYSTEMD_SERVICE_FILE}" + echo "[Install]" >> "${SYSTEMD_SERVICE_FILE}" + echo "WantedBy=multi-user.target" >> "${SYSTEMD_SERVICE_FILE}" + + systemctl daemon-reload + systemctl enable "${APP_NAME}" + fi +} + +systemdStart() { + # check if the service file is present + if [ -f "${SYSTEMD_SERVICE_FILE}" ] ; then + eval echo `gettext 'Reading file ${SYSTEMD_SERVICE_FILE}'` + else + eval echo `gettext 'No service file detected. Did you install the service?'` + exit 1 + fi + + systemctl start $APP_NAME + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to start service $APP_NAME'` + exit 1 + fi + + startwait +} + +systemdStop() { + systemctl stop $APP_NAME + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to stop service $APP_NAME'` + exit 1 + fi +} + +systemdRestart() { + systemctl restart $APP_NAME + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to restart service $APP_NAME'` + exit 1 + fi + + startwait +} + +systemdRemove() { + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from systemd...'` + systemctl disable $APP_NAME + rm "/etc/systemd/system/${APP_NAME}.service" + systemctl daemon-reload +} + +srcInstall() { + if [ "X$RUN_AS_USER" = "X" ] ; then + USERID="0" + else + USERID=`$ID_BIN -u "$RUN_AS_USER"` + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to get user id for $RUN_AS_USER'` + exit 1 + fi + fi + /usr/bin/mkssys -s "$APP_NAME" -p "$REALPATH" -a "launchdinternal" -u "$USERID" -f 9 -n 15 -S + /usr/sbin/mkitab "$APP_NAME":2:once:"/usr/bin/startsrc -s \"${APP_NAME}\" >/dev/console 2>&1" +} + +srcStart() { + startsrc -s "${APP_NAME}" + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to start service $APP_NAME'` + exit 1 + fi + + startwait +} + +srcStop() { + stopsrc -s "${APP_NAME}" + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to stop service $APP_NAME'` + exit 1 + fi +} + +srcRestart() { + srcStop + srcStart +} + +start() { + eval echo `gettext 'Starting $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + prepAdditionalParams "$@" + + # The string passed to eval must handles spaces in paths correctly. + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.daemonize=TRUE $APPNAMEPROP $ANCHORPROP $IGNOREPROP $STATUSPROP $COMMANDPROP $LOCKPROP wrapper.script.version=3.5.28 $ADDITIONAL_PARA" + eval $COMMAND_LINE + else + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + + startwait +} + +stopit() { + # $1 exit if down flag + + eval echo `gettext 'Stopping $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME was not running.'` + if [ "X$1" = "X1" ] + then + exit 1 + fi + else + if [ "X$IGNORE_SIGNALS" = "X" ] + then + # Running so try to stop it. + kill $pid + if [ $? -ne 0 ] + then + # An explanation for the failure should have been given + eval echo `gettext 'Unable to stop $APP_LONG_NAME.'` + exit 1 + fi + else + rm -f "$ANCHORFILE" + if [ -f "$ANCHORFILE" ] + then + # An explanation for the failure should have been given + eval echo `gettext 'Unable to stop $APP_LONG_NAME.'` + exit 1 + fi + fi + + # We can not predict how long it will take for the wrapper to + # actually stop as it depends on settings in wrapper.conf. + # Loop until it does. + savepid=$pid + CNT=0 + TOTCNT=0 + while [ "X$pid" != "X" ] + do + # Show a waiting message every 5 seconds. + if [ "$CNT" -lt "5" ] + then + CNT=`expr $CNT + 1` + else + eval echo `gettext 'Waiting for $APP_LONG_NAME to exit...'` + CNT=0 + fi + TOTCNT=`expr $TOTCNT + 1` + + sleep 1 + + testpid + done + + pid=$savepid + testpid + if [ "X$pid" != "X" ] + then + eval echo `gettext 'Failed to stop $APP_LONG_NAME.'` + exit 1 + else + eval echo `gettext 'Stopped $APP_LONG_NAME.'` + fi + fi +} + +pause() { + eval echo `gettext 'Pausing $APP_LONG_NAME.'` +} + +resume() { + eval echo `gettext 'Resuming $APP_LONG_NAME.'` +} + +status() { + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + else + if [ "X$DETAIL_STATUS" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME is running: PID:$pid'` + else + getstatus + eval echo `gettext '$APP_LONG_NAME is running: PID:$pid, Wrapper:$STATUS, Java:$JAVASTATUS'` + fi + exit 0 + fi +} + +# Make sure APP_NAME is less than 14 characters, otherwise in AIX, the command +# "lsitab" will fail +validateAppNameLength() { + if [ ${#APP_NAME} -gt 14 ] ; then + eval echo `gettext ' APP_NAME (${APP_NAME}) must be less than 14 characters long'` + exit 1 + fi +} + +installUpstart() { + eval echo `gettext ' Installing the $APP_LONG_NAME daemon using upstart..'` + if [ -f "${REALDIR}/${APP_NAME}.install" ] ; then + eval echo `gettext ' a custom upstart conf file ${APP_NAME}.install found'` + cp "${REALDIR}/${APP_NAME}.install" "/etc/init/${APP_NAME}.conf" + else + eval echo `gettext ' creating default upstart conf file..'` + echo "# ${APP_NAME} - ${APP_LONG_NAME}" > "/etc/init/${APP_NAME}.conf" + echo "description \"${APP_LONG_NAME}\"" >> "/etc/init/${APP_NAME}.conf" + echo "author \"Tanuki Software Ltd. \"" >> "/etc/init/${APP_NAME}.conf" + echo "start on runlevel [2345]" >> "/etc/init/${APP_NAME}.conf" + echo "stop on runlevel [!2345]" >> "/etc/init/${APP_NAME}.conf" + echo "env LANG=${LANG}" >> "/etc/init/${APP_NAME}.conf" + echo "exec \"${REALPATH}\" upstartinternal" >> "/etc/init/${APP_NAME}.conf" + fi +} + +installdaemon() { + mustBeRootOrExit + + APP_NAME_LOWER=`echo "$APP_NAME" | $TR_BIN "[A-Z]" "[a-z]"` + if [ "$DIST_OS" = "solaris" ] ; then + eval echo `gettext 'Detected Solaris:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + fi + elif [ "$DIST_OS" = "linux" ] ; then + if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then + eval echo `gettext 'Detected RHEL or Fedora:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + elif [ -n "$USE_SYSTEMD" -a -d "/etc/systemd" ] ; then + systemdInstall + else + if [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then + installUpstart + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + /sbin/chkconfig --add "$APP_NAME" + /sbin/chkconfig "$APP_NAME" on + fi + fi + elif [ -f /etc/SuSE-release ] ; then + eval echo `gettext 'Detected SuSE or SLES:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + elif [ -n "$USE_SYSTEMD" -a -d "/etc/systemd" ] ; then + systemdInstall + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + insserv "/etc/init.d/$APP_NAME" + fi + elif [ -f /etc/lsb-release -o -f /etc/debian_version -o -f /etc/debian_release ] ; then + eval echo `gettext 'Detected Ubuntu or Debian:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + if [ -n "$USE_SYSTEMD" -a -d "/etc/systemd" ] ; then + systemdInstall + elif [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then + installUpstart + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon using init.d..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + update-rc.d "$APP_NAME" defaults + fi + fi + else + eval echo `gettext 'Detected Linux:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" /etc/init.d/$APP_NAME + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc5.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" "/etc/rc5.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc5.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc5.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + fi + fi + elif [ "$DIST_OS" = "hpux" ] ; then + eval echo `gettext 'Detected HP-UX:'` + if [ -f "/sbin/init.d/$APP_NAME" -o -L "/sbin/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/sbin/init.d/$APP_NAME" + for i in `ls "/sbin/rc3.d/K"??"$APP_NAME_LOWER" "/sbin/rc3.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + fi + elif [ "$DIST_OS" = "aix" ] ; then + eval echo `gettext 'Detected AIX:'` + validateAppNameLength + if [ -f "/etc/rc.d/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed as rc.d script.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + elif [ -n "`/usr/sbin/lsitab $APP_NAME`" -a -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed as SRC service.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + if [ -n "`/usr/sbin/lsitab install_assist`" ] ; then + eval echo `gettext ' The task /usr/sbin/install_assist was found in the inittab, this might cause problems for all subsequent tasks to launch at this process is known to block the init task. Please make sure this task is not needed anymore and remove/deactivate it.'` + fi + for i in `ls "/etc/rc.d/rc2.d/K"??"$APP_NAME_LOWER" "/etc/rc.d/rc2.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + srcInstall + fi + elif [ "$DIST_OS" = "freebsd" ] ; then + eval echo `gettext 'Detected FreeBSD:'` + if [ -f "/etc/rc.d/$APP_NAME" -o -L "/etc/rc.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf + if [ -f "${REALDIR}/${APP_NAME}.install" ] ; then + ln -s "${REALDIR}/${APP_NAME}.install" "/etc/rc.d/$APP_NAME" + else + echo '#!/bin/sh' > "/etc/rc.d/$APP_NAME" + echo "#" >> "/etc/rc.d/$APP_NAME" + echo "# PROVIDE: $APP_NAME" >> "/etc/rc.d/$APP_NAME" + echo "# REQUIRE: NETWORKING" >> "/etc/rc.d/$APP_NAME" + echo "# KEYWORD: shutdown" >> "/etc/rc.d/$APP_NAME" + echo ". /etc/rc.subr" >> "/etc/rc.d/$APP_NAME" + echo "name=\"$APP_NAME\"" >> "/etc/rc.d/$APP_NAME" + echo "rcvar=\`set_rcvar\`" >> "/etc/rc.d/$APP_NAME" + echo "command=\"${REALPATH}\"" >> "/etc/rc.d/$APP_NAME" + echo 'start_cmd="${name}_start"' >> "/etc/rc.d/$APP_NAME" + echo 'load_rc_config $name' >> "/etc/rc.d/$APP_NAME" + echo 'status_cmd="${name}_status"' >> "/etc/rc.d/$APP_NAME" + echo 'stop_cmd="${name}_stop"' >> "/etc/rc.d/$APP_NAME" + echo "${APP_NAME}_status() {" >> "/etc/rc.d/$APP_NAME" + echo '${command} status' >> "/etc/rc.d/$APP_NAME" + echo '}' >> "/etc/rc.d/$APP_NAME" + echo "${APP_NAME}_stop() {" >> "/etc/rc.d/$APP_NAME" + echo '${command} stop' >> "/etc/rc.d/$APP_NAME" + echo '}' >> "/etc/rc.d/$APP_NAME" + echo "${APP_NAME}_start() {" >> "/etc/rc.d/$APP_NAME" + echo '${command} start' >> "/etc/rc.d/$APP_NAME" + echo '}' >> "/etc/rc.d/$APP_NAME" + echo 'run_rc_command "$1"' >> "/etc/rc.d/$APP_NAME" + fi + echo "${APP_NAME}_enable=\"YES\"" >> /etc/rc.conf + chmod 555 "/etc/rc.d/$APP_NAME" + fi + elif [ "$DIST_OS" = "macosx" ] ; then + eval echo `gettext 'Detected Mac OSX:'` + if [ -f "/Library/LaunchDaemons/${APP_PLIST}" -o -L "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + if [ -f "${REALDIR}/${APP_PLIST}" ] ; then + ln -s "${REALDIR}/${APP_PLIST}" "/Library/LaunchDaemons/${APP_PLIST}" + else + echo "" > "/Library/LaunchDaemons/${APP_PLIST}" + echo "> "/Library/LaunchDaemons/${APP_PLIST}" + echo "\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo "" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " Label" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${APP_PLIST_BASE}" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ProgramArguments" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${REALPATH}" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " launchdinternal" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${KEY_KEEP_ALIVE}" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " <${MACOSX_KEEP_RUNNING}/>" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " RunAtLoad" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + if [ "X$RUN_AS_USER" != "X" ] ; then + echo " UserName" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${RUN_AS_USER}" >> "/Library/LaunchDaemons/${APP_PLIST}" + fi + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo "" >> "/Library/LaunchDaemons/${APP_PLIST}" + fi + chmod 555 "/Library/LaunchDaemons/${APP_PLIST}" + fi + elif [ "$DIST_OS" = "zos" ] ; then + eval echo `gettext 'Detected z/OS:'` + if [ -f /etc/rc.bak ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + cp /etc/rc /etc/rc.bak + sed "s:echo /etc/rc script executed, \`date\`::g" /etc/rc.bak > /etc/rc + echo "_BPX_JOBNAME='${APP_NAME}' \"${REALDIR}/${APP_NAME}\" start" >>/etc/rc + echo '/etc/rc script executed, `date`' >>/etc/rc + fi + else + eval echo `gettext 'Install not currently supported for $DIST_OS'` + exit 1 + fi +} + +startdaemon() { + if [ "$DIST_OS" = "macosx" ] ; then + if [ ! -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + eval echo `gettext 'The $APP_LONG_NAME daemon is not currently installed.'` + else + macosxStart + fi + elif [ "$DIST_OS" = "linux" -a -f "/etc/init/${APP_NAME}.conf" ] ; then + upstartstart + elif [ "$DIST_OS" = "linux" -a -n "$USE_SYSTEMD" -a -z "$SYSD" ] ; then + systemdStart + elif [ "$DIST_OS" = "aix" ] && [ -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + srcStart + else + if [ -n "$SYSD" ] ; then + shift + fi + + checkUser touchlock "$@" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + start "$@" + fi +} + +removedaemon() { + mustBeRootOrExit + + APP_NAME_LOWER=`echo "$APP_NAME" | $TR_BIN "[A-Z]" "[a-z]"` + if [ "$DIST_OS" = "solaris" ] ; then + eval echo `gettext 'Detected Solaris:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" "/etc/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "linux" ] ; then + if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then + eval echo `gettext 'Detected RHEL or Fedora:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + /sbin/chkconfig "$APP_NAME" off + /sbin/chkconfig --del "$APP_NAME" + rm -f "/etc/init.d/$APP_NAME" + elif [ -n "$USE_SYSTEMD" -a -f "${SYSTEMD_SERVICE_FILE}" ] ; then + systemdRemove + elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from upstart...'` + rm "/etc/init/${APP_NAME}.conf" + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ -f /etc/SuSE-release ] ; then + eval echo `gettext 'Detected SuSE or SLES:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + insserv -r "/etc/init.d/$APP_NAME" + rm -f "/etc/init.d/$APP_NAME" + elif [ -n "$USE_SYSTEMD" -a -f "${SYSTEMD_SERVICE_FILE}" ] ; then + systemdRemove + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ -f /etc/lsb-release -o -f /etc/debian_version -o -f /etc/debian_release ] ; then + eval echo `gettext 'Detected Ubuntu or Debian:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from init.d...'` + update-rc.d -f "$APP_NAME" remove + rm -f "/etc/init.d/$APP_NAME" + elif [ -n "$USE_SYSTEMD" -a -f "${SYSTEMD_SERVICE_FILE}" ] ; then + systemdRemove + elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from upstart...'` + rm "/etc/init/${APP_NAME}.conf" + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + else + eval echo `gettext 'Detected Linux:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc5.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" "/etc/rc5.d/S"??"$APP_NAME_LOWER" "/etc/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + fi + elif [ "$DIST_OS" = "hpux" ] ; then + eval echo `gettext 'Detected HP-UX:'` + if [ -f "/sbin/init.d/$APP_NAME" -o -L "/sbin/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in `ls "/sbin/rc3.d/K"??"$APP_NAME_LOWER" "/sbin/rc3.d/S"??"$APP_NAME_LOWER" "/sbin/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "aix" ] ; then + eval echo `gettext 'Detected AIX:'` + validateAppNameLength + if [ -f "/etc/rc.d/init.d/$APP_NAME" -o -L "/etc/rc.d/init.d/$APP_NAME" -o -n "`/usr/sbin/lsitab $APP_NAME`" -o -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + if [ -f "/etc/rc.d/init.d/$APP_NAME" -o -L "/etc/rc.d/init.d/$APP_NAME" ] ; then + for i in `ls "/etc/rc.d/rc2.d/K"??"$APP_NAME_LOWER" "/etc/rc.d/rc2.d/S"??"$APP_NAME_LOWER" "/etc/rc.d/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + fi + if [ -n "`/usr/sbin/lsitab $APP_NAME`" -o -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + /usr/sbin/rmitab $APP_NAME + /usr/bin/rmssys -s $APP_NAME + fi + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "freebsd" ] ; then + eval echo `gettext 'Detected FreeBSD:'` + if [ -f "/etc/rc.d/$APP_NAME" -o -L "/etc/rc.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in "/etc/rc.d/$APP_NAME" + do + rm -f $i + done + sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "macosx" ] ; then + eval echo `gettext 'Detected Mac OSX:'` + if [ -f "/Library/LaunchDaemons/${APP_PLIST}" -o -L "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + # Make sure the plist is installed + LOADED_PLIST=`launchctl list | grep ${APP_PLIST_BASE}` + if [ "X${LOADED_PLIST}" != "X" ] ; then + launchctl unload "/Library/LaunchDaemons/${APP_PLIST}" + fi + rm -f "/Library/LaunchDaemons/${APP_PLIST}" + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "zos" ] ; then + eval echo `gettext 'Detected z/OS:'` + if [ -f /etc/rc.bak ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + cp /etc/rc /etc/rc.bak + sed "s/_BPX_JOBNAME=\'APP_NAME\'.*//g" /etc/rc.bak > /etc/rc + rm /etc/rc.bak + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + else + eval echo `gettext 'Remove not currently supported for $DIST_OS'` + exit 1 + fi +} + +dump() { + eval echo `gettext 'Dumping $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME was not running.'` + else + kill -3 $pid + + if [ $? -ne 0 ] + then + eval echo `gettext 'Failed to dump $APP_LONG_NAME.'` + exit 1 + else + eval echo `gettext 'Dumped $APP_LONG_NAME.'` + fi + fi +} + +# Used by HP-UX init scripts. +startmsg() { + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:Stopped'` + else + if [ "X$DETAIL_STATUS" = "X" ] + then + eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:Running'` + else + getstatus + eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'` + fi + fi +} + +# Used by HP-UX init scripts. +stopmsg() { + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:Stopped'` + else + if [ "X$DETAIL_STATUS" = "X" ] + then + eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:Running'` + else + getstatus + eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'` + fi + fi +} + +showUsage() { + # $1 bad command + + if [ -n "$1" ] + then + eval echo `gettext 'Unexpected command: $1'` + echo ""; + fi + + eval MSG=`gettext 'Usage: '` + if [ -n "$FIXED_COMMAND" ] ; then + if [ -n "$PASS_THROUGH" ] ; then + echo "${MSG} $0 {JavaAppArgs}" + else + echo "${MSG} $0" + fi + else + if [ -n "$PAUSABLE" ] ; then + if [ -n "$PASS_THROUGH" ] ; then + echo "${MSG} $0 [ console {JavaAppArgs} | start {JavaAppArgs} | stop | restart {JavaAppArgs} | condrestart {JavaAppArgs} | pause | resume | status | install | installstart | remove | dump ]" + else + echo "${MSG} $0 [ console | start | stop | restart | condrestart | pause | resume | status | install | installstart | remove | dump ]" + fi + else + if [ -n "$PASS_THROUGH" ] ; then + echo "${MSG} $0 [ console {JavaAppArgs} | start {JavaAppArgs} | stop | restart {JavaAppArgs} | condrestart {JavaAppArgs} | status | install | installstart | remove | dump ]" + else + echo "${MSG} $0 [ console | start | stop | restart | condrestart | status | install | installstart | remove | dump ]" + fi + fi + fi + + if [ ! -n "$BRIEF_USAGE" ] + then + echo ""; + if [ ! -n "$FIXED_COMMAND" ] ; then + echo "`gettext 'Commands:'`" + echo "`gettext ' console Launch in the current console.'`" + echo "`gettext ' start Start in the background as a daemon process.'`" + echo "`gettext ' stop Stop if running as a daemon or in another console.'`" + echo "`gettext ' restart Stop if running and then start.'`" + echo "`gettext ' condrestart Restart only if already running.'`" + if [ -n "$PAUSABLE" ] ; then + echo "`gettext ' pause Pause if running.'`" + echo "`gettext ' resume Resume if paused.'`" + fi + echo "`gettext ' status Query the current status.'`" + echo "`gettext ' install Install to start automatically when system boots.'`" + echo "`gettext ' installstart Install and start running as a daemon process.'`" + echo "`gettext ' remove Uninstall.'`" + echo "`gettext ' dump Request a Java thread dump if running.'`" + echo ""; + fi + if [ -n "$PASS_THROUGH" ] ; then + echo "`gettext 'JavaAppArgs: Zero or more arguments which will be passed to the Java application.'`" + echo ""; + fi + fi + + exit 1 +} + +docommand() { + case "$COMMAND" in + 'console') + checkUser touchlock "$@" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + console "$@" + ;; + + 'start') + startdaemon "$@" + ;; + + 'stop') + if [ "$DIST_OS" = "macosx" -a -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + macosxStop + elif [ "$DIST_OS" = "linux" -a -f "/etc/init/${APP_NAME}.conf" ] ; then + upstartStop + elif [ "$DIST_OS" = "linux" -a -n "$USE_SYSTEMD" -a -z "$SYSD" ] ; then + systemdStop + elif [ "$DIST_OS" = "aix" ] && [ "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + srcStop + else + checkUser "" "$COMMAND" + stopit "0" + fi + ;; + + 'restart') + if [ "$DIST_OS" = "macosx" ] ; then + if [ ! -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + eval echo `gettext '$APP_NAME was not installed.'` + else + macosxRestart + fi + elif [ "$DIST_OS" = "linux" -a -f "/etc/init/${APP_NAME}.conf" ] ; then + upstartRestart + elif [ "$DIST_OS" = "linux" -a -n "$USE_SYSTEMD" -a -z "$SYSD" ] ; then + systemdRestart + elif [ "$DIST_OS" = "aix" ] && [ "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + srcRestart + else + if [ -n "$SMF" ] ; then + shift + fi + checkUser touchlock "$COMMAND" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + stopit "0" + start "$@" + fi + ;; + + 'condrestart') + checkUser touchlock "$COMMAND" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + stopit "1" + start "$@" + ;; + + 'pause') + if [ -n "$PAUSABLE" ] + then + pause + else + showUsage "$COMMAND" + fi + ;; + + 'resume') + if [ -n "$PAUSABLE" ] + then + resume + else + showUsage "$COMMAND" + fi + ;; + + 'status') + status + ;; + + 'install') + installdaemon "$@" + ;; + + 'installstart') + installdaemon "$@" + startdaemon "$@" + ;; + + 'remove') + removedaemon + ;; + + 'dump') + checkUser "" "$COMMAND" + dump + ;; + + 'start_msg') + # Internal command called by launchd on HP-UX. + checkUser "" "$COMMAND" + startmsg + ;; + + 'stop_msg') + # Internal command called by launchd on HP-UX. + checkUser "" "$COMMAND" + stopmsg + ;; + + 'launchdinternal' | 'upstartinternal') + if [ ! "$DIST_OS" = "macosx" -o ! -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + checkUser touchlock "$@" + fi + # Internal command called by launchd on Max OSX. + # We do not want to call checkUser here as it is handled in the launchd plist file. Doing it here would confuse launchd. + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + launchinternal "$@" + ;; + + *) + showUsage "$COMMAND" + ;; + esac +} + +docommand "$@" + +exit 0 diff --git a/food-server/src/main/bin/pause.bat b/food-server/src/main/bin/pause.bat new file mode 100644 index 0000000..65a2166 --- /dev/null +++ b/food-server/src/main/bin/pause.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -a %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -a %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/src/main/bin/query.bat b/food-server/src/main/bin/query.bat new file mode 100644 index 0000000..5638a44 --- /dev/null +++ b/food-server/src/main/bin/query.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -q %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -q %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/src/main/bin/resume.bat b/food-server/src/main/bin/resume.bat new file mode 100644 index 0000000..8b4d6ea --- /dev/null +++ b/food-server/src/main/bin/resume.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -e %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -e %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/src/main/bin/run.bat b/food-server/src/main/bin/run.bat new file mode 100644 index 0000000..8672708 --- /dev/null +++ b/food-server/src/main/bin/run.bat @@ -0,0 +1,156 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general passthrough startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. +rem +rem ******************************************************************** +rem NOTE - This script has been modified to run the TestWrapper sample +rem application and should NOT be used as a base for your own +rem applications. All of the documentation assumes that you are +rem working from the default source script: +rem WRAPPER_HOME/src/bin/App.bat.in +rem ******************************************************************** +rem +rem ******************************************************************** +rem NOTE - This script has been modified to run the TestWrapper sample +rem application and should NOT be used as a base for your own +rem applications. All of the documentation assumes that you are +rem working from the default source script: +rem WRAPPER_HOME/src/bin/App.bat.in +rem ******************************************************************** + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem _PASS_THROUGH tells the script to pass all parameters through to the JVM +rem as is. +rem If _WRAPPER_CONF_OVERRIDE is specified then all parameters will be passed. +rem If not set then all parameters starting with the second will be passed. +set _PASS_THROUGH=true + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -c %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -c %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause + + diff --git a/food-server/src/main/bin/start.bat b/food-server/src/main/bin/start.bat new file mode 100644 index 0000000..d7d5e85 --- /dev/null +++ b/food-server/src/main/bin/start.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -t %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -t %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/src/main/bin/stop.bat b/food-server/src/main/bin/stop.bat new file mode 100644 index 0000000..49d717c --- /dev/null +++ b/food-server/src/main/bin/stop.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -p %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -p %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/src/main/bin/uninstall.bat b/food-server/src/main/bin/uninstall.bat new file mode 100644 index 0000000..6ee6d07 --- /dev/null +++ b/food-server/src/main/bin/uninstall.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -r %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -r %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/src/main/bin/wrapper-linux-x86-32 b/food-server/src/main/bin/wrapper-linux-x86-32 new file mode 100644 index 0000000..ff3509f Binary files /dev/null and b/food-server/src/main/bin/wrapper-linux-x86-32 differ diff --git a/food-server/src/main/bin/wrapper-linux-x86-64 b/food-server/src/main/bin/wrapper-linux-x86-64 new file mode 100644 index 0000000..e72b0e0 Binary files /dev/null and b/food-server/src/main/bin/wrapper-linux-x86-64 differ diff --git a/food-server/src/main/bin/wrapper-macosx-universal-32 b/food-server/src/main/bin/wrapper-macosx-universal-32 new file mode 100644 index 0000000..9a36a5c Binary files /dev/null and b/food-server/src/main/bin/wrapper-macosx-universal-32 differ diff --git a/food-server/src/main/bin/wrapper-macosx-universal-64 b/food-server/src/main/bin/wrapper-macosx-universal-64 new file mode 100644 index 0000000..6587d2c Binary files /dev/null and b/food-server/src/main/bin/wrapper-macosx-universal-64 differ diff --git a/food-server/src/main/bin/wrapper-windows-x86-32.exe b/food-server/src/main/bin/wrapper-windows-x86-32.exe new file mode 100644 index 0000000..9762dbf Binary files /dev/null and b/food-server/src/main/bin/wrapper-windows-x86-32.exe differ diff --git a/food-server/src/main/bin/wrapper-windows-x86-64.exe b/food-server/src/main/bin/wrapper-windows-x86-64.exe new file mode 100644 index 0000000..122ec17 Binary files /dev/null and b/food-server/src/main/bin/wrapper-windows-x86-64.exe differ diff --git a/food-server/src/main/conf/wrapper.conf b/food-server/src/main/conf/wrapper.conf new file mode 100644 index 0000000..e97e0f1 --- /dev/null +++ b/food-server/src/main/conf/wrapper.conf @@ -0,0 +1,55 @@ +encoding=UTF-8 +wrapper.java.command=java +#set.JAVA_HOME=/java/path +#wrapper.java.command=%JAVA_HOME%/bin/java +#wrapper.java.command.loglevel=INFO + +wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp +wrapper.java.classpath.1=./ +wrapper.java.classpath.2=../conf/ +wrapper.java.classpath.3=../lib/*.jar + +wrapper.java.library.path.1=../lib + +# Java Additional Parameters +wrapper.java.additional.1=-Djava.io.tmpdir=../temp/ +wrapper.java.additional.2=-Dmiddleware.basedir=../ +wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true +wrapper.java.additional.4=-Dsun.lang.ClassLoader.allowArraySyntax=true +wrapper.java.additional.5=-Xms512m +wrapper.java.additional.6=-Xmx1024m +wrapper.java.additional.7=-Ddubbo.application.logger=slf4j +wrapper.java.additional.8=-Ddubbo.spring.config=classpath*:META-INF/spring/spring*.xml +wrapper.java.additional.9=-Ddubbo.container=logback,spring + +#wrapper.java.initmemory=3 +#wrapper.java.maxmemory=64 + +wrapper.app.parameter.1=com.jwsaas.Main + +# wrapper.debug=TRUE + +wrapper.console.format=PM +wrapper.console.loglevel=INFO + +wrapper.logfile=../logs/midd_YYYYMMDD.log +wrapper.logfile.rollmode=DATE +wrapper.logfile.format=LPTM +wrapper.logfile.loglevel=INFO +wrapper.logfile.maxsize=0 +wrapper.logfile.maxfiles=0 +wrapper.syslog.loglevel=NONE + +wrapper.ignore_sequence_gaps=TRUE +wrapper.pidfile.strict=TRUE +wrapper.console.title=Food-2.0 Server Application + +wrapper.name=food2_server +wrapper.displayname=Food-2.0 Server Application +wrapper.description=Food-2.0 Server Application Description +wrapper.ntservice.dependency.1= +wrapper.ntservice.starttype=AUTO_START +wrapper.ntservice.interactive=true + +wrapper.filter.trigger.1=java.lang.OutOfMemoryError +wrapper.filter.action.1=RESTART \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/Filters/ServerDataVersionFilter.java b/food-server/src/main/java/com/jwsaas/Filters/ServerDataVersionFilter.java new file mode 100644 index 0000000..6461de8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/Filters/ServerDataVersionFilter.java @@ -0,0 +1,76 @@ +package com.jwsaas.Filters; + +import com.alibaba.dubbo.common.utils.CollectionUtils; +import com.alibaba.dubbo.config.spring.ServiceBean; +import com.alibaba.dubbo.rpc.*; +import com.jwsaas.ServerDataVersionRelationType; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.entity.food.ServerDataVersion; +import com.jwsaas.service.food.ServerDataVersionService; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.context.ApplicationContext; + +import java.util.Date; +import java.util.List; + +/** + * 数据服务版本过滤器; + * Created by wanghui on 2019\2\12 0012. + */ +public class ServerDataVersionFilter implements Filter { + + /** logger utility */ + private final Logger logger = LoggerFactory.getLogger(ServerDataVersionFilter.class); + + ApplicationContext context = ServiceBean.getSpringContext(); + ServerDataVersionService serverDataVersionService = context.getBean(ServerDataVersionService.class); + + + + @Override + public Result invoke(Invoker invoker, Invocation invocation) throws RpcException { + String methodName = invocation.getMethodName(); + if(StringUtils.containsIgnoreCase(methodName,"save") || StringUtils.containsIgnoreCase(methodName,"update") || StringUtils.containsIgnoreCase(methodName,"delete")){ + try{ + String tenantCode = invocation.getArguments()[0]+""; + String interFaceName = invocation.getAttachment("interface"); + String serviceName = interFaceName.substring((interFaceName.lastIndexOf(".")+1),interFaceName.length()-7); + String dateType = ""; + for(ServerDataVersionRelationType type : ServerDataVersionRelationType.values()){ + if(type.getMapperName().equals(serviceName)){ + dateType = type.getDataVersionType(); + } + } + if(StringUtils.isNotEmpty(dateType)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("dataType",dateType)); + List versions = serverDataVersionService.getList(tenantCode,criteria); + if(CollectionUtils.isNotEmpty(versions)){ + ServerDataVersion version = versions.get(0); + version.setDataVerion(new Date().getTime()+""); + version.setModifyDate(new Date()); + version.setModifyUser("ServerDataVersionFilter"); + serverDataVersionService.update(tenantCode,version); + }else{ + ServerDataVersion version = new ServerDataVersion(); + version.setDataType(dateType); + version.setTenantId(tenantCode); + version.setDataVerion(new Date().getTime()+""); + version.setCreateDate(new Date()); + version.setCreateUser("ServerDataVersionFilter"); + serverDataVersionService.save(tenantCode,version); + } + } + }catch (Exception e){ + logger.error(" 数据服务版本过滤器 出错: "+e.fillInStackTrace()); + + return invoker.invoke(invocation); + } + + } + return invoker.invoke(invocation); + } +} diff --git a/food-server/src/main/java/com/jwsaas/Main.java b/food-server/src/main/java/com/jwsaas/Main.java new file mode 100644 index 0000000..9b2f223 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/Main.java @@ -0,0 +1,9 @@ +package com.jwsaas; + +public class Main { + + public static void main(String[] args) { + com.alibaba.dubbo.container.Main.main(args); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/cache/impl/RedisCacheServiceImpl.java b/food-server/src/main/java/com/jwsaas/cache/impl/RedisCacheServiceImpl.java new file mode 100644 index 0000000..1b83857 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/cache/impl/RedisCacheServiceImpl.java @@ -0,0 +1,226 @@ +package com.jwsaas.cache.impl; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import java.util.concurrent.TimeUnit; + +import org.apache.commons.collections4.CollectionUtils; +import org.redisson.api.RLock; +import org.redisson.api.RMapCache; +import org.redisson.api.RQueue; +import org.redisson.api.RedissonClient; +import org.redisson.client.codec.Codec; +import org.redisson.codec.FstCodec; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.jwsaas.cache.CacheService; + +public class RedisCacheServiceImpl implements CacheService { + + private static final long serialVersionUID = 5878626075536553656L; + + protected static Logger logger = LoggerFactory.getLogger(RedisCacheServiceImpl.class); + + private final String PREFIX = "foodV2"; + + private RedissonClient redissonClient; + + private Codec codec = new FstCodec(); + + public RedissonClient getRedissonClient() { + return redissonClient; + } + + public void setRedissonClient(RedissonClient redissonClient) { + this.redissonClient = redissonClient; + } + + private String buildCacheName(String tenantId, String key) { + return PREFIX + ":" + tenantId + ":" + key; + // return tenantId + ":" + key; + } + + public RLock getLock(String tenantId, String lockName) { + String cacheName = buildCacheName(tenantId, lockName); + return redissonClient.getLock(cacheName); + } + + @Override + public void set(String tenantId, String key, Object value, int secondsToExpire) throws Exception { + try { + String cacheName = buildCacheName(tenantId, key); + RMapCache map = redissonClient.getMapCache(cacheName, codec); + if (secondsToExpire != 0) { + map.put(key.toString(), value, secondsToExpire, TimeUnit.SECONDS); + map.expire(secondsToExpire, TimeUnit.SECONDS); + } else { + map.put(key.toString(), value); + } + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.set ERROR", e); + } + } + + @Override + public Object get(String tenantId, String key) throws Exception { + try { + String cacheName = buildCacheName(tenantId, key); + RMapCache map = redissonClient.getMapCache(cacheName, codec); + if (map.get(key) != null) { + return map.get(key); + } + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.get ERROR", e); + } + return null; + } + + @Override + public Object del(String tenantId, String key) throws Exception { + Object previos = null; + try { + String cacheName = buildCacheName(tenantId, key); + RMapCache map = redissonClient.getMapCache(cacheName, codec); + previos = map.get(key); + if (previos != null) { + map.remove(key); + } + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.del ERROR.", e); + } + return previos; + } + + @Override + public Set keys(String tenantId) throws Exception { + HashSet result = new LinkedHashSet(); + try { + String cacheName = buildCacheName(tenantId, "*"); + Collection keys = redissonClient.getKeys().findKeysByPattern(cacheName); + if (keys != null && keys.size() > 0) { + for (String key : keys) { + String _value = key; + // 只需要存入Key + result.add(_value.substring(_value.lastIndexOf(":") + 1)); + } + } + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.keys ERROR.", e); + } + + if (!CollectionUtils.isEmpty(result)) { + return Collections.unmodifiableSet(result); + } else { + return Collections.emptySet(); + } + + } + + @Override + public void clear(String tenantId) throws Exception { + try { + String cacheName = buildCacheName(tenantId, "*"); + redissonClient.getKeys().deleteByPattern(cacheName); + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.clear ERROR.", e); + } + } + + @Override + public int size(String tenantId) throws Exception { + int size = 0; + try { + String cacheName = buildCacheName(tenantId, "*"); + size = redissonClient.getKeys().findKeysByPattern(cacheName).size(); + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.size ERROR.", e); + } + return size; + } + + @Override + public Collection values(String tenantId) throws Exception { + List result = null; + try { + Set keys = this.keys(tenantId); + if (keys != null && keys.size() > 0) { + result = new ArrayList(keys.size()); + for (String key : keys) { + Object _value = this.get(tenantId, key); + if (_value != null) { + result.add(_value); + } + } + } + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.values ERROR.", e); + } + + if (!CollectionUtils.isEmpty(result)) { + return Collections.unmodifiableList(result); + } else { + return Collections.emptyList(); + } + } + + @Override + public Object getQueue(String tenantId, String key) throws Exception { + try { + String cacheName = buildCacheName(tenantId, key); + RQueue cacheQueue = redissonClient.getQueue(cacheName, codec); + Object element = cacheQueue.poll(); + if (element != null) { + return element; + } + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.getQueue ERROR", e); + } + + return null; + } + + @Override + public Integer getQueueSize(String tenantId, String key) throws Exception { + try { + String cacheName = buildCacheName(tenantId, key); + RQueue cacheQueue = redissonClient.getQueue(cacheName, codec); + return cacheQueue.size(); + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.getQueueSize ERROR", e); + } + return 0; + } + + @Override + public void setQueue(String tenantId, String key, Boolean clearFlag, Collection value, int secondsToExpire) throws Exception { + try { + String cacheName = buildCacheName(tenantId, key); + RQueue cacheQueue = redissonClient.getQueue(cacheName, codec); + clearFlag = (clearFlag == null) ? true : false; + if (clearFlag) { + cacheQueue.clear(); + } + cacheQueue.addAll(value); + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.setQueue.collection ERROR", e); + } + } + + @Override + public void setQueue(String tenantId, String key, Object value, int secondsToExpire) throws Exception { + try { + String cacheName = buildCacheName(tenantId, key); + RQueue cacheQueue = redissonClient.getQueue(cacheName, codec); + cacheQueue.add(value); + } catch (Exception e) { + logger.error("RedisCacheServiceImpl.setQueue.object ERROR", e); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/cache/impl/RedissonConfiguration.java b/food-server/src/main/java/com/jwsaas/cache/impl/RedissonConfiguration.java new file mode 100644 index 0000000..8d910a8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/cache/impl/RedissonConfiguration.java @@ -0,0 +1,77 @@ +package com.jwsaas.cache.impl; + +import org.apache.commons.lang3.StringUtils; +import org.redisson.Redisson; +import org.redisson.api.RedissonClient; +import org.redisson.config.Config; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class RedissonConfiguration { + + protected static Logger logger = LoggerFactory.getLogger(RedissonConfiguration.class); + + @Value("${redis.type}") + private String redisType; + + @Value("${redis.url}") + private String redisUrl; + + @Value("${redis.auth}") + private String redisAuth; + + @Value("${redis.database}") + private Integer redisDatabase; + + @Value("${redis.timeout}") + private Integer redisTimeout; + + @Value("${redis.poolsize}") + private Integer poolSize; + + @Value("${redis.subpoolsize}") + private Integer subPoolSize; + + private enum RedisType { + SINGLE("single"); + + private String stringValue; + + RedisType(String s) { + stringValue = s; + } + + public String getStringValue() { + return stringValue; + } + } + + @Bean(destroyMethod = "shutdown") + public RedissonClient redissonClient() { + RedissonClient redissonClient = null; + try { + Config config = new Config(); + if (StringUtils.isEmpty(redisType) || redisType.equals(RedisType.SINGLE.getStringValue())) { + config.useSingleServer().setAddress(redisUrl); + config.useSingleServer().setDatabase(redisDatabase); + config.useSingleServer().setTimeout(redisTimeout); + config.useSingleServer().setConnectTimeout(redisTimeout); + config.useSingleServer().setSubscriptionConnectionPoolSize(subPoolSize); + config.useSingleServer().setConnectionPoolSize(poolSize); + if (StringUtils.isNotEmpty(redisAuth)) { + config.useSingleServer().setPassword(redisAuth); + } + } + redissonClient = Redisson.create(config); + } catch (Exception e) { + logger.error("redissonClient init Exception", e); + } + + return redissonClient; + } + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/dao/BaseDao.java b/food-server/src/main/java/com/jwsaas/dao/BaseDao.java new file mode 100644 index 0000000..e87e3b9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/BaseDao.java @@ -0,0 +1,419 @@ +package com.jwsaas.dao; + +import java.io.Serializable; +import java.sql.SQLException; +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.BaseEntity; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.Pager; + +/** + * Dao接口 - Dao基接口 + */ +public interface BaseDao { + + /** + * 根据ID获取实体对象. + * + * @param tenantId + * 租户ID + * @param id + * 记录ID + * @return 实体对象 + */ + T get(String tenantId, PK id); + + /** + * 根据ID获取实体对象. + * + * @param tenantId + * 租户ID + * @param id + * 记录ID + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return 实体对象 + */ + T get(String tenantId, PK id, Boolean isBatch); + + /** + * 根据某一列获取实体对象 + * + * @param tenantId + * 租户ID + * @param property + * 列名称 + * @param value + * 值 + * @return + */ + T find(String tenantId, String property, Object value); + + /** + * 根据某一列获取实体对象 + * + * @param tenantId + * 租户ID + * @param property + * 列名称 + * @param value + * 值 + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * + * @return + */ + T find(String tenantId, String property, Object value, Boolean isBatch); + + /** + * 根据列名和属性值获取实体对象集合 + * + * @param tenantId + * 租户ID + * @param property + * 列名 + * @param value + * 值 + * @return + */ + List findList(String tenantId, String property, Object value); + + /** + * 根据列名和属性值获取实体对象集合 + * + * @param tenantId + * 租户ID + * @param property + * 列名 + * @param value + * 值 + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return + */ + List findList(String tenantId, String property, Object value, Boolean isBatch); + + /** + * 根据ID集合获取对象集合 + * + * @param statement + * 标识 + * @param ids + * ID集合 + * @return + */ + List findListByIds(String tenantId, List ids); + + /** + * 根据ID集合获取对象集合 + * + * @param statement + * 标识 + * @param ids + * ID集合 + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return + */ + List findListByIds(String tenantId, List ids, Boolean isBatch); + + /** + * 获取集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @return + */ + List getList(String tenantId, Criteria criteria); + + /** + * 获取集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return + */ + List getList(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 获取当前记录总数 + * + * @param tenantId + * 租户ID + * @return + */ + Long getTotalCount(String tenantId); + + /** + * 根据属性名判断数据是否已存在. + * + * @param tenantId + * 租户ID + * @param property + * 列名称 + * @param value + * 值 + * @return + */ + Boolean isExist(String tenantId, String property, Object value); + + /** + * 保存实体对象 + * + * @param tenantId + * 租户ID + * @param entity + * 实体类 + * @return 实体对象 + */ + T save(String tenantId, T entity); + + /** + * 保存实体对象 + * + * @param tenantId + * 租户ID + * @param entity + * 实体类 + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return 实体对象 + */ + T save(String tenantId, T entity, Boolean isBatch); + + /** + * 批量保存对象 + * + * @param tenantId + * 租户ID + * @param entity + * 实体类 + * @return 受影响的行数 + */ + Integer save(String tenantId, List entity); + + /** + * + * @param tenantId + * 租户ID + * @param statement + * Mybatis中唯一标识,用Namespace+id表示 + * @param list + * 集合 + */ + Integer save(String tenantId, String statement, List list); + + /** + * + * @param tenantId + * 租户ID + * @param statement + * Mybatis中唯一标识,用Namespace+id表示 + * @param parameter + * Map对象 + * @return + */ + Integer save(String tenantId, String statement, Map parameter); + + /** + * 修改实体对象 + * + * @param tenantId + * 租户ID + * @param entity + * 实体类 + * + * @return 受影响的行数 + */ + Integer update(String tenantId, T entity); + + /** + * 修改实体对象 + * + * @param tenantId + * 租户ID + * @param entity + * 实体类 + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * + * @return 受影响的行数 + */ + Integer update(String tenantId, T entity, Boolean isBatch); + + /** + * 修改实体对象 + * + * @param tenantId + * 租户ID + * @param entity + * 实体集合类 + * @return 受影响的行数 + */ + Integer update(String tenantId, List entity); + + /** + * 删除实体对象 + * + * @param tenantId + * 租户ID + * @param id + * PK + * @return 受影响的行数 + */ + Integer delete(String tenantId, PK id); + + /** + * 删除实体对象 + * + * @param tenantId + * 租户ID + * @param id + * PK + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return 受影响的行数 + */ + Integer delete(String tenantId, PK id, Boolean isBatch); + + /** + * 删除实体 + * + * @param tenantId + * 租户ID + * @param property + * 列名称 + * @param value + * 列值 + * @return + */ + Integer delete(String tenantId, String property, Object value); + + /** + * 删除实体 + * + * @param tenantId + * @param property + * @param value + * @param isBatch + * 是否调整事物类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return + */ + Integer delete(String tenantId, String property, Object value, Boolean isBatch); + + /** + * 根据动态条件删除数据 + * + * @param tenantId + * 租户ID + * @param criteria + * 动态条件,不能为空 + * @return + */ + Integer delete(String tenantId, Criteria criteria); + + /** + * 删除实体对象 + * + * @param tenantId + * @param criteria + * @param isBatch + * 是否调整事务类型 true-ExecutorType.BATCH,false - ExecutorType.SIMPLE + * @return + */ + Integer delete(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 批量删除实体对象. + * + * @param tenantId + * @param ids + * @return 返回受影响的行数 + */ + Integer delete(String tenantId, List ids); + + /** + * + * @param tenantId + * @param statement + * @param list + * @return + */ + Integer delete(String tenantId, String statement, Map parameter); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 执行SQL语句,返回List记录集合,建议应用在实体对象不明确、复杂查询和报表统计方法中 + * + * @param sql + * SQL语句 + * @return List集合 + */ + List> selectList(String sql); + + /** + * 执行SQL语句,返回Map对象,建议应用在实体对象不明确、复杂查询和报表统计方法中 + * + * @param sql + * SQL语句 + * @return Map对象 + */ + Map selectOne(String sql); + + /** + * 执行SQL语句(不包含Limit),获取分页对象,建议应用在实体对象不明确、复杂查询和报表统计方法中 + * + * 根据Pager对象中的PagerNumber、PagerSize自动附加Limit + * + * + * @param sql + * SQL语句 + * @param pager + * 分页对象 + * @return 分页对象 + */ + Pager selectPager(String sql, Pager pager) throws SQLException; + + /** + * 批量删除实体对象.(逻辑删除) + * + * @param tenantId + * @param ids + * @return 返回受影响的行数 + */ + Integer deleteLogical(String tenantId, List ids, String currentUser); + + /** + * 获取最大编号 + * + * @param tenantId + * 租户标识 + * @param criteria + * 查询条件 + * @return + * @throws Exception + */ + String getMaxNo(String tenantId, Criteria criteria); + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/dao/TenantDao.java b/food-server/src/main/java/com/jwsaas/dao/TenantDao.java new file mode 100644 index 0000000..8e31a7e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/TenantDao.java @@ -0,0 +1,7 @@ +package com.jwsaas.dao; + +import com.jwsaas.entity.Tenant; + +public interface TenantDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceProductDao.java new file mode 100644 index 0000000..e9ce21d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceProductDao.java @@ -0,0 +1,36 @@ +package com.jwsaas.dao.food; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.AdjustPriceProduct; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface AdjustPriceProductDao extends BaseDao { + + /** + * 获取列表数据,包含商品信息(商品编码,商品名称,规格编码,规格名称等) + */ + List getListExtend(String tenantId, Criteria criteria); + + /** + * 获取列表数据,包含商品信息(商品编码,商品名称,规格编码,规格名称等) + */ + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerExtend(String tenantId, Criteria criteria,PageBounds pageBounds); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceStoreDao.java new file mode 100644 index 0000000..b4cca2f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceStoreDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.AdjustPriceStore; + +public interface AdjustPriceStoreDao extends BaseDao { + + /** + * 获取列表数据,包含门店名称 + */ + List getListExtend(String tenantId, Criteria criteria); + + /** + * 获取列表数据,包含门店名称 + */ + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceTicketDao.java new file mode 100644 index 0000000..71b7725 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AdjustPriceTicketDao.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.AdjustPriceTicket; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface AdjustPriceTicketDao extends BaseDao { + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List> getPagerByStoreId(String tenantId, Criteria criteria,PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AdvertCaptionDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AdvertCaptionDao.java new file mode 100644 index 0000000..6483a33 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AdvertCaptionDao.java @@ -0,0 +1,81 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.AdvertCaption; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface AdvertCaptionDao extends BaseDao { + + /** + * 根据广告字幕ID,获取已关联该广告字幕的门店信息分页数据 + */ + List getPager4RelatedStore(String tenantId, String advertCaptionId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据广告字幕ID,获取未关联该广告字幕的门店信息分页数据 + */ + List getPager4UnRelatedStore(String tenantId, String advertCaptionId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据广告字幕ID,获取未关联该广告字幕的门店信息 + */ + List getAll4UnRelatedStore(String tenantId, String advertCaptionId, Criteria criteria); + + /** + * 根据广告字幕ID,获取未关联该广告字幕的门店信息 + */ + List getAll4UnRelatedStore(String tenantId, String advertCaptionId, Criteria criteria, Boolean isBatch); + + /** + * 保存广告字幕关联门店信息 + * + * @param tenantId + * @param advertCaptionId + * 广告字幕ID + * @param storeIdList + * 门店ID列表 + * @param currentUser + * 操作人 + * @return + */ + Integer saveStoreRelated(String tenantId, String advertCaptionId, List storeIdList, String currentUser); + + /** + * 根据广告字幕ID和门店ID列表,删除广告字幕关联的门店信息 + * + * @param tenantId + * @param advertCaptionId + * 广告字幕ID + * @param storeIdList + * 门店ID列表 + * @return + */ + Integer deleteStoreRelated(String tenantId, String advertCaptionId, List storeIdList); + + /** + * 根据广告字幕ID,删除该广告字幕关联的门店信息 + * + * @param tenantId + * @param advertCaptionId + * 广告字幕ID + * @return + */ + Integer deleteStoreRelated(String tenantId, String advertCaptionId); + + /** + * 根据广告字幕ID,删除该广告字幕关联的门店信息 + * + * @param tenantId + * @param advertCaptionId + * 广告字幕ID + * @return + */ + Integer deleteStoreRelated(String tenantId, String advertCaptionId, Boolean isBatch); + + public List getListBystoreId(String tenantId, String storeId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AdvertPictureDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AdvertPictureDao.java new file mode 100644 index 0000000..878867c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AdvertPictureDao.java @@ -0,0 +1,90 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.AdvertPicture; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface AdvertPictureDao extends BaseDao { + + /** + * 根据广告图片ID,获取已关联该广告图片的门店信息分页数据 + */ + List getPager4RelatedStore(String tenantId, String pictureId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据广告图片ID,获取未关联该广告图片的门店信息分页数据 + */ + List getPager4UnRelatedStore(String tenantId, String pictureId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据广告图片ID,获取未关联该广告图片的门店信息 + */ + List getAll4UnRelatedStore(String tenantId, String pictureId, Criteria criteria); + + /** + * 根据广告图片ID,获取未关联该广告图片的门店信息 + */ + List getAll4UnRelatedStore(String tenantId, String pictureId, Criteria criteria, Boolean isBatch); + + /** + * 保存广告图片关联门店信息 + * + * @param tenantId + * @param pictureId + * 广告图片ID + * @param storeIdList + * 门店ID列表 + * @param currentUser + * 操作人 + * @return + */ + Integer saveStoreRelated(String tenantId, String pictureId, List storeIdList, String currentUser); + + /** + * 根据广告图片ID和门店ID列表,删除广告图片关联的门店信息 + * + * @param tenantId + * @param pictureId + * 广告图片ID + * @param storeIdList + * 门店ID列表 + * @return + */ + Integer deleteStoreRelated(String tenantId, String pictureId, List storeIdList); + + /** + * 根据广告图片ID,删除该广告图片关联的门店信息 + * + * @param tenantId + * @param pictureId + * 广告图片ID + * @return + */ + Integer deleteStoreRelated(String tenantId, String pictureId); + + /** + * 根据广告图片ID,删除该广告图片关联的门店信息 + * + * @param tenantId + * @param pictureId + * 广告图片ID + * @return + */ + Integer deleteStoreRelated(String tenantId, String pictureId, Boolean isBatch); + + Integer deleteStoreRelated(String tenantId, String pictureId, String storeId); + + Integer deleteStoreRelated(String tenantId, String pictureId, String storeId, Boolean isBatch); + + Integer saveStoreRelated(String tenantId, String pictureId, String storeId); + + Integer saveStoreRelated(String tenantId, String pictureId, String storeId, Boolean isBatch); + + public List getListBystoreId(String tenantId, String storeId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AgentDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AgentDao.java new file mode 100644 index 0000000..c36ef5e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AgentDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.Agent; +import com.jwsaas.dao.BaseDao; + +public interface AgentDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AgentStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AgentStoreDao.java new file mode 100644 index 0000000..dd4718b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AgentStoreDao.java @@ -0,0 +1,25 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.AgentStore; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface AgentStoreDao extends BaseDao { + + List getValueIdsByAgentId(String tenantId, Integer valueType, String agentId); + List getValueIdsByAgentId(String tenantId, Integer valueType, String agentId,boolean isBatch); + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); + + List getStoreIdsByAreaValueId(String tenantId, String agentId); + List getStoreIdsByAreaValueId(String tenantId, String agentId,boolean isBatch); + + List getAllStoreIdsByAgentId(String tenantId, String agentId); + List getAllStoreIdsByAgentId(String tenantId, String agentId,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsDetailDao.java new file mode 100644 index 0000000..9cb1ec2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsDetailDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.AskGoodsDetail; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface AskGoodsDetailDao extends BaseDao { + + List getPagerWithDispatch(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListByAskGoodsSummary(String tenantId, Criteria criteria); + + List getPagerByAskGoodsSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getPagerWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateDao.java new file mode 100644 index 0000000..806a374 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateDao.java @@ -0,0 +1,18 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.AskGoodsTemplate; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface AskGoodsTemplateDao extends BaseDao { + + /** + * 根据门店ID,获取该门店可用模板信息 + */ + List getPagerByStoreId(String tenantId, Criteria criteria, PageBounds pageBounds, String storeId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateDetailDao.java new file mode 100644 index 0000000..11d93ac --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.AskGoodsTemplateDetail; +import com.jwsaas.dao.BaseDao; + +public interface AskGoodsTemplateDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateStoreDao.java new file mode 100644 index 0000000..18702c3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTemplateStoreDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.AskGoodsTemplateStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface AskGoodsTemplateStoreDao extends BaseDao { + + List getStoreInfoList(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketDao.java new file mode 100644 index 0000000..3d372ee --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.AskGoodsTicket; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface AskGoodsTicketDao extends BaseDao { + + /** + * 根据条件获取要货单Ids; + * @param tenantId + * @param criteria + * @return + */ + List getTicketIdsList(String tenantId, Criteria criteria); + + List getPagerWithDispatch(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketLogDao.java new file mode 100644 index 0000000..ead34de --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.AskGoodsTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface AskGoodsTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketPayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketPayDao.java new file mode 100644 index 0000000..e3255c7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/AskGoodsTicketPayDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.AskGoodsTicketPay; +import com.jwsaas.dao.BaseDao; + +public interface AskGoodsTicketPayDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/BaiduFoodDao.java b/food-server/src/main/java/com/jwsaas/dao/food/BaiduFoodDao.java new file mode 100644 index 0000000..4749e9d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/BaiduFoodDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.BaiduFood; +import com.jwsaas.dao.BaseDao; + +public interface BaiduFoodDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/BaiduOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/food/BaiduOrderDao.java new file mode 100644 index 0000000..0c19bb6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/BaiduOrderDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.BaiduOrder; +import com.jwsaas.dao.BaseDao; + +public interface BaiduOrderDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/BaiduOrderProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/BaiduOrderProductDao.java new file mode 100644 index 0000000..e2f2779 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/BaiduOrderProductDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.BaiduOrderProduct; +import com.jwsaas.dao.BaseDao; + +public interface BaiduOrderProductDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/BrandDao.java b/food-server/src/main/java/com/jwsaas/dao/food/BrandDao.java new file mode 100644 index 0000000..68d5b37 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/BrandDao.java @@ -0,0 +1,23 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.Brand; + +public interface BrandDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + /** + * 获取集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @return + */ + List getListBystoreId(String tenantId, String storeId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/BusinessPlanDao.java b/food-server/src/main/java/com/jwsaas/dao/food/BusinessPlanDao.java new file mode 100644 index 0000000..4d7c1db --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/BusinessPlanDao.java @@ -0,0 +1,92 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.BusinessPlan; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface BusinessPlanDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + public List getBusinessPlanByStoreId(String tenantId, String storeId); + + /** + * 根据营业日方案ID,获取应用该方案的门店列表 + * + * @param tenantId + * @param planId + * 营业日方案ID + * @param criteria + * @param pageBounds + * @return + */ + List getPagerForStore(String tenantId, String planId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取没有应用营业日方案的门店列表 + * + * @param tenantId + * @param storeAreaId + * 门店区域ID + * @param storeTypeId + * 门店类型ID + * @param brandId + * 品牌ID + * @param property + * 搜索属性 + * @param keyword + * 关键字 + * @param pageBounds + * @return + */ + List getPagerForStoreNoPlan(String tenantId, String storeAreaId, String storeTypeId, String brandId, String property, String keyword, PageBounds pageBounds); + + /** + * 保存营业日方案应用门店信息 + * + * @param tenantId + * @param planId + * 营业日方案ID + * @param storeIdList + * 门店ID列表 + * @return + */ + Integer saveStoreRelation(String tenantId, String planId, List storeIdList); + + /** + * 删除营业日方案应用门店信息 + * + * @param tenantId + * @param planId + * 营业日方案ID + * @param storeIdList + * 门店ID列表 + * @return + */ + Integer deleteStoreRelation(String tenantId, String planId, List storeIdList); + + /** + * 根据营业日方案ID,删除营业日方案应用门店信息 + * + * @param tenantId + * @param planId + * @return + */ + Integer deleteStoreRelationByPlanId(String tenantId, String planId); + + /** + * 根据营业日方案ID,删除营业日方案应用门店信息 + */ + Integer deleteStoreRelationByPlanId(String tenantId, String planId, Boolean isBatch); + + /** + * 根据门店ID,删除营业日方案 + */ + Integer deleteStoreRelationByStoreId(String tenantId, List storeIdList); + + Integer saveStorePlanRelation(String tenantId, String id, String storeId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/BusinessPlanDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/BusinessPlanDetailDao.java new file mode 100644 index 0000000..7c05ac4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/BusinessPlanDetailDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.BusinessPlanDetail; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; + +public interface BusinessPlanDetailDao extends BaseDao { + + public List getBusinessPlanDetailByStoreId(String tenantId, String storeId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CandaoStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CandaoStoreDao.java new file mode 100644 index 0000000..63206fc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CandaoStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CandaoStore; +import com.jwsaas.dao.BaseDao; + +public interface CandaoStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CategoryDao.java new file mode 100644 index 0000000..6622bca --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.Category; +import com.jwsaas.dao.BaseDao; + +public interface CategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CheckTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CheckTemplateDao.java new file mode 100644 index 0000000..2ebdf5d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CheckTemplateDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CheckTemplate; +import com.jwsaas.dao.BaseDao; + +public interface CheckTemplateDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CheckTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CheckTemplateDetailDao.java new file mode 100644 index 0000000..32d847a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CheckTemplateDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CheckTemplateDetail; +import com.jwsaas.dao.BaseDao; + +public interface CheckTemplateDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketDao.java new file mode 100644 index 0000000..e4ce20d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CheckTicket; +import com.jwsaas.dao.BaseDao; + +public interface CheckTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketDetailDao.java new file mode 100644 index 0000000..4efa4c2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketDetailDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.CheckTicketDetail; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface CheckTicketDetailDao extends BaseDao { + + List getExtendsPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getExtendsList(String tenantId, Criteria criteria); + List getExtendsList(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketLogDao.java new file mode 100644 index 0000000..e0819d5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CheckTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CheckTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface CheckTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostFeeItemDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostFeeItemDao.java new file mode 100644 index 0000000..6cd98bd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostFeeItemDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostFeeItem; +import com.jwsaas.dao.BaseDao; + +public interface CostFeeItemDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostFeeTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostFeeTypeDao.java new file mode 100644 index 0000000..639c416 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostFeeTypeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostFeeType; +import com.jwsaas.dao.BaseDao; + +public interface CostFeeTypeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketDao.java new file mode 100644 index 0000000..6d0de74 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicket; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketPayTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketPayTypeDao.java new file mode 100644 index 0000000..5d43270 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketPayTypeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketPayType; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketPayTypeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductChangeDao.java new file mode 100644 index 0000000..058a412 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketProductChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketProductChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductFixedChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductFixedChangeDao.java new file mode 100644 index 0000000..fc4cedd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductFixedChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketProductFixedChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketProductFixedChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductMoreChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductMoreChangeDao.java new file mode 100644 index 0000000..33a2ee5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductMoreChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketProductMoreChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketProductMoreChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductOtherChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductOtherChangeDao.java new file mode 100644 index 0000000..1e0f6f7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductOtherChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketProductOtherChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketProductOtherChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductTypeDao.java new file mode 100644 index 0000000..7ce57da --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketProductTypeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketProductType; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketProductTypeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateDao.java new file mode 100644 index 0000000..75150fb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateDao.java @@ -0,0 +1,24 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.CostTicketTemplate; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface CostTicketTemplateDao extends BaseDao { + + /** + * 保存模板对应门店关联; + * @param tenantId + * @param templates + * @return + */ + Integer saveTemplateRelation(String tenantId, List templates); + + List getListByCriteria(String tenantId, String property, Criteria criteria); + List getListByCriteria(String tenantId, String property, Criteria criteria,boolean isBatch); + + Integer deleteTemplateRelationByCriteria(String tenantId, Criteria criteria); + Integer deleteTemplateRelationByCriteria(String tenantId, Criteria criteria, boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductChangeDao.java new file mode 100644 index 0000000..cee341f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketTemplateProductChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketTemplateProductChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductFixedChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductFixedChangeDao.java new file mode 100644 index 0000000..741b532 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductFixedChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketTemplateProductFixedChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketTemplateProductFixedChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductMoreChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductMoreChangeDao.java new file mode 100644 index 0000000..c33b805 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductMoreChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketTemplateProductMoreChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketTemplateProductMoreChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductOtherChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductOtherChangeDao.java new file mode 100644 index 0000000..69e0c67 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CostTicketTemplateProductOtherChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CostTicketTemplateProductOtherChange; +import com.jwsaas.dao.BaseDao; + +public interface CostTicketTemplateProductOtherChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CouponCodeDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CouponCodeDetailDao.java new file mode 100644 index 0000000..2b02805 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CouponCodeDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CouponCodeDetail; +import com.jwsaas.dao.BaseDao; + +public interface CouponCodeDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CouponDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CouponDao.java new file mode 100644 index 0000000..daa05d4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CouponDao.java @@ -0,0 +1,17 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.Coupon; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface CouponDao extends BaseDao { + + /** + * 根据门店ID,获取优惠券信息 + */ + List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CouponStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CouponStoreDao.java new file mode 100644 index 0000000..3a36c41 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CouponStoreDao.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.CouponStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface CouponStoreDao extends BaseDao { + + List getStoreIdList(String tenantId, Criteria criteria); + + List getStoreIdList(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketDao.java new file mode 100644 index 0000000..f0162b7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CouponTicket; +import com.jwsaas.dao.BaseDao; + +public interface CouponTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketProductDao.java new file mode 100644 index 0000000..0c7b441 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketProductDao.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.CouponTicketProduct; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface CouponTicketProductDao extends BaseDao { + + /** + * 获取列表数据,包含商品信息(商品编码,商品名称,规格编码,规格名称等) + */ + List getListExtend(String tenantId, Criteria criteria); + + /** + * 获取列表数据,包含商品信息(商品编码,商品名称,规格编码,规格名称等) + */ + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + + List> getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketStoreDao.java new file mode 100644 index 0000000..ad4d5e3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/CouponTicketStoreDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.CouponTicketStore; + +public interface CouponTicketStoreDao extends BaseDao { + + /** + * 获取列表数据,包含门店名称 + */ + List getListExtend(String tenantId, Criteria criteria); + + /** + * 获取列表数据,包含门店名称 + */ + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DeliverDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DeliverDao.java new file mode 100644 index 0000000..504106f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DeliverDao.java @@ -0,0 +1,20 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.Deliver; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface DeliverDao extends BaseDao { + + List getStoreIdsByDeliverId(String tenantId, String deliverId); + + List getStoreIdsByDeliverId(String tenantId, String deliverId,boolean isBatch); + + Integer saveStoreRelations(String tenantId, List list); + + Integer deleteRelations(String tenantId, Criteria criteria); + + Integer deleteRelations(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DfsFileDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DfsFileDao.java new file mode 100644 index 0000000..af846f8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DfsFileDao.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.DfsFile; + +public interface DfsFileDao extends BaseDao { + + Integer updateUseCount(String tenantId, String userName, List list); + + Integer updateDeleteCount(String tenantId, String userName, List list); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchSettlePlanDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchSettlePlanDao.java new file mode 100644 index 0000000..8d10117 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchSettlePlanDao.java @@ -0,0 +1,23 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.DispatchSettlePlan; + +public interface DispatchSettlePlanDao extends BaseDao { + + List getListByStoreId(String tenantId, String storeId, Criteria criteria); + + List getListByStoreId(String tenantId, String storeId, Criteria criteria, Boolean isBatch); + + List getAllStoreId(String tenantId); + + Integer saveStoreRelation(String tenantId, List plans); + + List getStoreIdByPlanId(String tenantId, String planId); + + Integer deleteStoreRelationByPlanId(String tenantId, String id); + Integer deleteStoreRelationByPlanId(String tenantId, String id, boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchSettlePlanPayModeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchSettlePlanPayModeDao.java new file mode 100644 index 0000000..7e8059a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchSettlePlanPayModeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.DispatchSettlePlanPayMode; +import com.jwsaas.dao.BaseDao; + +public interface DispatchSettlePlanPayModeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketDao.java new file mode 100644 index 0000000..4f2e266 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketDao.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.DispatchTicket; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface DispatchTicketDao extends BaseDao { + + /** + * 根据条件获取配送单Id集合; + * @param tenantId + * @param criteria + * @return + */ + List getTicketIdsList(String tenantId, Criteria criteria); + + List getPagerWithDifferentMoneySummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListWithDifferentMoneySummary(String tenantId, Criteria criteria); + + List> getListWithProductIds(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketDetailDao.java new file mode 100644 index 0000000..0c70176 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketDetailDao.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.DispatchTicketDetail; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface DispatchTicketDetailDao extends BaseDao { + + List getListBydispatchSummary(String tenantId, Criteria criteria); + + List getPagerBydispatchSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getPagerWithTypeIdBydispatchSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListWithTypeIdBydispatchSummary(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketLogDao.java new file mode 100644 index 0000000..60b45d7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.DispatchTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface DispatchTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketDao.java new file mode 100644 index 0000000..99dbcba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.DispatchpriceTicket; +import com.jwsaas.dao.BaseDao; + +public interface DispatchpriceTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketMaterialDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketMaterialDao.java new file mode 100644 index 0000000..0dc4ff2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketMaterialDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.DispatchpriceTicketMaterial; +import com.jwsaas.dao.BaseDao; + +public interface DispatchpriceTicketMaterialDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketStoreDao.java new file mode 100644 index 0000000..147d055 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/DispatchpriceTicketStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.DispatchpriceTicketStore; +import com.jwsaas.dao.BaseDao; + +public interface DispatchpriceTicketStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ElemeCategoryFoodDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ElemeCategoryFoodDao.java new file mode 100644 index 0000000..8885f35 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ElemeCategoryFoodDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ElemeCategoryFood; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ElemeCategoryFoodDao extends BaseDao { + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ElemeFoodCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ElemeFoodCategoryDao.java new file mode 100644 index 0000000..ce30c08 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ElemeFoodCategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ElemeFoodCategory; +import com.jwsaas.dao.BaseDao; + +public interface ElemeFoodCategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ElemeOrderDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ElemeOrderDetailDao.java new file mode 100644 index 0000000..690d07f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ElemeOrderDetailDao.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ElemeOrderDetail; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ElemeOrderDetailDao extends BaseDao { + + List getListReportDataSummary(String tenantId, Criteria criteria); + List getListReportDataSummary(String tenantId, Criteria criteria,boolean isBatch); + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ElemeOrderDetailGroupDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ElemeOrderDetailGroupDao.java new file mode 100644 index 0000000..268f499 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ElemeOrderDetailGroupDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ElemeOrderDetailGroup; +import com.jwsaas.dao.BaseDao; + +public interface ElemeOrderDetailGroupDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ErpPosSetDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ErpPosSetDao.java new file mode 100644 index 0000000..2f15ff6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ErpPosSetDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ErpPosSet; +import com.jwsaas.dao.BaseDao; + +public interface ErpPosSetDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/FeeItemDao.java b/food-server/src/main/java/com/jwsaas/dao/food/FeeItemDao.java new file mode 100644 index 0000000..6303122 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/FeeItemDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.FeeItem; +import com.jwsaas.dao.BaseDao; + +public interface FeeItemDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/KdsPlanDao.java b/food-server/src/main/java/com/jwsaas/dao/food/KdsPlanDao.java new file mode 100644 index 0000000..fe81a96 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/KdsPlanDao.java @@ -0,0 +1,53 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.KdsPlan; + +public interface KdsPlanDao extends BaseDao { + + /** + * 根据门店,查到门店对应厨显方案; + * @param tenantId + * @param storeId + * @return + */ + List getListBystoreId(String tenantId, String storeId); + + /** + * 保存方案、对应门店Id信息; + * @param tenantId + * @param kitPlans + * @return + */ + Integer saveKdsPlanStoreRelation(String tenantId, List kitPlans); + + /** + * 根据方案id,查找对应门店IDs; + * @param tenantId + * @param id + * @return + */ + List getKdsPlanStoreIdsByPlanId(String tenantId, String id); + + + /** + * 根据条件删除,方案门店对应关系; + * @param tenantId + * @param criteria + * @return + */ + Integer deleteKdsPlanStoreByCriteria(String tenantId, Criteria criteria); + + /** + * 根据条件删除,方案门店对应关系; + * @param tenantId + * @param criteria + * @return + */ + Integer deleteKdsPlanStoreByCriteria(String tenantId, Criteria criteria,Boolean isBatch); + + Integer saveKdsPlanStoreRelationSigle(String tenantId, List kdsPlans); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/KitPlanDao.java b/food-server/src/main/java/com/jwsaas/dao/food/KitPlanDao.java new file mode 100644 index 0000000..9b75be0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/KitPlanDao.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.KitPlan; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface KitPlanDao extends BaseDao { + + /** + * 保存对应关系; + * @param tenantId + * @param kitPlens + * @return + */ + Integer saveKitPlanStoreRelation(String tenantId, List kitPlens); + + /** + * 根据方案Id找到对应门店Ids + * @param tenantId + * @param id + * @return + */ + List getKitPlanStoreIdsByPlanId(String tenantId, String id); + + /** + * 删除对应关系; + * @param tenantId + * @param criteria + * @return + */ + Integer deleteKitPlanStoreByCriteria(String tenantId, Criteria criteria); + + /** + * 根据门店,查到门店对应厨打方案; + * @param tenantId + * @param storeId + * @return + */ + List getListBystoreId(String tenantId, String storeId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MakeBurdenDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MakeBurdenDao.java new file mode 100644 index 0000000..eca2797 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MakeBurdenDao.java @@ -0,0 +1,36 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.MakeBurden; +import com.jwsaas.entity.food.MakeDetail; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface MakeBurdenDao extends BaseDao { + + /** + * 获取已设置配料信息的做法分页数据
+ * 包含部分做法信息(做法编号,做法说明等) + */ + List getPager4MakeDetail(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProduct(String tenantId, Criteria criteria); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProduct(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 获取已经设置过配料信息的做法ID列表 + */ + List getMakeIdListHasBurden(String tenantId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MakeDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MakeDetailDao.java new file mode 100644 index 0000000..43a0c8d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MakeDetailDao.java @@ -0,0 +1,36 @@ +package com.jwsaas.dao.food; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.MakeDetail; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface MakeDetailDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + List getListByProductId(String tenantId, String productId, Criteria criteria); + + Integer deleteRelationProductMake(String tenantId, Criteria criteria); + + Integer deleteRelationProductMake(String tenantId, Criteria criteria, Boolean isBatch); + + Integer saveRelationProductMake(String tenantId, String productId, String makeDetailId); + + Integer deleteRelationStoreMake(String tenantId, Criteria criteria); + + Integer deleteRelationStoreMake(String tenantId, Criteria criteria, Boolean isBatch); + + Integer saveRelationStoreMake(String tenantId, String storeId, String makeId, Double addPrice); + + List getListByStoreId(String tenantId, String storeId, Criteria criteria); + + List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + List> getPager4Private(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + String selectMaxValueBatch(String tenantId, String property); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MakeTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MakeTypeDao.java new file mode 100644 index 0000000..fdb98ea --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MakeTypeDao.java @@ -0,0 +1,11 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.MakeType; +import com.jwsaas.dao.BaseDao; + +public interface MakeTypeDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + String selectMaxValueBatch(String tenantId, String property); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MeituanFoodCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MeituanFoodCategoryDao.java new file mode 100644 index 0000000..1f4069a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MeituanFoodCategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.MeituanFoodCategory; +import com.jwsaas.dao.BaseDao; + +public interface MeituanFoodCategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MeituanFoodDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MeituanFoodDao.java new file mode 100644 index 0000000..ce173df --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MeituanFoodDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.MeituanFood; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface MeituanFoodDao extends BaseDao { + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderDao.java new file mode 100644 index 0000000..52f7eeb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.MeituanOrder; +import com.jwsaas.dao.BaseDao; + +public interface MeituanOrderDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderExtraDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderExtraDao.java new file mode 100644 index 0000000..33ddd10 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderExtraDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.MeituanOrderExtra; +import com.jwsaas.dao.BaseDao; + +public interface MeituanOrderExtraDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderItemDao.java b/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderItemDao.java new file mode 100644 index 0000000..d4a612f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/MeituanOrderItemDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.MeituanOrderItem; +import com.jwsaas.dao.BaseDao; + +public interface MeituanOrderItemDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketDao.java new file mode 100644 index 0000000..6626802 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.OtherStorageOutTicket; +import com.jwsaas.dao.BaseDao; + +public interface OtherStorageOutTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketDetailDao.java new file mode 100644 index 0000000..ba79332 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.OtherStorageOutTicketDetail; +import com.jwsaas.dao.BaseDao; + +public interface OtherStorageOutTicketDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketLogDao.java new file mode 100644 index 0000000..6ec74be --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageOutTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.OtherStorageOutTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface OtherStorageOutTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketDao.java new file mode 100644 index 0000000..51dba01 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.OtherStorageTicket; +import com.jwsaas.dao.BaseDao; + +public interface OtherStorageTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketDetailDao.java new file mode 100644 index 0000000..b0b413c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.OtherStorageTicketDetail; +import com.jwsaas.dao.BaseDao; + +public interface OtherStorageTicketDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketLogDao.java new file mode 100644 index 0000000..9b2d9c1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/OtherStorageTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.OtherStorageTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface OtherStorageTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PayModeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PayModeDao.java new file mode 100644 index 0000000..19a821d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PayModeDao.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.PayMode; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface PayModeDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + Integer deleteRelationStorePayMode(String tenantId, Criteria criteria); + + Integer deleteRelationStorePayMode(String tenantId, Criteria criteria, Boolean isBatch); + + Integer saveRelationStorePayMode(String tenantId, String storeId, Map payMode); + + List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + public List getListByStoreId(String tenantId, String storeId); + + List getAllStorePayModeList(String tenantId); + + List getListStorePayModePeriodDiscount(String tenantId, Criteria criteria); + List getListStorePayModePeriodDiscount(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PayModeStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PayModeStoreDao.java new file mode 100644 index 0000000..33b1a89 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PayModeStoreDao.java @@ -0,0 +1,17 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PayMode; +import com.jwsaas.entity.food.PayModeStore; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface PayModeStoreDao extends BaseDao { + + List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + List getListExtends(String tenantId, Criteria criteria); + List getListExtends(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PayTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PayTypeDao.java new file mode 100644 index 0000000..c1e304d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PayTypeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PayType; +import com.jwsaas.dao.BaseDao; + +public interface PayTypeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PaymentParameterDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PaymentParameterDao.java new file mode 100644 index 0000000..1f7ee6d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PaymentParameterDao.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.PaymentParameter; + +public interface PaymentParameterDao extends BaseDao { + + List getPaymentParameterByStoreId(String tenantId, String storeId); + + Integer savePaymentParameterStoreRelation(String tenantId, List list); + + List getStoreIdsByPaymentId(String tenantId, String id); + + Integer deleteRelationByParameterIdBatch(String tenantId, Criteria criteria); + + Integer deleteRelationByParameterId(String tenantId, Criteria criteria); + + Integer savePaymentParameterStoreRelationBySingleType(String tenantId, List parameterList); + + Boolean isPaymentExist(String tenantId, String thirdNo); + + List getAllPaymentParameterByStoreId(String tenantId, String storeId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PermissionsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PermissionsDao.java new file mode 100644 index 0000000..db4692a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PermissionsDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.Permissions; + +public interface PermissionsDao extends BaseDao { + /** + * 根据角色ID删除角色权限关联关系 + * + * @param tenantId + * @param roleId + * @return + */ + Integer deleteRelationship(String tenantId, String roleId); + + public List getModuleIdByUserId(String tenantId, String userId); + + public List getPermissionsByUserId(String tenantId, String userId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosInfoDao.java new file mode 100644 index 0000000..4c37737 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosInfoDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PosInfo; +import com.jwsaas.dao.BaseDao; + +public interface PosInfoDao extends BaseDao { + + /** + * 获取最大编号 + * + * @param tenantId + * @return + * @throws Exception + */ + public String getMaxNo(String tenantId) throws Exception; +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosPollcodeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosPollcodeDao.java new file mode 100644 index 0000000..d7ac62c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosPollcodeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PosPollcode; +import com.jwsaas.dao.BaseDao; + +public interface PosPollcodeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosRoleDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosRoleDao.java new file mode 100644 index 0000000..8f05ebd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosRoleDao.java @@ -0,0 +1,112 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.PosRole; +import com.jwsaas.entity.food.StoreWorker; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface PosRoleDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + /** + * 删除角色关联的模块信息 + */ + Integer deleteRoleModule(String tenantId, String roleId); + + /** + * 保存角色关联的模块信息 + */ + Integer saveRoleModule(String tenantId, String roleId, List moduleNoList); + + /** + * 查询角色关联的模块信息 + */ + List getModuleNoList(String tenantId, String roleId); + + /** + * 查询员工关联的模块信息 + * @param tenantId + * @param workerId + * @return + */ + List getYgjModuleNoList(String tenantId, String workerId); + + /** + * 根据角色ID,获取已关联该角色的员工列表 + * + * @param tenantId + * @param roleId + * 角色ID + * @param criteria + * @param pageBounds + * @return + */ + List getPagerForWorker(String tenantId, String roleId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据角色ID,获取未关联该角色的员工列表 + * + * @param tenantId + * @param roleId + * 角色ID + * @param criteria + * @param pageBounds + * @return + */ + List getPagerForWorkerNoRelation(String tenantId, String roleId, Criteria criteria, PageBounds pageBounds); + + /** + * 保存前台角色关联的员工信息 + * + * @param tenantId + * @param roleId + * 角色ID + * @param workerIdList + * 员工ID列表 + * @return + */ + Integer saveWorkerRelation(String tenantId, String roleId, List workerIdList); + + /** + * 刪除前台角色关联的员工信息 + * + * @param tenantId + * @param roleId + * 角色ID + * @param workerIdList + * 员工ID列表 + * @return + */ + Integer deleteWorkerRelation(String tenantId, String roleId, List workerIdList); + + /** + * 门店员工折扣权限、免单额 + * + * @param tenantId + * @param roleId + * @return + */ + List getStoreWorkerPosRole(String tenantId, String storeId ,PageBounds pageBounds); + + /** + * 门店员工前台模块权限 + * + * @param tenantId + * @param roleId + * @return + */ + List getStoreWorkerPosModule(String tenantId, String storeId ,PageBounds pageBounds); + + /** + * 查询员工关联的模块信息 + * @param tenantId + * @param workerId + * @return + */ + List getManagerModuleNoList(String tenantId, String workerId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanConfigDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanConfigDao.java new file mode 100644 index 0000000..70c9e24 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanConfigDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PosSetPlanConfig; +import com.jwsaas.dao.BaseDao; + +public interface PosSetPlanConfigDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanDao.java new file mode 100644 index 0000000..44425bc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanDao.java @@ -0,0 +1,20 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PosSetPlan; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface PosSetPlanDao extends BaseDao { + + PosSetPlan savePlanStoreId(String tenantId, PosSetPlan plan); + PosSetPlan savePlanStoreId(String tenantId, PosSetPlan plan,boolean isBatch); + + List getStoreIdsByPlanId(String tenantId, String planId); + + Integer deletePlanStoreIdByCriteria(String tenantId, Criteria criteria); + Integer deletePlanStoreIdByCriteria(String tenantId, Criteria criteria,boolean isBatch); + + List getPlanIdsByStoreId(String tenantId, String storeId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanModuleDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanModuleDao.java new file mode 100644 index 0000000..2fe46e5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanModuleDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PosSetPlanModule; +import com.jwsaas.dao.BaseDao; + +public interface PosSetPlanModuleDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanResourcesDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanResourcesDao.java new file mode 100644 index 0000000..5a0bbeb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanResourcesDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PosSetPlanResources; +import com.jwsaas.dao.BaseDao; + +public interface PosSetPlanResourcesDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanShortcutDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanShortcutDao.java new file mode 100644 index 0000000..7987b8a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PosSetPlanShortcutDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PosSetPlanShortcut; +import com.jwsaas.dao.BaseDao; + +public interface PosSetPlanShortcutDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PrintImageDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PrintImageDao.java new file mode 100644 index 0000000..7ce1465 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PrintImageDao.java @@ -0,0 +1,81 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.PrintImage; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface PrintImageDao extends BaseDao { + + /** + * 根据小票打印图片ID,获取已关联该小票打印图片的门店信息分页数据 + */ + List getPager4RelatedStore(String tenantId, String imageId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据小票打印图片ID,获取未关联该小票打印图片的门店信息分页数据 + */ + List getPager4UnRelatedStore(String tenantId, String imageId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据小票打印图片ID,获取未关联该小票打印图片的门店信息 + */ + List getAll4UnRelatedStore(String tenantId, String imageId, Criteria criteria); + + /** + * 根据小票打印图片ID,获取未关联该小票打印图片的门店信息 + */ + List getAll4UnRelatedStore(String tenantId, String imageId, Criteria criteria, Boolean isBatch); + + /** + * 保存小票打印图片关联门店信息 + * + * @param tenantId + * @param imageId + * 小票打印图片ID + * @param storeIdList + * 门店ID列表 + * @param currentUser + * 操作人 + * @return + */ + Integer saveStoreRelated(String tenantId, String imageId, List storeIdList, String currentUser); + + /** + * 根据小票打印图片ID和门店ID列表,删除小票打印图片关联的门店信息 + * + * @param tenantId + * @param imageId + * 小票打印图片ID + * @param storeIdList + * 门店ID列表 + * @return + */ + Integer deleteStoreRelated(String tenantId, String imageId, List storeIdList); + + /** + * 根据小票打印图片ID,删除该小票打印图片关联的门店信息 + * + * @param tenantId + * @param imageId + * 小票打印图片ID + * @return + */ + Integer deleteStoreRelated(String tenantId, String imageId); + + /** + * 根据小票打印图片ID,删除该小票打印图片关联的门店信息 + * + * @param tenantId + * @param imageId + * 小票打印图片ID + * @return + */ + Integer deleteStoreRelated(String tenantId, String imageId, Boolean isBatch); + + public List getListBystoreId(String tenantId, String storeId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNegativeStockDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNegativeStockDao.java new file mode 100644 index 0000000..41442af --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNegativeStockDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductBatchNegativeStock; +import com.jwsaas.dao.BaseDao; + +public interface ProductBatchNegativeStockDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNegativeStockDifferDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNegativeStockDifferDao.java new file mode 100644 index 0000000..08baec6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNegativeStockDifferDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductBatchNegativeStockDiffer; +import com.jwsaas.dao.BaseDao; + +public interface ProductBatchNegativeStockDifferDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNumberDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNumberDao.java new file mode 100644 index 0000000..800bd86 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchNumberDao.java @@ -0,0 +1,20 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductBatchNumber; +import com.jwsaas.dao.BaseDao; + +public interface ProductBatchNumberDao extends BaseDao { + + /** + * 批次号生成 + * + * @param tenantId + * @param storageId + * @param productId + * @param productNo + * @param specId + * @return + */ + String getBatchNo(String tenantId, String storageId, String productId, String productNo, String specId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchStockChangeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchStockChangeDao.java new file mode 100644 index 0000000..db7cf52 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchStockChangeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductBatchStockChange; +import com.jwsaas.dao.BaseDao; + +public interface ProductBatchStockChangeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchStockDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchStockDao.java new file mode 100644 index 0000000..322152a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductBatchStockDao.java @@ -0,0 +1,56 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface ProductBatchStockDao extends BaseDao { + + /** + * 根据出库数量自动分配批次 + * + * @param tenantId + * @param storageId + * @param productId + * @param productNo + * @param productName + * @param specId + * @param specName + * @param productDescription + * @param price + * 出库单价 + * @param totalQuantity + * 总出库数量 + * @param allowNegativeStock + * 是否允许负库存 + * @param productBatchNumberDao + * @param productRatioDao + * @param productBatchStockDao + * @return status-状态(true-完全分配;false-未完全分配;)
+ * data-分配结果
+ * allocatedQuantity-已分配数量
+ * negativeStock-是否负库存(true-是;false-否;)
+ * negativeStockQuantity-负库存数量
+ */ + Map allocateBatches(String tenantId, String storageId, String productId, String productNo, String productName, String specId, String specName, String productDescription, + Double price, Double totalQuantity, Boolean allowNegativeStock, ProductBatchNumberDao productBatchNumberDao, ProductRatioDao productRatioDao, ProductBatchStockDao productBatchStockDao); + + /** + * 根据出库数量自动分配批次,能分配多少分配多少[用于负库存抵消] + * + * @return data-分配结果
+ * allocatedQuantity-已分配数量
+ */ + Map allocateBatches4NegativeStockOffset(String tenantId, String storageId, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Double price, Double totalQuantity, ProductBatchNumberDao productBatchNumberDao, ProductRatioDao productRatioDao, ProductBatchStockDao productBatchStockDao); + + List getExtendPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getExtendList(String tenantId, Criteria criteria, boolean isBatch); + + List getExtendList(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductBurdenDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductBurdenDao.java new file mode 100644 index 0000000..52bd199 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductBurdenDao.java @@ -0,0 +1,61 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductBurden; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductBurdenDao extends BaseDao { + + /** + * 获取已设置配料信息的商品分页数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getPager4ProductSpec(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProduct(String tenantId, Criteria criteria); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProduct(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 获取没有设置配料信息的商品(含规格)列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListNoBurden(String tenantId, Criteria criteria); + + /** + * 获取没有设置配料信息的商品(含规格)列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListNoBurden(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 分页获取没有设置配料信息的商品(含规格)列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getPagerNoBurden(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getList4ProductSpec(String tenantId, Criteria criteria); + List getList4ProductSpec(String tenantId, Criteria criteria,boolean isbatch); + + /** + * 根据门店获取产品耗料清单 + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getPagerByStoreId(String tenantId, Criteria criteria, PageBounds pageBounds); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductDao.java new file mode 100644 index 0000000..d99cbe8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductDao.java @@ -0,0 +1,137 @@ +package com.jwsaas.dao.food; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.Product; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + String selectMaxValue(String tenantId, String property, Boolean isBatch); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds); + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByTenantId(String tenantId , PageBounds pageBounds); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreIdProduct(String tenantId, String storeId, PageBounds pageBounds); + + /** + * 根据条件查询门店管理的商品资料 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreIdMore(String tenantId, String storeId,String typeId,String keyword, PageBounds pageBounds); + + /** + * 获取门店商品信息 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerExtends(String tenantId,Criteria criteria , PageBounds pageBounds); + + + /** + * 获取指定门店关联的所有商品 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List> getSpecGoodsPager(String tenantId,Criteria criteria ,PageBounds pageBounds); + + + /** + * 获取门店关联商品品类集合 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + */ + List> getProductType(String tenantId, Criteria criteria); + + /** + * 根据门店Ids,查找这些门店共有的菜品; + * + * @param tenantId + * @param storeIds + * @param size + * @return + */ + List getStoresCommonProductByStoreIds(String tenantId, List storeIds, int size, String productTypeId, String brandId, String unitId,String property,String keyword); + + + /** + * 获取门店关联商品品牌集合 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + */ + List> getProductBrand(String tenantId, Criteria criteria); + + /** + * 获取自建商品的最大编号 + * @param tenantId + * @param property + * @return + */ + String selectMaxNoSelf(String tenantId, String storeId); + + List getProductIdByCriteria(String tenantId, Criteria criteria); + + String selectMaxNoByTypeId(String tenantId, String typeId); + String selectMaxNoByTypeId(String tenantId, String typeId,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductImageDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductImageDao.java new file mode 100644 index 0000000..c3b566e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductImageDao.java @@ -0,0 +1,23 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductImage; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductImageDao extends BaseDao { + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductKdsPlanDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductKdsPlanDao.java new file mode 100644 index 0000000..7fc95c2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductKdsPlanDao.java @@ -0,0 +1,38 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProductKdsPlan; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ProductKdsPlanDao extends BaseDao { + + /** + * 获取包含门店、商品信息的厨显设置信息 + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getStoreProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据门店id,查找厨显方案对应商品id; + * @param tenantId + * @param storeId + * @return + */ + List getProductIdsByStoreId(String tenantId, String storeId); + + /** + * 根据门店Id,菜品Id,修改菜品厨打方案信息; + * @param tenantId + * @param uplist + * @return + */ + Integer updateProductKdsPlanByProductIdAndStoreId(String tenantId, List uplist); + + List getProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductKitPlanDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductKitPlanDao.java new file mode 100644 index 0000000..89216b9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductKitPlanDao.java @@ -0,0 +1,40 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProductKitPlan; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ProductKitPlanDao extends BaseDao { + + /** + * 获取含有门店、菜品信息的菜品厨打方案信息; + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getStoreProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 通过门店id,查找门店对应菜品厨打信息; + * @param tenantId + * @param storeId + * @return + */ + List getProductIdsByStoreId(String tenantId, String storeId); + + /** + * + * @param tenantId + * @param list + * @return + */ + Integer updateProductKitPlanByProductIdAndStoreId(String tenantId, List list); + + List getProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getProductInfosPager(String tenantId, String storeId,Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeDao.java new file mode 100644 index 0000000..0662b71 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductMake; +import com.jwsaas.dao.BaseDao; + +public interface ProductMakeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeTemplateDao.java new file mode 100644 index 0000000..f9688bc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeTemplateDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductMakeTemplate; +import com.jwsaas.dao.BaseDao; + +public interface ProductMakeTemplateDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeTemplateDetailDao.java new file mode 100644 index 0000000..0c7b1e5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductMakeTemplateDetailDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProductMakeTemplateDetail; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProductMakeTemplateDetailDao extends BaseDao { + + /** + * 获取包含做法明细的数据; + * @param tenantId + * @param criteria + * @return + */ + List getDetailsList(String tenantId, Criteria criteria); + + List getDetailsList(String tenantId, Criteria criteria,boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductRatioDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductRatioDao.java new file mode 100644 index 0000000..9af9f3f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductRatioDao.java @@ -0,0 +1,57 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductRatioDao extends BaseDao { + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreIdProduct(String tenantId, String storeId, PageBounds pageBounds); + + + /** + * 获取已经设置商品库存系数的商品ID集合 + */ + List getProductIdListHasRatio(String tenantId); + + /** + * 获取已经设置商品库存系数的商品ID集合 + */ + List getProductIdListHasRatio(String tenantId, Boolean isBatch); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProduct(String tenantId, Criteria criteria,Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductSpecDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductSpecDao.java new file mode 100644 index 0000000..c4390b2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductSpecDao.java @@ -0,0 +1,122 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductSpecDao extends BaseDao { + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProduct(String tenantId, Criteria criteria); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProductByStoreId(String tenantId, Criteria criteria); + + /** + * 获取列表数据
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListWithProduct(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 根据门店ID,获取该门店未上架商品分页数据 + */ + List getPagerOffShelf(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + /** + * 根据门店ID集合,获取这些门店共有的商品信息
+ * 包含部分商品信息(商品编号,商品名称等) + */ + List getListByStoreIds(String tenantId, List storeIdList, Criteria criteria); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreIdProduct(String tenantId, String storeId, PageBounds pageBounds); + + /** + * 根据主键获取唯一的实体对象.
+ * 包含部分商品信息(商品编号,商品名称等) + */ + ProductSpec getWithProduct(String tenantId, String id); + + /** + * 根据主键获取唯一的实体对象.
+ * 包含部分商品信息(商品编号,商品名称等) + */ + ProductSpec getWithProduct(String tenantId, String id, Boolean isBatch); + + List getPagerExtendWithRatio(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListExtendWithRatio(String tenantId, Criteria criteria); + + List getPagerWithProduct(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getAllSpecIds(String tenantId, Criteria criteria); + + List getProductSpecByDishNoSpecName(String tenantId, Criteria criteria); + + List getSpecIdByCriteria(String tenantId, Criteria criteria); + + List getSpecIdByCriteria(String tenantId, Criteria criteria, boolean isBatch); + + List getListWithErpInfo(String tenantId, Criteria criteria); + + List getListWithErpInfo(String tenantId, Criteria criteria, boolean isBatch); + + /** + * 获取门店规格ID + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getListByStoreIdProduct(String tenantId, String storeId, String productId); + + List getUselevelInfoListByStoreIds(String tenantId, List storeIdList, Criteria criteria); + + /** + * 获取门店规格 + * @param tenantId + * @param storeId + * @param productId + * @return + */ + List getListByStoreId(String tenantId, String storeId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductStockDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductStockDao.java new file mode 100644 index 0000000..01a24e3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductStockDao.java @@ -0,0 +1,115 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductStock; +import com.jwsaas.entity.food.Store; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductStockDao extends BaseDao { + + /** + * 商品入库 + * + * @param tenantId + * @param storageId + * @param storageName + * @param productId + * @param productNo + * @param productName + * @param specId + * @param specName + * @param productDescription + * @param supplierId + * @param supplierNo + * @param stockInUnitId + * 入库单位ID + * @param price + * 入库单价(基于入库单位) + * @param quantity + * 入库数量(基于入库单位) + * @param money + * 入库金额 + * @param giveUnitId + * 赠送单位ID + * @param giveQuantity + * 赠送数量(基于赠送单位) + * @param operator + * @param pNo + * 生产批号 + * @param ticketType + * 单据类型(1-采购入库;2-配送出库;3-转仓库;4-其他入库;5-其他出库;6-盘亏;7-盘盈) + * @param ticketNo + * 单据编号 + * @param ratio + * @param productBatchNumberDao + * @param productBatchStockDao + * @param productStockLogDao + * @throws Exception + */ + void stockIn(String tenantId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, String productDescription, + String supplierId, String supplierNo, String stockInUnitId, Double price, Double quantity, Double money, String giveUnitId, Double giveQuantity, String operator, String pNo, + Integer ticketType, String ticketNo, ProductRatio ratio, ProductBatchNumberDao productBatchNumberDao, ProductBatchStockDao productBatchStockDao, ProductStockLogDao productStockLogDao) + throws Exception; + + /** + * 商品出库 + * + * @param tenantId + * @param storageId + * @param storageName + * @param productId + * @param productNo + * @param productName + * @param specId + * @param specName + * @param productDescription + * @param price + * 出库价格 + * @param quantity + * 出库数量 + * @param money + * 出库总金额 + * @param operator + * @param ticketType + * 单据类型(1-采购入库;2-配送出库;3-转仓库;4-其他入库;5-其他出库;6-盘亏;7-盘盈) + * @param ticketNo + * 单据编号 + * @param ratio + * @param batches + * 批次出库明细 + * @param productBatchNumberDao + * @param productBatchStockDao + * @param productStockLogDao + * @throws Exception + */ + void stockOut(String tenantId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, String productDescription, + Double price, Double quantity, Double money, String operator, Integer ticketType, String ticketNo, Store store, ProductRatio ratio, Map batches, + ProductBatchNumberDao productBatchNumberDao, ProductBatchStockDao productBatchStockDao, ProductBatchStockChangeDao productBatchStockChangeDao, ProductStockLogDao productStockLogDao, + ProductBatchNegativeStockDao productBatchNegativeStockDao, SupplierDao supplierDao) throws Exception; + + /** + * 关联商品信息; + * + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getExtendsPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 关联商品信息; + * + * @param tenantId + * @param criteria + * @return + */ + List getExtendsList(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductStockLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductStockLogDao.java new file mode 100644 index 0000000..abb7bd7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductStockLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductStockLog; +import com.jwsaas.dao.BaseDao; + +public interface ProductStockLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreOutCollectDayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreOutCollectDayDao.java new file mode 100644 index 0000000..90ab54e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreOutCollectDayDao.java @@ -0,0 +1,17 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductStoreOutCollectDay; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface ProductStoreOutCollectDayDao extends BaseDao { + + List getStoreOutgoingCollect(String tenantId, Criteria criteria); + + List> getExportList(String tenantId, Criteria fenzhidu); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreStockDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreStockDao.java new file mode 100644 index 0000000..b36a2db --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreStockDao.java @@ -0,0 +1,69 @@ +package com.jwsaas.dao.food; + +import java.math.BigDecimal; +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductStoreStock; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductStoreStockDao extends BaseDao { + + /** + * 获取门店商品库存(返回每个仓库的商品库存明细) + */ + List getStockPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取门店商品库存(不分仓库,返回所有仓库的库存总数) + */ + List getStockPagerNoStorageId(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * ticketType,单据类型,1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库;7-盘亏;8-盘盈; + */ + void stockIn(String tenantId, String storeId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Integer ticketType, String ticketTypeName, String ticketNo, String dispatchUnitId, String dispatchUnitName, String packUnitId, String packUnitName, Double price, + Double quantity, Double money, String operator, ProductRatio ratio, ProductStoreStockLogDao productStoreStockLogDao) throws Exception; + + /** + * 门店入库库存调整,按门店库存单位计算; + * ticketType,单据类型,1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库;7-盘亏;8-盘盈; + */ + void stockInByStoreStorageTicket(String tenantId, String storeId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Integer ticketType, String ticketTypeName, String ticketNo, String dispatchUnitId, String dispatchUnitName, String packUnitId, String packUnitName, Double price, + Double quantity, Double money, String operator, ProductRatio ratio, ProductStoreStockLogDao productStoreStockLogDao) throws Exception; + + + /** + * ticketType,单据类型,1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库;7-盘亏;8-盘盈; + */ + void stockOut(String tenantId, String storeId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Integer ticketType, String ticketTypeName, String ticketNo, String salesUnitId, String salesUnitName, String packUnitId, String packUnitName, BigDecimal price, + BigDecimal quantity, BigDecimal money, String operator, ProductRatio ratio, String dispatchUnitId, String dispatchUnitName, ProductStoreStockLogDao productStoreStockLogDao) + throws Exception; + + /** + * ticketType,单据类型,1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库;7-盘亏;8-盘盈; + */ + void stockOutUnBatch(String tenantId, String storeId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Integer ticketType, String ticketTypeName, String ticketNo, String salesUnitId, String salesUnitName, String packUnitId, String packUnitName, BigDecimal price, + BigDecimal quantity, BigDecimal money, String operator, ProductRatio ratio, String dispatchUnitId, String dispatchUnitName, ProductStoreStockLogDao productStoreStockLogDao) + throws Exception; + + /** + * 获取商品门店库存信息 + */ + List getStock(String tenantId, String storeId, String storageId, String productId, String specId); + + /** + * 获取商品门店库存信息 + */ + List getStock(String tenantId, String storeId, String storageId, String productId, String specId, Boolean isBatch); + + List getStockPagerWithOutOffShelf(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getStockPagerNoStorageIdWithOutOffShelf(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreStockLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreStockLogDao.java new file mode 100644 index 0000000..2bc3448 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductStoreStockLogDao.java @@ -0,0 +1,30 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductStoreStockLog; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface ProductStoreStockLogDao extends BaseDao { + + /** + * 门店商品库存消耗(出库)汇总
+ * 门店原物料消耗汇总 + */ + List> getPager4OutSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List> getList4OutSummary(String tenantId, Criteria criteria,boolean isBatch); + + /** + * 门店商品库存消耗(出库)汇总
+ * 门店原物料消耗汇总 + */ + List> getList4OutSummary(String tenantId, Criteria criteria); + + List getPagerSumAmount(String tenantId, Criteria criteria, PageBounds pageBounds); + + List> getListSumAmount(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductSuitDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductSuitDao.java new file mode 100644 index 0000000..5b425da --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductSuitDao.java @@ -0,0 +1,24 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductSuit; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductSuitDao extends BaseDao { + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductSuitDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductSuitDetailDao.java new file mode 100644 index 0000000..f401ece --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductSuitDetailDao.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductSuitDetail; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductSuitDetailDao extends BaseDao { + + /** + * 获取列表数据
+ * 包含部分菜品信息(菜品编号,菜品名称等)以及道菜信息 + */ + List getListExtend(String tenantId, Criteria criteria); + + /** + * 获取列表数据
+ * 包含部分菜品信息(菜品编号,菜品名称等)以及道菜信息 + */ + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds); + + /** + * 获取列表数据
+ * 包含部分菜品信息(菜品编号,菜品名称等)以及道菜信息 + */ + List getListExtendByStoreId(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductTemplateDao.java new file mode 100644 index 0000000..4b52dde --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductTemplateDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProductTemplate; +import com.jwsaas.dao.BaseDao; + +public interface ProductTemplateDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductTemplateDetailDao.java new file mode 100644 index 0000000..0abcfb1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductTemplateDetailDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProductTemplateDetail; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProductTemplateDetailDao extends BaseDao { + + List getDetailsList(String tenantId, Criteria criteria); + + List getDetailsList(String tenantId, Criteria criteria,boolean isBatch); + + List getSpecIdList(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductTypeDao.java new file mode 100644 index 0000000..4f132b1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductTypeDao.java @@ -0,0 +1,74 @@ +package com.jwsaas.dao.food; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductType; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface ProductTypeDao extends BaseDao { + + String selectMaxNo(String tenantId, String parentId); + + Integer saveRelations(String tenantId, List list); + + List getListBrandIds(String tenantId, String id); + List getListBrandIds(String tenantId, String id,boolean isBatch); + + Integer deleteRelationByCriteria(String tenantId, Criteria criteria,boolean isBatch); + Integer deleteRelationByCriteria(String tenantId, Criteria criteria); + + List getPagerWithBrandId(String tenantId, Criteria criteria, PageBounds pageBounds); + + String selectMaxNoByNumberType(String tenantId, String id); + + /** + * 分类关联的标签IDS + * @param tenantId + * @param id + * @return + */ + List getListLabelIds(String tenantId, String id); + + /** + * 分类标签管理的IDS + * @param tenantId + * @param id + * @param isBatch + * @return + */ + List getListLabelIds(String tenantId, String id,boolean isBatch); + + /** + * 根据标签ID获取商品类别ID + * @param tenantId + * @param id + * @return + */ + List getListTypeIds(String tenantId, List labelIds); + + + /** + * 获取门店商品一级分类ID + * @param tenantId + * @param id + * @return + */ + List getListTypeOneIds(String tenantId, String storeId); + + /** + * 获取门店商品末级分类ID + * @param tenantId + * @param id + * @return + */ + List getListTypeTwoIds(String tenantId, String storeId); + + /** + * 获取标签的id还有name + * @return + */ + List> getIdAndName(String tenantId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductTypeLabelInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductTypeLabelInfoDao.java new file mode 100644 index 0000000..aedd7e5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductTypeLabelInfoDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProductTypeLabelInfo; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProductTypeLabelInfoDao extends BaseDao { + + Integer saveRelation(String tenantId, List productTypeLabelInfoList); + + Integer deleteRelationByLabelId(String tenantId, String id); + Integer deleteRelationByLabelId(String tenantId, String id, boolean isBatch); + + List getTypeIdsByLabelId(String tenantId, String labelId); + List getTypeIdsByLabelId(String tenantId, String labelId,boolean isBatch); + + List getLabelInfos(String tenantId, Criteria criteria); + List getLabelInfos(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProductUnitDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProductUnitDao.java new file mode 100644 index 0000000..a761b6b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProductUnitDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProductUnit; + +public interface ProductUnitDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + String selectMaxValue(String tenantId, String property, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdPictureDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdPictureDao.java new file mode 100644 index 0000000..5dddcb0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdPictureDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramAdPicture; +import com.jwsaas.dao.BaseDao; + +public interface ProgramAdPictureDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceProductDao.java new file mode 100644 index 0000000..d90fec8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceProductDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramAdjustPriceProduct; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramAdjustPriceProductDao extends BaseDao { + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceStoreDao.java new file mode 100644 index 0000000..858ce09 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceStoreDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramAdjustPriceStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramAdjustPriceStoreDao extends BaseDao { + + List getListExtends(String tenantId, Criteria criteria); + List getListExtends(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceTicketDao.java new file mode 100644 index 0000000..2810d36 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramAdjustPriceTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramAdjustPriceTicket; +import com.jwsaas.dao.BaseDao; + +public interface ProgramAdjustPriceTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramDeliverAddressDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramDeliverAddressDao.java new file mode 100644 index 0000000..1e4fe95 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramDeliverAddressDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramDeliverAddress; +import com.jwsaas.dao.BaseDao; + +public interface ProgramDeliverAddressDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramEvaluateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramEvaluateDao.java new file mode 100644 index 0000000..f301cee --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramEvaluateDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramEvaluate; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ProgramEvaluateDao extends BaseDao { + + List getPager4ApiDownload(String tenantId, String openId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramEvaluateImageDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramEvaluateImageDao.java new file mode 100644 index 0000000..7dfe569 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramEvaluateImageDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramEvaluateImage; +import com.jwsaas.dao.BaseDao; + +public interface ProgramEvaluateImageDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramIndexPictureDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramIndexPictureDao.java new file mode 100644 index 0000000..06d753a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramIndexPictureDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramIndexPicture; +import com.jwsaas.dao.BaseDao; + +public interface ProgramIndexPictureDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPaymentParameterDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPaymentParameterDao.java new file mode 100644 index 0000000..17ce4d7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPaymentParameterDao.java @@ -0,0 +1,27 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PaymentParameter; +import com.jwsaas.entity.food.ProgramPaymentParameter; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramPaymentParameterDao extends BaseDao { + + /** + * 获取小程序门店的支付参数 + * @param tenantId + * @param storeId + * @return + */ + List getPaymentParameterByStoreId(String tenantId, String storeId); + + ProgramPaymentParameter saveRelation(String tenantId, ProgramPaymentParameter parameter); + ProgramPaymentParameter saveRelation(String tenantId, ProgramPaymentParameter parameter,boolean isBatch); + + List getStoreIdsByPaymentId(String tenantId, String id); + + Integer deleteRelationsByCriteria(String tenantId, Criteria criteria); + Integer deleteRelationsByCriteria(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductCategoryDao.java new file mode 100644 index 0000000..3222b0e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductCategoryDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramProductCategory; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramProductCategoryDao extends BaseDao { + + List getListWithTypeId(String tenantId, Criteria criteria); + List getListWithTypeId(String tenantId, Criteria criteria,boolean isBatch); + + List getListTypeIdsByCriteria(String tenantId, Criteria criteria); + List getListTypeIdsByCriteria(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductDao.java new file mode 100644 index 0000000..c20a686 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductDao.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramProduct; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ProgramProductDao extends BaseDao { + + List getAllProductIdsByCriteria(String tenantId, Criteria criteria); + List getAllProductIdsByCriteria(String tenantId, Criteria criteria,boolean isBatch); + + /** + * 根据动态条件获取门店基础资料 + * @param tenantId + * @param criteria + * @return + */ + List getStoreProductByCriteria(String tenantId, Criteria criteria); + + List getListByStoreIds(String tenantId, List storeIds, Criteria criteria); + List getListByStoreIds(String tenantId, List storeIds, Criteria criteria,boolean isBatch); + + List getPagerByStoreIds(String tenantId, List storeIds,Criteria criteria, PageBounds pageBounds); + + List getPagerCommonProductByStoreIds(String tenantId, List storeIdList, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductMakeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductMakeDao.java new file mode 100644 index 0000000..f2624cd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductMakeDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramProductMake; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramProductMakeDao extends BaseDao { + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateDao.java new file mode 100644 index 0000000..ab4d412 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramProductTemplate; +import com.jwsaas.dao.BaseDao; + +public interface ProgramProductTemplateDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateDetailDao.java new file mode 100644 index 0000000..9c61f57 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateDetailDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramProductTemplateDetail; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramProductTemplateDetailDao extends BaseDao { + + List getProgramProdudctIdByTemplateId(String tenantId, String templateId); + List getProgramProdudctIdByTemplateId(String tenantId, String templateId,boolean isBatch); + + List getListWithExtend(String tenantId, Criteria criteria); + List getListWithExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateStoreDao.java new file mode 100644 index 0000000..6cd99df --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramProductTemplateStoreDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramProductTemplateStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramProductTemplateStoreDao extends BaseDao { + + List getStoreIdByTemplateId(String tenantId, String templateId); + List getStoreIdByTemplateId(String tenantId, String templateId,boolean isBatch); + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListGoodsDao.java new file mode 100644 index 0000000..8367b33 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListGoodsDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramPromotionBlackListGoods; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramPromotionBlackListGoodsDao extends BaseDao { + + List getListWithSpec(String tenantId, Criteria criteria); + List getListWithSpec(String tenantId, Criteria criteria,boolean isBatch); + + List getSpecIds(String tenantId, Criteria criteria); + List getSpecIds(String tenantId, Criteria criteria, boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListStoreAreaDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListStoreAreaDao.java new file mode 100644 index 0000000..fd266ed --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListStoreAreaDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramPromotionBlackListStoreArea; +import com.jwsaas.dao.BaseDao; + +public interface ProgramPromotionBlackListStoreAreaDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListStoreDao.java new file mode 100644 index 0000000..1c70576 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionBlackListStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramPromotionBlackListStore; +import com.jwsaas.dao.BaseDao; + +public interface ProgramPromotionBlackListStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionCategoryDao.java new file mode 100644 index 0000000..3f0f650 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionCategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramPromotionCategory; +import com.jwsaas.dao.BaseDao; + +public interface ProgramPromotionCategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionGoodsDao.java new file mode 100644 index 0000000..14c1595 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionGoodsDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramPromotionGoods; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramPromotionGoodsDao extends BaseDao { + + List getListWithSpec(String tenantId, Criteria criteria); + List getListWithSpec(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionSchemeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionSchemeDao.java new file mode 100644 index 0000000..046d29a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionSchemeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramPromotionScheme; +import com.jwsaas.dao.BaseDao; + +public interface ProgramPromotionSchemeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionStoreAreaDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionStoreAreaDao.java new file mode 100644 index 0000000..69d6715 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionStoreAreaDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramPromotionStoreArea; +import com.jwsaas.dao.BaseDao; + +public interface ProgramPromotionStoreAreaDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionStoreDao.java new file mode 100644 index 0000000..2243577 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionStoreDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramPromotionStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramPromotionStoreDao extends BaseDao { + + List getStoreIdList(String tenantId, Criteria criteria); + List getStoreIdList(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionTaskDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionTaskDao.java new file mode 100644 index 0000000..4b2bf64 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionTaskDao.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramPromotionTask; +import com.jwsaas.dao.BaseDao; + +public interface ProgramPromotionTaskDao extends BaseDao { + + /** + * 中止促销任务; + * @param tenantId + * @param id + * @return + */ + Integer updateStatusToPause(String tenantId, String id); + + /** + * 重启中止任务; + * @param tenantId + * @param id + * @param status + * @return + */ + Integer updatePauseStatusToRestart(String tenantId, String id, int status, boolean isBatch); + + /** + * 将预备状态的任务改为执行状态; + * @param tenantId + * @param today + * @param time + * @return + */ + Integer updateStatusToExecuting(String tenantId, String today, String time); + + /** + * 将执行状态的任务改为结束状态; + * @param tenantId + * @param yesterDay + * @param time + * @return + */ + Integer updateStatusToFinsh(String tenantId, String yesterDay, String time); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionTicketDao.java new file mode 100644 index 0000000..1eed623 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramPromotionTicketDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramPromotionTicket; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ProgramPromotionTicketDao extends BaseDao { + + List getPagerWithStores(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramSettingDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramSettingDao.java new file mode 100644 index 0000000..a58a12b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramSettingDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramSetting; +import com.jwsaas.dao.BaseDao; + +public interface ProgramSettingDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketDao.java new file mode 100644 index 0000000..cf271fc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramStoreBusinessTicket; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramStoreBusinessTicketDao extends BaseDao { + + List getListByExport(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketDeliverDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketDeliverDao.java new file mode 100644 index 0000000..a401988 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketDeliverDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramStoreBusinessTicketDeliver; +import com.jwsaas.dao.BaseDao; + +public interface ProgramStoreBusinessTicketDeliverDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketInfoDao.java new file mode 100644 index 0000000..5909427 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreBusinessTicketInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramStoreBusinessTicketInfo; +import com.jwsaas.dao.BaseDao; + +public interface ProgramStoreBusinessTicketInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreDao.java new file mode 100644 index 0000000..40257c7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreDao.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.ProgramStore; + +public interface ProgramStoreDao extends BaseDao { + + List getStoreIdList(String tenantId,String programId); + + List getDistanceList(String tenantId, String longitude, String latitude, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductDao.java new file mode 100644 index 0000000..a1dbca6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramStoreOrderProduct; +import com.jwsaas.dao.BaseDao; + +public interface ProgramStoreOrderProductDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductInfoDao.java new file mode 100644 index 0000000..88bd5b4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramStoreOrderProductInfo; +import com.jwsaas.dao.BaseDao; + +public interface ProgramStoreOrderProductInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductMakeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductMakeDao.java new file mode 100644 index 0000000..379be62 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreOrderProductMakeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ProgramStoreOrderProductMake; +import com.jwsaas.dao.BaseDao; + +public interface ProgramStoreOrderProductMakeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStorePayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStorePayDao.java new file mode 100644 index 0000000..f0fcb8e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStorePayDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramStorePay; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ProgramStorePayDao extends BaseDao { + + List getListByExport(String tenantId, Criteria criteria); + List getListByExport(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreProductDao.java new file mode 100644 index 0000000..2497325 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ProgramStoreProductDao.java @@ -0,0 +1,36 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ProgramStoreProduct; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ProgramStoreProductDao extends BaseDao { + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + Integer updateBystoreIdAndProgramProductId(String tenantId, List list); + + List getProgramProductIdByStoreId(String tenantId, String storeId); + List getProgramProductIdByStoreId(String tenantId, String storeId,boolean isBatch); + + List getProgramProductIdByCriteria(String tenantId, Criteria criteria); + List getProgramProductIdByCriteria(String tenantId, Criteria criteria,boolean isBatch); + + /** + * 更新门店商品库存信息 + * @param tenantId + * @param storeId + * @param specId + * @param stock + * @return + */ + Integer updateStoreProductSaleStock(String tenantId, String storeId, String specId, double stock); + + List getListByStoreIds(String tenantId, List storeIdList, Criteria criteria); + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListGoodsDao.java new file mode 100644 index 0000000..a30102b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListGoodsDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PromotionBlackListGoods; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface PromotionBlackListGoodsDao extends BaseDao { + + List getListWithSpec(String tenantId, Criteria criteria); + + List getSpecIds(String tenantId, Criteria criteria); + + List getSpecIds(String tenantId, Criteria criteria, boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListStoreAreaDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListStoreAreaDao.java new file mode 100644 index 0000000..8f5a477 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListStoreAreaDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PromotionBlackListStoreArea; +import com.jwsaas.dao.BaseDao; + +public interface PromotionBlackListStoreAreaDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListStoreDao.java new file mode 100644 index 0000000..5e4724e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionBlackListStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PromotionBlackListStore; +import com.jwsaas.dao.BaseDao; + +public interface PromotionBlackListStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionCategoryDao.java new file mode 100644 index 0000000..eacf871 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionCategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PromotionCategory; +import com.jwsaas.dao.BaseDao; + +public interface PromotionCategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionGoodsDao.java new file mode 100644 index 0000000..ff0750c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionGoodsDao.java @@ -0,0 +1,18 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PromotionGoods; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface PromotionGoodsDao extends BaseDao { + + /** + * 获取带有规格的商品信息; + * @param tenantId + * @param criteria + * @return + */ + List getListWithSpec(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionScheduleDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionScheduleDao.java new file mode 100644 index 0000000..c2831a0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionScheduleDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PromotionSchedule; +import com.jwsaas.dao.BaseDao; + +public interface PromotionScheduleDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionSchemeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionSchemeDao.java new file mode 100644 index 0000000..0ec7724 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionSchemeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PromotionScheme; +import com.jwsaas.dao.BaseDao; + +public interface PromotionSchemeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionStoreAreaDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionStoreAreaDao.java new file mode 100644 index 0000000..2b60157 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionStoreAreaDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PromotionStoreArea; +import com.jwsaas.dao.BaseDao; + +public interface PromotionStoreAreaDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionStoreDao.java new file mode 100644 index 0000000..04983f1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionStoreDao.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PromotionStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface PromotionStoreDao extends BaseDao { + + List getStoreIdList(String tenantId, Criteria criteria,boolean isBatch); + + List getStoreIdList(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionTaskDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionTaskDao.java new file mode 100644 index 0000000..9e10b0c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionTaskDao.java @@ -0,0 +1,52 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.PromotionTask; + +public interface PromotionTaskDao extends BaseDao { + + /** + * 将预备状态的任务改为执行状态; + * @param tenantId + * @param today + * @param time + * @return + */ + Integer updateStatusToExecuting(String tenantId, String today, String time); + + /** + * 将执行状态的任务改为结束状态; + * @param tenantId + * @param yesterDay + * @param time + * @return + */ + Integer updateStatusToFinsh(String tenantId, String yesterDay, String time); + + /** + * 将促销单下所有预备,执行中的任务中止; + * @param tenantId + * @param promotionId + * @return + */ + Integer updateStatusToPause(String tenantId, String promotionId); + + /** + * 重启中止任务; + * @param tenantId + * @param id + * @param status + * @return + */ + Integer updatePauseStatusToRestart(String tenantId, String id, int status); + + /** + * 重启中止任务; + * @param tenantId + * @param id + * @param status + * @return + */ + Integer updatePauseStatusToRestart(String tenantId, String id, int status,boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PromotionTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PromotionTicketDao.java new file mode 100644 index 0000000..c8c2799 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PromotionTicketDao.java @@ -0,0 +1,32 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PromotionTicket; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.Date; +import java.util.List; + +public interface PromotionTicketDao extends BaseDao { + + /** + * 将审核通过的预备状态的单据改为执行状态; + * @param tenantId + * @param today + * @param time + * @return + */ + Integer updateStatusToExecuting(String tenantId, String today, String time); + + /** + * 将审核通过的执行状态的单据改为结束状态; + * @param tenantId + * @param yesterDay + * @param time + * @return + */ + Integer updateStatusToFinish(String tenantId, Date yesterDay, String time); + + List getPagerWithStores(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketDao.java new file mode 100644 index 0000000..642da6f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchaseStorageTicket; +import com.jwsaas.dao.BaseDao; + +public interface PurchaseStorageTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketDetailDao.java new file mode 100644 index 0000000..c9bbd2a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketDetailDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.PurchaseStorageTicketDetail; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface PurchaseStorageTicketDetailDao extends BaseDao { + + List> getReprotData(String tenantId, String startTime, String endTime, List storageIdList, String supplierId, Criteria criteria, PageBounds pageBounds); + + List> getListReprotData(String tenantId, String startTime, String endTime, List storageIdList, String supplierId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketLogDao.java new file mode 100644 index 0000000..1af0a0d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseStorageTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchaseStorageTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface PurchaseStorageTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTemplateDao.java new file mode 100644 index 0000000..5998277 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTemplateDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchaseTemplate; +import com.jwsaas.dao.BaseDao; + +public interface PurchaseTemplateDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTemplateDetailDao.java new file mode 100644 index 0000000..406bbe8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTemplateDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchaseTemplateDetail; +import com.jwsaas.dao.BaseDao; + +public interface PurchaseTemplateDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketDao.java new file mode 100644 index 0000000..a3b6028 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchaseTicket; +import com.jwsaas.dao.BaseDao; + +public interface PurchaseTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketDetailDao.java new file mode 100644 index 0000000..71cb7d4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchaseTicketDetail; +import com.jwsaas.dao.BaseDao; + +public interface PurchaseTicketDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketLogDao.java new file mode 100644 index 0000000..e3cf79d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchaseTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchaseTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface PurchaseTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceDao.java new file mode 100644 index 0000000..6db1333 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.Purchaseprice; +import com.jwsaas.dao.BaseDao; + +public interface PurchasepriceDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceTicketDao.java new file mode 100644 index 0000000..76187a2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchasepriceTicket; +import com.jwsaas.dao.BaseDao; + +public interface PurchasepriceTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceTicketMaterialDao.java b/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceTicketMaterialDao.java new file mode 100644 index 0000000..5b1a51d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/PurchasepriceTicketMaterialDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.PurchasepriceTicketMaterial; +import com.jwsaas.dao.BaseDao; + +public interface PurchasepriceTicketMaterialDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceGoodsDao.java new file mode 100644 index 0000000..5cf8198 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceGoodsDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.QimaiAdjustPriceGoods; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface QimaiAdjustPriceGoodsDao extends BaseDao { + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceStoreDao.java new file mode 100644 index 0000000..eb00b49 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceStoreDao.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.QimaiAdjustPriceStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface QimaiAdjustPriceStoreDao extends BaseDao { + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceTicketDao.java new file mode 100644 index 0000000..0deb929 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAdjustPriceTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiAdjustPriceTicket; +import com.jwsaas.dao.BaseDao; + +public interface QimaiAdjustPriceTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiAttributeCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAttributeCategoryDao.java new file mode 100644 index 0000000..9ea20b4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAttributeCategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiAttributeCategory; +import com.jwsaas.dao.BaseDao; + +public interface QimaiAttributeCategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiAttributeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAttributeDao.java new file mode 100644 index 0000000..b9aa711 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiAttributeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiAttribute; +import com.jwsaas.dao.BaseDao; + +public interface QimaiAttributeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiChargeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiChargeDao.java new file mode 100644 index 0000000..f7e9917 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiChargeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiCharge; +import com.jwsaas.dao.BaseDao; + +public interface QimaiChargeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderDao.java new file mode 100644 index 0000000..42d6e30 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiOrder; +import com.jwsaas.dao.BaseDao; + +public interface QimaiOrderDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderItemDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderItemDao.java new file mode 100644 index 0000000..9174b5d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderItemDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiOrderItem; +import com.jwsaas.dao.BaseDao; + +public interface QimaiOrderItemDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderPayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderPayDao.java new file mode 100644 index 0000000..8c5be62 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiOrderPayDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiOrderPay; +import com.jwsaas.dao.BaseDao; + +public interface QimaiOrderPayDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductAttributeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductAttributeDao.java new file mode 100644 index 0000000..a109664 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductAttributeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiProductAttribute; +import com.jwsaas.dao.BaseDao; + +public interface QimaiProductAttributeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductCategoryDao.java new file mode 100644 index 0000000..de93f4e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductCategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiProductCategory; +import com.jwsaas.dao.BaseDao; + +public interface QimaiProductCategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductChargeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductChargeDao.java new file mode 100644 index 0000000..b197238 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductChargeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiProductCharge; +import com.jwsaas.dao.BaseDao; + +public interface QimaiProductChargeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductDao.java new file mode 100644 index 0000000..682efa0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductDao.java @@ -0,0 +1,34 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.QimaiProduct; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface QimaiProductDao extends BaseDao { + + List getAllProductIdsByCriteria(String tenantId,Criteria criteria); + List getAllProductIdsByCriteria(String tenantId,Criteria criteria,boolean isBatch); + + List getQimaiProductWithStoreProduct(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + List getPagerExtends(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListByQimaiStoreIds(String tenantId, List storeIdList, Criteria criteria); + + List getListByQimaiStoreIds(String tenantId, List storeIdList, Criteria criteria,boolean isBatch); + + List getListWithSpecInfos(String tenantId, Criteria criteria); + + List getListWithSpecInfos(String tenantId, Criteria criteria,boolean isBatch); + + List getPagerWithSpecInfos(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getPagerWithQimaiSpec(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListWithQimaiSpec(String tenantId, Criteria criteria); + + List getListWithQimaiSpec(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductSpecDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductSpecDao.java new file mode 100644 index 0000000..b61bff6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductSpecDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiProductSpec; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface QimaiProductSpecDao extends BaseDao { + + List getSpecIds(String tenantId); + List getSpecIds(String tenantId,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateDao.java new file mode 100644 index 0000000..1caa371 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiProductTemplate; +import com.jwsaas.dao.BaseDao; + +public interface QimaiProductTemplateDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateDetailDao.java new file mode 100644 index 0000000..5a00cbf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateDetailDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiProductTemplateDetail; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface QimaiProductTemplateDetailDao extends BaseDao { + + List getQimaiProductIdByTemplateId(String tenantId, String templateId); + + List getQimaiProductIdByTemplateId(String tenantId, String templateId,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateStoreDao.java new file mode 100644 index 0000000..fe527ff --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiProductTemplateStoreDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.QimaiProductTemplateStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface QimaiProductTemplateStoreDao extends BaseDao { + + List getStoreIdByTemplateId(String tenantId, String templateId); + List getStoreIdByTemplateId(String tenantId, String templateId,boolean isBatch); + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreDao.java new file mode 100644 index 0000000..ad81da1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreDao.java @@ -0,0 +1,11 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface QimaiStoreDao extends BaseDao { + + List getStoreIdList(String tenantId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreLableDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreLableDao.java new file mode 100644 index 0000000..7a97be6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreLableDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiStoreLable; +import com.jwsaas.dao.BaseDao; + +public interface QimaiStoreLableDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreProductDao.java new file mode 100644 index 0000000..1bd5101 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiStoreProductDao.java @@ -0,0 +1,11 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiStoreProduct; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface QimaiStoreProductDao extends BaseDao { + + Integer updateListByStoreIdAndSpecId(String tenantId, List list); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/QimaiSuitDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/QimaiSuitDetailDao.java new file mode 100644 index 0000000..8e847bf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/QimaiSuitDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.QimaiSuitDetail; +import com.jwsaas.dao.BaseDao; + +public interface QimaiSuitDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceDetailDao.java new file mode 100644 index 0000000..53a5ac6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceDetailDao.java @@ -0,0 +1,32 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ReceiveDifferenceDetail; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ReceiveDifferenceDetailDao extends BaseDao { + + /** + * 验收差异单详情金额,数量汇总 + * @param tenantId + * @param criteria + * @return + */ + List> getSumData(String tenantId, Criteria criteria, Boolean isBatch); + List getExtendsPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getExtendsList(String tenantId, Criteria criteria); + List getExtendsList(String tenantId, Criteria criteria,boolean isBatch); + + List getListBySummary(String tenantId, Criteria criteria); + + List getPagerBySummary(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketDao.java new file mode 100644 index 0000000..9b66ea5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ReceiveDifferenceTicket; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface ReceiveDifferenceTicketDao extends BaseDao { + + List getTicketIdsList(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketLogDao.java new file mode 100644 index 0000000..4b24421 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ReceiveDifferenceTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface ReceiveDifferenceTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketPayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketPayDao.java new file mode 100644 index 0000000..db34b06 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveDifferenceTicketPayDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ReceiveDifferenceTicketPay; +import com.jwsaas.dao.BaseDao; + +public interface ReceiveDifferenceTicketPayDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ReceiveGoodsDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveGoodsDetailDao.java new file mode 100644 index 0000000..9654eed --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveGoodsDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ReceiveGoodsDetail; +import com.jwsaas.dao.BaseDao; + +public interface ReceiveGoodsDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ReceiveGoodsTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveGoodsTicketDao.java new file mode 100644 index 0000000..42c1140 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ReceiveGoodsTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ReceiveGoodsTicket; +import com.jwsaas.dao.BaseDao; + +public interface ReceiveGoodsTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/RechargeParameterDao.java b/food-server/src/main/java/com/jwsaas/dao/food/RechargeParameterDao.java new file mode 100644 index 0000000..45a60ff --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/RechargeParameterDao.java @@ -0,0 +1,24 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.RechargeParameter; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface RechargeParameterDao extends BaseDao { + + Integer saveRechargeParameterStoreRelation(String tenantId, List list); + + List getStoreIdsByRechargeId(String tenantId, String id); + + Integer deleteRelationByParameterIdBatch(String tenantId, Criteria criteria); + + Integer deleteRelationByParameterId(String tenantId, Criteria criteria); + + List getListByStoreId(String tenantId, String storeId, Criteria criteria); + + List getListByStoreId(String tenantId, String storeId, Criteria criteria, Boolean isBatch); + + Integer saveRechargeParameterStoreRelationBySingleType(String tenantId, List parameterList); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/RoleDao.java b/food-server/src/main/java/com/jwsaas/dao/food/RoleDao.java new file mode 100644 index 0000000..5ad643f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/RoleDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.Role; + +public interface RoleDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SaleClearDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SaleClearDao.java new file mode 100644 index 0000000..ba44183 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SaleClearDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.SaleClear; +import com.jwsaas.dao.BaseDao; + +public interface SaleClearDao extends BaseDao { + + Integer updateSaleClear(String tenantId, SaleClear saleClear) throws Exception; + + Integer deleteSaleClearByEndTime(String tenantId, SaleClear saleClear) throws Exception; + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ServerDataVersionDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ServerDataVersionDao.java new file mode 100644 index 0000000..e02c8c2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ServerDataVersionDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ServerDataVersion; +import com.jwsaas.dao.BaseDao; + +public interface ServerDataVersionDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderDao.java new file mode 100644 index 0000000..b9259bb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderDao.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ShopMeituanOrder; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ShopMeituanOrderDao extends BaseDao { + + List getPagerSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getSummaryList(String tenantId, Criteria criteria); + List getSummaryList(String tenantId, Criteria criteria,boolean isBatch); + + List getListReportDataSummary(String tenantId, Criteria criteria); + List getListReportDataSummary(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderExtraDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderExtraDao.java new file mode 100644 index 0000000..e7beae9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderExtraDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ShopMeituanOrderExtra; +import com.jwsaas.dao.BaseDao; + +public interface ShopMeituanOrderExtraDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderItemDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderItemDao.java new file mode 100644 index 0000000..876b3d9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ShopMeituanOrderItemDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.ShopMeituanOrderItem; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface ShopMeituanOrderItemDao extends BaseDao { + + List getPagerSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListSummary(String tenantId, Criteria criteria); + List getListSummary(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SplitFoodAccountDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SplitFoodAccountDao.java new file mode 100644 index 0000000..f3a5fa9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SplitFoodAccountDao.java @@ -0,0 +1,22 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.SplitFoodAccount; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.split.SplitProductEntity; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface SplitFoodAccountDao extends BaseDao { + + /** + * 获取分店菜品列表,分页获取 + * + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getSplitProductPager(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SplitPayLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SplitPayLogDao.java new file mode 100644 index 0000000..2573be0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SplitPayLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.SplitPayLog; +import com.jwsaas.dao.BaseDao; + +public interface SplitPayLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SplitPayResultDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SplitPayResultDao.java new file mode 100644 index 0000000..069ad36 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SplitPayResultDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.SplitPayResult; +import com.jwsaas.dao.BaseDao; + +public interface SplitPayResultDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SplitShopAccountDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SplitShopAccountDao.java new file mode 100644 index 0000000..274fd74 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SplitShopAccountDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.SplitShopAccount; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface SplitShopAccountDao extends BaseDao { + + /** + * 获取门店分店列表,分页获取 + * + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getSplitShopPager(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SplitShopWithdrawalDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SplitShopWithdrawalDao.java new file mode 100644 index 0000000..6e84524 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SplitShopWithdrawalDao.java @@ -0,0 +1,22 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.SplitShopWithdrawal; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface SplitShopWithdrawalDao extends BaseDao { + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getSplitWithdrawalPager(String tenantId , Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SplitStorePayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SplitStorePayDao.java new file mode 100644 index 0000000..311d59f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SplitStorePayDao.java @@ -0,0 +1,31 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.SplitStorePay; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.split.SplitOrderEntity; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface SplitStorePayDao extends BaseDao { + + /** + * 获取分店订单列表,分页获取 + * + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getSplitOrderPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + + /** + * 通过参数查询所有的分帐订单 + * @param criteria + * @return + */ + List getSplitStorePayList(Criteria criteria); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StorageDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StorageDao.java new file mode 100644 index 0000000..799d8de --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StorageDao.java @@ -0,0 +1,20 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.Storage; +import com.jwsaas.dao.BaseDao; + +public interface StorageDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + /** + * 总部库位类型删除时,更新选择该类型的总部库位信息类型ID为NULL + */ + Integer updateTypeToNull(String tenantId, String typeId); + + /** + * 总部库位类型删除时,更新选择该类型的总部库位信息类型ID为NULL + */ + Integer updateTypeToNull(String tenantId, String typeId, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StorageTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StorageTypeDao.java new file mode 100644 index 0000000..c0f9df0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StorageTypeDao.java @@ -0,0 +1,10 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StorageType; +import com.jwsaas.dao.BaseDao; + +public interface StorageTypeDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountDao.java new file mode 100644 index 0000000..11bad62 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreAccount; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface StoreAccountDao extends BaseDao { + + List getStoreIdList(String tenantId); + List getStoreIdList(String tenantId,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountDetailDao.java new file mode 100644 index 0000000..8d2a079 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountDetailDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreAccountDetail; + +public interface StoreAccountDetailDao extends BaseDao { + + List getListGroup(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountRechargeParameterDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountRechargeParameterDao.java new file mode 100644 index 0000000..57d3d82 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountRechargeParameterDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreAccountRechargeParameter; +import com.jwsaas.dao.BaseDao; + +public interface StoreAccountRechargeParameterDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountRechargeRecordDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountRechargeRecordDao.java new file mode 100644 index 0000000..f94bb59 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreAccountRechargeRecordDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreAccountRechargeRecord; +import com.jwsaas.dao.BaseDao; + +public interface StoreAccountRechargeRecordDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreAreaDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreAreaDao.java new file mode 100644 index 0000000..652a966 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreAreaDao.java @@ -0,0 +1,10 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreArea; +import com.jwsaas.dao.BaseDao; + +public interface StoreAreaDao extends BaseDao { + + String selectMaxNo(String tenantId, String parentId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketCheckDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketCheckDao.java new file mode 100644 index 0000000..4a03cd3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketCheckDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreBusinessTicketCheck; +import com.jwsaas.dao.BaseDao; + +public interface StoreBusinessTicketCheckDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketDao.java new file mode 100644 index 0000000..9a6cd64 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketDao.java @@ -0,0 +1,85 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreBusinessTicket; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface StoreBusinessTicketDao extends BaseDao { + + /** + * 销售订单更改为无效 + */ + Integer updateTicketToInvalid(String tenantId, String storeId, String ticketId, String ticketNo); + + /** + * 销售订单更改为无效 + */ + Integer updateTicketToInvalid(String tenantId, String storeId, String ticketId, String ticketNo, Boolean isBatch); + + /** + * 获取门店营业模式统计数据; + * @param tenantId + * @param criteria + * @return + */ + List> getListBusinessMode(String tenantId, Criteria criteria); + + /** + * 获取时段报表数据; + * @param tenantId + * @param criteria + * @return + */ + List> getListSumByHour(String tenantId, Criteria criteria); + + /** + * 获取销售毛利分析数据; + * @param tenantId + * @param criteria + * @return + */ + List getListByStoreGrossProfit(String tenantId, Criteria criteria); + + List getPagerByStoreGrossProfit(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 导出Excel数据; + * @param tenantId + * @param criteria + * @return + * @throws Exception + */ + List getListByExport(String tenantId, Criteria criteria); + + List> getPagerWithTicketRefused(String tenantId, Criteria criteria, PageBounds pageBounds); + + List> getListWithTicketRefused(String tenantId, Criteria criteria); + + List getListWithDiscountTotal(String tenantId, Criteria criteria); + List getListWithDiscountTotal(String tenantId, Criteria criteria,boolean isBatch); + + List getListByChargeBackSummary(String tenantId, Criteria criteria); + List getListByChargeBackSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListBySumChargeBack(String tenantId, Criteria criteria); + List getListBySumChargeBack(String tenantId, Criteria criteria,boolean isBatch); + + List getListByAccountingSummary(String tenantId, Criteria criteria); + List getListByAccountingSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListDataSummary(String tenantId, Criteria criteria); + List getListDataSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListReportModeDataSummary(String tenantId, Criteria criteria); + List getListReportModeDataSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListCashDataSummary(String tenantId, Criteria criteria); + List getListCashDataSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListRankDataSummary(String tenantId, Criteria criteria); + List getListRankDataSummary(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketDeliveryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketDeliveryDao.java new file mode 100644 index 0000000..78dda51 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketDeliveryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreBusinessTicketDelivery; +import com.jwsaas.dao.BaseDao; + +public interface StoreBusinessTicketDeliveryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketInfoDao.java new file mode 100644 index 0000000..195598a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketInfoDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreBusinessTicketInfo; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface StoreBusinessTicketInfoDao extends BaseDao { + + List getListReportDataSummary(String tenantId, Criteria criteria); + List getListReportDataSummary(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketTableDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketTableDao.java new file mode 100644 index 0000000..c4a27a1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreBusinessTicketTableDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreBusinessTicketTable; +import com.jwsaas.dao.BaseDao; + +public interface StoreBusinessTicketTableDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreCostManageDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreCostManageDao.java new file mode 100644 index 0000000..5da122c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreCostManageDao.java @@ -0,0 +1,34 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreCostManage; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface StoreCostManageDao extends BaseDao { + + /** + * 保存费用对应门店信息; + * @param tenantId + * @param storeCostMananges + * @return + */ + Integer saveStores(String tenantId, List storeCostMananges); + + /** + * 查找门店对应费用ID; + * @param tenantId + * @param storeId + * @return + */ + List getStoreCostManageIdsByStoreId(String tenantId, String storeId); + + List getStoreCostManageIdsByStoreId(String tenantId, String storeId,boolean isBatch); + + List getStoresByFeeId(String tenantId, String id); + + List getStoresByFeeId(String tenantId, String id,boolean isBatch); + + Integer deleteStores(String tenantId, String id); + Integer deleteStores(String tenantId, String id,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreCostManageLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreCostManageLogDao.java new file mode 100644 index 0000000..1d5e4fd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreCostManageLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreCostManageLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreCostManageLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreCostRevenueDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreCostRevenueDao.java new file mode 100644 index 0000000..c113789 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreCostRevenueDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreCostRevenue; +import com.jwsaas.dao.BaseDao; + +public interface StoreCostRevenueDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreDao.java new file mode 100644 index 0000000..33c034a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreDao.java @@ -0,0 +1,37 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface StoreDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + Integer saveBrands(String tenantId, String storeId, List brandIdList); + + List getBrandIdList(String tenantId, String storeId); + + Integer delBrands(String tenantId, String storeId); + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListExtend(String tenantId, Criteria criteria); + + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + + List getAllStoreIds(String tenantId, Criteria criteria); + + boolean isExistBatch(String tenantId, String property, String value); + + String selectMaxValueBatch(String tenantId, String property); + + Integer updateDefaultGroup(String tenantId, String groupId, String groupNo, Criteria criteria); + + List getStoreIdsByBrandId(String tenantId, String brandId); + List getStoreIdsByBrandId(String tenantId, String brandId,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreDeliveryOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreDeliveryOrderDao.java new file mode 100644 index 0000000..5a4662e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreDeliveryOrderDao.java @@ -0,0 +1,25 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreBusinessTicket; +import com.jwsaas.entity.food.StoreBusinessTicketDelivery; +import com.jwsaas.entity.food.StoreDeliveryOrder; +import com.jwsaas.entity.food.StoreOrderProduct; + +public interface StoreDeliveryOrderDao extends BaseDao { + + StoreDeliveryOrder saveExtend(String tenantId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao); + + StoreDeliveryOrder saveExtend(String tenantId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao, Boolean isBatch); + + StoreDeliveryOrder updateExtend(String tenantId, String ticketId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao); + + StoreDeliveryOrder updateExtend(String tenantId, String ticketId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreDeliveryOrderItemDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreDeliveryOrderItemDao.java new file mode 100644 index 0000000..09b6980 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreDeliveryOrderItemDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreDeliveryOrderItem; +import com.jwsaas.dao.BaseDao; + +public interface StoreDeliveryOrderItemDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreDepartmentDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreDepartmentDao.java new file mode 100644 index 0000000..330ed13 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreDepartmentDao.java @@ -0,0 +1,10 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreDepartment; +import com.jwsaas.dao.BaseDao; + +public interface StoreDepartmentDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreDispatchAccountDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreDispatchAccountDao.java new file mode 100644 index 0000000..eefd3de --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreDispatchAccountDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreDispatchAccount; +import com.jwsaas.dao.BaseDao; + +public interface StoreDispatchAccountDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreDispatchAccountLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreDispatchAccountLogDao.java new file mode 100644 index 0000000..fa03ca9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreDispatchAccountLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreDispatchAccountLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreDispatchAccountLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreEnchashmentRecordDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreEnchashmentRecordDao.java new file mode 100644 index 0000000..622bfe8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreEnchashmentRecordDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreEnchashmentRecord; +import com.jwsaas.dao.BaseDao; + +public interface StoreEnchashmentRecordDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreEnchashmentRecordLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreEnchashmentRecordLogDao.java new file mode 100644 index 0000000..ac684e9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreEnchashmentRecordLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreEnchashmentRecordLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreEnchashmentRecordLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreFeeCutLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreFeeCutLogDao.java new file mode 100644 index 0000000..ec28d6c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreFeeCutLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreFeeCutLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreFeeCutLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDao.java new file mode 100644 index 0000000..a235db3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreHandover; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface StoreHandoverDao extends BaseDao { + + List getPagerByAllAgentStores(String tenantId, List storeIds, Criteria criteria, PageBounds pageBounds); + + List getListByAllAgentStores(String tenantId, List storeIds, Criteria criteria); + List getListByAllAgentStores(String tenantId, List storeIds, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailDao.java new file mode 100644 index 0000000..fc82787 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreHandoverDetail; +import com.jwsaas.dao.BaseDao; + +public interface StoreHandoverDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailPartDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailPartDao.java new file mode 100644 index 0000000..f10eb8f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailPartDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreHandoverDetailPart; +import com.jwsaas.dao.BaseDao; + +public interface StoreHandoverDetailPartDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailPayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailPayDao.java new file mode 100644 index 0000000..9968d03 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreHandoverDetailPayDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreHandoverDetailPay; +import com.jwsaas.dao.BaseDao; + +public interface StoreHandoverDetailPayDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreLoginLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreLoginLogDao.java new file mode 100644 index 0000000..02d2ded --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreLoginLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreLoginLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreLoginLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreOperationLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreOperationLogDao.java new file mode 100644 index 0000000..e31d589 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreOperationLogDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreOperationLog; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface StoreOperationLogDao extends BaseDao { + + List getStoreTypeSummaryPager(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductDao.java new file mode 100644 index 0000000..ad18985 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductDao.java @@ -0,0 +1,31 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreOrderProduct; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface StoreOrderProductDao extends BaseDao { + + List> getPagerCountSumAndAmountTotalSum(String tenantId, Criteria criteria, PageBounds pageBounds); + + List> getListCountSumAndAmountTotalSum(String tenantId, Criteria criteria); + + List> getListAmountTotalSum(String tenantId, Criteria criteria); + + List getListByExport(String tenantId, Criteria criteria); + + List> getPagerForSalesDayProductSummary(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListDataSummary(String tenantId, Criteria criteria); + List getListDataSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListReportDataSummary(String tenantId, Criteria criteria); + List getListReportDataSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListProductDataSummary(String tenantId, Criteria criteria); + List getListProductDataSummary(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductInfoDao.java new file mode 100644 index 0000000..4f0f207 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductInfoDao.java @@ -0,0 +1,17 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreOrderProductInfo; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface StoreOrderProductInfoDao extends BaseDao { + + List> getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListSummary(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductMakeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductMakeDao.java new file mode 100644 index 0000000..fb15452 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreOrderProductMakeDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreOrderProductMake; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface StoreOrderProductMakeDao extends BaseDao { + + List> getPagerSumInfos(String tenantId, Criteria criteria, PageBounds pageBounds); + + List> getListSumInfos(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StorePayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StorePayDao.java new file mode 100644 index 0000000..d438853 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StorePayDao.java @@ -0,0 +1,54 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StorePay; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface StorePayDao extends BaseDao { + + /** + * 获取有pos信息、交班信息的支付流水数据; + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getPagerWithShiftAndPosNo(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取有pos信息、交班信息的支付流水数据; + * @param tenantId + * @param criteria + * @return + */ + List getListWithShiftAndPosNo(String tenantId, Criteria criteria); + + /** + * 获取每日营收汇总报表数据; + * @param tenantId + * @param criteria + * @return + */ + List> getListDailyRevenue(String tenantId, Criteria criteria); + + List getListByExport(String tenantId, Criteria criteria); + + List getListByChargeBackSummary(String tenantId, Criteria criteria) ; + List getListByChargeBackSummary(String tenantId, Criteria criteria,boolean isBatch) ; + + List getListBySumChargeBack(String tenantId, Criteria criteria); + List getListBySumChargeBack(String tenantId, Criteria criteria,boolean isBatch); + + List getListByAccountingSummary(String tenantId, Criteria criteria); + List getListByAccountingSummary(String tenantId, Criteria criteria,boolean isBatch); + + List> getListReportDataSummary(String tenantId, Criteria criteria); + List> getListReportDataSummary(String tenantId, Criteria criteria,boolean isBatch); + + List getListReportDataByBusModeSummary(String tenantId, Criteria criteria); + List getListReportDataByBusModeSummary(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreProductDao.java new file mode 100644 index 0000000..b6665b3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreProductDao.java @@ -0,0 +1,65 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreProduct; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface StoreProductDao extends BaseDao { + + /** + * 获取门店商品信息,包含商品信息(如:商品编号,商品名称,规格编号,规格名称等) + */ + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取门店商品信息,包含商品信息(如:商品编号,商品名称,规格编号,规格名称等) + */ + List getListExtend(String tenantId, Criteria criteria); + + /** + * 获取门店商品信息,包含商品信息(如:商品编号,商品名称,规格编号,规格名称等) + */ + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 获取门店商品信息,包含门店信息(如:门店编号,门店名称等) + */ + List getPagerWithStoreInfo(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 查找门店下商品规格Id集合; + * @param tenantId + * @param storeId + * @return + */ + List getSpecIdsList(String tenantId, String storeId); + + /** + * 查找门店下商品规格Id集合; + * @param tenantId + * @param storeId + * @param isBatch + * @return + */ + List getSpecIdsList(String tenantId, String storeId,boolean isBatch); + + List getSyncStoreDishList(String tenantId, Criteria c); + + List getListWithErpInfo(String tenantId, Criteria criteria); + + List> getUsageList(String tenantId, Criteria criteria); + + /** + * 更新门店商品库存信息 + * @param tenantId + * @param storeId + * @param specId + * @param stock + * @return + */ + Integer updateStoreProductSaleStock(String tenantId, String storeId, String specId, double stock); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreProductSaleStockDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreProductSaleStockDao.java new file mode 100644 index 0000000..4ccbdd3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreProductSaleStockDao.java @@ -0,0 +1,21 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreProductSaleStock; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface StoreProductSaleStockDao extends BaseDao { + + int synchronousData(String tenantId, String modifyUserName, double totalStock, double stock); + + List getPartPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + Integer updateStoreProductSaleStock(String tenantId, String storeId, String specId, double stock); + + List getseriesNameAndseriesIdByTenantld(Criteria criteria,String tenantId); + + int updateImptStock(String tenantId,List storeProductSaleStock); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTemplateDao.java new file mode 100644 index 0000000..2409a66 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTemplateDao.java @@ -0,0 +1,32 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreStockCheckTemplate; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface StoreStockCheckTemplateDao extends BaseDao { + + /** + * 根据门店ID获取该门店可用的盘点模板 + */ + List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + Integer saveTemplateRelations(String tenantId, List templates); + + List getStoreIdByTemplateId(String tenantId, String id); + + List getStoreIdByTemplateId(String tenantId, String id,boolean isBatch); + + Integer deleteTemplateRelations(String tenantId, Criteria criteria); + Integer deleteTemplateRelations(String tenantId, Criteria criteria, boolean isBatch); + + List getAllStoreIds(String tenantId); + List getAllStoreIds(String tenantId,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTemplateDetailDao.java new file mode 100644 index 0000000..2c40c00 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTemplateDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreStockCheckTemplateDetail; +import com.jwsaas.dao.BaseDao; + +public interface StoreStockCheckTemplateDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketDao.java new file mode 100644 index 0000000..939196e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketDao.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreStockCheckTicket; + +public interface StoreStockCheckTicketDao extends BaseDao { + + /** + * 获取未审核的盘点单 + */ + List getUnCheckList(String tenantId, String storeId, String storageId); + + /** + * 获取未审核的盘点单 + */ + List getUnCheckList(String tenantId, String storeId, String storageId, Boolean isBatch); + + /** + * 获取盘点分析数据 + */ + List> getSummary(String tenantId, String storeId, String no, String storageId, String startTime, String endTime, String typeId, String keyword); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketDetailDao.java new file mode 100644 index 0000000..7da9264 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketDetailDao.java @@ -0,0 +1,20 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreStockCheckTicketDetail; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface StoreStockCheckTicketDetailDao extends BaseDao { + + List> getList4UnCheck(String tenantId, Criteria criteria); + + List getPagerCheckedTicketDetails(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListCheckedTicketDetails(String tenantId, Criteria criteria,boolean isBatch); + List getListCheckedTicketDetails(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketLogDao.java new file mode 100644 index 0000000..c15081a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStockCheckTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreStockCheckTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreStockCheckTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageDao.java new file mode 100644 index 0000000..3e21803 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageDao.java @@ -0,0 +1,51 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreStorage; + +public interface StoreStorageDao extends BaseDao { + + /** + * 获取集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @return + */ + List getListByStoreId(String tenantId, String storeId); + /** + * 保存门店仓库关联; + * @param tenantId + * @param list + * @return + */ + Integer saveStoreStorageRelations(String tenantId, List list); + + /** + * 根据仓库id,获得门店id + * @param tenantId + * @param storageId + * @return + */ + List getStoreStorageStoreIdsByStorageId(String tenantId, String storageId); + + /** + * 删除对应关系; + * @param tenantId + * @param criteria + * @param isBatch + * @return + */ + Integer deleteStoreStorageRelations(String tenantId, Criteria criteria, boolean isBatch); + + List getAllStoreStorageInfos(String tenantId,Criteria criteria); + + List getAllStoreStorageInfos(String tenantId,Criteria criteria,boolean isBatch); + + List getListByStoreIdBatch(String tenantId, String storeId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketDao.java new file mode 100644 index 0000000..2e7c6ff --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreStorageOutTicket; +import com.jwsaas.dao.BaseDao; + +public interface StoreStorageOutTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketDetailDao.java new file mode 100644 index 0000000..3188b62 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketDetailDao.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreStorageOutTicketDetail; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface StoreStorageOutTicketDetailDao extends BaseDao { + + List getPagerSumAmount(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListSumAmount(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketLogDao.java new file mode 100644 index 0000000..d0322b8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageOutTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreStorageOutTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreStorageOutTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketDao.java new file mode 100644 index 0000000..3979ace --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreStorageTicket; +import com.jwsaas.dao.BaseDao; + +public interface StoreStorageTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketDetailDao.java new file mode 100644 index 0000000..d86760f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketDetailDao.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.StoreStorageTicketDetail; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface StoreStorageTicketDetailDao extends BaseDao { + + List getPagerSumAmount(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListSumAmount(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketLogDao.java new file mode 100644 index 0000000..b1ad790 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreStorageTicketLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreStorageTicketLog; +import com.jwsaas.dao.BaseDao; + +public interface StoreStorageTicketLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreTypeDao.java new file mode 100644 index 0000000..e53a661 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreTypeDao.java @@ -0,0 +1,10 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreType; +import com.jwsaas.dao.BaseDao; + +public interface StoreTypeDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreWorkerDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreWorkerDao.java new file mode 100644 index 0000000..4e5e6ad --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreWorkerDao.java @@ -0,0 +1,68 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoreWorker; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface StoreWorkerDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + /** + * 获取最大值 + * + * @param tenantId + * @param property + * 属性 + * @param excludeValueList + * 需要排除的值 + * @return + */ + String selectMaxValueExtend(String tenantId, String property, List excludeValueList); + + Integer saveStores(String tenantId, String storeWorkerId, List storeIdList); + + List getStoreIdList(String tenantId, String workerId); + + Integer delStores(String tenantId, String workerId); + + List getPosRoleIds(String tenantId, String workerId); + + /** + * 删除员工关联的前台角色 + */ + Integer delPosRoleRelation(String tenantId, String workerId); + + /** + * 保存员工关联的前台角色 + */ + Integer savePosRoleRelation(String tenantId, String workerId, List posRoleIds); + + List isStoreWorker(String tenantId, String workerId, String storeId); + + List getStoreWorkerList(String tenantId, String storeId); + + /** + * 获取员工可登陆门店列表 + * + * @param tenantId + * @param pageBounds + * @return + */ + List getWorkerStorePager(String tenantId, PageBounds pageBounds); + + /** + * 获取门店可登陆员工列表,分页获取 + * + * @param tenantId + * @param storeId + * @param criteria + * @param pageBounds + * @return + */ + List getStoreWorkerPager(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoreWorkerExtDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoreWorkerExtDao.java new file mode 100644 index 0000000..f5f5e65 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoreWorkerExtDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.StoreWorkerExt; +import com.jwsaas.dao.BaseDao; + +public interface StoreWorkerExtDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoretableAreaDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoretableAreaDao.java new file mode 100644 index 0000000..06a42cb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoretableAreaDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoretableArea; + +public interface StoretableAreaDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + List getListByStoreId(String tenantId, String sotreId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoretableDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoretableDao.java new file mode 100644 index 0000000..ba736ea --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoretableDao.java @@ -0,0 +1,22 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.Storetable; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface StoretableDao extends BaseDao { + + /** + * 微信餐桌展示; + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List getWeixinStoreTablePager(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getProgramStoreTablePager(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/StoretableTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/StoretableTypeDao.java new file mode 100644 index 0000000..4707915 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/StoretableTypeDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.StoretableType; + +public interface StoretableTypeDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + List getListByStoreId(String tenantId, String sotreId); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SupplierDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SupplierDao.java new file mode 100644 index 0000000..c271fc1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SupplierDao.java @@ -0,0 +1,20 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.Supplier; + +public interface SupplierDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + /** + * 供应商类别删除时,更新选择该类别的供应商信息类别ID为NULL + */ + Integer updateTypeToNull(String tenantId, String typeId); + + /** + * 供应商类别删除时,更新选择该类别的供应商信息类别ID为NULL + */ + Integer updateTypeToNull(String tenantId, String typeId, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/SupplierTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/SupplierTypeDao.java new file mode 100644 index 0000000..1171d3e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/SupplierTypeDao.java @@ -0,0 +1,10 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.SupplierType; +import com.jwsaas.dao.BaseDao; + +public interface SupplierTypeDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/TaskScheduleDao.java b/food-server/src/main/java/com/jwsaas/dao/food/TaskScheduleDao.java new file mode 100644 index 0000000..5faa156 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/TaskScheduleDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.TaskSchedule; +import com.jwsaas.dao.BaseDao; + +public interface TaskScheduleDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketDao.java new file mode 100644 index 0000000..c5d6d6a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ThuselevelTicket; +import com.jwsaas.dao.BaseDao; + +public interface ThuselevelTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketMaterialDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketMaterialDao.java new file mode 100644 index 0000000..fd034d7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketMaterialDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ThuselevelTicketMaterial; +import com.jwsaas.dao.BaseDao; + +public interface ThuselevelTicketMaterialDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketStoreDao.java new file mode 100644 index 0000000..761733c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/ThuselevelTicketStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.ThuselevelTicketStore; +import com.jwsaas.dao.BaseDao; + +public interface ThuselevelTicketStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/TicketPrintSettingDao.java b/food-server/src/main/java/com/jwsaas/dao/food/TicketPrintSettingDao.java new file mode 100644 index 0000000..5317302 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/TicketPrintSettingDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.TicketPrintSetting; +import com.jwsaas.dao.BaseDao; + +public interface TicketPrintSettingDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/UserDao.java b/food-server/src/main/java/com/jwsaas/dao/food/UserDao.java new file mode 100644 index 0000000..c3d1d67 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/UserDao.java @@ -0,0 +1,85 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.User; + +public interface UserDao extends BaseDao { + + /** + * 根据用户名和密码登录系统 + * + * @param tenantId + * 租户ID + * @param userName + * 用户名 + * @param password + * 密码加密串 + * @return + */ + User getLogin(String tenantId, String userName, String password); + + /** + * 批量保存角色信息 + * + * 角色ID + * + * @param roleIds + * 权限集合 + * @return + */ + Integer saveRelationUserRole(String tenantId, String userId, List roleIds); + + /** + * 根据用户id获取角色ID集合 + * + * @param tenantId + * 租户ID + * @param userId + * 用户ID + * @return + * @throws Exception + */ + List getRoleIdByUserId(String tenantId, String userId); + + /** + * 根据用户ID 获取角色名称集合 + * + * @param tenantId + * @param userId + * @return + */ + List getRoleNameByUserId(String tenantId, String userId); + + /** + * 删除用户角色关系 + * + * @param userId + * * @param roles 角色集合 + * @return + * @throws Exception + */ + int delRelationUserRole(String tenantId, String userId); + + /** + * 删除用户角色关系 + * + * @param userId + * * @param roles 角色集合 + * @return + * @throws Exception + */ + int delRelationUserRoles(String tenantId, List userIds); + + /** + * 修改用户密码 + * + * @param tenantId + * @param id + * @param passwd + * @return + */ + int updatePwd(String tenantId, String id, String passwd); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VisitorAddressDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VisitorAddressDao.java new file mode 100644 index 0000000..690702d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VisitorAddressDao.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.VisitorAddress; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface VisitorAddressDao extends BaseDao { + + List getPagerExtend(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + + List getWithVisitorPager(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VisitorDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VisitorDao.java new file mode 100644 index 0000000..485453f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VisitorDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.Visitor; +import com.jwsaas.dao.BaseDao; + +public interface VisitorDao extends BaseDao { + + String selectMaxValue(String tenantId, String property); + + String selectMaxValue(String tenantId, String property, Boolean isBatch); + + String selectMaxValue(String tenantId, String storeId, String property); + + String selectMaxValue(String tenantId, String storeId, String property, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VisitorTagDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VisitorTagDao.java new file mode 100644 index 0000000..d269301 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VisitorTagDao.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.VisitorTag; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface VisitorTagDao extends BaseDao { + + List getPagerExtend(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposAdPictureDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposAdPictureDao.java new file mode 100644 index 0000000..ae70742 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposAdPictureDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposAdPicture; +import com.jwsaas.dao.BaseDao; + +public interface VposAdPictureDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposCcbfzAccountDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposCcbfzAccountDao.java new file mode 100644 index 0000000..1687f7a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposCcbfzAccountDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.VposCcbfzAccount; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface VposCcbfzAccountDao extends BaseDao { + + List getAllSeriesIds(String tenantId, Criteria criteria); + List getAllSeriesIds(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposProductEvaluateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposProductEvaluateDao.java new file mode 100644 index 0000000..8faf698 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposProductEvaluateDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.VposProductEvaluate; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface VposProductEvaluateDao extends BaseDao { + + List getPager4ApiView(String tenantId, String openId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposProductEvaluateImageDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposProductEvaluateImageDao.java new file mode 100644 index 0000000..bb44820 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposProductEvaluateImageDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposProductEvaluateImage; +import com.jwsaas.dao.BaseDao; + +public interface VposProductEvaluateImageDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposStoreBusinessTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreBusinessTicketDao.java new file mode 100644 index 0000000..2930ec3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreBusinessTicketDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.VposStoreBusinessTicket; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface VposStoreBusinessTicketDao extends BaseDao { + + List getListByExport(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposStoreBusinessTicketInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreBusinessTicketInfoDao.java new file mode 100644 index 0000000..5cfe413 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreBusinessTicketInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposStoreBusinessTicketInfo; +import com.jwsaas.dao.BaseDao; + +public interface VposStoreBusinessTicketInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductDao.java new file mode 100644 index 0000000..cbeedf2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.VposStoreOrderProduct; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface VposStoreOrderProductDao extends BaseDao { + + List getListByExport(String tenantId, Criteria criteria); + + List getSummaryList(String tenantId, Criteria criteria); + + List getListByProductSalesSummary(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductInfoDao.java new file mode 100644 index 0000000..564fe7b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposStoreOrderProductInfo; +import com.jwsaas.dao.BaseDao; + +public interface VposStoreOrderProductInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductMakeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductMakeDao.java new file mode 100644 index 0000000..778ebff --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposStoreOrderProductMakeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposStoreOrderProductMake; +import com.jwsaas.dao.BaseDao; + +public interface VposStoreOrderProductMakeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposStorePayDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposStorePayDao.java new file mode 100644 index 0000000..2c32057 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposStorePayDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposStorePay; +import com.jwsaas.dao.BaseDao; + +public interface VposStorePayDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposUserDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposUserDao.java new file mode 100644 index 0000000..9fea058 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposUserDao.java @@ -0,0 +1,10 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposUser; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface VposUserDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/VposUserSeriesDao.java b/food-server/src/main/java/com/jwsaas/dao/food/VposUserSeriesDao.java new file mode 100644 index 0000000..4a5d0ae --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/VposUserSeriesDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.VposUserSeries; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface VposUserSeriesDao extends BaseDao { + + List getSeriesIdByUserId(String tenantId, String id,boolean isBatch); + + List getSeriesIdByUserId(String tenantId, String id); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxAdPictureDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxAdPictureDao.java new file mode 100644 index 0000000..727214e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxAdPictureDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxAdPicture; +import com.jwsaas.dao.BaseDao; + +public interface WxAdPictureDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceGoodsDao.java new file mode 100644 index 0000000..ef36ef7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceGoodsDao.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.WxAdjustPriceGoods; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.WxAdjustPriceGoodsService; + +import java.util.List; + +public interface WxAdjustPriceGoodsDao extends BaseDao { + + List getListExtend(String tenantId, Criteria criteria); + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceStoreDao.java new file mode 100644 index 0000000..06b4491 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceStoreDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.WxAdjustPriceStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface WxAdjustPriceStoreDao extends BaseDao { + + List getListExtend(String tenantId, Criteria criteria,boolean isBatch); + List getListExtend(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceTicketDao.java new file mode 100644 index 0000000..71c2aad --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxAdjustPriceTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxAdjustPriceTicket; +import com.jwsaas.dao.BaseDao; + +public interface WxAdjustPriceTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsCategoryDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsCategoryDao.java new file mode 100644 index 0000000..ef0a2c8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsCategoryDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxGoodsCategory; +import com.jwsaas.dao.BaseDao; + +public interface WxGoodsCategoryDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsDao.java new file mode 100644 index 0000000..a876a44 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsDao.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.WxGoods; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface WxGoodsDao extends BaseDao { + + /** + * 获取所有规格IDs + * @param tenantId + * @return + */ + List getAllSpecIds(String tenantId); + + /** + * 获取所有商品IDs; + * @param tenantId + * @return + */ + List getAllProductIds(String tenantId); + + List getExtendPager(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListByStoreIds(String tenantId, List ids, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsMakeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsMakeDao.java new file mode 100644 index 0000000..1af1622 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsMakeDao.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxGoodsMake; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface WxGoodsMakeDao extends BaseDao { + + List> getMakeCount(String tenantId, Criteria criteria); + + List> getMakeCount(String tenantId, Criteria criteria, Boolean isBatch); + + List getListExtends(String tenantId, Criteria criteria); + List getListExtends(String tenantId, Criteria criteria,Boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateDao.java new file mode 100644 index 0000000..d31ff36 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxGoodsTemplate; +import com.jwsaas.dao.BaseDao; + +public interface WxGoodsTemplateDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateDetailDao.java new file mode 100644 index 0000000..b59dcba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateDetailDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.WxGoodsTemplateDetail; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface WxGoodsTemplateDetailDao extends BaseDao { + + List getGoodsIdByTemplateId(String tenantId, String templateId,boolean isBatch); + List getGoodsIdByTemplateId(String tenantId, String templateId); + + List getListWithExtend(String tenantId, Criteria criteria); + List getListWithExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateStoreDao.java new file mode 100644 index 0000000..2708f3b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxGoodsTemplateStoreDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.WxGoodsTemplateStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface WxGoodsTemplateStoreDao extends BaseDao { + + List getStoreIdByTemplateId(String tenantId, String templateId); + List getStoreIdByTemplateId(String tenantId, String templateId,boolean isBatch); + + List getListWithExtend(String tenantId, Criteria criteria); + List getListWithExtend(String tenantId, Criteria criteria,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxPaymentParameterDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxPaymentParameterDao.java new file mode 100644 index 0000000..3c95153 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxPaymentParameterDao.java @@ -0,0 +1,28 @@ +package com.jwsaas.dao.food; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.WxPaymentParameter; + +public interface WxPaymentParameterDao extends BaseDao { + + /** + * 保存关联关系; + * @param tenantId + * @param parameters + * @return + */ + Integer saveRelation(String tenantId, List parameters); + + + List getStoreIdsByPaymentId(String tenantId, String id); + List getStoreIdsByPaymentId(String tenantId, String id,boolean isBatch); + + Integer deleteRelationByCriteria(String tenantId, Criteria criteria); + Integer deleteRelationByCriteria(String tenantId, Criteria criteria, boolean isBatch); + + List getPaymentParameterByStoreId(String tenantId, String wxStoreId); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxQrcodeSettingDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxQrcodeSettingDao.java new file mode 100644 index 0000000..3af3502 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxQrcodeSettingDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxQrcodeSetting; +import com.jwsaas.dao.BaseDao; + +public interface WxQrcodeSettingDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderDao.java new file mode 100644 index 0000000..2012d9b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxSalesOrder; +import com.jwsaas.dao.BaseDao; + +public interface WxSalesOrderDao extends BaseDao { + + String selectMaxDaySeq(String tenantId, String currentDate, String storeId); + + String selectMaxDaySeq(String tenantId, String currentDate, String storeId, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemDao.java new file mode 100644 index 0000000..7effd86 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemDao.java @@ -0,0 +1,16 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxSalesOrderItem; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; + +public interface WxSalesOrderItemDao extends BaseDao { + + List getListExtend(String tenantId, Criteria criteria); + + List getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemMakeDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemMakeDao.java new file mode 100644 index 0000000..34792ee --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemMakeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxSalesOrderItemMake; +import com.jwsaas.dao.BaseDao; + +public interface WxSalesOrderItemMakeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemPromoDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemPromoDao.java new file mode 100644 index 0000000..11daee0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderItemPromoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxSalesOrderItemPromo; +import com.jwsaas.dao.BaseDao; + +public interface WxSalesOrderItemPromoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderLogDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderLogDao.java new file mode 100644 index 0000000..e35c9fa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesOrderLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxSalesOrderLog; +import com.jwsaas.dao.BaseDao; + +public interface WxSalesOrderLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxSalesPaymentDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesPaymentDao.java new file mode 100644 index 0000000..65a2754 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxSalesPaymentDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxSalesPayment; +import com.jwsaas.dao.BaseDao; + +public interface WxSalesPaymentDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxStoreDao.java new file mode 100644 index 0000000..60bf654 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxStoreDao.java @@ -0,0 +1,17 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.WxStore; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface WxStoreDao extends BaseDao { + + List getStoreIdList(String tenantId); + + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getListExtend(String tenantId, Criteria criteria); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxStoreGoodsDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxStoreGoodsDao.java new file mode 100644 index 0000000..318a76d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxStoreGoodsDao.java @@ -0,0 +1,61 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.food.WxStoreGoods; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; +import java.util.Map; + +public interface WxStoreGoodsDao extends BaseDao { + + /** + * 获取门店上架的商品信息,只包含ProductId + * + * @param tenantId + * @param criteria + * @param pageBounds + * @return + */ + List> getPagerExtendSimple(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取扩展信息 + * + * @param tenantId + * @param criteria + * @return + */ + List> getListExtend(String tenantId, Criteria criteria); + + /** + * 获取扩展信息 + * + * @param tenantId + * @param criteria + * @return + */ + List> getListExtend(String tenantId, Criteria criteria, Boolean isBatch); + + /** + * 获取扩展信息 + * + * @param tenantId + * @param criteria + * @return + */ + List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds); + + List getSpecIdsByWxStoreId(String tenantId, String storeId); + List getSpecIdsByWxStoreId(String tenantId, String storeId,boolean isbatch); + + /** + * 根据门店ID改变门店商品售罄状态 + * @param tenantId + * @param wxStoreId + * @param saleStatus + * @return + */ + Integer updateStoreWxGoodsStatusByStoreId(String tenantId, String wxStoreId, int saleStatus); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxdcDistributionAddressDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxdcDistributionAddressDao.java new file mode 100644 index 0000000..079b603 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxdcDistributionAddressDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxdcDistributionAddress; +import com.jwsaas.dao.BaseDao; + +public interface WxdcDistributionAddressDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/WxdcDistributionDao.java b/food-server/src/main/java/com/jwsaas/dao/food/WxdcDistributionDao.java new file mode 100644 index 0000000..6d37b94 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/WxdcDistributionDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.WxdcDistribution; +import com.jwsaas.dao.BaseDao; + +public interface WxdcDistributionDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/YunposSetDao.java b/food-server/src/main/java/com/jwsaas/dao/food/YunposSetDao.java new file mode 100644 index 0000000..d180f43 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/YunposSetDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.YunposSet; +import com.jwsaas.dao.BaseDao; + +public interface YunposSetDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/YunposSetStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/food/YunposSetStoreDao.java new file mode 100644 index 0000000..c45e7c5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/YunposSetStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.food; + +import com.jwsaas.entity.food.YunposSetStore; +import com.jwsaas.dao.BaseDao; + +public interface YunposSetStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceProductDaoImpl.java new file mode 100644 index 0000000..0c1f9d4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceProductDaoImpl.java @@ -0,0 +1,51 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AdjustPriceProductDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.AdjustPriceProduct; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 调价商品数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceProductDaoImpl") +public class AdjustPriceProductDaoImpl extends BaseDaoImpl implements AdjustPriceProductDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = AdjustPriceProduct.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pp.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AdjustPriceProduct.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceStoreDaoImpl.java new file mode 100644 index 0000000..75186da --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceStoreDaoImpl.java @@ -0,0 +1,43 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AdjustPriceStoreDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.AdjustPriceStore; + +/** + * 调价单门店明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceStoreDaoImpl") +public class AdjustPriceStoreDaoImpl extends BaseDaoImpl implements AdjustPriceStoreDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = AdjustPriceStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ps.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceTicketDaoImpl.java new file mode 100644 index 0000000..05fd4d5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdjustPriceTicketDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AdjustPriceTicketDao; +import com.jwsaas.entity.food.AdjustPriceTicket; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +/** + * 菜品调价单据数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceTicketDaoImpl") +public class AdjustPriceTicketDaoImpl extends BaseDaoImpl implements AdjustPriceTicketDao { + + @Override + public List> getPagerByStoreId(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AdjustPriceTicket.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("apt.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AdvertCaptionDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdvertCaptionDaoImpl.java new file mode 100644 index 0000000..b7b77f1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdvertCaptionDaoImpl.java @@ -0,0 +1,159 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AdvertCaptionDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.AdvertCaption; +import com.jwsaas.entity.food.AdvertPicture; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 双屏广告字幕数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AdvertCaptionDaoImpl") +public class AdvertCaptionDaoImpl extends BaseDaoImpl implements AdvertCaptionDao { + + @Override + public List getPager4RelatedStore(String tenantId, String advertCaptionId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AdvertCaption.class.getName() + "Mapper.getPager4RelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = AdvertCaption.class.getName() + "Mapper.getPager4RelatedStore";// 包含品牌 + } + // 增加租户过滤 + criteria.add(Restrictions.eq("s.tenantId", tenantId)); + criteria.add(Restrictions.eq("acs.captionId", advertCaptionId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getPager4UnRelatedStore(String tenantId, String advertCaptionId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AdvertCaption.class.getName() + "Mapper.getPager4UnRelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = AdvertCaption.class.getName() + "Mapper.getPager4UnRelatedStore";// 包含品牌 + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("captionId", advertCaptionId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getAll4UnRelatedStore(String tenantId, String advertCaptionId, Criteria criteria) { + return getAll4UnRelatedStore(tenantId, advertCaptionId, criteria, false); + } + + @Override + public List getAll4UnRelatedStore(String tenantId, String advertCaptionId, Criteria criteria, Boolean isBatch) { + String defaultStatement = AdvertCaption.class.getName() + "Mapper.getAll4UnRelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = AdvertCaption.class.getName() + "Mapper.getAll4UnRelatedStore";// 包含品牌 + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("captionId", advertCaptionId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + if (BooleanUtils.isTrue(isBatch)) { + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer saveStoreRelated(String tenantId, String advertCaptionId, List storeIdList, String currentUser) { + Integer result = 0; + String defaultStatement = AdvertCaption.class.getName() + "Mapper.saveStoreRelated"; + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("captionId", advertCaptionId); + relationship.put("storeId", storeIdList.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelated(String tenantId, String advertCaptionId, List storeIdList) { + Integer result = 0; + String defaultStatement = AdvertCaption.class.getName() + "Mapper.deleteStoreRelated"; + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("captionId", advertCaptionId); + relationship.put("storeId", storeIdList.get(i)); + sqlSession.delete(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelated(String tenantId, String advertCaptionId) { + return deleteStoreRelated(tenantId, advertCaptionId, false); + } + + @Override + public Integer deleteStoreRelated(String tenantId, String advertCaptionId, Boolean isBatch) { + String defaultStatement = AdvertCaption.class.getName() + "Mapper.deleteStoreRelatedByCaptionId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("captionId", advertCaptionId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + + @Override + public List getListBystoreId(String tenantId, String storeId) { + String defaultStatement = AdvertCaption.class.getName() + "Mapper.getListBystoreId";// 不包含品牌 + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AdvertPictureDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdvertPictureDaoImpl.java new file mode 100644 index 0000000..aeff58f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AdvertPictureDaoImpl.java @@ -0,0 +1,200 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AdvertPictureDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.AdvertPicture; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 双屏广告图片数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AdvertPictureDaoImpl") +public class AdvertPictureDaoImpl extends BaseDaoImpl implements AdvertPictureDao { + + @Override + public List getPager4RelatedStore(String tenantId, String pictureId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AdvertPicture.class.getName() + "Mapper.getPager4RelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = AdvertPicture.class.getName() + "Mapper.getPager4RelatedStore";// 包含品牌 + } + // 增加租户过滤 + criteria.add(Restrictions.eq("s.tenantId", tenantId)); + criteria.add(Restrictions.eq("aps.pictureId", pictureId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getPager4UnRelatedStore(String tenantId, String pictureId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AdvertPicture.class.getName() + "Mapper.getPager4UnRelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = AdvertPicture.class.getName() + "Mapper.getPager4UnRelatedStore";// 包含品牌 + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("pictureId", pictureId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getAll4UnRelatedStore(String tenantId, String pictureId, Criteria criteria) { + return getAll4UnRelatedStore(tenantId, pictureId, criteria, false); + } + + @Override + public List getAll4UnRelatedStore(String tenantId, String pictureId, Criteria criteria, Boolean isBatch) { + String defaultStatement = AdvertPicture.class.getName() + "Mapper.getAll4UnRelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = AdvertPicture.class.getName() + "Mapper.getAll4UnRelatedStore";// 包含品牌 + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("pictureId", pictureId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + if (BooleanUtils.isTrue(isBatch)) { + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer saveStoreRelated(String tenantId, String pictureId, List storeIdList, String currentUser) { + Integer result = 0; + String defaultStatement = AdvertPicture.class.getName() + "Mapper.saveStoreRelated"; + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("pictureId", pictureId); + relationship.put("storeId", storeIdList.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelated(String tenantId, String pictureId, List storeIdList) { + Integer result = 0; + String defaultStatement = AdvertPicture.class.getName() + "Mapper.deleteStoreRelated"; + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("pictureId", pictureId); + relationship.put("storeId", storeIdList.get(i)); + sqlSession.delete(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelated(String tenantId, String pictureId) { + return deleteStoreRelated(tenantId, pictureId, false); + } + + @Override + public Integer deleteStoreRelated(String tenantId, String pictureId, Boolean isBatch) { + String defaultStatement = AdvertPicture.class.getName() + "Mapper.deleteStoreRelatedByPictureId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("pictureId", pictureId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + + @Override + public Integer deleteStoreRelated(String tenantId, String pictureId, String storeId) { + return deleteStoreRelated(tenantId, pictureId, storeId, false); + } + + @Override + public Integer deleteStoreRelated(String tenantId, String pictureId, String storeId, Boolean isBatch) { + Assert.notNull(pictureId, "parameter 'pictureId' can't be null or empty!"); + String defaultStatement = AdvertPicture.class.getName() + "Mapper.deleteStoreRelated"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("pictureId", pictureId); + parameter.put("storeId", storeId); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + + @Override + public List getListBystoreId(String tenantId, String storeId) { + String defaultStatement = AdvertPicture.class.getName() + "Mapper.getListBystoreId";// 不包含品牌 + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer saveStoreRelated(String tenantId, String pictureId, String storeId) { + return saveStoreRelated(tenantId, pictureId, storeId, false); + } + + @Override + public Integer saveStoreRelated(String tenantId, String pictureId, String storeId, Boolean isBatch) { + Assert.notNull(pictureId, "parameter 'pictureId' can't be null or empty!"); + String defaultStatement = AdvertPicture.class.getName() + "Mapper.saveStoreRelated"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("pictureId", pictureId); + parameter.put("storeId", storeId); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AgentDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AgentDaoImpl.java new file mode 100644 index 0000000..0626fe8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AgentDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.AgentDao; +import com.jwsaas.entity.food.Agent; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 总部代理商信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AgentDaoImpl") +public class AgentDaoImpl extends BaseDaoImpl implements AgentDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AgentStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AgentStoreDaoImpl.java new file mode 100644 index 0000000..6b10fee --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AgentStoreDaoImpl.java @@ -0,0 +1,117 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AgentStoreDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.AgentStore; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 总部代理商门店关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AgentStoreDaoImpl") +public class AgentStoreDaoImpl extends BaseDaoImpl implements AgentStoreDao { + + @Override + public List getValueIdsByAgentId(String tenantId, Integer valueType, String agentId) { + return getValueIdsByAgentId(tenantId,valueType,agentId,false); + } + + @Override + public List getValueIdsByAgentId(String tenantId, Integer valueType, String agentId,boolean isBatch) { + String defaultStatement = AgentStore.class.getName() + "Mapper.getValueIdsByAgentId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("valueType", valueType); + parameter.put("agentId", agentId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AgentStore.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("a.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = AgentStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getStoreIdsByAreaValueId(String tenantId, String agentId) { + return getStoreIdsByAreaValueId(tenantId,agentId,false); + } + + @Override + public List getStoreIdsByAreaValueId(String tenantId, String agentId,boolean isBatch) { + String defaultStatement = AgentStore.class.getName() + "Mapper.getStoreIdsByAreaValueId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("agentId", agentId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getAllStoreIdsByAgentId(String tenantId, String agentId) { + return getAllStoreIdsByAgentId(tenantId,agentId,false); + } + + @Override + public List getAllStoreIdsByAgentId(String tenantId, String agentId,boolean isBatch) { + String defaultStatement = AgentStore.class.getName() + "Mapper.getAllStoreIdsByAgentId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("agentId", agentId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsDetailDaoImpl.java new file mode 100644 index 0000000..3300c7c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsDetailDaoImpl.java @@ -0,0 +1,105 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AskGoodsDetailDao; +import com.jwsaas.entity.food.AskGoodsDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 要货单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsDetailDaoImpl") +public class AskGoodsDetailDaoImpl extends BaseDaoImpl implements AskGoodsDetailDao { + + @Override + public List getPagerWithDispatch(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AskGoodsDetail.class.getName() + "Mapper.getPagerWithDispatch"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ask.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListByAskGoodsSummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = AskGoodsDetail.class.getName() + "Mapper.getListByAskGoodsSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerByAskGoodsSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AskGoodsDetail.class.getName() + "Mapper.getPagerByAskGoodsSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getPagerWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = AskGoodsDetail.class.getName() + "Mapper.getPagerWithTypeIdByAskGoodsSummary"; + criteria.add(Restrictions.eq("ticket.tenantId",tenantId)); + Map parameter = new HashMap(); + String conditionSQL = StringUtils.isNotBlank(criteria.getCondition()) ? criteria.getCondition() : null; + String order = ""; + + if(StringUtils.isEmpty(conditionSQL)){ + order = null; + }else{ + if(StringUtils.contains(conditionSQL,"ORDER")){ + order = conditionSQL.substring(conditionSQL.indexOf("ORDER")); + order = order.replace("ORDER BY",""); + conditionSQL = conditionSQL.substring(0,conditionSQL.indexOf("ORDER")); + }else{ + order = null; + } + } + parameter.put("conditionSQL", conditionSQL); + parameter.put("tenantId", tenantId); + parameter.put("order", order); + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getListWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = AskGoodsDetail.class.getName() + "Mapper.getListWithTypeIdByAskGoodsSummary"; + criteria.add(Restrictions.eq("ticket.tenantId",tenantId)); + Map parameter = new HashMap(); + String conditionSQL = StringUtils.isNotBlank(criteria.getCondition()) ? criteria.getCondition() : null; + String order = ""; + if(StringUtils.isEmpty(conditionSQL)){ + order = null; + }else{ + if(StringUtils.contains(conditionSQL,"ORDER")){ + order = conditionSQL.substring(conditionSQL.indexOf("ORDER"),conditionSQL.indexOf("limit")); + conditionSQL = conditionSQL.replace(order,""); + order = order.replace("ORDER BY",""); + }else{ + order = null; + } + } + parameter.put("conditionSQL", conditionSQL); + parameter.put("tenantId", tenantId); + parameter.put("order", order); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateDaoImpl.java new file mode 100644 index 0000000..54f864d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AskGoodsTemplateDao; +import com.jwsaas.entity.food.AskGoodsTemplate; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; + +import org.springframework.stereotype.Repository; + +/** + * 要货单模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTemplateDaoImpl") +public class AskGoodsTemplateDaoImpl extends BaseDaoImpl implements AskGoodsTemplateDao { + + @Override + public List getPagerByStoreId(String tenantId, Criteria criteria, PageBounds pageBounds, String storeId) { + String defaultStatement = AskGoodsTemplate.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("agt.tenantId", tenantId)); + criteria.add(Restrictions.eq("s.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateDetailDaoImpl.java new file mode 100644 index 0000000..191c08e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.AskGoodsTemplateDetailDao; +import com.jwsaas.entity.food.AskGoodsTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 要货单模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTemplateDetailDaoImpl") +public class AskGoodsTemplateDetailDaoImpl extends BaseDaoImpl implements AskGoodsTemplateDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateStoreDaoImpl.java new file mode 100644 index 0000000..879a15a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTemplateStoreDaoImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AskGoodsTemplateStoreDao; +import com.jwsaas.entity.food.AskGoodsTemplateStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 要货单模板门店关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTemplateStoreDaoImpl") +public class AskGoodsTemplateStoreDaoImpl extends BaseDaoImpl implements AskGoodsTemplateStoreDao { + + @Override + public List getStoreInfoList(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = AskGoodsTemplateStore.class.getName() + "Mapper.getStoreInfoList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ags.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketDaoImpl.java new file mode 100644 index 0000000..27ad276 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketDaoImpl.java @@ -0,0 +1,39 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.AskGoodsTicketDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.AskGoodsTicket; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 要货单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketDaoImpl") +public class AskGoodsTicketDaoImpl extends BaseDaoImpl implements AskGoodsTicketDao { + + @Override + public List getTicketIdsList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = AskGoodsTicket.class.getName() + "Mapper.getTicketIdsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerWithDispatch(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AskGoodsTicket.class.getName() + "Mapper.getPagerWithDispatch"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ask.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketLogDaoImpl.java new file mode 100644 index 0000000..66ba913 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.AskGoodsTicketLogDao; +import com.jwsaas.entity.food.AskGoodsTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 要货操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketLogDaoImpl") +public class AskGoodsTicketLogDaoImpl extends BaseDaoImpl implements AskGoodsTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketPayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketPayDaoImpl.java new file mode 100644 index 0000000..0babe89 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/AskGoodsTicketPayDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.AskGoodsTicketPayDao; +import com.jwsaas.entity.food.AskGoodsTicketPay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 要货单付款明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketPayDaoImpl") +public class AskGoodsTicketPayDaoImpl extends BaseDaoImpl implements AskGoodsTicketPayDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduFoodDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduFoodDaoImpl.java new file mode 100644 index 0000000..6d07e54 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduFoodDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.BaiduFoodDao; +import com.jwsaas.entity.food.BaiduFood; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 百度菜品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "BaiduFoodDaoImpl") +public class BaiduFoodDaoImpl extends BaseDaoImpl implements BaiduFoodDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduOrderDaoImpl.java new file mode 100644 index 0000000..3bd1ac9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduOrderDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.BaiduOrderDao; +import com.jwsaas.entity.food.BaiduOrder; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 百度外卖订单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "BaiduOrderDaoImpl") +public class BaiduOrderDaoImpl extends BaseDaoImpl implements BaiduOrderDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduOrderProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduOrderProductDaoImpl.java new file mode 100644 index 0000000..079615a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/BaiduOrderProductDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.BaiduOrderProductDao; +import com.jwsaas.entity.food.BaiduOrderProduct; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 百度外卖订单商品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "BaiduOrderProductDaoImpl") +public class BaiduOrderProductDaoImpl extends BaseDaoImpl implements BaiduOrderProductDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/BrandDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/BrandDaoImpl.java new file mode 100644 index 0000000..974c891 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/BrandDaoImpl.java @@ -0,0 +1,39 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.BrandDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Brand; + +/** + * 品牌管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "BrandDaoImpl") +public class BrandDaoImpl extends BaseDaoImpl implements BrandDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = Brand.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getListBystoreId(String tenantId, String storeId) { + String defaultStatement = Brand.class.getName() + "Mapper.getListBystoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/BusinessPlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/BusinessPlanDaoImpl.java new file mode 100644 index 0000000..85ae0f1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/BusinessPlanDaoImpl.java @@ -0,0 +1,197 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.BusinessPlanDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.BusinessPlan; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 营业日方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanDaoImpl") +public class BusinessPlanDaoImpl extends BaseDaoImpl implements BusinessPlanDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = BusinessPlan.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getBusinessPlanByStoreId(String tenantId, String storeId) { + String defaultStatement = BusinessPlan.class.getName() + "Mapper.getBusinessPlanByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getPagerForStore(String tenantId, String planId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = BusinessPlan.class.getName() + "Mapper.getPagerForStore"; + // 增加租户过滤 + criteria.add(Restrictions.eq("s.tenantId", tenantId)); + criteria.add(Restrictions.eq("bps.planId", planId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getPagerForStoreNoPlan(String tenantId, String storeAreaId, String storeTypeId, String brandId, String property, String keyword, PageBounds pageBounds) { + String defaultStatement = BusinessPlan.class.getName() + "Mapper.getPagerForStoreNoPlanNoBrand"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("typeId", StringUtils.isNotBlank(storeTypeId) ? storeTypeId : null); + if (StringUtils.isNotBlank(property) && StringUtils.isNotBlank(keyword)) { + parameter.put("property", property); + parameter.put("keyword", "%" + keyword + "%"); + } else { + parameter.put("property", null); + parameter.put("keyword", null); + } + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("s.deleteFlag", 0)); + if (StringUtils.isNotBlank(brandId)) { + defaultStatement = BusinessPlan.class.getName() + "Mapper.getPagerForStoreNoPlan"; + criteria.add(Restrictions.eq("sb.brandId", brandId)); + } + if (StringUtils.isNotBlank(storeAreaId)) { + criteria.add(Restrictions.like("sa.path", "%" + storeAreaId + "%")); + } + parameter.put("areaAndbrandSQL", StringUtils.isNotBlank(criteria.toSQL()) ? criteria.toSQL() : null); + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public Integer saveStoreRelation(String tenantId, String planId, List storeIdList) { + Integer result = 0; + Assert.notNull(planId, "parameter 'planId' can't be null"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = BusinessPlan.class.getName() + "Mapper.saveStoreRelation"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("planId", planId); + parameter.put("storeId", storeIdList.get(i)); + sqlSession.insert(defaultStatement, parameter); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelation(String tenantId, String planId, List storeIdList) { + Integer result = 0; + Assert.notNull(planId, "parameter 'planId' can't be null"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = BusinessPlan.class.getName() + "Mapper.deleteStoreRelation"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("planId", planId); + parameter.put("storeId", storeIdList.get(i)); + sqlSession.insert(defaultStatement, parameter); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelationByPlanId(String tenantId, String planId) { + return deleteStoreRelationByPlanId(tenantId, planId, false); + } + + @Override + public Integer deleteStoreRelationByPlanId(String tenantId, String planId, Boolean isBatch) { + String defaultStatement = BusinessPlan.class.getName() + "Mapper.deleteStoreRelationByPlanId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("planId", planId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + + @Override + public Integer deleteStoreRelationByStoreId(String tenantId, List storeIdList) { + Integer result = 0; + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = BusinessPlan.class.getName() + "Mapper.deleteStoreRelationByStoreId"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeIdList.get(i)); + sqlSession.insert(defaultStatement, parameter); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer saveStorePlanRelation(String tenantId, String id, String storeId) { + String defaultStatement = BusinessPlan.class.getName() + "Mapper.saveStoreRelation"; + + // 实体类存在tenantId字段 + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("planId", id); + parameter.put("storeId", storeId); + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/BusinessPlanDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/BusinessPlanDetailDaoImpl.java new file mode 100644 index 0000000..bd97ee5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/BusinessPlanDetailDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.BusinessPlanDetailDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.BusinessPlanDetail; + +/** + * 营业日方案班次数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanDetailDaoImpl") +public class BusinessPlanDetailDaoImpl extends BaseDaoImpl + implements BusinessPlanDetailDao { + + @Override + public List getBusinessPlanDetailByStoreId(String tenantId, String storeId) { + String defaultStatement = BusinessPlanDetail.class.getName() + "Mapper.getBusinessPlanDetailByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CandaoStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CandaoStoreDaoImpl.java new file mode 100644 index 0000000..e3cec1e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CandaoStoreDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CandaoStoreDao; +import com.jwsaas.entity.food.CandaoStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 餐道门店信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CandaoStoreDaoImpl") +public class CandaoStoreDaoImpl extends BaseDaoImpl implements CandaoStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CategoryDaoImpl.java new file mode 100644 index 0000000..856e5a5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CategoryDao; +import com.jwsaas.entity.food.Category; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 数据字典数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CategoryDaoImpl") +public class CategoryDaoImpl extends BaseDaoImpl implements CategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTemplateDaoImpl.java new file mode 100644 index 0000000..bb85d4b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTemplateDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CheckTemplateDao; +import com.jwsaas.entity.food.CheckTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 总部库存盘点模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CheckTemplateDaoImpl") +public class CheckTemplateDaoImpl extends BaseDaoImpl implements CheckTemplateDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTemplateDetailDaoImpl.java new file mode 100644 index 0000000..45f5c03 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTemplateDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CheckTemplateDetailDao; +import com.jwsaas.entity.food.CheckTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 总部库存盘点模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CheckTemplateDetailDaoImpl") +public class CheckTemplateDetailDaoImpl extends BaseDaoImpl implements CheckTemplateDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketDaoImpl.java new file mode 100644 index 0000000..9f43a31 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CheckTicketDao; +import com.jwsaas.entity.food.CheckTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 总部库存盘点单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CheckTicketDaoImpl") +public class CheckTicketDaoImpl extends BaseDaoImpl implements CheckTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketDetailDaoImpl.java new file mode 100644 index 0000000..417b1c0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketDetailDaoImpl.java @@ -0,0 +1,51 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.CheckTicketDetailDao; +import com.jwsaas.entity.food.CheckTicketDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 总部库存盘点单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CheckTicketDetailDaoImpl") +public class CheckTicketDetailDaoImpl extends BaseDaoImpl implements CheckTicketDetailDao { + + @Override + public List getExtendsPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = CheckTicketDetail.class.getName() + "Mapper.getExtendsPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria) { + return getExtendsList(tenantId,criteria,false); + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = CheckTicketDetail.class.getName() + "Mapper.getExtendsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketLogDaoImpl.java new file mode 100644 index 0000000..0770626 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CheckTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CheckTicketLogDao; +import com.jwsaas.entity.food.CheckTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 总部盘点单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CheckTicketLogDaoImpl") +public class CheckTicketLogDaoImpl extends BaseDaoImpl implements CheckTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostFeeItemDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostFeeItemDaoImpl.java new file mode 100644 index 0000000..862caeb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostFeeItemDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostFeeItemDao; +import com.jwsaas.entity.food.CostFeeItem; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 成本费用项目数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostFeeItemDaoImpl") +public class CostFeeItemDaoImpl extends BaseDaoImpl implements CostFeeItemDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostFeeTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostFeeTypeDaoImpl.java new file mode 100644 index 0000000..189e599 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostFeeTypeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostFeeTypeDao; +import com.jwsaas.entity.food.CostFeeType; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 成本费用项目分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostFeeTypeDaoImpl") +public class CostFeeTypeDaoImpl extends BaseDaoImpl implements CostFeeTypeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketDaoImpl.java new file mode 100644 index 0000000..d9ffa70 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketDao; +import com.jwsaas.entity.food.CostTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表主单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketDaoImpl") +public class CostTicketDaoImpl extends BaseDaoImpl implements CostTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketPayTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketPayTypeDaoImpl.java new file mode 100644 index 0000000..cac1d7c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketPayTypeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketPayTypeDao; +import com.jwsaas.entity.food.CostTicketPayType; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表支付方式统计数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketPayTypeDaoImpl") +public class CostTicketPayTypeDaoImpl extends BaseDaoImpl implements CostTicketPayTypeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductChangeDaoImpl.java new file mode 100644 index 0000000..4142036 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketProductChangeDao; +import com.jwsaas.entity.food.CostTicketProductChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表生产变动费数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductChangeDaoImpl") +public class CostTicketProductChangeDaoImpl extends BaseDaoImpl implements CostTicketProductChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductFixedChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductFixedChangeDaoImpl.java new file mode 100644 index 0000000..cd82044 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductFixedChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketProductFixedChangeDao; +import com.jwsaas.entity.food.CostTicketProductFixedChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表固定费数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductFixedChangeDaoImpl") +public class CostTicketProductFixedChangeDaoImpl extends BaseDaoImpl implements CostTicketProductFixedChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductMoreChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductMoreChangeDaoImpl.java new file mode 100644 index 0000000..0c7b3d7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductMoreChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketProductMoreChangeDao; +import com.jwsaas.entity.food.CostTicketProductMoreChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表辅助生产变动费数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductMoreChangeDaoImpl") +public class CostTicketProductMoreChangeDaoImpl extends BaseDaoImpl implements CostTicketProductMoreChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductOtherChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductOtherChangeDaoImpl.java new file mode 100644 index 0000000..c702e3f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductOtherChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketProductOtherChangeDao; +import com.jwsaas.entity.food.CostTicketProductOtherChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表其他变动费数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductOtherChangeDaoImpl") +public class CostTicketProductOtherChangeDaoImpl extends BaseDaoImpl implements CostTicketProductOtherChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductTypeDaoImpl.java new file mode 100644 index 0000000..c9e3c6c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketProductTypeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketProductTypeDao; +import com.jwsaas.entity.food.CostTicketProductType; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表分类统计数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductTypeDaoImpl") +public class CostTicketProductTypeDaoImpl extends BaseDaoImpl implements CostTicketProductTypeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateDaoImpl.java new file mode 100644 index 0000000..6df5a8f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateDaoImpl.java @@ -0,0 +1,101 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.CostTicketTemplateDao; +import com.jwsaas.entity.food.CostTicketTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 经营会计报表模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketTemplateDaoImpl") +public class CostTicketTemplateDaoImpl extends BaseDaoImpl implements CostTicketTemplateDao { + + @Override + public Integer saveTemplateRelation(String tenantId, List templates) { + Integer result = 0; + String defaultStatement = CostTicketTemplate.class.getName() + "Mapper.saveTemplateRelation"; + Assert.notEmpty(templates, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < templates.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(templates.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(templates.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, templates.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getListByCriteria(String tenantId, String property, Criteria criteria) { + return getListByCriteria(tenantId,property,criteria,false); + } + + @Override + public List getListByCriteria(String tenantId, String property, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + Assert.notNull(property, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = CostTicketTemplate.class.getName() + "Mapper.getListByCriteria"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + } + + @Override + public Integer deleteTemplateRelationByCriteria(String tenantId, Criteria criteria) { + return deleteTemplateRelationByCriteria(tenantId,criteria,false); + } + + @Override + public Integer deleteTemplateRelationByCriteria(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = CostTicketTemplate.class.getName() + "Mapper.deleteTemplateRelationByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductChangeDaoImpl.java new file mode 100644 index 0000000..fe019ea --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketTemplateProductChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表生产变动费模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketTemplateProductChangeDaoImpl") +public class CostTicketTemplateProductChangeDaoImpl extends BaseDaoImpl implements CostTicketTemplateProductChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductFixedChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductFixedChangeDaoImpl.java new file mode 100644 index 0000000..3617d92 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductFixedChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketTemplateProductFixedChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductFixedChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表固定费模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketTemplateProductFixedChangeDaoImpl") +public class CostTicketTemplateProductFixedChangeDaoImpl extends BaseDaoImpl implements CostTicketTemplateProductFixedChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductMoreChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductMoreChangeDaoImpl.java new file mode 100644 index 0000000..9b3ca2f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductMoreChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketTemplateProductMoreChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductMoreChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表辅助生产变动费模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketTemplateProductMoreChangeDaoImpl") +public class CostTicketTemplateProductMoreChangeDaoImpl extends BaseDaoImpl implements CostTicketTemplateProductMoreChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductOtherChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductOtherChangeDaoImpl.java new file mode 100644 index 0000000..1fd5ebe --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CostTicketTemplateProductOtherChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CostTicketTemplateProductOtherChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductOtherChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 经营会计报表其他变动费模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CostTicketTemplateProductOtherChangeDaoImpl") +public class CostTicketTemplateProductOtherChangeDaoImpl extends BaseDaoImpl implements CostTicketTemplateProductOtherChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponCodeDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponCodeDetailDaoImpl.java new file mode 100644 index 0000000..5588f68 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponCodeDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CouponCodeDetailDao; +import com.jwsaas.entity.food.CouponCodeDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 优惠券券码信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CouponCodeDetailDaoImpl") +public class CouponCodeDetailDaoImpl extends BaseDaoImpl implements CouponCodeDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponDaoImpl.java new file mode 100644 index 0000000..dd4379e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.CouponDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Coupon; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 优惠券信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CouponDaoImpl") +public class CouponDaoImpl extends BaseDaoImpl implements CouponDao { + + @Override + public List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = Coupon.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("c.tenantId", tenantId)); + criteria.add(Restrictions.eq("cs.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponStoreDaoImpl.java new file mode 100644 index 0000000..735ca5b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponStoreDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.CouponStoreDao; +import com.jwsaas.entity.food.CouponStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 优惠券门店关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CouponStoreDaoImpl") +public class CouponStoreDaoImpl extends BaseDaoImpl implements CouponStoreDao { + + + @Override + public List getStoreIdList(String tenantId, Criteria criteria) { + return getStoreIdList(tenantId,criteria,false); + } + + @Override + public List getStoreIdList(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = CouponStore.class.getName() + "Mapper.getStoreIdList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketDaoImpl.java new file mode 100644 index 0000000..09e6111 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.CouponTicketDao; +import com.jwsaas.entity.food.CouponTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 菜品优惠券单据数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CouponTicketDaoImpl") +public class CouponTicketDaoImpl extends BaseDaoImpl implements CouponTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketProductDaoImpl.java new file mode 100644 index 0000000..67c4ded --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketProductDaoImpl.java @@ -0,0 +1,53 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.CouponTicketProductDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.CouponTicketProduct; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 商品优惠券菜品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CouponTicketProductDaoImpl") +public class CouponTicketProductDaoImpl extends BaseDaoImpl implements CouponTicketProductDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = CouponTicketProduct.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("cp.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List> getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = CouponTicketProduct.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("cp.tenantId", tenantId)); + criteria.add(Restrictions.eq("cts.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketStoreDaoImpl.java new file mode 100644 index 0000000..8e27425 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/CouponTicketStoreDaoImpl.java @@ -0,0 +1,43 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.CouponTicketStoreDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.CouponTicketStore; + +/** + * 菜品优惠券门店数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "CouponTicketStoreDaoImpl") +public class CouponTicketStoreDaoImpl extends BaseDaoImpl implements CouponTicketStoreDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = CouponTicketStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("cs.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DeliverDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DeliverDaoImpl.java new file mode 100644 index 0000000..ea2a352 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DeliverDaoImpl.java @@ -0,0 +1,96 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.DeliverDao; +import com.jwsaas.entity.food.Deliver; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 配送员信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DeliverDaoImpl") +public class DeliverDaoImpl extends BaseDaoImpl implements DeliverDao { + + @Override + public List getStoreIdsByDeliverId(String tenantId, String deliverId) { + return getStoreIdsByDeliverId(tenantId,deliverId,false); + } + + @Override + public List getStoreIdsByDeliverId(String tenantId, String deliverId, boolean isBatch) { + String defaultStatement = Deliver.class.getName() + "Mapper.getStoreIdsByDeliverId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("deliverId", deliverId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer saveStoreRelations(String tenantId, List delivers) { + Integer result = 0; + String defaultStatement = Deliver.class.getName() + "Mapper.saveStoreRelations"; + Assert.notEmpty(delivers, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < delivers.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(delivers.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(delivers.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, delivers.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public Integer deleteRelations(String tenantId, Criteria criteria) { + return deleteRelations(tenantId,criteria,false); + } + + @Override + public Integer deleteRelations(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = Deliver.class.getName() + "Mapper.deleteRelations"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DfsFileDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DfsFileDaoImpl.java new file mode 100644 index 0000000..c887616 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DfsFileDaoImpl.java @@ -0,0 +1,82 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.dao.food.DfsFileDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.DfsFile; + +/** + * 文件管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DfsFileDaoImpl") +public class DfsFileDaoImpl extends BaseDaoImpl implements DfsFileDao { + @Override + public Integer updateUseCount(String tenantId, String userName, List list) { + Integer result = 0; + String defaultStatement = DfsFile.class.getName() + "Mapper.updateUseCount"; + Assert.notEmpty(list, "parameter 'list' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + Map parameter = null; + for (int i = 0; i < list.size(); i++) { + parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("modifyUser", userName); + parameter.put("groupName", list.get(i)[0]); + parameter.put("fileName", list.get(i)[1]); + + sqlSession.update(defaultStatement, parameter); + + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public Integer updateDeleteCount(String tenantId, String userName, List list) { + Integer result = 0; + String defaultStatement = DfsFile.class.getName() + "Mapper.updateDeleteCount"; + Assert.notEmpty(list, "parameter 'list' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + Map parameter = null; + for (int i = 0; i < list.size(); i++) { + parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("modifyUser", userName); + parameter.put("groupName", list.get(i)[0]); + parameter.put("fileName", list.get(i)[1]); + + sqlSession.update(defaultStatement, parameter); + + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchSettlePlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchSettlePlanDaoImpl.java new file mode 100644 index 0000000..0eb5d41 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchSettlePlanDaoImpl.java @@ -0,0 +1,113 @@ +package com.jwsaas.dao.food.impl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.DispatchSettlePlanDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.DispatchSettlePlan; + +/** + * 配送结算方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanDaoImpl") +public class DispatchSettlePlanDaoImpl extends BaseDaoImpl implements DispatchSettlePlanDao { + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria) { + return getListByStoreId(tenantId, storeId, criteria, false); + } + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = DispatchSettlePlan.class.getName() + "Mapper.getListByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + criteria.add(Restrictions.eq("ps.storeId", storeId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getAllStoreId(String tenantId) { + String defaultStatement = DispatchSettlePlan.class.getName() + "Mapper.getAllStoreId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer saveStoreRelation(String tenantId, List plans) { + Integer result = 0; + String defaultStatement = DispatchSettlePlan.class.getName() + "Mapper.saveStoreRelation"; + Assert.notEmpty(plans, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < plans.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(plans.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(plans.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, plans.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getStoreIdByPlanId(String tenantId, String planId) { + String defaultStatement = DispatchSettlePlan.class.getName() + "Mapper.getStoreIdByPlanId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("planId", planId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deleteStoreRelationByPlanId(String tenantId, String id) { + return deleteStoreRelationByPlanId(tenantId,id,false); + } + + @Override + public Integer deleteStoreRelationByPlanId(String tenantId, String id, boolean isBatch) { + String defaultStatement = DispatchSettlePlan.class.getName() + "Mapper.deleteStoreRelationByPlanId"; + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, id); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, id); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchSettlePlanPayModeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchSettlePlanPayModeDaoImpl.java new file mode 100644 index 0000000..1e27e69 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchSettlePlanPayModeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.DispatchSettlePlanPayModeDao; +import com.jwsaas.entity.food.DispatchSettlePlanPayMode; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送结算方案收银方式关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanPayModeDaoImpl") +public class DispatchSettlePlanPayModeDaoImpl extends BaseDaoImpl implements DispatchSettlePlanPayModeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketDaoImpl.java new file mode 100644 index 0000000..1ca4731 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketDaoImpl.java @@ -0,0 +1,62 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.DispatchTicketDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.DispatchTicket; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; +import java.util.Map; + +/** + * 配送单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDaoImpl") +public class DispatchTicketDaoImpl extends BaseDaoImpl implements DispatchTicketDao { + + @Override + public List getTicketIdsList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = DispatchTicket.class.getName() + "Mapper.getTicketIdsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerWithDifferentMoneySummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = DispatchTicket.class.getName() + "Mapper.getPagerWithDifferentMoneySummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListWithDifferentMoneySummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement =DispatchTicket.class.getName() + "Mapper.getListWithDifferentMoneySummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getListWithProductIds(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement =DispatchTicket.class.getName() + "Mapper.getListWithProductIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("t.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketDetailDaoImpl.java new file mode 100644 index 0000000..3012bf0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketDetailDaoImpl.java @@ -0,0 +1,93 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.DispatchTicketDetailDao; +import com.jwsaas.entity.food.DispatchTicketDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 配送单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDetailDaoImpl") +public class DispatchTicketDetailDaoImpl extends BaseDaoImpl implements DispatchTicketDetailDao { + + @Override + public List getListBydispatchSummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = DispatchTicketDetail.class.getName() + "Mapper.getListBydispatchSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerBydispatchSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = DispatchTicketDetail.class.getName() + "Mapper.getPagerBydispatchSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getPagerWithTypeIdBydispatchSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = DispatchTicketDetail.class.getName() + "Mapper.getPagerWithTypeIdBydispatchSummary"; + criteria.add(Restrictions.eq("ticket.tenantId",tenantId)); + Map parameter = new HashMap(); + String conditionSQL = StringUtils.isNotBlank(criteria.getCondition()) ? criteria.getCondition() : null; + String order = ""; + + if(StringUtils.isEmpty(conditionSQL)){ + order = null; + }else{ + if(StringUtils.contains(conditionSQL,"ORDER")){ + order = conditionSQL.substring(conditionSQL.indexOf("ORDER")); + order = order.replace("ORDER BY",""); + conditionSQL = conditionSQL.substring(0,conditionSQL.indexOf("ORDER")); + }else{ + order = null; + } + } + parameter.put("conditionSQL", conditionSQL); + parameter.put("tenantId", tenantId); + parameter.put("order", order); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getListWithTypeIdBydispatchSummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = DispatchTicketDetail.class.getName() + "Mapper.getListWithTypeIdBydispatchSummary"; + criteria.add(Restrictions.eq("ticket.tenantId",tenantId)); + Map parameter = new HashMap(); + String conditionSQL = StringUtils.isNotBlank(criteria.getCondition()) ? criteria.getCondition() : null; + String order = ""; + if(StringUtils.isEmpty(conditionSQL)){ + order = null; + }else{ + if(StringUtils.contains(conditionSQL,"ORDER")){ + order = conditionSQL.substring(conditionSQL.indexOf("ORDER"),conditionSQL.indexOf("limit")); + conditionSQL = conditionSQL.replace(order,""); + order = order.replace("ORDER BY",""); + }else{ + order = null; + } + } + parameter.put("conditionSQL", conditionSQL); + parameter.put("tenantId", tenantId); + parameter.put("order", order); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketLogDaoImpl.java new file mode 100644 index 0000000..3bbc18a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.DispatchTicketLogDao; +import com.jwsaas.entity.food.DispatchTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketLogDaoImpl") +public class DispatchTicketLogDaoImpl extends BaseDaoImpl implements DispatchTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketDaoImpl.java new file mode 100644 index 0000000..0e9b8c5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.DispatchpriceTicketDao; +import com.jwsaas.entity.food.DispatchpriceTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送价格管理单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchpriceTicketDaoImpl") +public class DispatchpriceTicketDaoImpl extends BaseDaoImpl implements DispatchpriceTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketMaterialDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketMaterialDaoImpl.java new file mode 100644 index 0000000..0f3c9bc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketMaterialDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.DispatchpriceTicketMaterialDao; +import com.jwsaas.entity.food.DispatchpriceTicketMaterial; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送价格单原料数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchpriceTicketMaterialDaoImpl") +public class DispatchpriceTicketMaterialDaoImpl extends BaseDaoImpl implements DispatchpriceTicketMaterialDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketStoreDaoImpl.java new file mode 100644 index 0000000..ea16c56 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/DispatchpriceTicketStoreDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.DispatchpriceTicketStoreDao; +import com.jwsaas.entity.food.DispatchpriceTicketStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送价格单门店数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "DispatchpriceTicketStoreDaoImpl") +public class DispatchpriceTicketStoreDaoImpl extends BaseDaoImpl implements DispatchpriceTicketStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeCategoryFoodDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeCategoryFoodDaoImpl.java new file mode 100644 index 0000000..7c588c0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeCategoryFoodDaoImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ElemeCategoryFoodDao; +import com.jwsaas.entity.food.ElemeCategoryFood; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 饿了么分类菜品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ElemeCategoryFoodDaoImpl") +public class ElemeCategoryFoodDaoImpl extends BaseDaoImpl implements ElemeCategoryFoodDao { + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ElemeCategoryFood.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("food.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeFoodCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeFoodCategoryDaoImpl.java new file mode 100644 index 0000000..ff128f5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeFoodCategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ElemeFoodCategoryDao; +import com.jwsaas.entity.food.ElemeFoodCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 饿了么菜品分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ElemeFoodCategoryDaoImpl") +public class ElemeFoodCategoryDaoImpl extends BaseDaoImpl implements ElemeFoodCategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeOrderDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeOrderDetailDaoImpl.java new file mode 100644 index 0000000..350f7a0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeOrderDetailDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ElemeOrderDetailDao; +import com.jwsaas.entity.food.ElemeOrderDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 饿了么订单信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ElemeOrderDetailDaoImpl") +public class ElemeOrderDetailDaoImpl extends BaseDaoImpl implements ElemeOrderDetailDao { + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) { + return getListReportDataSummary(tenantId,criteria,false); + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ElemeOrderDetail.class.getName() + "Mapper.getListReportDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeOrderDetailGroupDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeOrderDetailGroupDaoImpl.java new file mode 100644 index 0000000..fbb8763 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ElemeOrderDetailGroupDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ElemeOrderDetailGroupDao; +import com.jwsaas.entity.food.ElemeOrderDetailGroup; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 饿了么订单篮子明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ElemeOrderDetailGroupDaoImpl") +public class ElemeOrderDetailGroupDaoImpl extends BaseDaoImpl implements ElemeOrderDetailGroupDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ErpPosSetDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ErpPosSetDaoImpl.java new file mode 100644 index 0000000..8fac49b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ErpPosSetDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ErpPosSetDao; +import com.jwsaas.entity.food.ErpPosSet; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * ERP方POS设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ErpPosSetDaoImpl") +public class ErpPosSetDaoImpl extends BaseDaoImpl implements ErpPosSetDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/FeeItemDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/FeeItemDaoImpl.java new file mode 100644 index 0000000..089869b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/FeeItemDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.FeeItemDao; +import com.jwsaas.entity.food.FeeItem; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 费用项目数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "FeeItemDaoImpl") +public class FeeItemDaoImpl extends BaseDaoImpl implements FeeItemDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/KdsPlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/KdsPlanDaoImpl.java new file mode 100644 index 0000000..1e03300 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/KdsPlanDaoImpl.java @@ -0,0 +1,121 @@ +package com.jwsaas.dao.food.impl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.KdsPlanDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.KdsPlan; +import org.springframework.util.Assert; + +/** + * 厨房显示方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "KdsPlanDaoImpl") +public class KdsPlanDaoImpl extends BaseDaoImpl implements KdsPlanDao { + + @Override + public List getListBystoreId(String tenantId, String storeId) { + String defaultStatement = KdsPlan.class.getName() + "Mapper.getListBystoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer saveKdsPlanStoreRelation(String tenantId, List kitPlans) { + Integer result = 0; + String defaultStatement = KdsPlan.class.getName() + "Mapper.saveKdsPlanStoreRelation"; + Assert.notEmpty(kitPlans, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < kitPlans.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(kitPlans.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(kitPlans.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, kitPlans.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getKdsPlanStoreIdsByPlanId(String tenantId, String id) { + String defaultStatement = KdsPlan.class.getName() + "Mapper.getKdsPlanStoreIdsByPlanId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("planId", id); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deleteKdsPlanStoreByCriteria(String tenantId, Criteria criteria) { + return deleteKdsPlanStoreByCriteria(tenantId,criteria,false); + } + + @Override + public Integer deleteKdsPlanStoreByCriteria(String tenantId, Criteria criteria,Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = KdsPlan.class.getName() + "Mapper.deleteKdsPlanStoreByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public Integer saveKdsPlanStoreRelationSigle(String tenantId, List kdsPlans) { + Integer result = 0; + String defaultStatement = KdsPlan.class.getName() + "Mapper.saveKdsPlanStoreRelation"; + Assert.notEmpty(kdsPlans, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(); + try { + for (int i = 0; i < kdsPlans.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(kdsPlans.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(kdsPlans.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, kdsPlans.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/KitPlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/KitPlanDaoImpl.java new file mode 100644 index 0000000..e8322ca --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/KitPlanDaoImpl.java @@ -0,0 +1,76 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.food.KitPlanDao; +import com.jwsaas.entity.food.KitPlan; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 厨房打印方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "KitPlanDaoImpl") +public class KitPlanDaoImpl extends BaseDaoImpl implements KitPlanDao { + + @Override + public Integer saveKitPlanStoreRelation(String tenantId, List list) { + Integer result = 0; + String defaultStatement = KitPlan.class.getName() + "Mapper.saveKitPlanStoreRelation"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getKitPlanStoreIdsByPlanId(String tenantId, String id) { + String defaultStatement = KitPlan.class.getName() + "Mapper.getKitPlanStoreIdsByPlanId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", id); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deleteKitPlanStoreByCriteria(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = KitPlan.class.getName() + "Mapper.deleteKitPlanStoreByCriteria"; + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + + @Override + public List getListBystoreId(String tenantId, String storeId) { + String defaultStatement = KitPlan.class.getName() + "Mapper.getListBystoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeBurdenDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeBurdenDaoImpl.java new file mode 100644 index 0000000..2003aa3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeBurdenDaoImpl.java @@ -0,0 +1,61 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.MakeBurdenDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.MakeBurden; +import com.jwsaas.entity.food.MakeDetail; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 做法配料BOM表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MakeBurdenDaoImpl") +public class MakeBurdenDaoImpl extends BaseDaoImpl implements MakeBurdenDao { + + @Override + public List getPager4MakeDetail(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = MakeBurden.class.getName() + "Mapper.getPager4MakeDetail"; + criteria.add(Restrictions.eq("md.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria) { + return getListWithProduct(tenantId, criteria, false); + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = MakeBurden.class.getName() + "Mapper.getListWithProduct"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getMakeIdListHasBurden(String tenantId) { + String defaultStatement = MakeBurden.class.getName() + "Mapper.getMakeIdListHasBurden"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeDetailDaoImpl.java new file mode 100644 index 0000000..93d590e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeDetailDaoImpl.java @@ -0,0 +1,154 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.MakeDetailDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.MakeDetail; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 菜品做法数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MakeDetailDaoImpl") +public class MakeDetailDaoImpl extends BaseDaoImpl implements MakeDetailDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = MakeDetail.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getListByProductId(String tenantId, String productId, Criteria criteria) { + Assert.notNull(productId, "parameter 'productId' can't be null or empty!"); + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = MakeDetail.class.getName() + "Mapper.getListByProductId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("md.tenantId", tenantId)); + criteria.add(Restrictions.eq("pm.productId", productId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public Integer deleteRelationProductMake(String tenantId, Criteria criteria) { + return deleteRelationProductMake(tenantId, criteria, false); + } + + @Override + public Integer deleteRelationProductMake(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = MakeDetail.class.getName() + "Mapper.deleteRelationProductMake"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + + } + + @Override + public Integer saveRelationProductMake(String tenantId, String productId, String makeDetailId) { + String defaultStatement = MakeDetail.class.getName() + "Mapper.saveRelationProductMake"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("productId", productId); + parameter.put("makeId", makeDetailId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, parameter); + } + + @Override + public Integer deleteRelationStoreMake(String tenantId, Criteria criteria) { + return deleteRelationStoreMake(tenantId, criteria, false); + } + + @Override + public Integer deleteRelationStoreMake(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = MakeDetail.class.getName() + "Mapper.deleteRelationStoreMake"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public Integer saveRelationStoreMake(String tenantId, String storeId, String makeId, Double addPrice) { + String defaultStatement = MakeDetail.class.getName() + "Mapper.saveRelationStoreMake"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("makeId", makeId); + parameter.put("addPrice", addPrice); + return sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, parameter); + } + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria) { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = MakeDetail.class.getName() + "Mapper.getListByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("md.tenantId", tenantId)); + criteria.add(Restrictions.eq("pms.storeId", storeId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = MakeDetail.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("md.tenantId", tenantId)); + criteria.add(Restrictions.eq("pms.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List> getPager4Private(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = MakeDetail.class.getName() + "Mapper.getPager4Private"; + // 增加租户过滤 + criteria.add(Restrictions.eq("md.tenantId", tenantId)); + criteria.add(Restrictions.eq("sp.storeId", storeId)); + criteria.add(Restrictions.group("b.makeId")); + criteria.add(Restrictions.group("b.productId")); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public String selectMaxValueBatch(String tenantId, String property) { + String defaultStatement = MakeDetail.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeTypeDaoImpl.java new file mode 100644 index 0000000..4177dd3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MakeTypeDaoImpl.java @@ -0,0 +1,40 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.MakeTypeDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.MakeType; + +/** + * 菜品做法分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MakeTypeDaoImpl") +public class MakeTypeDaoImpl extends BaseDaoImpl implements MakeTypeDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = MakeType.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public String selectMaxValueBatch(String tenantId, String property) { + String defaultStatement = MakeType.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanFoodCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanFoodCategoryDaoImpl.java new file mode 100644 index 0000000..5a30fc1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanFoodCategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.MeituanFoodCategoryDao; +import com.jwsaas.entity.food.MeituanFoodCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 美团菜品分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MeituanFoodCategoryDaoImpl") +public class MeituanFoodCategoryDaoImpl extends BaseDaoImpl implements MeituanFoodCategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanFoodDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanFoodDaoImpl.java new file mode 100644 index 0000000..2c32e54 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanFoodDaoImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.MeituanFoodDao; +import com.jwsaas.entity.food.MeituanFood; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 美团菜品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MeituanFoodDaoImpl") +public class MeituanFoodDaoImpl extends BaseDaoImpl implements MeituanFoodDao { + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = MeituanFood.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("food.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderDaoImpl.java new file mode 100644 index 0000000..9c7bb09 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.MeituanOrderDao; +import com.jwsaas.entity.food.MeituanOrder; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 美团订单表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MeituanOrderDaoImpl") +public class MeituanOrderDaoImpl extends BaseDaoImpl implements MeituanOrderDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderExtraDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderExtraDaoImpl.java new file mode 100644 index 0000000..0a72995 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderExtraDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.MeituanOrderExtraDao; +import com.jwsaas.entity.food.MeituanOrderExtra; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 美团订单优惠信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MeituanOrderExtraDaoImpl") +public class MeituanOrderExtraDaoImpl extends BaseDaoImpl implements MeituanOrderExtraDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderItemDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderItemDaoImpl.java new file mode 100644 index 0000000..69ef6db --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/MeituanOrderItemDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.MeituanOrderItemDao; +import com.jwsaas.entity.food.MeituanOrderItem; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 美团订单明细表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MeituanOrderItemDaoImpl") +public class MeituanOrderItemDaoImpl extends BaseDaoImpl implements MeituanOrderItemDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketDaoImpl.java new file mode 100644 index 0000000..6e4dfd1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.OtherStorageOutTicketDao; +import com.jwsaas.entity.food.OtherStorageOutTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 其他出库单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketDaoImpl") +public class OtherStorageOutTicketDaoImpl extends BaseDaoImpl implements OtherStorageOutTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketDetailDaoImpl.java new file mode 100644 index 0000000..e08115f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.OtherStorageOutTicketDetailDao; +import com.jwsaas.entity.food.OtherStorageOutTicketDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 其他出库单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketDetailDaoImpl") +public class OtherStorageOutTicketDetailDaoImpl extends BaseDaoImpl implements OtherStorageOutTicketDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketLogDaoImpl.java new file mode 100644 index 0000000..021c8a1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageOutTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.OtherStorageOutTicketLogDao; +import com.jwsaas.entity.food.OtherStorageOutTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 其他出库单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketLogDaoImpl") +public class OtherStorageOutTicketLogDaoImpl extends BaseDaoImpl implements OtherStorageOutTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketDaoImpl.java new file mode 100644 index 0000000..056d219 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.OtherStorageTicketDao; +import com.jwsaas.entity.food.OtherStorageTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 其他入库单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketDaoImpl") +public class OtherStorageTicketDaoImpl extends BaseDaoImpl implements OtherStorageTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketDetailDaoImpl.java new file mode 100644 index 0000000..2e41421 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.OtherStorageTicketDetailDao; +import com.jwsaas.entity.food.OtherStorageTicketDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 其他入库单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketDetailDaoImpl") +public class OtherStorageTicketDetailDaoImpl extends BaseDaoImpl implements OtherStorageTicketDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketLogDaoImpl.java new file mode 100644 index 0000000..153c804 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/OtherStorageTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.OtherStorageTicketLogDao; +import com.jwsaas.entity.food.OtherStorageTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 其他入库单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketLogDaoImpl") +public class OtherStorageTicketLogDaoImpl extends BaseDaoImpl implements OtherStorageTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PayModeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PayModeDaoImpl.java new file mode 100644 index 0000000..f7ff0a5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PayModeDaoImpl.java @@ -0,0 +1,117 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PayModeDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PayMode; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 收银方式数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PayModeDaoImpl") +public class PayModeDaoImpl extends BaseDaoImpl implements PayModeDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = PayMode.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap<>(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer deleteRelationStorePayMode(String tenantId, Criteria criteria) { + return deleteRelationStorePayMode(tenantId, criteria, false); + } + + @Override + public Integer deleteRelationStorePayMode(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PayMode.class.getName() + "Mapper.deleteRelationStorePayMode"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public Integer saveRelationStorePayMode(String tenantId, String storeId, Map payMode) { + String defaultStatement = PayMode.class.getName() + "Mapper.saveRelationStorePayMode"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("modeId", payMode.get("modeId")); + parameter.put("shortcut", StringUtils.isNotBlank(payMode.get("shortcut")) ? payMode.get("shortcut") : null); + parameter.put("pointFlag", payMode.get("pointFlag")); + parameter.put("frontFlag", payMode.get("frontFlag")); + parameter.put("fixeAmount", payMode.get("fixeAmount")); + parameter.put("discount", payMode.get("discount")); + parameter.put("otherRateType", payMode.get("otherRateType")); + parameter.put("otherRateValue", payMode.get("otherRateValue")); + parameter.put("periodDiscount", payMode.get("periodDiscount")); + return sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, parameter); + } + + @Override + public List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PayMode.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pms.tenantId", tenantId)); + criteria.add(Restrictions.eq("pms.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListByStoreId(String tenantId, String storeId) { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + String defaultStatement = PayMode.class.getName() + "Mapper.getListByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getAllStorePayModeList(String tenantId) { + + String defaultStatement = PayMode.class.getName() + "Mapper.getAllStorePayModeList"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getListStorePayModePeriodDiscount(String tenantId, Criteria criteria) { + return getListStorePayModePeriodDiscount(tenantId,criteria,false); + } + + @Override + public List getListStorePayModePeriodDiscount(String tenantId, Criteria criteria, boolean isBatch) { + String defaultStatement = PayMode.class.getName() + "Mapper.getListStorePayModePeriodDiscount"; + criteria.add(Restrictions.eq("store.tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PayModeStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PayModeStoreDaoImpl.java new file mode 100644 index 0000000..76692ed --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PayModeStoreDaoImpl.java @@ -0,0 +1,55 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PayModeStoreDao; +import com.jwsaas.entity.food.PayMode; +import com.jwsaas.entity.food.PayModeStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 门店支付方式数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PayModeStoreDaoImpl") +public class PayModeStoreDaoImpl extends BaseDaoImpl implements PayModeStoreDao { + + @Override + public List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PayModeStore.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pms.tenantId", tenantId)); + criteria.add(Restrictions.eq("pms.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListExtends(String tenantId, Criteria criteria) { + return getListExtends(tenantId,criteria,false); + } + + @Override + public List getListExtends(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PayModeStore.class.getName() + "Mapper.getListExtends"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pms.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PayTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PayTypeDaoImpl.java new file mode 100644 index 0000000..ae14b43 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PayTypeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PayTypeDao; +import com.jwsaas.entity.food.PayType; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 付款类型数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PayTypeDaoImpl") +public class PayTypeDaoImpl extends BaseDaoImpl implements PayTypeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PaymentParameterDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PaymentParameterDaoImpl.java new file mode 100644 index 0000000..f4bf63d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PaymentParameterDaoImpl.java @@ -0,0 +1,134 @@ +package com.jwsaas.dao.food.impl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.utils.ReflectUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.PaymentParameterDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PaymentParameter; +import org.springframework.util.Assert; + +/** + * 支付参数方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PaymentParameterDaoImpl") +public class PaymentParameterDaoImpl extends BaseDaoImpl implements PaymentParameterDao { + + @Override + public List getPaymentParameterByStoreId(String tenantId, String storeId) { + String defaultStatement = PaymentParameter.class.getName() + "Mapper.getPaymentParameterByStoreId"; + Map parameter = new HashMap(); + parameter.put("storeId", storeId); + parameter.put("tenantId", tenantId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer savePaymentParameterStoreRelation(String tenantId, List list) { + Integer result = 0; + String defaultStatement = PaymentParameter.class.getName() + "Mapper.savePaymentParameterStoreRelation"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getStoreIdsByPaymentId(String tenantId, String id) { + String defaultStatement = PaymentParameter.class.getName() + "Mapper.getStoreIdsByPaymentId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("parameterId", id); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deleteRelationByParameterIdBatch(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = PaymentParameter.class.getName() + "Mapper.deleteRelationByParameterId"; + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, criteria); + } + + @Override + public Integer deleteRelationByParameterId(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = PaymentParameter.class.getName() + "Mapper.deleteRelationByParameterId"; + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + + @Override + public Integer savePaymentParameterStoreRelationBySingleType(String tenantId, List parameterList) { + Integer result = 0; + String defaultStatement = PaymentParameter.class.getName() + "Mapper.savePaymentParameterStoreRelation"; + Assert.notEmpty(parameterList, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(); + try { + for (int i = 0; i < parameterList.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(parameterList.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(parameterList.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, parameterList.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public Boolean isPaymentExist(String tenantId, String thirdNo) { + String defaultStatement = PaymentParameter.class.getName() + "Mapper.isPaymentExist"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("thirdNo", thirdNo); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getAllPaymentParameterByStoreId(String tenantId, String storeId) { + String defaultStatement = PaymentParameter.class.getName() + "Mapper.getAllPaymentParameterByStoreId"; + Map parameter = new HashMap(); + parameter.put("storeId", storeId); + parameter.put("tenantId", tenantId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PermissionsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PermissionsDaoImpl.java new file mode 100644 index 0000000..b68ba57 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PermissionsDaoImpl.java @@ -0,0 +1,49 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.dao.food.PermissionsDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Permissions; + +/** + * 权限表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PermissionsDaoImpl") +public class PermissionsDaoImpl extends BaseDaoImpl implements PermissionsDao { + + @Override + public Integer deleteRelationship(String tenantId, String roleId) { + Assert.notNull(roleId, "parameter 'roleId' can't be null"); + String defaultStatement = Permissions.class.getName() + "Mapper.deleteRelationship"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("roleId", roleId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } + + @Override + public List getModuleIdByUserId(String tenantId, String userId) { + String defaultStatement = Permissions.class.getName() + "Mapper.getModuleIdByUserId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("userId", userId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getPermissionsByUserId(String tenantId, String userId) { + String defaultStatement = Permissions.class.getName() + "Mapper.getPermissionsByUserId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("userId", userId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosInfoDaoImpl.java new file mode 100644 index 0000000..5203827 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosInfoDaoImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.PosInfoDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PosInfo; + +/** + * POS终端信息表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosInfoDaoImpl") +public class PosInfoDaoImpl extends BaseDaoImpl implements PosInfoDao { + + @Override + public String getMaxNo(String tenantId) throws Exception { + String defaultStatement = PosInfo.class.getName() + "Mapper.getMaxNo"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosPollcodeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosPollcodeDaoImpl.java new file mode 100644 index 0000000..d6dbc16 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosPollcodeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PosPollcodeDao; +import com.jwsaas.entity.food.PosPollcode; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * POS终端注册码数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosPollcodeDaoImpl") +public class PosPollcodeDaoImpl extends BaseDaoImpl implements PosPollcodeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosRoleDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosRoleDaoImpl.java new file mode 100644 index 0000000..b9a2a61 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosRoleDaoImpl.java @@ -0,0 +1,202 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PosRoleDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PosRole; +import com.jwsaas.entity.food.StoreWorker; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 前台角色数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosRoleDaoImpl") +public class PosRoleDaoImpl extends BaseDaoImpl implements PosRoleDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = PosRole.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer deleteRoleModule(String tenantId, String roleId) { + Assert.notNull(roleId, "parameter 'roleId' can't be null"); + String defaultStatement = PosRole.class.getName() + "Mapper.deleteRoleModule"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("roleId", roleId); + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } + + @Override + public Integer saveRoleModule(String tenantId, String roleId, List moduleNoList) { + Integer result = 0; + Assert.notNull(roleId, "parameter 'roleId' can't be null"); + Assert.notEmpty(moduleNoList, "parameter 'moduleNoList' can't be null or empty!"); + String defaultStatement = PosRole.class.getName() + "Mapper.saveRoleModule"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < moduleNoList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("roleId", roleId); + relationship.put("moduleNo", moduleNoList.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public List getModuleNoList(String tenantId, String roleId) { + Assert.notNull(roleId, "parameter 'roleId' can't be null"); + String defaultStatement = PosRole.class.getName() + "Mapper.getModuleNoListByRoleId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("roleId", roleId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getPagerForWorker(String tenantId, String roleId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PosRole.class.getName() + "Mapper.getPagerForWorker"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sw.tenantId", tenantId)); + criteria.add(Restrictions.eq("swr.roleId", roleId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getPagerForWorkerNoRelation(String tenantId, String roleId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PosRole.class.getName() + "Mapper.getPagerForWorkerNoRelation"; + if (criteria == null) { + criteria = new Criteria(); + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("roleId", roleId); + parameter.put("conditionSQL", + StringUtils.isNotBlank(criteria.toSQL()) ? (StringUtils.startsWithIgnoreCase(criteria.toSQL().trim(), "order") ? criteria.toSQL() : " and " + criteria.toSQL()) : null); + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public Integer saveWorkerRelation(String tenantId, String roleId, List workerIdList) { + Integer result = 0; + Assert.notNull(roleId, "parameter 'roleId' can't be null"); + Assert.notEmpty(workerIdList, "parameter 'workerIdList' can't be null or empty!"); + + String defaultStatement = PosRole.class.getName() + "Mapper.saveWorkerRelation"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < workerIdList.size(); i++) { + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("roleId", roleId); + parameter.put("workerId", workerIdList.get(i)); + sqlSession.insert(defaultStatement, parameter); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteWorkerRelation(String tenantId, String roleId, List workerIdList) { + Integer result = 0; + Assert.notNull(roleId, "parameter 'roleId' can't be null"); + Assert.notEmpty(workerIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = PosRole.class.getName() + "Mapper.deleteWorkerRelation"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < workerIdList.size(); i++) { + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("roleId", roleId); + parameter.put("workerId", workerIdList.get(i)); + sqlSession.insert(defaultStatement, parameter); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public List getStoreWorkerPosRole(String tenantId, String storeId ,PageBounds pageBounds) { + String defaultStatement = PosRole.class.getName() + "Mapper.getStoreWorkerPosRole"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter,pageBounds); + } + + @Override + public List getStoreWorkerPosModule(String tenantId, String storeId ,PageBounds pageBounds) { + String defaultStatement = PosRole.class.getName() + "Mapper.getStoreWorkerPosModule"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter,pageBounds); + } + + @Override + public List getYgjModuleNoList(String tenantId, String workerId) { + Assert.notNull(workerId, "parameter 'roleId' can't be null"); + String defaultStatement = PosRole.class.getName() + "Mapper.getYgjModuleNoList"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("workerId", workerId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getManagerModuleNoList(String tenantId, String workerId) { + Assert.notNull(workerId, "parameter 'roleId' can't be null"); + String defaultStatement = PosRole.class.getName() + "Mapper.getManagerModuleNoList"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("workerId", workerId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanConfigDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanConfigDaoImpl.java new file mode 100644 index 0000000..a7f4467 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanConfigDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PosSetPlanConfigDao; +import com.jwsaas.entity.food.PosSetPlanConfig; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * POS下载方案设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanConfigDaoImpl") +public class PosSetPlanConfigDaoImpl extends BaseDaoImpl implements PosSetPlanConfigDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanDaoImpl.java new file mode 100644 index 0000000..c53c04c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanDaoImpl.java @@ -0,0 +1,92 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PosSetPlanDao; +import com.jwsaas.entity.food.PosSetPlan; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * POS下载方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanDaoImpl") +public class PosSetPlanDaoImpl extends BaseDaoImpl implements PosSetPlanDao { + + + @Override + public PosSetPlan savePlanStoreId(String tenantId, PosSetPlan plan) { + return savePlanStoreId(tenantId,plan,false); + } + + + + @Override + public PosSetPlan savePlanStoreId(String tenantId, PosSetPlan plan,boolean isBatch) { + String defaultStatement = PosSetPlan.class.getName() + "Mapper.savePlanStoreId"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(plan, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(plan, "tenantId", tenantId); + } + + if (BooleanUtils.isTrue(isBatch)) { + this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).insert(defaultStatement, plan); + } else { + this.sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, plan); + } + + return plan; + } + + @Override + public List getStoreIdsByPlanId(String tenantId, String planId) { + String defaultStatement = PosSetPlan.class.getName() + "Mapper.getStoreIdsByPlanId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("planId", planId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deletePlanStoreIdByCriteria(String tenantId, Criteria criteria) { + return deletePlanStoreIdByCriteria(tenantId,criteria,false); + } + + @Override + public Integer deletePlanStoreIdByCriteria(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = PosSetPlan.class.getName() + "Mapper.deletePlanStoreIdByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public List getPlanIdsByStoreId(String tenantId, String storeId) { + String defaultStatement = PosSetPlan.class.getName() + "Mapper.getPlanIdsByStoreId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanModuleDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanModuleDaoImpl.java new file mode 100644 index 0000000..ca98705 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanModuleDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PosSetPlanModuleDao; +import com.jwsaas.entity.food.PosSetPlanModule; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * POS下载方案模块数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanModuleDaoImpl") +public class PosSetPlanModuleDaoImpl extends BaseDaoImpl implements PosSetPlanModuleDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanResourcesDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanResourcesDaoImpl.java new file mode 100644 index 0000000..3788e6e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanResourcesDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PosSetPlanResourcesDao; +import com.jwsaas.entity.food.PosSetPlanResources; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * POS下载方案资源数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanResourcesDaoImpl") +public class PosSetPlanResourcesDaoImpl extends BaseDaoImpl implements PosSetPlanResourcesDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanShortcutDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanShortcutDaoImpl.java new file mode 100644 index 0000000..e64bc5d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PosSetPlanShortcutDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PosSetPlanShortcutDao; +import com.jwsaas.entity.food.PosSetPlanShortcut; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * POS下载方案快捷操作数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanShortcutDaoImpl") +public class PosSetPlanShortcutDaoImpl extends BaseDaoImpl implements PosSetPlanShortcutDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PrintImageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PrintImageDaoImpl.java new file mode 100644 index 0000000..6b142f9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PrintImageDaoImpl.java @@ -0,0 +1,158 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PrintImageDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PrintImage; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 小票打印图片数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PrintImageDaoImpl") +public class PrintImageDaoImpl extends BaseDaoImpl implements PrintImageDao { + + @Override + public List getPager4RelatedStore(String tenantId, String imageId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PrintImage.class.getName() + "Mapper.getPager4RelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = PrintImage.class.getName() + "Mapper.getPager4RelatedStore";// 包含品牌 + } + // 增加租户过滤 + criteria.add(Restrictions.eq("s.tenantId", tenantId)); + criteria.add(Restrictions.eq("pis.imageId", imageId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getPager4UnRelatedStore(String tenantId, String imageId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PrintImage.class.getName() + "Mapper.getPager4UnRelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = PrintImage.class.getName() + "Mapper.getPager4UnRelatedStore";// 包含品牌 + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("imageId", imageId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getAll4UnRelatedStore(String tenantId, String imageId, Criteria criteria) { + return getAll4UnRelatedStore(tenantId, imageId, criteria, false); + } + + @Override + public List getAll4UnRelatedStore(String tenantId, String imageId, Criteria criteria, Boolean isBatch) { + String defaultStatement = PrintImage.class.getName() + "Mapper.getAll4UnRelatedStoreNoBrand";// 不包含品牌 + if (criteria.toSQL().contains(".brandId")) { + defaultStatement = PrintImage.class.getName() + "Mapper.getAll4UnRelatedStore";// 包含品牌 + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("imageId", imageId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + if (BooleanUtils.isTrue(isBatch)) { + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer saveStoreRelated(String tenantId, String imageId, List storeIdList, String currentUser) { + Integer result = 0; + String defaultStatement = PrintImage.class.getName() + "Mapper.saveStoreRelated"; + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("imageId", imageId); + relationship.put("storeId", storeIdList.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelated(String tenantId, String imageId, List storeIdList) { + Integer result = 0; + String defaultStatement = PrintImage.class.getName() + "Mapper.deleteStoreRelated"; + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("imageId", imageId); + relationship.put("storeId", storeIdList.get(i)); + sqlSession.delete(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer deleteStoreRelated(String tenantId, String imageId) { + return deleteStoreRelated(tenantId, imageId, false); + } + + @Override + public Integer deleteStoreRelated(String tenantId, String imageId, Boolean isBatch) { + String defaultStatement = PrintImage.class.getName() + "Mapper.deleteStoreRelatedByImageId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("imageId", imageId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + + @Override + public List getListBystoreId(String tenantId, String storeId) { + String defaultStatement = PrintImage.class.getName() + "Mapper.getListBystoreId";// 不包含品牌 + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDaoImpl.java new file mode 100644 index 0000000..1813abc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductBatchNegativeStockDao; +import com.jwsaas.entity.food.ProductBatchNegativeStock; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 负库存出库记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDaoImpl") +public class ProductBatchNegativeStockDaoImpl extends BaseDaoImpl implements ProductBatchNegativeStockDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDifferDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDifferDaoImpl.java new file mode 100644 index 0000000..6fa9cd0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDifferDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductBatchNegativeStockDifferDao; +import com.jwsaas.entity.food.ProductBatchNegativeStockDiffer; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 负库存出库差异数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDifferDaoImpl") +public class ProductBatchNegativeStockDifferDaoImpl extends BaseDaoImpl implements ProductBatchNegativeStockDifferDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNumberDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNumberDaoImpl.java new file mode 100644 index 0000000..a298e92 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchNumberDaoImpl.java @@ -0,0 +1,22 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductBatchNumberDao; +import com.jwsaas.entity.food.ProductBatchNumber; +import com.jwsaas.utils.DateUtils; +import com.jwsaas.utils.UniqueUtils; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 产品批次数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") +public class ProductBatchNumberDaoImpl extends BaseDaoImpl implements ProductBatchNumberDao { + + @Override + public String getBatchNo(String tenantId, String storageId, String productId, String productNo, String specId) { + String batchNo = DateUtils.getCurrDate() + UniqueUtils.generator(); + return batchNo; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchStockChangeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchStockChangeDaoImpl.java new file mode 100644 index 0000000..1e41cdb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchStockChangeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductBatchStockChangeDao; +import com.jwsaas.entity.food.ProductBatchStockChange; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 产品批次冲减记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockChangeDaoImpl") +public class ProductBatchStockChangeDaoImpl extends BaseDaoImpl implements ProductBatchStockChangeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchStockDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchStockDaoImpl.java new file mode 100644 index 0000000..4c00963 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBatchStockDaoImpl.java @@ -0,0 +1,241 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductBatchNumberDao; +import com.jwsaas.dao.food.ProductBatchStockDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductBatchNumber; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.DateUtils; +import com.jwsaas.utils.MathUtil; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.math.BigDecimal; +import java.util.*; + +/** + * 产品批次库存数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") +public class ProductBatchStockDaoImpl extends BaseDaoImpl implements ProductBatchStockDao { + + @Override + public Map allocateBatches(String tenantId, String storageId, String productId, String productNo, String productName, String specId, String specName, String productDescription, + Double price, Double totalQuantity, Boolean allowNegativeStock, ProductBatchNumberDao productBatchNumberDao, ProductRatioDao productRatioDao, ProductBatchStockDao productBatchStockDao) { + Map result = new HashMap<>(); + boolean status = false; + Map data = new LinkedHashMap<>(); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + criteria.add(Restrictions.gt("remainQuantity", 0)); + criteria.add(Restrictions.order("createDate", "asc")); + List batchStockList = getList(tenantId, criteria); + + Double allocatedQuantity = 0D; + ProductBatchStock lastBatchStock = null; + for (ProductBatchStock batchStock : batchStockList) { + lastBatchStock = batchStock; + + if (MathUtil.gt(new BigDecimal(batchStock.getRemainQuantity()), MathUtil.subtract(new BigDecimal(totalQuantity), new BigDecimal(allocatedQuantity)))) { + data.put(batchStock, MathUtil.subtract(new BigDecimal(totalQuantity), new BigDecimal(allocatedQuantity)).doubleValue()); + } else { + data.put(batchStock, batchStock.getRemainQuantity()); + } + allocatedQuantity = MathUtil.add(new BigDecimal(allocatedQuantity), new BigDecimal(data.get(batchStock))).doubleValue(); + + if (MathUtil.eq(allocatedQuantity, totalQuantity)) { + status = true; + break; + } + } + + boolean negativeStock = false; + Double negativeStockQuantity = 0D; + if (!status && allowNegativeStock) { + // 没有分配成功并且允许负库存 + if (lastBatchStock == null) { + negativeStockQuantity = MathUtil.subtract(new BigDecimal(totalQuantity), new BigDecimal(allocatedQuantity)).doubleValue(); + lastBatchStock = getLastBatchStock(tenantId, storageId, productId, productNo, specId); + if (lastBatchStock == null) { + // 该商品没有任何批次信息,为该商品生成一个批次信息 + lastBatchStock = createNewBatchStock(tenantId, storageId, productId, productNo, productName, specId, specName, productDescription, productBatchNumberDao, productRatioDao, + productBatchStockDao); + } + } else { + negativeStockQuantity = MathUtil.add(new BigDecimal(data.get(lastBatchStock)), MathUtil.subtract(new BigDecimal(totalQuantity), new BigDecimal(allocatedQuantity))).doubleValue(); + } + data.put(lastBatchStock, negativeStockQuantity); + negativeStock = true; + status = true; + } + + result.put("status", status); + result.put("data", data); + result.put("allocatedQuantity", allocatedQuantity); + result.put("negativeStock", negativeStock); + result.put("negativeStockQuantity", negativeStockQuantity); + return result; + } + + /** + * 根据仓库ID以及商品ID,获取该商品的最新批次(包含负库存的批次) + */ + private ProductBatchStock getLastBatchStock(String tenantId, String storageId, String productId, String productNo, String specId) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + criteria.add(Restrictions.order("createDate", "desc")); + List batchStockList = getList(tenantId, criteria); + ProductBatchStock lastBatchStock = null; + if (batchStockList != null && batchStockList.size() > 0) { + lastBatchStock = batchStockList.get(0); + } + return lastBatchStock; + } + + /** + * 生成新批次,库存数量为0,价格为0 + */ + private ProductBatchStock createNewBatchStock(String tenantId, String storageId, String productId, String productNo, String productName, String specId, String specName, String productDescription, + ProductBatchNumberDao productBatchNumberDao, ProductRatioDao productRatioDao, ProductBatchStockDao productBatchStockDao) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", productId)); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + // 产品批次,product_batch_number + ProductBatchNumber batchNumber = new ProductBatchNumber(); + batchNumber.setBatchNo(productBatchNumberDao.getBatchNo(tenantId, storageId, productId, productNo, specId));// 批次号 + batchNumber.setProductId(productId);// 原料ID + batchNumber.setProductNo(productNo);// 原料编号 + batchNumber.setProductName(productName);// 原料名称 + batchNumber.setSpecId(specId);// 规格ID + batchNumber.setSpecName(specName);// 规格名称 + batchNumber.setProductDescription(productDescription);// 原料说明 + batchNumber.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位/库存单位 + batchNumber.setDispatchUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 配送库存单位名称/库存单位名称 + batchNumber.setPurchaseUnitId(ratio.getPurchaseUnitId());// 采购单位 + batchNumber.setPurchaseUnitName(getProductUnit(tenantId, ratio.getPurchaseUnitId()).getName());// 采购单位名称 + batchNumber.setExpiryTime(DateUtils.addYear(new Date(), 1));// 过期日期 + batchNumber.setRemark(null);// 备注 + batchNumber.setStatus(1);// 状态(0-不可用;1-可用;) + batchNumber.setCreateUser("auto"); + batchNumber = productBatchNumberDao.save(tenantId, batchNumber); + + // 产品批次库存,cy_product_batch_stock + ProductBatchStock batchStock = new ProductBatchStock(); + batchStock.setBatchNo(batchNumber.getBatchNo());// 批次号 + batchStock.setStorageId(storageId);// 仓库ID + batchStock.setProductId(productId);// 原料ID + batchStock.setProductNo(productNo);// 原料编号 + batchStock.setSpecId(specId);// 规格ID + batchStock.setSupplierId(null);// 供应商ID + batchStock.setPrice(0D);// 单价 + batchStock.setQuantity(0D);// 数量 + batchStock.setRemainQuantity(0D);// 剩余数量 + batchStock.setTicketType(null);// 单据类型 + batchStock.setTicketNo(null);// 单据编号 + batchStock.setInventoryUnitId(batchNumber.getDispatchUnitId());// 库存单位 + batchStock.setInventoryUnitName(batchNumber.getDispatchUnitName());// 库存单位名称 + batchStock.setCreateUser("auto"); + batchStock = productBatchStockDao.save(tenantId, batchStock); + + return batchStock; + } + + public ProductUnit getProductUnit(String tenantId, String productUnitId) { + return getProductUnit(tenantId, productUnitId, false); + } + + public ProductUnit getProductUnit(String tenantId, String productUnitId, Boolean isBatch) { + String defaultStatement = ProductUnit.class.getName() + "Mapper.get"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", productUnitId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + + @Override + public Map allocateBatches4NegativeStockOffset(String tenantId, String storageId, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Double price, Double totalQuantity, ProductBatchNumberDao productBatchNumberDao, ProductRatioDao productRatioDao, ProductBatchStockDao productBatchStockDao) { + Map result = new HashMap<>(); + Map data = new LinkedHashMap<>(); + Double allocatedQuantity = 0D; + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + criteria.add(Restrictions.gt("remainQuantity", 0)); + criteria.add(Restrictions.order("createDate", "asc")); + List batchStockList = getList(tenantId, criteria); + for (ProductBatchStock batchStock : batchStockList) { + if (MathUtil.gt(new BigDecimal(batchStock.getRemainQuantity()), MathUtil.subtract(new BigDecimal(totalQuantity), new BigDecimal(allocatedQuantity)))) { + data.put(batchStock, MathUtil.subtract(new BigDecimal(totalQuantity), new BigDecimal(allocatedQuantity)).doubleValue()); + } else { + data.put(batchStock, batchStock.getRemainQuantity()); + } + allocatedQuantity = MathUtil.add(new BigDecimal(allocatedQuantity), new BigDecimal(data.get(batchStock))).doubleValue(); + + if (MathUtil.eq(allocatedQuantity, totalQuantity)) { + break; + } + } + + result.put("data", data); + result.put("allocatedQuantity", allocatedQuantity); + return result; + } + + @Override + public List getExtendPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductBatchStock.class.getName() + "Mapper.getExtendPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("stock.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + + @Override + public List getExtendList(String tenantId, Criteria criteria) { + return getExtendList(tenantId,criteria,false); + } + + + @Override + public List getExtendList(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductBatchStock.class.getName() + "Mapper.getExtendList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("stock.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBurdenDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBurdenDaoImpl.java new file mode 100644 index 0000000..afb668f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductBurdenDaoImpl.java @@ -0,0 +1,135 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductBurdenDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductBurden; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 产品配料BOM表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductBurdenDaoImpl") +public class ProductBurdenDaoImpl extends BaseDaoImpl implements ProductBurdenDao { + + @Override + public List getPager4ProductSpec(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductBurden.class.getName() + "Mapper.getPager4ProductSpec"; + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria) { + return getListWithProduct(tenantId, criteria, false); + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductBurden.class.getName() + "Mapper.getListWithProduct"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListNoBurden(String tenantId, Criteria criteria) { + return getListNoBurden(tenantId, criteria, false); + } + + @Override + public List getListNoBurden(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductBurden.class.getName() + "Mapper.getListNoBurden"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + List specIdList = getSpecIdListHasBurden(tenantId, isBatch); + if (CollectionUtils.isNotEmpty(specIdList)) { + criteria.add(Restrictions.notIn("ps.id", specIdList)); + } + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + public List getSpecIdListHasBurden(String tenantId) { + return getSpecIdListHasBurden(tenantId, false); + } + + public List getSpecIdListHasBurden(String tenantId, Boolean isBatch) { + String defaultStatement = ProductBurden.class.getName() + "Mapper.getSpecIdListHasBurden"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getPagerNoBurden(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductBurden.class.getName() + "Mapper.getPagerNoBurden"; + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + List specIdList = getSpecIdListHasBurden(tenantId); + if (CollectionUtils.isNotEmpty(specIdList)) { + criteria.add(Restrictions.notIn("ps.id", specIdList)); + } + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getList4ProductSpec(String tenantId, Criteria criteria) { + return getList4ProductSpec(tenantId,criteria,false); + } + + @Override + public List getList4ProductSpec(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductBurden.class.getName() + "Mapper.getList4ProductSpec"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPagerByStoreId(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductBurden.class.getName() + "Mapper.getPagerByStoreId"; + criteria.add(Restrictions.eq("a.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductDaoImpl.java new file mode 100644 index 0000000..12b36c6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductDaoImpl.java @@ -0,0 +1,191 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.alibaba.dubbo.common.utils.StringUtils; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Product; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 商品资料数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductDaoImpl") +public class ProductDaoImpl extends BaseDaoImpl implements ProductDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + return selectMaxValue(tenantId, property, false); + } + + @Override + public String selectMaxValue(String tenantId, String property, Boolean isBatch) { + String defaultStatement = Product.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + + @Override + public List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = Product.class.getName() + "Mapper.getPagerByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getPagerByTenantId(String tenantId, PageBounds pageBounds) { + String defaultStatement = Product.class.getName() + "Mapper.getPagerByTenantId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getPagerExtends(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = Product.class.getName() + "Mapper.getPagerExtends"; + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + /*** + * 获取指定门店关联所有规格商品 + */ + @Override + public List> getSpecGoodsPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = Product.class.getName() + "Mapper.getSpecGoodsPager"; + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + /** + * 获取门店关联商品品类集合 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + */ + @Override + public List> getProductType(String tenantId, Criteria criteria) { + String defaultStatement = Product.class.getName() + "Mapper.getProductType"; + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getStoresCommonProductByStoreIds(String tenantId, List storeIds, int size, String productTypeId, String brandId, String unitId, String property, String keyword) { + String defaultStatement = Product.class.getName() + "Mapper.getStoresCommonProductByStoreIds"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds); + parameter.put("size", size); + parameter.put("productTypeId", productTypeId); + parameter.put("brandId", brandId); + parameter.put("unitId", unitId); + parameter.put("property", property); + parameter.put("keyword", keyword); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + /** + * 获取门店关联商品品牌集合 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + */ + @Override + public List> getProductBrand(String tenantId, Criteria criteria) { + String defaultStatement = Product.class.getName() + "Mapper.getProductBrand"; + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public String selectMaxNoSelf(String tenantId, String storeId) { + + String defaultStatement = Product.class.getName() + "Mapper.selectMaxNoSelf"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getProductIdByCriteria(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = Product.class.getName() + "Mapper.getProductIdByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public String selectMaxNoByTypeId(String tenantId, String typeId) { + return selectMaxNoByTypeId(tenantId, typeId, false); + } + + @Override + public String selectMaxNoByTypeId(String tenantId, String typeId, boolean isBatch) { + String defaultStatement = Product.class.getName() + "Mapper.selectMaxNoByTypeId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("typeId", typeId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + + @Override + public List getPagerByStoreIdProduct(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = Product.class.getName() + "Mapper.getPagerByStoreIdProduct"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getPagerByStoreIdMore(String tenantId, String storeId, String typeId, String keyword, PageBounds pageBounds) { + String defaultStatement = Product.class.getName() + "Mapper.getPagerByStoreIdMore"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + if (StringUtils.isNotEmpty(typeId)) { + parameter.put("typeId", typeId); + } + if (StringUtils.isNotEmpty(keyword)) { + parameter.put("keyword", keyword); + } + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductImageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductImageDaoImpl.java new file mode 100644 index 0000000..0ddbad8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductImageDaoImpl.java @@ -0,0 +1,34 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.ProductImageDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductImage; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 商品图片表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductImageDaoImpl") +public class ProductImageDaoImpl extends BaseDaoImpl implements ProductImageDao { + + @Override + public List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = ProductImage.class.getName() + "Mapper.getPagerByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + +// Criteria criteria = new Criteria(); +// criteria.add(Restrictions.eq("csp.tenantId", tenantId)); +// criteria.add(Restrictions.eq("csp.storeId", storeId)); +// return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductKdsPlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductKdsPlanDaoImpl.java new file mode 100644 index 0000000..2caa8d3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductKdsPlanDaoImpl.java @@ -0,0 +1,82 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductKdsPlanDao; +import com.jwsaas.entity.food.ProductKdsPlan; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 商品厨房显示方案设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductKdsPlanDaoImpl") +public class ProductKdsPlanDaoImpl extends BaseDaoImpl implements ProductKdsPlanDao { + + @Override + public List getStoreProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductKdsPlan.class.getName() + "Mapper.getStoreProductInfoPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("plan.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getProductIdsByStoreId(String tenantId, String storeId) { + String defaultStatement = ProductKdsPlan.class.getName() + "Mapper.getProductIdsByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer updateProductKdsPlanByProductIdAndStoreId(String tenantId, List uplist) { + Integer result = 0; + String defaultStatement = ProductKdsPlan.class.getName() + "Mapper.updateProductKdsPlanByProductIdAndStoreId"; + Assert.notEmpty(uplist, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < uplist.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(uplist.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(uplist.get(i), "tenantId", tenantId); + } + + sqlSession.update(defaultStatement, uplist.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductKdsPlan.class.getName() + "Mapper.getProductInfoPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("plan.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductKitPlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductKitPlanDaoImpl.java new file mode 100644 index 0000000..8aa832b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductKitPlanDaoImpl.java @@ -0,0 +1,95 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductKitPlanDao; +import com.jwsaas.entity.food.ProductKitPlan; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.ReflectUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 菜品厨房打印方案设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductKitPlanDaoImpl") +public class ProductKitPlanDaoImpl extends BaseDaoImpl implements ProductKitPlanDao { + + @Override + public List getStoreProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductKitPlan.class.getName() + "Mapper.getStoreProductInfoPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("dkp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getProductIdsByStoreId(String tenantId, String storeId) { + String defaultStatement = ProductKitPlan.class.getName() + "Mapper.getProductIdsByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer updateProductKitPlanByProductIdAndStoreId(String tenantId, List list) { + Integer result = 0; + String defaultStatement = ProductKitPlan.class.getName() + "Mapper.updateProductKitPlanByProductIdAndStoreId"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.update(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getProductInfoPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductKitPlan.class.getName() + "Mapper.getProductInfoPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("dkp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + + @Override + public List getProductInfosPager(String tenantId,String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductKitPlan.class.getName() + "Mapper.getProductInfosPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("dkp.tenantId", tenantId)); + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("condition", criteria.getCondition()); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeDaoImpl.java new file mode 100644 index 0000000..86a4d03 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductMakeDao; +import com.jwsaas.entity.food.ProductMake; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 产品私有做法数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductMakeDaoImpl") +public class ProductMakeDaoImpl extends BaseDaoImpl implements ProductMakeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeTemplateDaoImpl.java new file mode 100644 index 0000000..5cd288c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeTemplateDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductMakeTemplateDao; +import com.jwsaas.entity.food.ProductMakeTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 做法模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductMakeTemplateDaoImpl") +public class ProductMakeTemplateDaoImpl extends BaseDaoImpl implements ProductMakeTemplateDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeTemplateDetailDaoImpl.java new file mode 100644 index 0000000..59d194a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductMakeTemplateDetailDaoImpl.java @@ -0,0 +1,45 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductMakeTemplateDetailDao; +import com.jwsaas.entity.food.ProductMakeTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 做法模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductMakeTemplateDetailDaoImpl") +public class ProductMakeTemplateDetailDaoImpl extends BaseDaoImpl implements ProductMakeTemplateDetailDao { + + @Override + public List getDetailsList(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductMakeTemplateDetail.class.getName() + "Mapper.getDetailsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("template.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + + @Override + public List getDetailsList(String tenantId, Criteria criteria) { + return getDetailsList(tenantId, criteria, false); + } + + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductRatioDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductRatioDaoImpl.java new file mode 100644 index 0000000..c0f7efe --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductRatioDaoImpl.java @@ -0,0 +1,91 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 商品库存系数数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") +public class ProductRatioDaoImpl extends BaseDaoImpl implements ProductRatioDao { + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductRatio.class.getName() + "Mapper.getPagerExtend"; + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = ProductRatio.class.getName() + "Mapper.getPagerByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + + // Criteria criteria = new Criteria(); + // criteria.add(Restrictions.eq("pr.tenantId", tenantId)); + // criteria.add(Restrictions.eq("sp.storeId", storeId)); + // return + // this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, + // criteria, pageBounds); + } + + @Override + public List getProductIdListHasRatio(String tenantId) { + return getProductIdListHasRatio(tenantId, false); + } + + @Override + public List getProductIdListHasRatio(String tenantId, Boolean isBatch) { + String defaultStatement = ProductRatio.class.getName() + "Mapper.getProductIdListHasRatio"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductRatio.class.getName() + "Mapper.getListWithProduct"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPagerByStoreIdProduct(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = ProductRatio.class.getName() + "Mapper.getPagerByStoreIdProduct"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSpecDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSpecDaoImpl.java new file mode 100644 index 0000000..fec99e8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSpecDaoImpl.java @@ -0,0 +1,269 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductSpecDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 商品规格信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") +public class ProductSpecDaoImpl extends BaseDaoImpl implements ProductSpecDao { + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getPagerExtend"; + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria) { + return getListWithProduct(tenantId, criteria, false); + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getListWithProduct"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPagerOffShelf(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getPagerOffShelf"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getPagerByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getListByStoreIds(String tenantId, List storeIdList, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getListByStoreIds"; + criteria.add(Restrictions.eq("ps.tenantId", tenantId)); + + StringBuffer storeIds = new StringBuffer(); + for (String storeId : storeIdList) { + storeIds.append(storeId).append(","); + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds.substring(0, storeIds.length() - 1)); + parameter.put("storeSize", storeIdList.size());// 门店数量 + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public ProductSpec getWithProduct(String tenantId, String id) { + return getWithProduct(tenantId, id, false); + } + + @Override + public ProductSpec getWithProduct(String tenantId, String id, Boolean isBatch) { + Assert.notNull(id, "parameter 'id' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getWithProduct"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + } + + @Override + public List getPagerExtendWithRatio(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getPagerExtendWithRatio"; + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListExtendWithRatio(String tenantId, Criteria criteria) { + return getListExtendWithRatio(tenantId, criteria, false); + } + + @Override + public List getPagerWithProduct(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getPagerWithProduct"; + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getAllSpecIds(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getAllSpecIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + private List getListExtendWithRatio(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getListExtendWithRatio"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + + @Override + public List getProductSpecByDishNoSpecName(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = ProductSpec.class.getName() + "Mapper.getProductSpecByDishNoSpecName"; + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getSpecIdByCriteria(String tenantId, Criteria criteria) { + return getSpecIdByCriteria(tenantId,criteria,false); + } + + @Override + public List getSpecIdByCriteria(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getSpecIdByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListWithErpInfo(String tenantId, Criteria criteria) { + return getListWithErpInfo(tenantId,criteria,false); + } + + @Override + public List getListWithErpInfo(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getListWithErpInfo"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListWithProductByStoreId(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getListWithProductByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerByStoreIdProduct(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getPagerByStoreIdProduct"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getListByStoreIdProduct(String tenantId, String storeId, String productId) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getListByStoreIdProduct"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("productId", productId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getUselevelInfoListByStoreIds(String tenantId, List storeIdList, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = ProductSpec.class.getName() + "Mapper.getUselevelInfoListByStoreIds"; + criteria.add(Restrictions.eq("ps.tenantId", tenantId)); + + StringBuffer storeIds = new StringBuffer(); + for (String storeId : storeIdList) { + storeIds.append(storeId).append(","); + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds.substring(0, storeIds.length() - 1)); + parameter.put("storeSize", storeIdList.size());// 门店数量 + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getListByStoreId(String tenantId, String storeId) { + String defaultStatement = ProductSpec.class.getName() + "Mapper.getListByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStockDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStockDaoImpl.java new file mode 100644 index 0000000..076e3cf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStockDaoImpl.java @@ -0,0 +1,463 @@ +package com.jwsaas.dao.food.impl; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductBatchNegativeStockDao; +import com.jwsaas.dao.food.ProductBatchNumberDao; +import com.jwsaas.dao.food.ProductBatchStockChangeDao; +import com.jwsaas.dao.food.ProductBatchStockDao; +import com.jwsaas.dao.food.ProductStockDao; +import com.jwsaas.dao.food.ProductStockLogDao; +import com.jwsaas.dao.food.SupplierDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductBatchNegativeStock; +import com.jwsaas.entity.food.ProductBatchNumber; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.entity.food.ProductBatchStockChange; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductStock; +import com.jwsaas.entity.food.ProductStockLog; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.entity.food.Store; +import com.jwsaas.entity.food.Supplier; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.DateUtils; +import com.jwsaas.utils.MathUtil; + +/** + * 总部原料库存数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") +public class ProductStockDaoImpl extends BaseDaoImpl implements ProductStockDao { + + public ProductUnit getProductUnit(String tenantId, String productUnitId) { + return getProductUnit(tenantId, productUnitId, false); + } + + public ProductUnit getProductUnit(String tenantId, String productUnitId, Boolean isBatch) { + String defaultStatement = ProductUnit.class.getName() + "Mapper.get"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", productUnitId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + + private static Map ticketTypeMap = new HashMap<>(); + // 单据类型,1-采购入库;2-配送出库;3-转仓库;4-其他入库;5-其他出库; + static { + ticketTypeMap.put("1", "采购入库"); + ticketTypeMap.put("2", "配送出库"); + ticketTypeMap.put("3", "转仓库"); + ticketTypeMap.put("4", "其他入库"); + ticketTypeMap.put("5", "其他出库"); + ticketTypeMap.put("6", "盘亏"); + ticketTypeMap.put("7", "盘盈"); + } + + @Override + public void stockIn(String tenantId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, String productDescription, + String supplierId, String supplierNo, String stockInUnitId, Double price, Double quantity, Double money, String giveUnitId, Double giveQuantity, String operator, String pNo, + Integer ticketType, String ticketNo, ProductRatio ratio, ProductBatchNumberDao productBatchNumberDao, ProductBatchStockDao productBatchStockDao, ProductStockLogDao productStockLogDao) + throws Exception { + // operationType:操作类型,1-入库;2-出库 + int operationType = 1;// 入库 + + String inventoryUnitId = ratio.getDispatchUnitId();// 配送库存单位/库存单位 + if (StringUtils.equalsIgnoreCase(stockInUnitId, inventoryUnitId)) { + // 配送库存单位/库存单位 + // 不用做单位换算 + } else if (StringUtils.equalsIgnoreCase(stockInUnitId, ratio.getPurchaseUnitId())) { + // 采购单位 + // 单位换算 + stockInUnitId = inventoryUnitId; + quantity = MathUtil.multiply(quantity, ratio.getPdScale(), 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + price = MathUtil.divide(new BigDecimal(money), new BigDecimal(quantity), 4, BigDecimal.ROUND_HALF_UP).doubleValue();// 4位小数,四舍五入 + } else { + throw new Exception("商品("+productNo+"-"+productName+"-"+productId+")入库单位既不是库存单位也不是采购单位!"); + } + + // 产品批次,product_batch_number + ProductBatchNumber batchNumber = new ProductBatchNumber(); + batchNumber.setBatchNo(productBatchNumberDao.getBatchNo(tenantId, storageId, productId, productNo, specId));// 批次号 + batchNumber.setProductId(productId);// 原料ID + batchNumber.setProductNo(productNo);// 原料编号 + batchNumber.setProductName(productName);// 原料名称 + batchNumber.setSpecId(specId);// 规格ID + batchNumber.setSpecName(specName);// 规格名称 + batchNumber.setProductDescription(productDescription);// 原料说明 + batchNumber.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位/库存单位 + batchNumber.setDispatchUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 配送库存单位名称/库存单位名称 + batchNumber.setPurchaseUnitId(ratio.getPurchaseUnitId());// 采购单位 + batchNumber.setPurchaseUnitName(getProductUnit(tenantId, ratio.getPurchaseUnitId()).getName());// 采购单位名称 + batchNumber.setExpiryTime(DateUtils.addYear(new Date(), 1));// 过期日期 + batchNumber.setRemark(null);// 备注 + batchNumber.setStatus(1);// 状态(0-不可用;1-可用;) + batchNumber.setPNo(pNo); + batchNumber.setCreateUser(operator); + batchNumber = productBatchNumberDao.save(tenantId, batchNumber); + + // 产品批次库存,cy_product_batch_stock + ProductBatchStock batchStock = new ProductBatchStock(); + batchStock.setBatchNo(batchNumber.getBatchNo());// 批次号 + batchStock.setStorageId(storageId);// 仓库ID + batchStock.setProductId(productId);// 原料ID + batchStock.setProductNo(productNo);// 原料编号 + batchStock.setSpecId(specId);// 规格ID + batchStock.setSupplierId(supplierId);// 供应商ID + batchStock.setPrice(price);// 单价 + batchStock.setQuantity(quantity);// 数量 + batchStock.setRemainQuantity(quantity);// 剩余数量 + batchStock.setTicketType(ticketType);// 单据类型 + batchStock.setTicketNo(ticketNo);// 单据编号 + batchStock.setInventoryUnitId(batchNumber.getDispatchUnitId());// 库存单位 + batchStock.setInventoryUnitName(batchNumber.getDispatchUnitName());// 库存单位名称 + batchStock.setPNo(pNo); + batchStock.setCreateUser(operator); + batchStock = productBatchStockDao.save(tenantId, batchStock); + + // 赠品处理 + if (StringUtils.isNotBlank(giveUnitId) && giveQuantity != null && MathUtil.gt(BigDecimal.valueOf(giveQuantity), BigDecimal.ZERO)) { + // String giveUnitId, Double giveQuantity + if (StringUtils.equalsIgnoreCase(giveUnitId, inventoryUnitId)) { + // 配送库存单位/库存单位 + // 不用做单位换算 + } else if (StringUtils.equalsIgnoreCase(giveUnitId, ratio.getPurchaseUnitId())) { + // 采购单位 + // 单位换算 + giveUnitId = inventoryUnitId; + giveQuantity = MathUtil.multiply(giveQuantity, ratio.getPdScale(), 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + } else { + throw new Exception("赠送单位既不是库存单位也不是采购单位!"); + } + // 赠品入库-批次处理 + // 对于赠品,在存货记录的批次上,都将进价记录为0,进而成本也为0,作为单独的批次存在。 + + // 产品批次,product_batch_number + ProductBatchNumber batchNumber4Give = new ProductBatchNumber(); + batchNumber4Give.setBatchNo(productBatchNumberDao.getBatchNo(tenantId, storageId, productId, productNo, specId));// 批次号 + batchNumber4Give.setProductId(productId);// 原料ID + batchNumber4Give.setProductNo(productNo);// 原料编号 + batchNumber4Give.setProductName(productName);// 原料名称 + batchNumber4Give.setSpecId(specId);// 规格ID + batchNumber4Give.setSpecName(specName);// 规格名称 + batchNumber4Give.setProductDescription(productDescription);// 原料说明 + batchNumber4Give.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位/库存单位 + batchNumber4Give.setDispatchUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 配送库存单位名称/库存单位名称 + batchNumber4Give.setPurchaseUnitId(ratio.getPurchaseUnitId());// 采购单位 + batchNumber4Give.setPurchaseUnitName(getProductUnit(tenantId, ratio.getPurchaseUnitId()).getName());// 采购单位名称 + batchNumber4Give.setExpiryTime(DateUtils.addYear(new Date(), 1));// 过期日期 + batchNumber4Give.setRemark(null);// 备注 + batchNumber4Give.setStatus(1);// 状态(0-不可用;1-可用;) + batchNumber4Give.setPNo(pNo); + batchNumber4Give.setCreateUser(operator); + batchNumber4Give = productBatchNumberDao.save(tenantId, batchNumber4Give); + + // 产品批次库存,cy_product_batch_stock + ProductBatchStock batchStock4Give = new ProductBatchStock(); + batchStock4Give.setBatchNo(batchNumber4Give.getBatchNo());// 批次号 + batchStock4Give.setStorageId(storageId);// 仓库ID + batchStock4Give.setProductId(productId);// 原料ID + batchStock4Give.setProductNo(productNo);// 原料编号 + batchStock4Give.setSpecId(specId);// 规格ID + batchStock4Give.setSupplierId(supplierId);// 供应商ID + batchStock4Give.setPrice(0D);// 单价 + batchStock4Give.setQuantity(giveQuantity);// 数量 + batchStock4Give.setRemainQuantity(giveQuantity);// 剩余数量 + batchStock4Give.setTicketType(ticketType);// 单据类型 + batchStock4Give.setTicketNo(ticketNo);// 单据编号 + batchStock4Give.setInventoryUnitId(batchNumber4Give.getDispatchUnitId());// 库存单位 + batchStock4Give.setInventoryUnitName(batchNumber4Give.getDispatchUnitName());// 库存单位名称 + batchStock4Give.setPNo(pNo); + batchStock4Give.setCreateUser(operator); + batchStock4Give = productBatchStockDao.save(tenantId, batchStock4Give); + + } else { + giveUnitId = inventoryUnitId; + giveQuantity = 0D; + } + + // 总部原料库存,cy_product_stock + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List productStockList = getList(tenantId, criteria); + ProductStock stock = null; + if (CollectionUtils.isNotEmpty(productStockList)) { + // 总部原料库存,仓库中有该商品则修改 + stock = productStockList.get(0); + // 组建修改对象 + ProductStock updateStock = new ProductStock(); + updateStock.setId(stock.getId()); + updateStock.setStockAmount(MathUtil.add(new BigDecimal(stock.getStockAmount()), MathUtil.add(new BigDecimal(quantity), new BigDecimal(giveQuantity))).doubleValue());// 库存量 + updateStock.setStockCost(MathUtil.add(new BigDecimal(stock.getStockCost()), new BigDecimal(money)).doubleValue());// 库存成本 + updateStock.setModifyUser(operator); + updateStock.setModifyDate(new Date()); + update(tenantId, updateStock); + stock = get(tenantId, stock.getId()); + } else { + // 总部原料库存,仓库中无该商品则新增 + stock = new ProductStock(); + stock.setStorageId(storageId);// 仓库ID + stock.setStorageName(storageName);// 仓库名称 + stock.setProductId(productId);// 原料ID + stock.setProductNo(productNo);// 原料编号 + stock.setProductName(productName);// 原料名称 + stock.setSpecId(specId);// 规格ID + stock.setSpecName(specName);// 规格名称 + stock.setProductDescription(productDescription);// 原料说明 + stock.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stock.setDispatchUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 配送库存单位名称 + stock.setPurchaseUnitId(ratio.getPurchaseUnitId());// 采购单位 + stock.setPurchaseUnitName(getProductUnit(tenantId, ratio.getPurchaseUnitId()).getName());// 采购单位名称 + stock.setStockAmount(MathUtil.add(new BigDecimal(quantity), new BigDecimal(giveQuantity)).doubleValue());// 库存量 + stock.setStockCost(money);// 库存成本 + stock.setCreateUser(operator); + stock = save(tenantId, stock); + } + + // 总部库存流水,cy_product_stock_log + ProductStockLog stockLog = new ProductStockLog(); + stockLog.setStorageId(storageId);// 仓库ID + stockLog.setStorageName(storageName);// 仓库名称 + stockLog.setProductId(productId);// 原料ID + stockLog.setProductNo(productNo);// 原料编号 + stockLog.setProductName(productName);// 原料名称 + stockLog.setSpecId(specId);// 规格ID + stockLog.setSpecName(specName);// 规格名称 + stockLog.setProductDescription(productDescription);// 原料说明 + stockLog.setOperationType(operationType);// 操作类型,1-入库;2-出库 + stockLog.setOrderType(ticketType);// 单据类型,1-采购入库;2-配送出库;3-转仓库;4-其他入库; + stockLog.setOrderNo(ticketNo);// 单据编号 + stockLog.setOrderTypeName(ticketTypeMap.get("" + ticketType));// 单据类型名 + stockLog.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stockLog.setDispatchUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 配送库存单位名称 + stockLog.setPurchaseUnitId(ratio.getPurchaseUnitId());// 采购单位 + stockLog.setPurchaseUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 采购单位名称 + stockLog.setAmount(MathUtil.add(new BigDecimal(quantity), new BigDecimal(giveQuantity)).doubleValue());// 发生数量 + stockLog.setAfterAmount(stock.getStockAmount());// 剩余库存数量 + stockLog.setPreAmount(MathUtil.subtract(new BigDecimal(stock.getStockAmount()), new BigDecimal(stockLog.getAmount())).doubleValue());// 原库存数量 + stockLog.setPrice(price);// 单价 + stockLog.setMoney(money);// 金额 + stockLog.setCostAmount(0D);// 成本 + stockLog.setSupplierId(supplierId); + stockLog.setSupplierNo(supplierNo); + stockLog.setCreateUser(operator); + stockLog.setPNo(pNo); + productStockLogDao.save(tenantId, stockLog); + } + + @Override + public void stockOut(String tenantId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, String productDescription, + Double price, Double quantity, Double money, String operator, Integer ticketType, String ticketNo, Store store, ProductRatio ratio, Map batches, + ProductBatchNumberDao productBatchNumberDao, ProductBatchStockDao productBatchStockDao, ProductBatchStockChangeDao productBatchStockChangeDao, ProductStockLogDao productStockLogDao, + ProductBatchNegativeStockDao productBatchNegativeStockDao, SupplierDao supplierDao) throws Exception { + // operationType:操作类型,1-入库;2-出库 + int operationType = 2;// 出库 + + BigDecimal costAmount = BigDecimal.ZERO; + // 产品批次库存,cy_product_batch_stock + for (ProductBatchStock batch : batches.keySet()) { + ProductBatchStock updateBatch = new ProductBatchStock(); + updateBatch.setId(batch.getId()); + BigDecimal remainQuantity = MathUtil.subtract(new BigDecimal(batch.getRemainQuantity()), new BigDecimal(batches.get(batch))); + updateBatch.setRemainQuantity(remainQuantity.doubleValue()); + updateBatch.setModifyUser(operator); + updateBatch.setModifyDate(new Date()); + productBatchStockDao.update(tenantId, updateBatch); + + costAmount = MathUtil.add(costAmount, MathUtil.multiply(BigDecimal.valueOf(batches.get(batch)), BigDecimal.valueOf(batch.getPrice()))); + + String batchNo = batch.getBatchNo(); + String pNo = batch.getPNo(); + // 该批次已被扣减完,则调整该批次状态为不可用 + if (MathUtil.gte(BigDecimal.ZERO, new BigDecimal(updateBatch.getRemainQuantity()))) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("batchNo", batchNo)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List batchNumberList = productBatchNumberDao.getList(tenantId, criteria); + ProductBatchNumber batchNumber = batchNumberList.get(0); + + ProductBatchNumber updateBatchNumber = new ProductBatchNumber(); + updateBatchNumber.setId(batchNumber.getId()); + updateBatchNumber.setStatus(0);// 状态(0-不可用;1-可用;) + updateBatchNumber.setModifyUser(operator); + updateBatchNumber.setModifyDate(new Date()); + productBatchNumberDao.update(tenantId, updateBatchNumber); + } + + // 产品批次冲减记录,cy_product_batch_stock_change + ProductBatchStockChange batchStockChange = new ProductBatchStockChange(); + batchStockChange.setBatchNo(batchNo);// 批次号 + batchStockChange.setStorageId(storageId);// 仓库ID + batchStockChange.setProductId(productId);// 原料ID + batchStockChange.setProductNo(productNo);// 原料编号 + batchStockChange.setSpecId(specId);// 规格ID + batchStockChange.setPriceIn(batch.getPrice());// 入库单价 + batchStockChange.setPrice(price);// 出库单价 + batchStockChange.setQuantity(batches.get(batch));// 数量 + batchStockChange.setTicketType(ticketType);// 单据类型 + batchStockChange.setTicketNo(ticketNo);// 单据编号 + batchStockChange.setInventoryUnitId(batch.getInventoryUnitId());// 库存单位 + batchStockChange.setInventoryUnitName(batch.getInventoryUnitName());// 库存单位名称 + if (StringUtils.isNotBlank(batch.getSupplierId())) { + Supplier supplier = supplierDao.get(tenantId, batch.getSupplierId()); + batchStockChange.setSupplierId(supplier != null ? supplier.getId() : null); + batchStockChange.setSupplierNo(supplier != null ? supplier.getNo() : null); + } + batchStockChange.setStoreId(store != null ? store.getId() : null); + batchStockChange.setStoreNo(store != null ? store.getNo() : null); + batchStockChange.setCreateUser(operator); + batchStockChange.setPNo(pNo);// 生产批号 + productBatchStockChangeDao.save(tenantId, batchStockChange); + + // 是否产生负库存 + if (MathUtil.gt(BigDecimal.ZERO, new BigDecimal(updateBatch.getRemainQuantity()))) { + // 产生负库存,记录负库存信息,cy_product_batch_negative_stock + ProductBatchNegativeStock batchNegativeStock = new ProductBatchNegativeStock(); + batchNegativeStock.setBatchNo(batchNo);// 批次号 + batchNegativeStock.setStorageId(storageId);// 仓库ID + batchNegativeStock.setTicketType(ticketType);// 单据类型 + batchNegativeStock.setTicketNo(ticketNo);// 单据编号 + batchNegativeStock.setProductId(productId);// 原料ID + batchNegativeStock.setProductNo(productNo);// 原料编号 + batchNegativeStock.setSpecId(specId);// 规格ID + batchNegativeStock.setInventoryUnitId(batch.getInventoryUnitId());// 库存单位 + batchNegativeStock.setInventoryUnitName(batch.getInventoryUnitName());// 库存单位名称 + batchStockChange.setStoreId(store != null ? store.getId() : null); + batchStockChange.setStoreNo(store != null ? store.getNo() : null); + batchNegativeStock.setPrice(batch.getPrice());// 暂估单价/暂估的入库价格 + if (MathUtil.gt(new BigDecimal(batch.getRemainQuantity()), BigDecimal.ZERO)) { + batchNegativeStock.setQuantity(MathUtil.subtract(new BigDecimal(batches.get(batch)), new BigDecimal(batch.getRemainQuantity())).doubleValue());// 数量,负库存数量 + } else { + batchNegativeStock.setQuantity(batches.get(batch));// 数量,负库存数量 + } + batchNegativeStock.setOffsetBatchNo(null);// 抵消批次号 + batchNegativeStock.setOffsetPrice(0D);// 抵消时的真实入库单价 + batchNegativeStock.setStatus(0);// 状态(0-未结清;1-已结清;) + batchNegativeStock.setCreateUser(operator); + productBatchNegativeStockDao.save(tenantId, batchNegativeStock); + } + + } + + // 总部原料库存,cy_product_stock + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List productStockList = getList(tenantId, criteria); + ProductStock stock = null; + if (CollectionUtils.isNotEmpty(productStockList)) { + // 总部原料库存,仓库中有该商品则修改 + stock = productStockList.get(0); + // 组建修改对象 + ProductStock updateStock = new ProductStock(); + updateStock.setId(stock.getId()); + updateStock.setStockAmount(MathUtil.subtract(new BigDecimal(stock.getStockAmount()), new BigDecimal(quantity)).doubleValue());// 库存量 + // updateStock.setStockCost(MathUtil.subtract(new BigDecimal(stock.getStockCost()), new BigDecimal(money)).doubleValue());// 库存成本 + updateStock.setStockCost(MathUtil.subtract(new BigDecimal(stock.getStockCost()), costAmount).doubleValue());// 库存成本 + updateStock.setModifyUser(operator); + updateStock.setModifyDate(new Date()); + update(tenantId, updateStock); + stock = get(tenantId, stock.getId()); + } else { + // 总部原料库存,仓库中无该商品则新增 + stock = new ProductStock(); + stock.setStorageId(storageId);// 仓库ID + stock.setStorageName(storageName);// 仓库名称 + stock.setProductId(productId);// 原料ID + stock.setProductNo(productNo);// 原料编号 + stock.setProductName(productName);// 原料名称 + stock.setSpecId(specId);// 规格ID + stock.setSpecName(specName);// 规格名称 + stock.setProductDescription(productDescription);// 原料说明 + stock.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stock.setDispatchUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 配送库存单位名称 + stock.setPurchaseUnitId(ratio.getPurchaseUnitId());// 采购单位 + stock.setPurchaseUnitName(getProductUnit(tenantId, ratio.getPurchaseUnitId()).getName());// 采购单位名称 + stock.setStockAmount(-quantity);// 库存量 + stock.setStockCost(-money);// 库存成本 + stock.setCreateUser(operator); + stock = save(tenantId, stock); + } + + // 总部库存流水,cy_product_stock_log + ProductStockLog stockLog = new ProductStockLog(); + stockLog.setStorageId(storageId);// 仓库ID + stockLog.setStorageName(storageName);// 仓库名称 + stockLog.setProductId(productId);// 原料ID + stockLog.setProductNo(productNo);// 原料编号 + stockLog.setProductName(productName);// 原料名称 + stockLog.setSpecId(specId);// 规格ID + stockLog.setSpecName(specName);// 规格名称 + stockLog.setProductDescription(productDescription);// 原料说明 + stockLog.setOperationType(operationType);// 操作类型,1-入库;2-出库 + stockLog.setOrderType(ticketType);// 单据类型,1-采购入库;2-配送出库;3-转仓库;4-其他入库;5-其他出库; + stockLog.setOrderNo(ticketNo);// 单据编号 + stockLog.setOrderTypeName(ticketTypeMap.get("" + ticketType));// 单据类型名 + stockLog.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stockLog.setDispatchUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 配送库存单位名称 + stockLog.setPurchaseUnitId(ratio.getPurchaseUnitId());// 采购单位 + stockLog.setPurchaseUnitName(getProductUnit(tenantId, ratio.getDispatchUnitId()).getName());// 采购单位名称 + stockLog.setPreAmount(MathUtil.add(new BigDecimal(stock.getStockAmount()), new BigDecimal(quantity)).doubleValue());// 原库存数量 + stockLog.setAmount(quantity);// 发生数量 + stockLog.setAfterAmount(stock.getStockAmount());// 剩余库存数量 + stockLog.setPrice(price);// 单价 + stockLog.setMoney(money);// 金额 + stockLog.setCostAmount(costAmount.doubleValue());// 成本 + stockLog.setStoreId(store != null ? store.getId() : null); + stockLog.setStoreNo(store != null ? store.getNo() : null); + stockLog.setCreateUser(operator); + // 产品批次库存,cy_product_batch_stock + String tempPNo = null; + for (ProductBatchStock batch : batches.keySet()) { + tempPNo = batch.getPNo(); + break; + } + stockLog.setPNo(tempPNo); + productStockLogDao.save(tenantId, stockLog); + + } + + @Override + public List getExtendsPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductStock.class.getName() + "Mapper.getExtendsPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("stock.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductStock.class.getName() + "Mapper.getExtendsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("stock.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStockLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStockLogDaoImpl.java new file mode 100644 index 0000000..f9d648b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStockLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductStockLogDao; +import com.jwsaas.entity.food.ProductStockLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 总部库存流水数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogDaoImpl") +public class ProductStockLogDaoImpl extends BaseDaoImpl implements ProductStockLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreOutCollectDayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreOutCollectDayDaoImpl.java new file mode 100644 index 0000000..430d95e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreOutCollectDayDaoImpl.java @@ -0,0 +1,38 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductStoreOutCollectDayDao; +import com.jwsaas.entity.food.ProductStoreOutCollectDay; +import com.jwsaas.entity.food.ProductStoreStockLog; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +/** + * 门店销售出库汇总-按天汇总数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductStoreOutCollectDayDaoImpl") +public class ProductStoreOutCollectDayDaoImpl extends BaseDaoImpl implements ProductStoreOutCollectDayDao { + + @Override + public List getStoreOutgoingCollect(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductStoreOutCollectDay.class.getName() + "Mapper.getStoreOutgoingCollect"; + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getExportList(String tenantId, Criteria fenzhidu) { + String defaultStatement = ProductStoreOutCollectDay.class.getName() + "Mapper.getExportList"; + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, fenzhidu); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreStockDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreStockDaoImpl.java new file mode 100644 index 0000000..0f9d228 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreStockDaoImpl.java @@ -0,0 +1,430 @@ +package com.jwsaas.dao.food.impl; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductStoreStockDao; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductStoreStock; +import com.jwsaas.entity.food.ProductStoreStockLog; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.MathUtil; + +/** + * 门店原料库存数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") +public class ProductStoreStockDaoImpl extends BaseDaoImpl implements ProductStoreStockDao { + + @Override + public List getStockPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductStoreStock.class.getName() + "Mapper.getStockPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("a.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getStockPagerNoStorageId(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductStoreStock.class.getName() + "Mapper.getStockPagerNoStorageId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("a.tenantId", tenantId)); + criteria.add(Restrictions.group("a.specId")); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public void stockIn(String tenantId, String storeId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Integer ticketType, String ticketTypeName, String ticketNo, String dispatchUnitId, String dispatchUnitName, String packUnitId, String packUnitName, Double price, + Double quantity, Double money, String operator, ProductRatio ratio, ProductStoreStockLogDao productStoreStockLogDao) throws Exception { + + // 门店库存单位 + // 单位换算 + quantity = MathUtil.multiply(quantity, ratio.getDpScale(), 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + price = MathUtil.divide(new BigDecimal(money), new BigDecimal(quantity), 4, BigDecimal.ROUND_HALF_UP).doubleValue();// 4位小数,四舍五入 + + // 门店原料库存,cy_product_store_stock + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List productStockList = getList(tenantId, criteria, true); + ProductStoreStock stock = null; + if (CollectionUtils.isNotEmpty(productStockList)) { + // 门店原料库存,仓库中有该商品则修改 + stock = productStockList.get(0); + // 组建修改对象 + ProductStoreStock updateStock = new ProductStoreStock(); + updateStock.setId(stock.getId()); + updateStock.setStockAmount(MathUtil.add(new BigDecimal(stock.getStockAmount()), new BigDecimal(quantity)).doubleValue());// 库存量 + updateStock.setStockCost(MathUtil.add(new BigDecimal(stock.getStockCost()), new BigDecimal(money)).doubleValue());// 库存成本 + updateStock.setModifyUser(operator); + updateStock.setModifyDate(new Date()); + update(tenantId, updateStock, true); + stock = get(tenantId, stock.getId(), true); + } else { + // 门店原料库存,仓库中无该商品则新增 + stock = new ProductStoreStock(); + stock.setStoreId(storeId);// 门店ID + stock.setStorageId(storageId);// 仓库ID + stock.setStorageName(storageName);// 仓库名称 + stock.setProductId(productId);// 原料ID + stock.setProductNo(productNo);// 原料编号 + stock.setProductName(productName);// 原料名称 + stock.setSpecId(specId);// 规格ID + stock.setSpecName(specName);// 规格名称 + stock.setProductDescription(productDescription);// 原料说明 + stock.setDispatchUnitId(dispatchUnitId);// 配送库存单位 + stock.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stock.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stock.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stock.setStockAmount(quantity);// 库存量 + stock.setStockCost(money);// 库存成本 + stock.setCreateUser(operator); + stock = save(tenantId, stock, true); + } + + // 门店库存流水,cy_product_store_stock_log + ProductStoreStockLog stockLog = new ProductStoreStockLog(); + stockLog.setStoreId(storeId);// 门店ID + stockLog.setStorageId(storageId);// 仓库ID + stockLog.setStorageName(storageName);// 仓库名称 + stockLog.setProductId(productId);// 原料ID + stockLog.setProductNo(productNo);// 原料编号 + stockLog.setProductName(productName);// 原料名称 + stockLog.setSpecId(specId);// 规格ID + stockLog.setSpecName(specName);// 规格名称 + stockLog.setProductDescription(productDescription);// 原料说明 + stockLog.setOrderType(ticketType);// 单据类型,1-采购入库;2-配送入库;3-转仓库; + stockLog.setOrderTypeName(ticketTypeName);// 单据类型名 + stockLog.setOrderNo(ticketNo);// 单据编号 + stockLog.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stockLog.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stockLog.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stockLog.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stockLog.setAmount(quantity);// 发生数量 + stockLog.setAfterAmount(stock.getStockAmount());// 剩余库存数量 + stockLog.setPreAmount(MathUtil.subtract(new BigDecimal(stock.getStockAmount()), new BigDecimal(stockLog.getAmount())).doubleValue());// 原库存数量 + stockLog.setPrice(price);// 单价 + stockLog.setMoney(money);// 金额 + stockLog.setCreateUser(operator); + productStoreStockLogDao.save(tenantId, stockLog, true); + } + + @Override + public void stockInByStoreStorageTicket(String tenantId, String storeId, String storageId, String storageName, + String productId, String productNo, String productName, String specId, + String specName, String productDescription, Integer ticketType, + String ticketTypeName, String ticketNo, String dispatchUnitId, + String dispatchUnitName, String packUnitId, String packUnitName, + Double price, Double quantity, Double money, String operator, + ProductRatio ratio, ProductStoreStockLogDao productStoreStockLogDao) throws Exception { + // 门店库存单位 + // 单位换算 + quantity = MathUtil.multiply(quantity, 1, 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + price = MathUtil.divide(new BigDecimal(money), new BigDecimal(quantity), 4, BigDecimal.ROUND_HALF_UP).doubleValue();// 4位小数,四舍五入 + + // 门店原料库存,cy_product_store_stock + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List productStockList = getList(tenantId, criteria, true); + ProductStoreStock stock = null; + if (CollectionUtils.isNotEmpty(productStockList)) { + // 门店原料库存,仓库中有该商品则修改 + stock = productStockList.get(0); + // 组建修改对象 + ProductStoreStock updateStock = new ProductStoreStock(); + updateStock.setId(stock.getId()); + updateStock.setStockAmount(MathUtil.add(new BigDecimal(stock.getStockAmount()), new BigDecimal(quantity)).doubleValue());// 库存量 + updateStock.setStockCost(MathUtil.add(new BigDecimal(stock.getStockCost()), new BigDecimal(money)).doubleValue());// 库存成本 + updateStock.setModifyUser(operator); + updateStock.setModifyDate(new Date()); + update(tenantId, updateStock, true); + stock = get(tenantId, stock.getId(), true); + } else { + // 门店原料库存,仓库中无该商品则新增 + stock = new ProductStoreStock(); + stock.setStoreId(storeId);// 门店ID + stock.setStorageId(storageId);// 仓库ID + stock.setStorageName(storageName);// 仓库名称 + stock.setProductId(productId);// 原料ID + stock.setProductNo(productNo);// 原料编号 + stock.setProductName(productName);// 原料名称 + stock.setSpecId(specId);// 规格ID + stock.setSpecName(specName);// 规格名称 + stock.setProductDescription(productDescription);// 原料说明 + stock.setDispatchUnitId(dispatchUnitId);// 配送库存单位 + stock.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stock.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stock.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stock.setStockAmount(quantity);// 库存量 + stock.setStockCost(money);// 库存成本 + stock.setCreateUser(operator); + stock = save(tenantId, stock, true); + } + + // 门店库存流水,cy_product_store_stock_log + ProductStoreStockLog stockLog = new ProductStoreStockLog(); + stockLog.setStoreId(storeId);// 门店ID + stockLog.setStorageId(storageId);// 仓库ID + stockLog.setStorageName(storageName);// 仓库名称 + stockLog.setProductId(productId);// 原料ID + stockLog.setProductNo(productNo);// 原料编号 + stockLog.setProductName(productName);// 原料名称 + stockLog.setSpecId(specId);// 规格ID + stockLog.setSpecName(specName);// 规格名称 + stockLog.setProductDescription(productDescription);// 原料说明 + stockLog.setOrderType(ticketType);// 单据类型,1-采购入库;2-配送入库;3-转仓库; + stockLog.setOrderTypeName(ticketTypeName);// 单据类型名 + stockLog.setOrderNo(ticketNo);// 单据编号 + stockLog.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stockLog.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stockLog.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stockLog.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stockLog.setAmount(quantity);// 发生数量 + stockLog.setAfterAmount(stock.getStockAmount());// 剩余库存数量 + stockLog.setPreAmount(MathUtil.subtract(new BigDecimal(stock.getStockAmount()), new BigDecimal(stockLog.getAmount())).doubleValue());// 原库存数量 + stockLog.setPrice(price);// 单价 + stockLog.setMoney(money);// 金额 + stockLog.setCreateUser(operator); + productStoreStockLogDao.save(tenantId, stockLog, true); + } + + @Override + public void stockOut(String tenantId, String storeId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Integer ticketType, String ticketTypeName, String ticketNo, String salesUnitId, String salesUnitName, String packUnitId, String packUnitName, BigDecimal price, + BigDecimal quantity, BigDecimal money, String operator, ProductRatio ratio, String dispatchUnitId, String dispatchUnitName, ProductStoreStockLogDao productStoreStockLogDao) + throws Exception { + // 门店库存单位 + // 单位换算,1包装单位=xx销售单位(psScale),1配送单位=xx包装单位(dpScale) + if (!StringUtils.equalsIgnoreCase(salesUnitId, packUnitId)) { + // 出库数量 + quantity = MathUtil.divide(quantity, new BigDecimal(ratio.getPsScale()), 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + // 出库单价 + price = MathUtil.eq(quantity, BigDecimal.ZERO) ? BigDecimal.ZERO : MathUtil.divide(money, quantity, 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + } + + // 门店原料库存,cy_product_store_stock + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List productStockList = getList(tenantId, criteria, true); + ProductStoreStock stock = null; + if (CollectionUtils.isNotEmpty(productStockList)) { + // 门店原料库存,仓库中有该商品则修改 + stock = productStockList.get(0); + // 组建修改对象 + ProductStoreStock updateStock = new ProductStoreStock(); + updateStock.setId(stock.getId()); + updateStock.setStockAmount(MathUtil.subtract(new BigDecimal(stock.getStockAmount()), quantity).doubleValue());// 库存量 + + BigDecimal tempPrice = MathUtil.eq(new BigDecimal(stock.getStockAmount()), BigDecimal.ZERO) ? price : MathUtil.divide(new BigDecimal(stock.getStockCost()), new BigDecimal(stock.getStockAmount())); + if (MathUtil.lt(tempPrice, BigDecimal.ZERO)) { + tempPrice = MathUtil.subtract(BigDecimal.ZERO, tempPrice); + } + BigDecimal tempCost = MathUtil.multiply(tempPrice, quantity); + + // updateStock.setStockCost(MathUtil.subtract(new BigDecimal(stock.getStockCost()), money).doubleValue());// 库存成本 + updateStock.setStockCost(MathUtil.subtract(new BigDecimal(stock.getStockCost()), tempCost).doubleValue());// 库存成本 + + updateStock.setModifyUser(operator); + updateStock.setModifyDate(new Date()); + update(tenantId, updateStock, true); + stock = get(tenantId, stock.getId(), true); + } else { + // 门店原料库存,仓库中无该商品则新增 + stock = new ProductStoreStock(); + stock.setStoreId(storeId);// 门店ID + stock.setStorageId(storageId);// 仓库ID + stock.setStorageName(storageName);// 仓库名称 + stock.setProductId(productId);// 原料ID + stock.setProductNo(productNo);// 原料编号 + stock.setProductName(productName);// 原料名称 + stock.setSpecId(specId);// 规格ID + stock.setSpecName(specName);// 规格名称 + stock.setProductDescription(productDescription);// 原料说明 + stock.setDispatchUnitId(dispatchUnitId);// 配送库存单位 + stock.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stock.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stock.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stock.setStockAmount(MathUtil.subtract(BigDecimal.ZERO, quantity).doubleValue());// 库存量 + stock.setStockCost(MathUtil.subtract(BigDecimal.ZERO, money).doubleValue());// 库存成本 + stock.setCreateUser(operator); + stock = save(tenantId, stock, true); + } + + // 门店库存流水,cy_product_store_stock_log + ProductStoreStockLog stockLog = new ProductStoreStockLog(); + stockLog.setStoreId(storeId);// 门店ID + stockLog.setStorageId(storageId);// 仓库ID + stockLog.setStorageName(storageName);// 仓库名称 + stockLog.setProductId(productId);// 原料ID + stockLog.setProductNo(productNo);// 原料编号 + stockLog.setProductName(productName);// 原料名称 + stockLog.setSpecId(specId);// 规格ID + stockLog.setSpecName(specName);// 规格名称 + stockLog.setProductDescription(productDescription);// 原料说明 + stockLog.setOrderType(ticketType);// 单据类型,1-采购入库;2-配送入库;3-转仓库; + stockLog.setOrderTypeName(ticketTypeName);// 单据类型名 + stockLog.setOrderNo(ticketNo);// 单据编号 + stockLog.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stockLog.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stockLog.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stockLog.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stockLog.setAmount(quantity.doubleValue());// 发生数量 + stockLog.setAfterAmount(stock.getStockAmount());// 剩余库存数量 + stockLog.setPreAmount(MathUtil.add(new BigDecimal(stockLog.getAfterAmount()), new BigDecimal(stockLog.getAmount())).doubleValue());// 原库存数量 + stockLog.setPrice(price.doubleValue());// 单价 + stockLog.setMoney(money.doubleValue());// 金额 + stockLog.setCreateUser(operator); + productStoreStockLogDao.save(tenantId, stockLog, true); + } + + @Override + public void stockOutUnBatch(String tenantId, String storeId, String storageId, String storageName, String productId, String productNo, String productName, String specId, String specName, + String productDescription, Integer ticketType, String ticketTypeName, String ticketNo, String salesUnitId, String salesUnitName, String packUnitId, String packUnitName, BigDecimal price, + BigDecimal quantity, BigDecimal money, String operator, ProductRatio ratio, String dispatchUnitId, String dispatchUnitName, ProductStoreStockLogDao productStoreStockLogDao) + throws Exception { + // 门店库存单位 + // 单位换算,1包装单位=xx销售单位(psScale),1配送单位=xx包装单位(dpScale) + if (!StringUtils.equalsIgnoreCase(salesUnitId, packUnitId)) { + // 出库数量 + quantity = MathUtil.divide(quantity, new BigDecimal(ratio.getPsScale()), 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + // 出库单价 + price = MathUtil.eq(quantity, BigDecimal.ZERO) ? BigDecimal.ZERO : MathUtil.divide(money, quantity, 4, BigDecimal.ROUND_HALF_UP);// 4位小数,四舍五入 + } + + // 门店原料库存,cy_product_store_stock + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List productStockList = getList(tenantId, criteria, false); + ProductStoreStock stock = null; + if (CollectionUtils.isNotEmpty(productStockList)) { + // 门店原料库存,仓库中有该商品则修改 + stock = productStockList.get(0); + // 组建修改对象 + ProductStoreStock updateStock = new ProductStoreStock(); + updateStock.setId(stock.getId()); + updateStock.setStockAmount(MathUtil.subtract(new BigDecimal(stock.getStockAmount()), quantity).doubleValue());// 库存量 + + BigDecimal tempPrice = MathUtil.eq(new BigDecimal(stock.getStockAmount()), BigDecimal.ZERO) ? price : MathUtil.divide(new BigDecimal(stock.getStockCost()), new BigDecimal(stock.getStockAmount())); + if (MathUtil.lt(tempPrice, BigDecimal.ZERO)) { + tempPrice = MathUtil.subtract(BigDecimal.ZERO, tempPrice); + } + BigDecimal tempCost = MathUtil.multiply(tempPrice, quantity); + + // updateStock.setStockCost(MathUtil.subtract(new BigDecimal(stock.getStockCost()), money).doubleValue());// 库存成本 + updateStock.setStockCost(MathUtil.subtract(new BigDecimal(stock.getStockCost()), tempCost).doubleValue());// 库存成本 + + updateStock.setModifyUser(operator); + updateStock.setModifyDate(new Date()); + update(tenantId, updateStock, false); + stock = get(tenantId, stock.getId(), false); + } else { + // 门店原料库存,仓库中无该商品则新增 + stock = new ProductStoreStock(); + stock.setStoreId(storeId);// 门店ID + stock.setStorageId(storageId);// 仓库ID + stock.setStorageName(storageName);// 仓库名称 + stock.setProductId(productId);// 原料ID + stock.setProductNo(productNo);// 原料编号 + stock.setProductName(productName);// 原料名称 + stock.setSpecId(specId);// 规格ID + stock.setSpecName(specName);// 规格名称 + stock.setProductDescription(productDescription);// 原料说明 + stock.setDispatchUnitId(dispatchUnitId);// 配送库存单位 + stock.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stock.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stock.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stock.setStockAmount(MathUtil.subtract(BigDecimal.ZERO, quantity).doubleValue());// 库存量 + stock.setStockCost(MathUtil.subtract(BigDecimal.ZERO, money).doubleValue());// 库存成本 + stock.setCreateUser(operator); + stock = save(tenantId, stock, false); + } + + // 门店库存流水,cy_product_store_stock_log + ProductStoreStockLog stockLog = new ProductStoreStockLog(); + stockLog.setStoreId(storeId);// 门店ID + stockLog.setStorageId(storageId);// 仓库ID + stockLog.setStorageName(storageName);// 仓库名称 + stockLog.setProductId(productId);// 原料ID + stockLog.setProductNo(productNo);// 原料编号 + stockLog.setProductName(productName);// 原料名称 + stockLog.setSpecId(specId);// 规格ID + stockLog.setSpecName(specName);// 规格名称 + stockLog.setProductDescription(productDescription);// 原料说明 + stockLog.setOrderType(ticketType);// 单据类型,1-采购入库;2-配送入库;3-转仓库; + stockLog.setOrderTypeName(ticketTypeName);// 单据类型名 + stockLog.setOrderNo(ticketNo);// 单据编号 + stockLog.setDispatchUnitId(ratio.getDispatchUnitId());// 配送库存单位 + stockLog.setDispatchUnitName(dispatchUnitName);// 配送库存单位名称 + stockLog.setPackUnitId(packUnitId);// 包装单位/门店库存单位 + stockLog.setPackUnitName(packUnitName);// 包装单位名称/门店库存单位名称 + stockLog.setAmount(quantity.doubleValue());// 发生数量 + stockLog.setAfterAmount(stock.getStockAmount());// 剩余库存数量 + stockLog.setPreAmount(MathUtil.add(new BigDecimal(stockLog.getAfterAmount()), new BigDecimal(stockLog.getAmount())).doubleValue());// 原库存数量 + stockLog.setPrice(price.doubleValue());// 单价 + stockLog.setMoney(money.doubleValue());// 金额 + stockLog.setCreateUser(operator); + productStoreStockLogDao.save(tenantId, stockLog, false); + } + + @Override + public List getStock(String tenantId, String storeId, String storageId, String productId, String specId) { + return getStock(tenantId, storeId, storageId, productId, specId, false); + } + + @Override + public List getStock(String tenantId, String storeId, String storageId, String productId, String specId, Boolean isBatch) { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notNull(productId, "parameter 'productId' can't be null or empty!"); + Assert.notNull(specId, "parameter 'specId' can't be null or empty!"); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + if (StringUtils.isNotBlank(storageId)) { + criteria.add(Restrictions.eq("storageId", storageId)); + } + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List productStockList = getList(tenantId, criteria, true); + return productStockList; + } + + @Override + public List getStockPagerWithOutOffShelf(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductStoreStock.class.getName() + "Mapper.getStockPagerWithOutOffShelf"; + // 增加租户过滤 + criteria.add(Restrictions.eq("a.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getStockPagerNoStorageIdWithOutOffShelf(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductStoreStock.class.getName() + "Mapper.getStockPagerNoStorageIdWithOutOffShelf"; + // 增加租户过滤 + criteria.add(Restrictions.eq("a.tenantId", tenantId)); + criteria.add(Restrictions.group("a.specId")); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreStockLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreStockLogDaoImpl.java new file mode 100644 index 0000000..30e5a2d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductStoreStockLogDaoImpl.java @@ -0,0 +1,72 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductStoreStockLog; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; +import java.util.Map; + +/** + * 门店库存流水数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") +public class ProductStoreStockLogDaoImpl extends BaseDaoImpl implements ProductStoreStockLogDao { + + @Override + public List> getPager4OutSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductStoreStockLog.class.getName() + "Mapper.getPager4OutSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("psl.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List> getList4OutSummary(String tenantId, Criteria criteria) { + return getList4OutSummary(tenantId,criteria,false); + } + + @Override + public List getPagerSumAmount(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductStoreStockLog.class.getName() + "Mapper.getPagerSumAmount"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List> getListSumAmount(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductStoreStockLog.class.getName() + "Mapper.getListSumAmount"; + // 增加租户过滤 + criteria.add(Restrictions.eq("cy_p_s_s_l_b.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getList4OutSummary(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductStoreStockLog.class.getName() + "Mapper.getList4OutSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("psl.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSuitDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSuitDaoImpl.java new file mode 100644 index 0000000..abd9a59 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSuitDaoImpl.java @@ -0,0 +1,35 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductSuitDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductSuit; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 套餐道菜数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDaoImpl") +public class ProductSuitDaoImpl extends BaseDaoImpl implements ProductSuitDao { + + @Override + public List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = ProductSuit.class.getName() + "Mapper.getPagerByStoreId"; +// Map parameter = new HashMap(); +// parameter.put("tenantId", tenantId); +// parameter.put("storeId", storeId); +// return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + criteria.add(Restrictions.eq("sp.storeId", storeId)); + criteria.add(Restrictions.group("ps.id")); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSuitDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSuitDetailDaoImpl.java new file mode 100644 index 0000000..06444b7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductSuitDetailDaoImpl.java @@ -0,0 +1,66 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductSuitDetailDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductSuitDetail; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 道菜明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDetailDaoImpl") +public class ProductSuitDetailDaoImpl extends BaseDaoImpl implements ProductSuitDetailDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSuitDetail.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("psud.tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPagerByStoreId(String tenantId, String storeId, PageBounds pageBounds) { + String defaultStatement = ProductSuitDetail.class.getName() + "Mapper.getPagerByStoreId"; +// Map parameter = new HashMap(); +// parameter.put("tenantId", tenantId); +// parameter.put("storeId", storeId); +// return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + criteria.add(Restrictions.eq("sp.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListExtendByStoreId(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductSuitDetail.class.getName() + "Mapper.getListExtendByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("psud.tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTemplateDaoImpl.java new file mode 100644 index 0000000..80f7d95 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTemplateDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProductTemplateDao; +import com.jwsaas.entity.food.ProductTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 商品模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductTemplateDaoImpl") +public class ProductTemplateDaoImpl extends BaseDaoImpl implements ProductTemplateDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTemplateDetailDaoImpl.java new file mode 100644 index 0000000..c8a5753 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTemplateDetailDaoImpl.java @@ -0,0 +1,51 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductTemplateDetailDao; +import com.jwsaas.entity.food.ProductTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 商品模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductTemplateDetailDaoImpl") +public class ProductTemplateDetailDaoImpl extends BaseDaoImpl implements ProductTemplateDetailDao { + + public List getDetailsList(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductTemplateDetail.class.getName() + "Mapper.getDetailsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getSpecIdList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement =ProductTemplateDetail.class.getName() + "Mapper.getSpecIdList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getDetailsList(String tenantId, Criteria criteria) { + return getDetailsList(tenantId,criteria,false); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTypeDaoImpl.java new file mode 100644 index 0000000..7a86424 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTypeDaoImpl.java @@ -0,0 +1,185 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductTypeDao; +import com.jwsaas.entity.food.ProductType; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +/** + * 商品类别数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductTypeDaoImpl") +public class ProductTypeDaoImpl extends BaseDaoImpl implements ProductTypeDao { + + @Override + public String selectMaxNo(String tenantId, String parentId) { + String defaultStatement = ProductType.class.getName() + "Mapper.selectMaxNo"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("parentId", StringUtils.isBlank(parentId) ? null : parentId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer saveRelations(String tenantId, List list) { + Integer result = 0; + String defaultStatement = ProductType.class.getName() + "Mapper.saveRelations"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getListBrandIds(String tenantId, String id) { + return getListBrandIds(tenantId,id,false); + } + + @Override + public List getListBrandIds(String tenantId, String id,boolean isBatch) { + String defaultStatement = ProductType.class.getName() + "Mapper.getListBrandIds"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer deleteRelationByCriteria(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = ProductType.class.getName() + "Mapper.deleteRelationByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public Integer deleteRelationByCriteria(String tenantId, Criteria criteria) { + return deleteRelationByCriteria(tenantId,criteria,false); + } + + @Override + public List getPagerWithBrandId(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProductType.class.getName() + "Mapper.getPagerWithBrandId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("type.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public String selectMaxNoByNumberType(String tenantId, String parentId) { + String defaultStatement = ProductType.class.getName() + "Mapper.selectMaxNoByNumberType"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("parentId", StringUtils.isBlank(parentId) ? null : parentId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getListLabelIds(String tenantId, String id) { + return getListLabelIds(tenantId,id,false); + } + + @Override + public List getListLabelIds(String tenantId, String id, boolean isBatch) { + String defaultStatement = ProductType.class.getName() + "Mapper.getListLabelIds"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListTypeIds(String tenantId, List labelIds) { + Assert.notEmpty(labelIds, "parameter 'labelIds' can't be null or empty!"); + String defaultStatement = ProductType.class.getName() + "Mapper.getListTypeIds"; + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, labelIds); + } + + @Override + public List getListTypeOneIds(String tenantId, String storeId) { + String defaultStatement = ProductType.class.getName() + "Mapper.getListTypeOneIds"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getListTypeTwoIds(String tenantId, String storeId) { + String defaultStatement = ProductType.class.getName() + "Mapper.getListTypeTwoIds"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List> getIdAndName(String tenantId) { + // TODO Auto-generated method stub + String defaultStatement = ProductType.class.getName() + "Mapper.getIdAndName"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTypeLabelInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTypeLabelInfoDaoImpl.java new file mode 100644 index 0000000..293f174 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductTypeLabelInfoDaoImpl.java @@ -0,0 +1,117 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductTypeLabelInfoDao; +import com.jwsaas.entity.food.ProductTypeLabelInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 商品类别标签数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductTypeLabelInfoDaoImpl") +public class ProductTypeLabelInfoDaoImpl extends BaseDaoImpl implements ProductTypeLabelInfoDao { + + @Override + public Integer saveRelation(String tenantId, List productTypeLabelInfoList) { + Integer result = 0; + String defaultStatement = ProductTypeLabelInfo.class.getName() + "Mapper.saveRelation"; + Assert.notEmpty(productTypeLabelInfoList, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < productTypeLabelInfoList.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(productTypeLabelInfoList.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(productTypeLabelInfoList.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, productTypeLabelInfoList.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public Integer deleteRelationByLabelId(String tenantId, String id) { + return deleteRelationByLabelId(tenantId,id,false); + } + + @Override + public Integer deleteRelationByLabelId(String tenantId, String id, boolean isBatch) { + String defaultStatement = ProductTypeLabelInfo.class.getName() + "Mapper.deleteRelationByLabelId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", id); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + + @Override + public List getTypeIdsByLabelId(String tenantId, String labelId) { + return getTypeIdsByLabelId(tenantId,labelId,false); + } + + + @Override + public List getTypeIdsByLabelId(String tenantId, String labelId,boolean isBatch) { + String defaultStatement = ProductTypeLabelInfo.class.getName() + "Mapper.getTypeIdsByLabelId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("labelId", labelId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getLabelInfos(String tenantId, Criteria criteria) { + return getLabelInfos(tenantId,criteria,false); + } + + @Override + public List getLabelInfos(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProductTypeLabelInfo.class.getName() + "Mapper.getLabelInfos"; + // 增加租户过滤 + criteria.add(Restrictions.eq("info.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductUnitDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductUnitDaoImpl.java new file mode 100644 index 0000000..6ce8082 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProductUnitDaoImpl.java @@ -0,0 +1,40 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProductUnit; + +/** + * 商品单位数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") +public class ProductUnitDaoImpl extends BaseDaoImpl implements ProductUnitDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + return selectMaxValue(tenantId, property, false); + } + + @Override + public String selectMaxValue(String tenantId, String property, Boolean isBatch) { + String defaultStatement = ProductUnit.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdPictureDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdPictureDaoImpl.java new file mode 100644 index 0000000..e772eeb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdPictureDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramAdPictureDao; +import com.jwsaas.entity.food.ProgramAdPicture; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序广告图片数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramAdPictureDaoImpl") +public class ProgramAdPictureDaoImpl extends BaseDaoImpl implements ProgramAdPictureDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceProductDaoImpl.java new file mode 100644 index 0000000..29ce400 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceProductDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramAdjustPriceProductDao; +import com.jwsaas.entity.food.ProgramAdjustPriceProduct; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序调价单商品明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramAdjustPriceProductDaoImpl") +public class ProgramAdjustPriceProductDaoImpl extends BaseDaoImpl implements ProgramAdjustPriceProductDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramAdjustPriceProduct.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("adjust.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceStoreDaoImpl.java new file mode 100644 index 0000000..71fc604 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceStoreDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramAdjustPriceStoreDao; +import com.jwsaas.entity.food.ProgramAdjustPriceStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序调价单门店明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramAdjustPriceStoreDaoImpl") +public class ProgramAdjustPriceStoreDaoImpl extends BaseDaoImpl implements ProgramAdjustPriceStoreDao { + + @Override + public List getListExtends(String tenantId, Criteria criteria) { + return getListExtends(tenantId,criteria,false); + } + + @Override + public List getListExtends(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramAdjustPriceStore.class.getName() + "Mapper.getListExtends"; + // 增加租户过滤 + criteria.add(Restrictions.eq("adjust.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceTicketDaoImpl.java new file mode 100644 index 0000000..c68ec98 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramAdjustPriceTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramAdjustPriceTicketDao; +import com.jwsaas.entity.food.ProgramAdjustPriceTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序商品调价单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramAdjustPriceTicketDaoImpl") +public class ProgramAdjustPriceTicketDaoImpl extends BaseDaoImpl implements ProgramAdjustPriceTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramDeliverAddressDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramDeliverAddressDaoImpl.java new file mode 100644 index 0000000..e588529 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramDeliverAddressDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramDeliverAddressDao; +import com.jwsaas.entity.food.ProgramDeliverAddress; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序用户配送地址数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramDeliverAddressDaoImpl") +public class ProgramDeliverAddressDaoImpl extends BaseDaoImpl implements ProgramDeliverAddressDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramEvaluateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramEvaluateDaoImpl.java new file mode 100644 index 0000000..6947836 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramEvaluateDaoImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.food.ProgramEvaluateDao; +import com.jwsaas.entity.food.ProgramEvaluate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 小程序评价表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramEvaluateDaoImpl") +public class ProgramEvaluateDaoImpl extends BaseDaoImpl implements ProgramEvaluateDao { + + @Override + public List getPager4ApiDownload(String tenantId, String openId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProgramEvaluate.class.getName() + "Mapper.getPager4ApiDownload"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("openId", openId); + String conditionSql = null; + if(StringUtils.isNotBlank(criteria.toSQL())){ + conditionSql = criteria.toSQL().trim(); + if(!StringUtils.startsWithIgnoreCase(conditionSql,"order")){ + conditionSql = " AND " + conditionSql; + } + } + parameter.put("conditionSQL", conditionSql); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramEvaluateImageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramEvaluateImageDaoImpl.java new file mode 100644 index 0000000..f38de1f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramEvaluateImageDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramEvaluateImageDao; +import com.jwsaas.entity.food.ProgramEvaluateImage; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序评价图片表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramEvaluateImageDaoImpl") +public class ProgramEvaluateImageDaoImpl extends BaseDaoImpl implements ProgramEvaluateImageDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramIndexPictureDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramIndexPictureDaoImpl.java new file mode 100644 index 0000000..495c677 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramIndexPictureDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramIndexPictureDao; +import com.jwsaas.entity.food.ProgramIndexPicture; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序首页图片数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramIndexPictureDaoImpl") +public class ProgramIndexPictureDaoImpl extends BaseDaoImpl implements ProgramIndexPictureDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPaymentParameterDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPaymentParameterDaoImpl.java new file mode 100644 index 0000000..96b8ccf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPaymentParameterDaoImpl.java @@ -0,0 +1,87 @@ +package com.jwsaas.dao.food.impl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramPaymentParameterDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProgramPaymentParameter; +import com.jwsaas.utils.ReflectUtils; + +/** + * 小程序门店支付参数方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPaymentParameterDaoImpl") +public class ProgramPaymentParameterDaoImpl extends BaseDaoImpl implements ProgramPaymentParameterDao { + + @Override + public ProgramPaymentParameter saveRelation(String tenantId, ProgramPaymentParameter parameter) { + return saveRelation(tenantId, parameter, false); + } + + @Override + public ProgramPaymentParameter saveRelation(String tenantId, ProgramPaymentParameter parameter, boolean isBatch) { + String defaultStatement = ProgramPaymentParameter.class.getName() + "Mapper.saveRelation"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(parameter, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(parameter, "tenantId", tenantId); + } + + if (BooleanUtils.isTrue(isBatch)) { + this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).insert(defaultStatement, parameter); + } else { + this.sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, parameter); + } + + return parameter; + } + + @Override + public List getStoreIdsByPaymentId(String tenantId, String id) { + String defaultStatement = ProgramPaymentParameter.class.getName() + "Mapper.getStoreIdsByPaymentId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("parameterId", id); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deleteRelationsByCriteria(String tenantId, Criteria criteria) { + return deleteRelationsByCriteria(tenantId, criteria, false); + } + + @Override + public Integer deleteRelationsByCriteria(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = ProgramPaymentParameter.class.getName() + "Mapper.deleteRelationsByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public List getPaymentParameterByStoreId(String tenantId, String storeId) { + String defaultStatement = ProgramPaymentParameter.class.getName() + "Mapper.getPaymentParameterByStoreId"; + Map parameter = new HashMap(); + parameter.put("storeId", storeId); + parameter.put("tenantId", tenantId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductCategoryDaoImpl.java new file mode 100644 index 0000000..f2ba953 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductCategoryDaoImpl.java @@ -0,0 +1,62 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductCategoryDao; +import com.jwsaas.entity.food.ProgramProductCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序商品分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramProductCategoryDaoImpl") +public class ProgramProductCategoryDaoImpl extends BaseDaoImpl implements ProgramProductCategoryDao { + + @Override + public List getListWithTypeId(String tenantId, Criteria criteria) { + return getListWithTypeId(tenantId,criteria,false); + } + + @Override + public List getListWithTypeId(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramProductCategory.class.getName() + "Mapper.getListWithTypeId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListTypeIdsByCriteria(String tenantId, Criteria criteria) { + return getListTypeIdsByCriteria(tenantId,criteria,false); + } + + @Override + public List getListTypeIdsByCriteria(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramProductCategory.class.getName() + "Mapper.getListTypeIdsByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("c.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductDaoImpl.java new file mode 100644 index 0000000..6f66ba2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductDaoImpl.java @@ -0,0 +1,132 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProgramProduct; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 小程序商品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramProductDaoImpl") +public class ProgramProductDaoImpl extends BaseDaoImpl implements ProgramProductDao { + + @Override + public List getAllProductIdsByCriteria(String tenantId, Criteria criteria) { + return getAllProductIdsByCriteria(tenantId,criteria,false); + } + + @Override + public List getAllProductIdsByCriteria(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramProduct.class.getName() + "Mapper.getAllProductIdsByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getStoreProductByCriteria(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramProduct.class.getName() + "Mapper.getStoreProductByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("a.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } + + @Override + public List getListByStoreIds(String tenantId, List storeIds,Criteria criteria) { + return getListByStoreIds(tenantId,storeIds,criteria,false); + } + + @Override + public List getListByStoreIds(String tenantId,List storeIdList, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = ProgramProduct.class.getName() + "Mapper.getListByStoreIds"; + criteria.add(Restrictions.eq("product.tenantId",tenantId)); + + StringBuffer storeIds = new StringBuffer(); + for (String storeId : storeIdList) { + storeIds.append(storeId).append(","); + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds.substring(0, storeIds.length() - 1)); + parameter.put("storeSize", storeIdList.size());// 门店数量 + if(storeIdList.size() == 1){ + defaultStatement = ProgramProduct.class.getName() + "Mapper.getListByOneStoreId"; + } + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getPagerByStoreIds(String tenantId,List storeIdList, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProgramProduct.class.getName() + "Mapper.getListByStoreIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("product.tenantId",tenantId)); + + StringBuffer storeIds = new StringBuffer(); + for (String storeId : storeIdList) { + storeIds.append(storeId).append(","); + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds.substring(0, storeIds.length() - 1)); + parameter.put("storeSize", storeIdList.size());// 门店数量 + if(storeIdList.size() == 1){ + defaultStatement = ProgramProduct.class.getName() + "Mapper.getListByOneStoreId"; + } + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, + pageBounds); + } + + @Override + public List getPagerCommonProductByStoreIds(String tenantId, List storeIdList, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProgramProduct.class.getName() + "Mapper.getPagerCommonProductByStoreIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("product.tenantId",tenantId)); + + StringBuffer storeIds = new StringBuffer(); + for (String storeId : storeIdList) { + storeIds.append(storeId).append(","); + } + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds.substring(0, storeIds.length() - 1)); + parameter.put("storeSize", storeIdList.size());// 门店数量 + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductMakeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductMakeDaoImpl.java new file mode 100644 index 0000000..e00a9bd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductMakeDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductMakeDao; +import com.jwsaas.entity.food.ProgramProductMake; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序商品做法关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramProductMakeDaoImpl") +public class ProgramProductMakeDaoImpl extends BaseDaoImpl implements ProgramProductMakeDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramProductMake.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("program.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateDaoImpl.java new file mode 100644 index 0000000..58e18e5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramProductTemplateDao; +import com.jwsaas.entity.food.ProgramProductTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序商品模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramProductTemplateDaoImpl") +public class ProgramProductTemplateDaoImpl extends BaseDaoImpl implements ProgramProductTemplateDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateDetailDaoImpl.java new file mode 100644 index 0000000..e3d592a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateDetailDaoImpl.java @@ -0,0 +1,64 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductTemplateDetailDao; +import com.jwsaas.entity.food.ProgramProductTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 小程序商品模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramProductTemplateDetailDaoImpl") +public class ProgramProductTemplateDetailDaoImpl extends BaseDaoImpl implements ProgramProductTemplateDetailDao { + + @Override + public List getProgramProdudctIdByTemplateId(String tenantId, String templateId) { + return getProgramProdudctIdByTemplateId(tenantId,templateId,false); + } + + @Override + public List getProgramProdudctIdByTemplateId(String tenantId, String templateId, boolean isBatch) { + String defaultStatement = ProgramProductTemplateDetail.class.getName() + "Mapper.getProgramProdudctIdByTemplateId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("templateId", templateId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria) { + return getListWithExtend(tenantId,criteria,false); + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramProductTemplateDetail.class.getName() + "Mapper.getListWithExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateStoreDaoImpl.java new file mode 100644 index 0000000..6b678d5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramProductTemplateStoreDaoImpl.java @@ -0,0 +1,64 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductTemplateStoreDao; +import com.jwsaas.entity.food.ProgramProductTemplateStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 小程序商品模板门店明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramProductTemplateStoreDaoImpl") +public class ProgramProductTemplateStoreDaoImpl extends BaseDaoImpl implements ProgramProductTemplateStoreDao { + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId) { + return getStoreIdByTemplateId(tenantId,templateId,false); + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId, boolean isBatch) { + String defaultStatement = ProgramProductTemplateStore.class.getName() + "Mapper.getStoreIdByTemplateId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("templateId", templateId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramProductTemplateStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pp.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListGoodsDaoImpl.java new file mode 100644 index 0000000..a0b2057 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListGoodsDaoImpl.java @@ -0,0 +1,62 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramPromotionBlackListGoodsDao; +import com.jwsaas.entity.food.ProgramPromotionBlackListGoods; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序促销商品黑名单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionBlackListGoodsDaoImpl") +public class ProgramPromotionBlackListGoodsDaoImpl extends BaseDaoImpl implements ProgramPromotionBlackListGoodsDao { + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) { + return getListWithSpec(tenantId,criteria,false); + } + + @Override + public List getListWithSpec(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramPromotionBlackListGoods.class.getName() + "Mapper.getListWithSpec"; + // 增加租户过滤 + criteria.add(Restrictions.eq("goods.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getSpecIds(String tenantId, Criteria criteria) { + return getSpecIds(tenantId,criteria,false); + } + + @Override + public List getSpecIds(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramPromotionBlackListGoods.class.getName() + "Mapper.getSpecIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreAreaDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreAreaDaoImpl.java new file mode 100644 index 0000000..93bcb6a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreAreaDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramPromotionBlackListStoreAreaDao; +import com.jwsaas.entity.food.ProgramPromotionBlackListStoreArea; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序促销门店区域黑名单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionBlackListStoreAreaDaoImpl") +public class ProgramPromotionBlackListStoreAreaDaoImpl extends BaseDaoImpl implements ProgramPromotionBlackListStoreAreaDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreDaoImpl.java new file mode 100644 index 0000000..d2d5b3a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramPromotionBlackListStoreDao; +import com.jwsaas.entity.food.ProgramPromotionBlackListStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序促销门店黑名单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionBlackListStoreDaoImpl") +public class ProgramPromotionBlackListStoreDaoImpl extends BaseDaoImpl implements ProgramPromotionBlackListStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionCategoryDaoImpl.java new file mode 100644 index 0000000..2d0da8c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionCategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramPromotionCategoryDao; +import com.jwsaas.entity.food.ProgramPromotionCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序促销品类表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionCategoryDaoImpl") +public class ProgramPromotionCategoryDaoImpl extends BaseDaoImpl implements ProgramPromotionCategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionGoodsDaoImpl.java new file mode 100644 index 0000000..f2fbb15 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionGoodsDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramPromotionGoodsDao; +import com.jwsaas.entity.food.ProgramPromotionGoods; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序促销商品明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionGoodsDaoImpl") +public class ProgramPromotionGoodsDaoImpl extends BaseDaoImpl implements ProgramPromotionGoodsDao { + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) { + return getListWithSpec(tenantId,criteria,false); + } + + @Override + public List getListWithSpec(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramPromotionGoods.class.getName() + "Mapper.getListWithSpec"; + // 增加租户过滤 + criteria.add(Restrictions.eq("goods.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionSchemeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionSchemeDaoImpl.java new file mode 100644 index 0000000..d3e2ee5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionSchemeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramPromotionSchemeDao; +import com.jwsaas.entity.food.ProgramPromotionScheme; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序促销方案表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionSchemeDaoImpl") +public class ProgramPromotionSchemeDaoImpl extends BaseDaoImpl implements ProgramPromotionSchemeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionStoreAreaDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionStoreAreaDaoImpl.java new file mode 100644 index 0000000..980fb00 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionStoreAreaDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramPromotionStoreAreaDao; +import com.jwsaas.entity.food.ProgramPromotionStoreArea; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序促销门店区域关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionStoreAreaDaoImpl") +public class ProgramPromotionStoreAreaDaoImpl extends BaseDaoImpl implements ProgramPromotionStoreAreaDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionStoreDaoImpl.java new file mode 100644 index 0000000..2194845 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionStoreDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramPromotionStoreDao; +import com.jwsaas.entity.food.ProgramPromotionStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序促销门店关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionStoreDaoImpl") +public class ProgramPromotionStoreDaoImpl extends BaseDaoImpl implements ProgramPromotionStoreDao { + + @Override + public List getStoreIdList(String tenantId, Criteria criteria) { + return getStoreIdList(tenantId,criteria,false); + } + + @Override + public List getStoreIdList(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramPromotionStore.class.getName() + "Mapper.getStoreIdList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionTaskDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionTaskDaoImpl.java new file mode 100644 index 0000000..814cc87 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionTaskDaoImpl.java @@ -0,0 +1,64 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramPromotionTaskDao; +import com.jwsaas.entity.food.ProgramPromotionTask; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.Map; + +/** + * 小程序促销任务表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionTaskDaoImpl") +public class ProgramPromotionTaskDaoImpl extends BaseDaoImpl implements ProgramPromotionTaskDao { + + @Override + public Integer updateStatusToPause(String tenantId, String id) { + String defaultStatement = ProgramPromotionTask.class.getName() + "Mapper.updateStatusToPause"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("promotionId", id); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + + @Override + public Integer updatePauseStatusToRestart(String tenantId, String id, int status, boolean isBatch) { + String defaultStatement = ProgramPromotionTask.class.getName() + "Mapper.updatePauseStatusToRestart"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("promotionId", id); + parameter.put("status", status); + if(isBatch) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + }else{ + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + } + + @Override + public Integer updateStatusToExecuting(String tenantId, String today, String time) { + String defaultStatement = ProgramPromotionTask.class.getName() + "Mapper.updateStatusToExecuting"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("today", today); + parameter.put("time", time); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + + @Override + public Integer updateStatusToFinsh(String tenantId, String yesterDay, String time) { + String defaultStatement = ProgramPromotionTask.class.getName() + "Mapper.updateStatusToFinish"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("yesterDay", yesterDay); + parameter.put("time", time); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionTicketDaoImpl.java new file mode 100644 index 0000000..dfcbd48 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramPromotionTicketDaoImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramPromotionTicketDao; +import com.jwsaas.entity.food.ProgramPromotionTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 小程序促销单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramPromotionTicketDaoImpl") +public class ProgramPromotionTicketDaoImpl extends BaseDaoImpl implements ProgramPromotionTicketDao { + + @Override + public List getPagerWithStores(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProgramPromotionTicket.class.getName() + "Mapper.getPagerWithStores"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramSettingDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramSettingDaoImpl.java new file mode 100644 index 0000000..b0b54e1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramSettingDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramSettingDao; +import com.jwsaas.entity.food.ProgramSetting; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramSettingDaoImpl") +public class ProgramSettingDaoImpl extends BaseDaoImpl implements ProgramSettingDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDaoImpl.java new file mode 100644 index 0000000..4420e4b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDaoImpl.java @@ -0,0 +1,31 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramStoreBusinessTicketDao; +import com.jwsaas.entity.food.ProgramStoreBusinessTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序销售单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreBusinessTicketDaoImpl") +public class ProgramStoreBusinessTicketDaoImpl extends BaseDaoImpl implements ProgramStoreBusinessTicketDao { + + @Override + public List getListByExport(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramStoreBusinessTicket.class.getName() + "Mapper.getListByExport"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDeliverDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDeliverDaoImpl.java new file mode 100644 index 0000000..8e78c56 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDeliverDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramStoreBusinessTicketDeliverDao; +import com.jwsaas.entity.food.ProgramStoreBusinessTicketDeliver; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序销售单配送信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreBusinessTicketDeliverDaoImpl") +public class ProgramStoreBusinessTicketDeliverDaoImpl extends BaseDaoImpl implements ProgramStoreBusinessTicketDeliverDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketInfoDaoImpl.java new file mode 100644 index 0000000..09592b5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketInfoDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramStoreBusinessTicketInfoDao; +import com.jwsaas.entity.food.ProgramStoreBusinessTicketInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序销售单优惠明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreBusinessTicketInfoDaoImpl") +public class ProgramStoreBusinessTicketInfoDaoImpl extends BaseDaoImpl implements ProgramStoreBusinessTicketInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreDaoImpl.java new file mode 100644 index 0000000..31d2791 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.food.ProgramStoreDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProgramStore; + +/** + * 小程序门店信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreDaoImpl") +public class ProgramStoreDaoImpl extends BaseDaoImpl implements ProgramStoreDao { + + @Override + public List getStoreIdList(String tenantId,String programId) { + String defaultStatement = ProgramStore.class.getName() + "Mapper.getStoreIdList"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("programId", programId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getDistanceList(String tenantId, String longitude, String latitude, Criteria criteria) { + String defaultStatement = ProgramStore.class.getName() + "Mapper.getDistanceList"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("longitude", longitude); + parameter.put("latitude", latitude); + parameter.put("condition", criteria.getCondition()); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductDaoImpl.java new file mode 100644 index 0000000..daa0dfc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramStoreOrderProductDao; +import com.jwsaas.entity.food.ProgramStoreOrderProduct; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序产品销售记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreOrderProductDaoImpl") +public class ProgramStoreOrderProductDaoImpl extends BaseDaoImpl implements ProgramStoreOrderProductDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductInfoDaoImpl.java new file mode 100644 index 0000000..699b977 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductInfoDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramStoreOrderProductInfoDao; +import com.jwsaas.entity.food.ProgramStoreOrderProductInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序产品销售记录优惠明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreOrderProductInfoDaoImpl") +public class ProgramStoreOrderProductInfoDaoImpl extends BaseDaoImpl implements ProgramStoreOrderProductInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductMakeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductMakeDaoImpl.java new file mode 100644 index 0000000..84b920c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreOrderProductMakeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ProgramStoreOrderProductMakeDao; +import com.jwsaas.entity.food.ProgramStoreOrderProductMake; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 小程序销售单做法数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreOrderProductMakeDaoImpl") +public class ProgramStoreOrderProductMakeDaoImpl extends BaseDaoImpl implements ProgramStoreOrderProductMakeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStorePayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStorePayDaoImpl.java new file mode 100644 index 0000000..f781203 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStorePayDaoImpl.java @@ -0,0 +1,34 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramStorePayDao; +import com.jwsaas.entity.food.ProgramStorePay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 小程序收银流水数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStorePayDaoImpl") +public class ProgramStorePayDaoImpl extends BaseDaoImpl implements ProgramStorePayDao { + + @Override + public List getListByExport(String tenantId, Criteria criteria) { + return getListByExport(tenantId,criteria,false); + } + + @Override + public List getListByExport(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramStorePay.class.getName() + "Mapper.getListByExport"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreProductDaoImpl.java new file mode 100644 index 0000000..1b63a21 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ProgramStoreProductDaoImpl.java @@ -0,0 +1,163 @@ +package com.jwsaas.dao.food.impl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.jwsaas.entity.food.ProductSpec; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramStoreProductDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.ProgramStoreProduct; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.ReflectUtils; + +/** + * 小程序门店商品关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreProductDaoImpl") +public class ProgramStoreProductDaoImpl extends BaseDaoImpl implements ProgramStoreProductDao { + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ProgramStoreProduct.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("store.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public Integer updateBystoreIdAndProgramProductId(String tenantId, List entity) { + Integer result = 0; + String defaultStatement = ProgramStoreProduct.class.getName() + "Mapper.updateBystoreIdAndProgramProductId"; + Assert.notEmpty(entity, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < entity.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity.get(i), "tenantId", tenantId); + } + + sqlSession.update(defaultStatement, entity.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getProgramProductIdByStoreId(String tenantId, String storeId) { + return getProgramProductIdByStoreId(tenantId,storeId,false); + } + + @Override + public List getProgramProductIdByStoreId(String tenantId, String storeId, boolean isBatch) { + String defaultStatement = ProgramStoreProduct.class.getName() + "Mapper.getProgramProductIdByStoreId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getProgramProductIdByCriteria(String tenantId, Criteria criteria) { + return getProgramProductIdByCriteria(tenantId,criteria,false); + } + + @Override + public List getProgramProductIdByCriteria(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramStoreProduct.class.getName() + "Mapper.getProgramProductIdByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public Integer updateStoreProductSaleStock(String tenantId, String storeId, String specId, double stock) { + String defaultStatement = ProgramStoreProduct.class.getName() + "Mapper.updateStoreProductSaleStock"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("specId", specId); + parameter.put("stock", stock); + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + } + + @Override + public List getListByStoreIds(String tenantId, List storeIdList, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = ProgramStoreProduct.class.getName() + "Mapper.getListByStoreIds"; + criteria.add(Restrictions.eq("spec.tenantId", tenantId)); + + StringBuffer storeIds = new StringBuffer(); + for (String storeId : storeIdList) { + storeIds.append(storeId).append(","); + } + String storeIdss = storeIds.toString(); + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIdss.substring(0, storeIdss.length() - 1)); + parameter.put("storeSize", storeIdList.size());// 门店数量 + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ProgramStoreProduct.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("store.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListGoodsDaoImpl.java new file mode 100644 index 0000000..0af57c8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListGoodsDaoImpl.java @@ -0,0 +1,52 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PromotionBlackListGoodsDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PromotionBlackListGoods; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 促销商品黑名单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListGoodsDaoImpl") +public class PromotionBlackListGoodsDaoImpl extends BaseDaoImpl implements PromotionBlackListGoodsDao { + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PromotionBlackListGoods.class.getName() + "Mapper.getListWithSpec"; + // 增加租户过滤 + criteria.add(Restrictions.eq("goods.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getSpecIds(String tenantId, Criteria criteria) { + return getSpecIds(tenantId,criteria,false); + } + + @Override + public List getSpecIds(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PromotionBlackListGoods.class.getName() + "Mapper.getSpecIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListStoreAreaDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListStoreAreaDaoImpl.java new file mode 100644 index 0000000..d2f9ded --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListStoreAreaDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PromotionBlackListStoreAreaDao; +import com.jwsaas.entity.food.PromotionBlackListStoreArea; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 促销门店区域黑名单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListStoreAreaDaoImpl") +public class PromotionBlackListStoreAreaDaoImpl extends BaseDaoImpl implements PromotionBlackListStoreAreaDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListStoreDaoImpl.java new file mode 100644 index 0000000..ff2ba6f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionBlackListStoreDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PromotionBlackListStoreDao; +import com.jwsaas.entity.food.PromotionBlackListStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 促销门店黑名单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListStoreDaoImpl") +public class PromotionBlackListStoreDaoImpl extends BaseDaoImpl implements PromotionBlackListStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionCategoryDaoImpl.java new file mode 100644 index 0000000..f2331b6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionCategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PromotionCategoryDao; +import com.jwsaas.entity.food.PromotionCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 促销品类表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionCategoryDaoImpl") +public class PromotionCategoryDaoImpl extends BaseDaoImpl implements PromotionCategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionGoodsDaoImpl.java new file mode 100644 index 0000000..2cd4e94 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionGoodsDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PromotionGoodsDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PromotionGoods; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 促销商品明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionGoodsDaoImpl") +public class PromotionGoodsDaoImpl extends BaseDaoImpl implements PromotionGoodsDao { + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PromotionGoods.class.getName() + "Mapper.getListWithSpec"; + // 增加租户过滤 + criteria.add(Restrictions.eq("goods.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionScheduleDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionScheduleDaoImpl.java new file mode 100644 index 0000000..307c7e7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionScheduleDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PromotionScheduleDao; +import com.jwsaas.entity.food.PromotionSchedule; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 促销档期数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionScheduleDaoImpl") +public class PromotionScheduleDaoImpl extends BaseDaoImpl implements PromotionScheduleDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionSchemeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionSchemeDaoImpl.java new file mode 100644 index 0000000..2f33d2c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionSchemeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PromotionSchemeDao; +import com.jwsaas.entity.food.PromotionScheme; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 促销方案表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionSchemeDaoImpl") +public class PromotionSchemeDaoImpl extends BaseDaoImpl implements PromotionSchemeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionStoreAreaDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionStoreAreaDaoImpl.java new file mode 100644 index 0000000..4f523df --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionStoreAreaDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PromotionStoreAreaDao; +import com.jwsaas.entity.food.PromotionStoreArea; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 促销门店区域关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionStoreAreaDaoImpl") +public class PromotionStoreAreaDaoImpl extends BaseDaoImpl implements PromotionStoreAreaDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionStoreDaoImpl.java new file mode 100644 index 0000000..dec8b06 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionStoreDaoImpl.java @@ -0,0 +1,44 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PromotionStoreDao; +import com.jwsaas.entity.food.PromotionStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 促销门店关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionStoreDaoImpl") +public class PromotionStoreDaoImpl extends BaseDaoImpl implements PromotionStoreDao { + + + + @Override + public List getStoreIdList(String tenantId, Criteria criteria) { + return getStoreIdList(tenantId,criteria,false); + } + + + @Override + public List getStoreIdList(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PromotionStore.class.getName() + "Mapper.getStoreIdList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionTaskDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionTaskDaoImpl.java new file mode 100644 index 0000000..87238ba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionTaskDaoImpl.java @@ -0,0 +1,72 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PromotionTaskDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PromotionTask; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.Map; + +/** + * 促销任务表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionTaskDaoImpl") +public class PromotionTaskDaoImpl extends BaseDaoImpl implements PromotionTaskDao { + + @Override + public Integer updateStatusToExecuting(String tenantId, String today, String time) { + String defaultStatement = PromotionTask.class.getName() + "Mapper.updateStatusToExecuting"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("today", today); + parameter.put("time", time); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + + @Override + public Integer updateStatusToFinsh(String tenantId, String yesterDay, String time) { + String defaultStatement = PromotionTask.class.getName() + "Mapper.updateStatusToFinish"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("yesterDay", yesterDay); + parameter.put("time", time); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + + @Override + public Integer updateStatusToPause(String tenantId, String promotionId) { + String defaultStatement = PromotionTask.class.getName() + "Mapper.updateStatusToPause"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("promotionId", promotionId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + + @Override + public Integer updatePauseStatusToRestart(String tenantId, String id, int status) { + return updatePauseStatusToRestart(tenantId,id,status,false); + } + + @Override + public Integer updatePauseStatusToRestart(String tenantId, String id, int status,boolean isBatch) { + String defaultStatement = PromotionTask.class.getName() + "Mapper.updatePauseStatusToRestart"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("promotionId", id); + parameter.put("status", status); + if(isBatch) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + }else{ + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + } + + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionTicketDaoImpl.java new file mode 100644 index 0000000..a1a6446 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PromotionTicketDaoImpl.java @@ -0,0 +1,52 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PromotionTicketDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PromotionTicket; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 促销单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PromotionTicketDaoImpl") +public class PromotionTicketDaoImpl extends BaseDaoImpl implements PromotionTicketDao { + + @Override + public Integer updateStatusToExecuting(String tenantId, String today, String time) { + String defaultStatement = PromotionTicket.class.getName() + "Mapper.updateStatusToExecuting"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("today", today); + parameter.put("time", time); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + + @Override + public Integer updateStatusToFinish(String tenantId, Date yesterDay, String time) { + String defaultStatement = PromotionTicket.class.getName() + "Mapper.updateStatusToFinish"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("yesterDay", yesterDay); + parameter.put("time", time); + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + + @Override + public List getPagerWithStores(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PromotionTicket.class.getName() + "Mapper.getPagerWithStores"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketDaoImpl.java new file mode 100644 index 0000000..44c1f70 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchaseStorageTicketDao; +import com.jwsaas.entity.food.PurchaseStorageTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购入库单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketDaoImpl") +public class PurchaseStorageTicketDaoImpl extends BaseDaoImpl implements PurchaseStorageTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketDetailDaoImpl.java new file mode 100644 index 0000000..0fd148f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketDetailDaoImpl.java @@ -0,0 +1,77 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PurchaseStorageTicketDetailDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.PurchaseStorageTicketDetail; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Repository; + +import java.util.List; +import java.util.Map; + +/** + * 采购入库单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketDetailDaoImpl") +public class PurchaseStorageTicketDetailDaoImpl extends BaseDaoImpl implements PurchaseStorageTicketDetailDao { + + @Override + public List> getReprotData(String tenantId, String startTime, String endTime, List storageIdList, String supplierId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PurchaseStorageTicketDetail.class.getName() + "Mapper.getReprotData"; + + if (criteria == null) { + criteria = new Criteria(); + } + // 增加租户过滤 + criteria.add(Restrictions.eq("pst.tenantId", tenantId)); + + if (StringUtils.isNotBlank(supplierId)) { + criteria.add(Restrictions.eq("pst.supplierId", supplierId)); + } + + if (storageIdList != null) { + criteria.add(Restrictions.in("pst.storageId", storageIdList)); + } + + if (StringUtils.isNotBlank(startTime)) { + criteria.add(Restrictions.ge("pst.setDate", startTime)); + } + if (StringUtils.isNotBlank(endTime)) { + criteria.add(Restrictions.le("pst.setDate", endTime)); + } + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List> getListReprotData(String tenantId, String startTime, String endTime, List storageIdList, String supplierId, Criteria criteria) { + String defaultStatement = PurchaseStorageTicketDetail.class.getName() + "Mapper.getListReprotData"; + + if (criteria == null) { + criteria = new Criteria(); + } + // 增加租户过滤 + criteria.add(Restrictions.eq("pst.tenantId", tenantId)); + + if (StringUtils.isNotBlank(supplierId)) { + criteria.add(Restrictions.eq("pst.supplierId", supplierId)); + } + + if (storageIdList != null) { + criteria.add(Restrictions.in("pst.storageId", storageIdList)); + } + + if (StringUtils.isNotBlank(startTime)) { + criteria.add(Restrictions.ge("pst.setDate", startTime)); + } + if (StringUtils.isNotBlank(endTime)) { + criteria.add(Restrictions.le("pst.setDate", endTime)); + } + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketLogDaoImpl.java new file mode 100644 index 0000000..43b6f21 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseStorageTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchaseStorageTicketLogDao; +import com.jwsaas.entity.food.PurchaseStorageTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购入库单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketLogDaoImpl") +public class PurchaseStorageTicketLogDaoImpl extends BaseDaoImpl implements PurchaseStorageTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTemplateDaoImpl.java new file mode 100644 index 0000000..90466c7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTemplateDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchaseTemplateDao; +import com.jwsaas.entity.food.PurchaseTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTemplateDaoImpl") +public class PurchaseTemplateDaoImpl extends BaseDaoImpl implements PurchaseTemplateDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTemplateDetailDaoImpl.java new file mode 100644 index 0000000..641c43b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTemplateDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchaseTemplateDetailDao; +import com.jwsaas.entity.food.PurchaseTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTemplateDetailDaoImpl") +public class PurchaseTemplateDetailDaoImpl extends BaseDaoImpl implements PurchaseTemplateDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketDaoImpl.java new file mode 100644 index 0000000..af6ba66 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchaseTicketDao; +import com.jwsaas.entity.food.PurchaseTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketDaoImpl") +public class PurchaseTicketDaoImpl extends BaseDaoImpl implements PurchaseTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketDetailDaoImpl.java new file mode 100644 index 0000000..f0c3519 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchaseTicketDetailDao; +import com.jwsaas.entity.food.PurchaseTicketDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketDetailDaoImpl") +public class PurchaseTicketDetailDaoImpl extends BaseDaoImpl implements PurchaseTicketDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketLogDaoImpl.java new file mode 100644 index 0000000..8c0612d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchaseTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchaseTicketLogDao; +import com.jwsaas.entity.food.PurchaseTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购订单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketLogDaoImpl") +public class PurchaseTicketLogDaoImpl extends BaseDaoImpl implements PurchaseTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceDaoImpl.java new file mode 100644 index 0000000..6eb2afe --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchasepriceDao; +import com.jwsaas.entity.food.Purchaseprice; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购价格数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchasepriceDaoImpl") +public class PurchasepriceDaoImpl extends BaseDaoImpl implements PurchasepriceDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceTicketDaoImpl.java new file mode 100644 index 0000000..69719a8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchasepriceTicketDao; +import com.jwsaas.entity.food.PurchasepriceTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购价格管理单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchasepriceTicketDaoImpl") +public class PurchasepriceTicketDaoImpl extends BaseDaoImpl implements PurchasepriceTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceTicketMaterialDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceTicketMaterialDaoImpl.java new file mode 100644 index 0000000..163b60b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/PurchasepriceTicketMaterialDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.PurchasepriceTicketMaterialDao; +import com.jwsaas.entity.food.PurchasepriceTicketMaterial; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 采购价格单原料数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "PurchasepriceTicketMaterialDaoImpl") +public class PurchasepriceTicketMaterialDaoImpl extends BaseDaoImpl implements PurchasepriceTicketMaterialDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceGoodsDaoImpl.java new file mode 100644 index 0000000..0132eae --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceGoodsDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.QimaiAdjustPriceGoodsDao; +import com.jwsaas.entity.food.QimaiAdjustPriceGoods; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 企迈调价单商品明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiAdjustPriceGoodsDaoImpl") +public class QimaiAdjustPriceGoodsDaoImpl extends BaseDaoImpl implements QimaiAdjustPriceGoodsDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = QimaiAdjustPriceGoods.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("goods.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceStoreDaoImpl.java new file mode 100644 index 0000000..5252775 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceStoreDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.QimaiAdjustPriceStoreDao; +import com.jwsaas.entity.food.QimaiAdjustPriceStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 企迈调价单门店明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiAdjustPriceStoreDaoImpl") +public class QimaiAdjustPriceStoreDaoImpl extends BaseDaoImpl implements QimaiAdjustPriceStoreDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = QimaiAdjustPriceStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("adjust.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceTicketDaoImpl.java new file mode 100644 index 0000000..206676a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAdjustPriceTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiAdjustPriceTicketDao; +import com.jwsaas.entity.food.QimaiAdjustPriceTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈商品调价单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiAdjustPriceTicketDaoImpl") +public class QimaiAdjustPriceTicketDaoImpl extends BaseDaoImpl implements QimaiAdjustPriceTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAttributeCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAttributeCategoryDaoImpl.java new file mode 100644 index 0000000..586138c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAttributeCategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiAttributeCategoryDao; +import com.jwsaas.entity.food.QimaiAttributeCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈属性分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiAttributeCategoryDaoImpl") +public class QimaiAttributeCategoryDaoImpl extends BaseDaoImpl implements QimaiAttributeCategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAttributeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAttributeDaoImpl.java new file mode 100644 index 0000000..3eb7b54 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiAttributeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiAttributeDao; +import com.jwsaas.entity.food.QimaiAttribute; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈属性数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiAttributeDaoImpl") +public class QimaiAttributeDaoImpl extends BaseDaoImpl implements QimaiAttributeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiChargeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiChargeDaoImpl.java new file mode 100644 index 0000000..f6fb451 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiChargeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiChargeDao; +import com.jwsaas.entity.food.QimaiCharge; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈加料信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiChargeDaoImpl") +public class QimaiChargeDaoImpl extends BaseDaoImpl implements QimaiChargeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderDaoImpl.java new file mode 100644 index 0000000..e8f2121 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiOrderDao; +import com.jwsaas.entity.food.QimaiOrder; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈订单表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiOrderDaoImpl") +public class QimaiOrderDaoImpl extends BaseDaoImpl implements QimaiOrderDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderItemDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderItemDaoImpl.java new file mode 100644 index 0000000..a5d4736 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderItemDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiOrderItemDao; +import com.jwsaas.entity.food.QimaiOrderItem; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈订单明细表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiOrderItemDaoImpl") +public class QimaiOrderItemDaoImpl extends BaseDaoImpl implements QimaiOrderItemDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderPayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderPayDaoImpl.java new file mode 100644 index 0000000..876e2d7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiOrderPayDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiOrderPayDao; +import com.jwsaas.entity.food.QimaiOrderPay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈订单支付信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiOrderPayDaoImpl") +public class QimaiOrderPayDaoImpl extends BaseDaoImpl implements QimaiOrderPayDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductAttributeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductAttributeDaoImpl.java new file mode 100644 index 0000000..10d64a7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductAttributeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiProductAttributeDao; +import com.jwsaas.entity.food.QimaiProductAttribute; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈商品属性数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductAttributeDaoImpl") +public class QimaiProductAttributeDaoImpl extends BaseDaoImpl implements QimaiProductAttributeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductCategoryDaoImpl.java new file mode 100644 index 0000000..803d718 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductCategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiProductCategoryDao; +import com.jwsaas.entity.food.QimaiProductCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈商品分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductCategoryDaoImpl") +public class QimaiProductCategoryDaoImpl extends BaseDaoImpl implements QimaiProductCategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductChargeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductChargeDaoImpl.java new file mode 100644 index 0000000..f963b15 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductChargeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiProductChargeDao; +import com.jwsaas.entity.food.QimaiProductCharge; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈商品加料信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductChargeDaoImpl") +public class QimaiProductChargeDaoImpl extends BaseDaoImpl implements QimaiProductChargeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductDaoImpl.java new file mode 100644 index 0000000..cd88922 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductDaoImpl.java @@ -0,0 +1,163 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.QimaiProductDao; +import com.jwsaas.entity.food.QimaiProduct; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 企迈商品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductDaoImpl") +public class QimaiProductDaoImpl extends BaseDaoImpl implements QimaiProductDao { + + + @Override + public List getAllProductIdsByCriteria(String tenantId,Criteria criteria) { + return getAllProductIdsByCriteria(tenantId,criteria,false); + } + + @Override + public List getAllProductIdsByCriteria(String tenantId,Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getAllProductIdsByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getQimaiProductWithStoreProduct(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getQimaiProductWithStoreProduct"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " WHERE " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getPagerExtends(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getPagerExtends"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListByQimaiStoreIds(String tenantId, List storeIdList, Criteria criteria) { + return getListByQimaiStoreIds(tenantId,storeIdList,criteria,false); + } + + @Override + public List getListByQimaiStoreIds(String tenantId, List storeIdList, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getListByStoreIds"; + if(storeIdList.size() == 1){ + defaultStatement = QimaiProduct.class.getName() + "Mapper.getListByOneStoreId"; + } + criteria.add(Restrictions.eq("product.tenantId", tenantId)); + StringBuffer storeIds = new StringBuffer(); + for (String storeId : storeIdList) { + storeIds.append(storeId).append(","); + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds.substring(0, storeIds.length() - 1)); + parameter.put("storeSize", storeIdList.size());// 门店数量 + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListWithSpecInfos(String tenantId, Criteria criteria) { + return getListWithSpecInfos(tenantId,criteria,false); + } + + @Override + public List getListWithSpecInfos(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getListWithSpecInfos"; + // 增加租户过滤 + criteria.add(Restrictions.eq("product.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPagerWithSpecInfos(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getPagerWithSpecInfos"; + // 增加租户过滤 + criteria.add(Restrictions.eq("p.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getPagerWithQimaiSpec(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getPagerWithQimaiSpec"; + // 增加租户过滤 + criteria.add(Restrictions.eq("product.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListWithQimaiSpec(String tenantId, Criteria criteria) { + return getListWithQimaiSpec(tenantId,criteria,false); + } + + @Override + public List getListWithQimaiSpec(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = QimaiProduct.class.getName() + "Mapper.getListWithQimaiSpec"; + // 增加租户过滤 + criteria.add(Restrictions.eq("product.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductSpecDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductSpecDaoImpl.java new file mode 100644 index 0000000..6e7952f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductSpecDaoImpl.java @@ -0,0 +1,39 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiProductSpecDao; +import com.jwsaas.entity.food.QimaiProductSpec; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 企迈商品规格信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductSpecDaoImpl") +public class QimaiProductSpecDaoImpl extends BaseDaoImpl implements QimaiProductSpecDao { + + @Override + public List getSpecIds(String tenantId) { + return getSpecIds(tenantId,false); + } + + @Override + public List getSpecIds(String tenantId,boolean isBatch) { + String defaultStatement = QimaiProductSpec.class.getName() + "Mapper.getSpecIds"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateDaoImpl.java new file mode 100644 index 0000000..1df1ce9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiProductTemplateDao; +import com.jwsaas.entity.food.QimaiProductTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈小程序商品模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductTemplateDaoImpl") +public class QimaiProductTemplateDaoImpl extends BaseDaoImpl implements QimaiProductTemplateDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateDetailDaoImpl.java new file mode 100644 index 0000000..e55ff42 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateDetailDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.QimaiProductTemplateDetailDao; +import com.jwsaas.entity.food.QimaiProductTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 企迈小程序商品模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductTemplateDetailDaoImpl") +public class QimaiProductTemplateDetailDaoImpl extends BaseDaoImpl implements QimaiProductTemplateDetailDao { + + @Override + public List getQimaiProductIdByTemplateId(String tenantId, String templateId) { + return getQimaiProductIdByTemplateId(tenantId,templateId,false); + } + + @Override + public List getQimaiProductIdByTemplateId(String tenantId, String templateId, boolean isBatch) { + String defaultStatement = QimaiProductTemplateDetail.class.getName() + "Mapper.getQimaiProductIdByTemplateId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("templateId", templateId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateStoreDaoImpl.java new file mode 100644 index 0000000..0873f9e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiProductTemplateStoreDaoImpl.java @@ -0,0 +1,64 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.QimaiProductTemplateStoreDao; +import com.jwsaas.entity.food.QimaiProductTemplateStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 企迈小程序商品模板门店明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiProductTemplateStoreDaoImpl") +public class QimaiProductTemplateStoreDaoImpl extends BaseDaoImpl implements QimaiProductTemplateStoreDao { + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId) { + return getStoreIdByTemplateId(tenantId,templateId,false); + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId, boolean isBatch) { + String defaultStatement = QimaiProductTemplateStore.class.getName() + "Mapper.getStoreIdByTemplateId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("templateId", templateId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = QimaiProductTemplateStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("template.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreDaoImpl.java new file mode 100644 index 0000000..cc49c78 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreDaoImpl.java @@ -0,0 +1,28 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiStoreDao; +import com.jwsaas.entity.food.QimaiStore; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 企迈门店表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiStoreDaoImpl") +public class QimaiStoreDaoImpl extends BaseDaoImpl implements QimaiStoreDao { + + @Override + public List getStoreIdList(String tenantId) { + String defaultStatement = QimaiStore.class.getName() + "Mapper.getStoreIdList"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreLableDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreLableDaoImpl.java new file mode 100644 index 0000000..ff0373e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreLableDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiStoreLableDao; +import com.jwsaas.entity.food.QimaiStoreLable; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈门店标签数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiStoreLableDaoImpl") +public class QimaiStoreLableDaoImpl extends BaseDaoImpl implements QimaiStoreLableDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreProductDaoImpl.java new file mode 100644 index 0000000..e434b52 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiStoreProductDaoImpl.java @@ -0,0 +1,50 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiStoreProductDao; +import com.jwsaas.entity.food.QimaiStoreProduct; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.List; + +/** + * 企迈门店商品表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiStoreProductDaoImpl") +public class QimaiStoreProductDaoImpl extends BaseDaoImpl implements QimaiStoreProductDao { + + @Override + public Integer updateListByStoreIdAndSpecId(String tenantId, List list) { + Integer result = 0; + String defaultStatement = QimaiStoreProduct.class.getName() + "Mapper.updateListByStoreIdAndSpecId"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.update(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiSuitDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiSuitDetailDaoImpl.java new file mode 100644 index 0000000..09e7f6d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/QimaiSuitDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.QimaiSuitDetailDao; +import com.jwsaas.entity.food.QimaiSuitDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈套餐明细信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiSuitDetailDaoImpl") +public class QimaiSuitDetailDaoImpl extends BaseDaoImpl implements QimaiSuitDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceDetailDaoImpl.java new file mode 100644 index 0000000..bc0738c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceDetailDaoImpl.java @@ -0,0 +1,96 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ReceiveDifferenceDetailDao; +import com.jwsaas.entity.food.ReceiveDifferenceDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 收货差异明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceDetailDaoImpl") +public class ReceiveDifferenceDetailDaoImpl extends BaseDaoImpl implements ReceiveDifferenceDetailDao { + + /*** + * 验收差异单详情金额,数量汇总 + */ + @Override + public List> getSumData(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ReceiveDifferenceDetail.class.getName() + "Mapper.getSumData"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getExtendsPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ReceiveDifferenceDetail.class.getName() + "Mapper.getExtendsPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria) { + return getExtendsList(tenantId,criteria,false); + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ReceiveDifferenceDetail.class.getName() + "Mapper.getExtendsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListBySummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ReceiveDifferenceDetail.class.getName() + "Mapper.getListBySummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerBySummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ReceiveDifferenceDetail.class.getName() + "Mapper.getPagerBySummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketDaoImpl.java new file mode 100644 index 0000000..a28c5fb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketDaoImpl.java @@ -0,0 +1,30 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ReceiveDifferenceTicketDao; +import com.jwsaas.entity.food.ReceiveDifferenceTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 配送收货差异单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketDaoImpl") +public class ReceiveDifferenceTicketDaoImpl extends BaseDaoImpl implements ReceiveDifferenceTicketDao { + + + @Override + public List getTicketIdsList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ReceiveDifferenceTicket.class.getName() + "Mapper.getTicketIdsList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketLogDaoImpl.java new file mode 100644 index 0000000..d8fc5ed --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ReceiveDifferenceTicketLogDao; +import com.jwsaas.entity.food.ReceiveDifferenceTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送差异单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketLogDaoImpl") +public class ReceiveDifferenceTicketLogDaoImpl extends BaseDaoImpl implements ReceiveDifferenceTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketPayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketPayDaoImpl.java new file mode 100644 index 0000000..23de8a6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketPayDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ReceiveDifferenceTicketPayDao; +import com.jwsaas.entity.food.ReceiveDifferenceTicketPay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送差异金额明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketPayDaoImpl") +public class ReceiveDifferenceTicketPayDaoImpl extends BaseDaoImpl implements ReceiveDifferenceTicketPayDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveGoodsDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveGoodsDetailDaoImpl.java new file mode 100644 index 0000000..14c2884 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveGoodsDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ReceiveGoodsDetailDao; +import com.jwsaas.entity.food.ReceiveGoodsDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 收货单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsDetailDaoImpl") +public class ReceiveGoodsDetailDaoImpl extends BaseDaoImpl implements ReceiveGoodsDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveGoodsTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveGoodsTicketDaoImpl.java new file mode 100644 index 0000000..29a44c5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ReceiveGoodsTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ReceiveGoodsTicketDao; +import com.jwsaas.entity.food.ReceiveGoodsTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送收货单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsTicketDaoImpl") +public class ReceiveGoodsTicketDaoImpl extends BaseDaoImpl implements ReceiveGoodsTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/RechargeParameterDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/RechargeParameterDaoImpl.java new file mode 100644 index 0000000..e50a492 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/RechargeParameterDaoImpl.java @@ -0,0 +1,127 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.RechargeParameterDao; +import com.jwsaas.entity.food.RechargeParameter; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 充值账户方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "RechargeParameterDaoImpl") +public class RechargeParameterDaoImpl extends BaseDaoImpl implements RechargeParameterDao { + + @Override + public Integer saveRechargeParameterStoreRelation(String tenantId, List list) { + Integer result = 0; + String defaultStatement = RechargeParameter.class.getName() + "Mapper.saveRechargeParameterStoreRelation"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getStoreIdsByRechargeId(String tenantId, String id) { + String defaultStatement = RechargeParameter.class.getName() + "Mapper.getStoreIdsByRechargeId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("parameterId", id); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deleteRelationByParameterIdBatch(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = RechargeParameter.class.getName() + "Mapper.deleteRelationByParameterId"; + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, criteria); + } + + @Override + public Integer deleteRelationByParameterId(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = RechargeParameter.class.getName() + "Mapper.deleteRelationByParameterId"; + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria) { + return getListByStoreId(tenantId, storeId, criteria, false); + } + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = RechargeParameter.class.getName() + "Mapper.getListByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("r.tenantId", tenantId)); + criteria.add(Restrictions.eq("rs.storeId", storeId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public Integer saveRechargeParameterStoreRelationBySingleType(String tenantId, List list) { + Integer result = 0; + String defaultStatement = RechargeParameter.class.getName() + "Mapper.saveRechargeParameterStoreRelation"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/RoleDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/RoleDaoImpl.java new file mode 100644 index 0000000..b5cdde5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/RoleDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.food.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.RoleDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Role; + +/** + * 角色表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "RoleDaoImpl") +public class RoleDaoImpl extends BaseDaoImpl implements RoleDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SaleClearDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SaleClearDaoImpl.java new file mode 100644 index 0000000..263a64f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SaleClearDaoImpl.java @@ -0,0 +1,47 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.SaleClearDao; +import com.jwsaas.entity.food.SaleClear; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +/** + * 门店估清表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SaleClearDaoImpl") +public class SaleClearDaoImpl extends BaseDaoImpl implements SaleClearDao { + + @Override + public Integer updateSaleClear(String tenantId, SaleClear saleClear) throws Exception { + String defaultStatement = SaleClear.class.getName() + "Mapper.updateSaleClear"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(saleClear, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(saleClear, "tenantId", tenantId); + } + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, saleClear); + + } + + @Override + public Integer deleteSaleClearByEndTime(String tenantId, SaleClear saleClear) throws Exception { + String defaultStatement = SaleClear.class.getName() + "Mapper.deleteSaleClearByEndTime"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("endtime", new Date()); + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ServerDataVersionDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ServerDataVersionDaoImpl.java new file mode 100644 index 0000000..40513ab --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ServerDataVersionDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ServerDataVersionDao; +import com.jwsaas.entity.food.ServerDataVersion; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 数据版本数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ServerDataVersionDaoImpl") +public class ServerDataVersionDaoImpl extends BaseDaoImpl implements ServerDataVersionDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderDaoImpl.java new file mode 100644 index 0000000..3fa31c8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderDaoImpl.java @@ -0,0 +1,72 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ShopMeituanOrderDao; +import com.jwsaas.entity.food.ShopMeituanOrder; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 美团商家订单表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ShopMeituanOrderDaoImpl") +public class ShopMeituanOrderDaoImpl extends BaseDaoImpl implements ShopMeituanOrderDao { + + @Override + public List getPagerSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ShopMeituanOrder.class.getName() + "Mapper.getPagerSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getSummaryList(String tenantId, Criteria criteria) { + return getSummaryList(tenantId,criteria,false); + } + + @Override + public List getSummaryList(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ShopMeituanOrder.class.getName() + "Mapper.getSummaryList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) { + return getListReportDataSummary(tenantId,criteria,false); + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ShopMeituanOrder.class.getName() + "Mapper.getListReportDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderExtraDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderExtraDaoImpl.java new file mode 100644 index 0000000..74763d8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderExtraDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ShopMeituanOrderExtraDao; +import com.jwsaas.entity.food.ShopMeituanOrderExtra; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 美团商家订单优惠信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ShopMeituanOrderExtraDaoImpl") +public class ShopMeituanOrderExtraDaoImpl extends BaseDaoImpl implements ShopMeituanOrderExtraDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderItemDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderItemDaoImpl.java new file mode 100644 index 0000000..63706de --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ShopMeituanOrderItemDaoImpl.java @@ -0,0 +1,51 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ShopMeituanOrderItemDao; +import com.jwsaas.entity.food.ShopMeituanOrderItem; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 美团商家订单明细表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ShopMeituanOrderItemDaoImpl") +public class ShopMeituanOrderItemDaoImpl extends BaseDaoImpl implements ShopMeituanOrderItemDao { + + @Override + public List getPagerSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ShopMeituanOrderItem.class.getName() + "Mapper.getPagerSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListSummary(String tenantId, Criteria criteria) { + return getListSummary(tenantId,criteria,false); + } + + @Override + public List getListSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ShopMeituanOrderItem.class.getName() + "Mapper.getListSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitFoodAccountDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitFoodAccountDaoImpl.java new file mode 100644 index 0000000..41173ba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitFoodAccountDaoImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.SplitFoodAccountDao; +import com.jwsaas.entity.food.SplitFoodAccount; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.split.SplitProductEntity; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 菜品分户账户关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SplitFoodAccountDaoImpl") +public class SplitFoodAccountDaoImpl extends BaseDaoImpl implements SplitFoodAccountDao { + @Override + public List getSplitProductPager(String tenantId , Criteria criteria, PageBounds pageBounds) { + String defaultStatement = SplitFoodAccount.class.getName() + "Mapper.getSplitProductPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("cp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitPayLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitPayLogDaoImpl.java new file mode 100644 index 0000000..5a3864a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitPayLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.SplitPayLogDao; +import com.jwsaas.entity.food.SplitPayLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 分帐错误日志上传数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SplitPayLogDaoImpl") +public class SplitPayLogDaoImpl extends BaseDaoImpl implements SplitPayLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitPayResultDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitPayResultDaoImpl.java new file mode 100644 index 0000000..90f439f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitPayResultDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.SplitPayResultDao; +import com.jwsaas.entity.food.SplitPayResult; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 分店分帐结果数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SplitPayResultDaoImpl") +public class SplitPayResultDaoImpl extends BaseDaoImpl implements SplitPayResultDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitShopAccountDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitShopAccountDaoImpl.java new file mode 100644 index 0000000..5a0a8c5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitShopAccountDaoImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.SplitShopAccountDao; +import com.jwsaas.entity.food.SplitShopAccount; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 店铺分帐户表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SplitShopAccountDaoImpl") +public class SplitShopAccountDaoImpl extends BaseDaoImpl implements SplitShopAccountDao { + + @Override + public List getSplitShopPager(String tenantId , Criteria criteria, PageBounds pageBounds) { + String defaultStatement = SplitShopAccount.class.getName() + "Mapper.getSplitShopPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sw.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitShopWithdrawalDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitShopWithdrawalDaoImpl.java new file mode 100644 index 0000000..f59f46e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitShopWithdrawalDaoImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.SplitShopWithdrawalDao; +import com.jwsaas.entity.food.SplitShopWithdrawal; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 分店提现记录表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SplitShopWithdrawalDaoImpl") +public class SplitShopWithdrawalDaoImpl extends BaseDaoImpl implements SplitShopWithdrawalDao { + + @Override + public List getSplitWithdrawalPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = SplitShopWithdrawal.class.getName() + "Mapper.getSplitWithdrawalPager"; + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitStorePayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitStorePayDaoImpl.java new file mode 100644 index 0000000..468fe6b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SplitStorePayDaoImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.SplitStorePayDao; +import com.jwsaas.entity.food.SplitStorePay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.split.SplitOrderEntity; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 分店分帐流水数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SplitStorePayDaoImpl") +public class SplitStorePayDaoImpl extends BaseDaoImpl implements SplitStorePayDao { + + @Override + public List getSplitOrderPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = SplitStorePay.class.getName() + "Mapper.getSplitOrderPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sa.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getSplitStorePayList(Criteria criteria) { + String defaultStatement = SplitStorePay.class.getName() + "Mapper.getSplitStorePayList"; + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StorageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StorageDaoImpl.java new file mode 100644 index 0000000..0c7e1de --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StorageDaoImpl.java @@ -0,0 +1,49 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StorageDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Storage; + +/** + * 总部库位数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StorageDaoImpl") +public class StorageDaoImpl extends BaseDaoImpl implements StorageDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = Storage.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer updateTypeToNull(String tenantId, String typeId) { + return updateTypeToNull(tenantId, typeId, false); + } + + @Override + public Integer updateTypeToNull(String tenantId, String typeId, Boolean isBatch) { + String defaultStatement = Storage.class.getName() + "Mapper.updateTypeToNull"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("typeId", typeId); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StorageTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StorageTypeDaoImpl.java new file mode 100644 index 0000000..a46384b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StorageTypeDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StorageTypeDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StorageType; + +/** + * 总部库位类型数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StorageTypeDaoImpl") +public class StorageTypeDaoImpl extends BaseDaoImpl implements StorageTypeDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = StorageType.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountDaoImpl.java new file mode 100644 index 0000000..f5f1318 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountDaoImpl.java @@ -0,0 +1,40 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreAccountDao; +import com.jwsaas.entity.food.StoreAccount; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 门店余额账户数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDaoImpl") +public class StoreAccountDaoImpl extends BaseDaoImpl implements StoreAccountDao { + + @Override + public List getStoreIdList(String tenantId) { + return getStoreIdList(tenantId,false); + } + + @Override + public List getStoreIdList(String tenantId,boolean isBatch) { + + String defaultStatement = StoreAccount.class.getName() + "Mapper.getStoreIdList"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountDetailDaoImpl.java new file mode 100644 index 0000000..c13c397 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountDetailDaoImpl.java @@ -0,0 +1,31 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreAccountDetailDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreAccountDetail; + +/** + * 门店余额账户明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDetailDaoImpl") +public class StoreAccountDetailDaoImpl extends BaseDaoImpl implements StoreAccountDetailDao { + + @Override + public List getListGroup(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreAccountDetail.class.getName() + "Mapper.getListGroup"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountRechargeParameterDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountRechargeParameterDaoImpl.java new file mode 100644 index 0000000..0a1591a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountRechargeParameterDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreAccountRechargeParameterDao; +import com.jwsaas.entity.food.StoreAccountRechargeParameter; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店账户充值参数方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountRechargeParameterDaoImpl") +public class StoreAccountRechargeParameterDaoImpl extends BaseDaoImpl implements StoreAccountRechargeParameterDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountRechargeRecordDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountRechargeRecordDaoImpl.java new file mode 100644 index 0000000..c6def4f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAccountRechargeRecordDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreAccountRechargeRecordDao; +import com.jwsaas.entity.food.StoreAccountRechargeRecord; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店账户充值记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountRechargeRecordDaoImpl") +public class StoreAccountRechargeRecordDaoImpl extends BaseDaoImpl implements StoreAccountRechargeRecordDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAreaDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAreaDaoImpl.java new file mode 100644 index 0000000..a400787 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreAreaDaoImpl.java @@ -0,0 +1,30 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreAreaDao; +import com.jwsaas.entity.food.StoreArea; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Repository; + +/** + * 门店区域数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreAreaDaoImpl") +public class StoreAreaDaoImpl extends BaseDaoImpl implements StoreAreaDao { + + @Override + public String selectMaxNo(String tenantId, String parentId) { + String defaultStatement = StoreArea.class.getName() + "Mapper.selectMaxNo"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("parentId", StringUtils.isBlank(parentId) ? null : parentId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketCheckDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketCheckDaoImpl.java new file mode 100644 index 0000000..fcbed28 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketCheckDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreBusinessTicketCheckDao; +import com.jwsaas.entity.food.StoreBusinessTicketCheck; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 前台销售单上传校验数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketCheckDaoImpl") +public class StoreBusinessTicketCheckDaoImpl extends BaseDaoImpl implements StoreBusinessTicketCheckDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketDaoImpl.java new file mode 100644 index 0000000..16f6a12 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketDaoImpl.java @@ -0,0 +1,323 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StoreBusinessTicketDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreBusinessTicket; +import org.springframework.util.Assert; + +/** + * 前台销售单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketDaoImpl") +public class StoreBusinessTicketDaoImpl extends BaseDaoImpl implements StoreBusinessTicketDao { + + @Override + public Integer updateTicketToInvalid(String tenantId, String storeId, String ticketId, String ticketNo) { + return updateTicketToInvalid(tenantId, storeId, ticketId, ticketNo, false); + } + + @Override + public Integer updateTicketToInvalid(String tenantId, String storeId, String ticketId, String ticketNo, Boolean isBatch) { + int rows = 0; + ExecutorType executorType = ExecutorType.SIMPLE; + if (BooleanUtils.isTrue(isBatch)) { + executorType = ExecutorType.BATCH; + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("ticketId", ticketId); + parameter.put("ticketNo", ticketNo); + parameter.put("modifyUser", "system"); + + String defaultStatement = null; + // 前台销售单,cy_store_business_ticket + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalid"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + // 前台销售单优惠明细,cy_store_business_ticket_info + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalidTicketInfo"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + // 门店产品销售记录,cy_store_order_product + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalidOrderProduct"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + // 门店产品销售记录优惠明细,cy_store_order_product_info + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalidOrderProductInfo"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + // 门店销售单做法,cy_store_order_product_make + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalidOrderProductMake"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + // 门店收银流水,cy_store_pay + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalidPay"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + // 前台销售单外送信息,cy_store_business_ticket_delivery + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalidTicketDelivery"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + // 前台销售单桌台信息,cy_store_business_ticket_table + defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.updateTicketToInvalidTicketTable"; + rows = rows + sqlSessionTemplateFactory.getSqlSessionTemplate(executorType).update(defaultStatement, parameter); + + return rows; + } + + @Override + public List> getListBusinessMode(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListBusinessMode"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getListSumByHour(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListSumByHour"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getListByStoreGrossProfit(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListByStoreGrossProfit"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerByStoreGrossProfit(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getPagerByStoreGrossProfit"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListByExport"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getPagerWithTicketRefused(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getPagerWithTicketRefused"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List> getListWithTicketRefused(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListWithTicketRefused"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getListWithDiscountTotal(String tenantId, Criteria criteria) { + return getListWithDiscountTotal(tenantId,criteria,false); + } + + @Override + public List getListWithDiscountTotal(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListWithDiscountTotal"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + } + + @Override + public List getListByChargeBackSummary(String tenantId, Criteria criteria) { + return getListByChargeBackSummary(tenantId,criteria,false); + } + + @Override + public List getListByChargeBackSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListByChargeBackSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListBySumChargeBack(String tenantId, Criteria criteria) { + return getListBySumChargeBack(tenantId,criteria,false); + } + + @Override + public List getListBySumChargeBack(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListBySumChargeBack"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListByAccountingSummary(String tenantId, Criteria criteria) { + return getListByAccountingSummary(tenantId,criteria,false); + } + + @Override + public List getListByAccountingSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListByAccountingSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListDataSummary(String tenantId, Criteria criteria) { + return getListDataSummary(tenantId,criteria,false); + } + + @Override + public List getListDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListReportModeDataSummary(String tenantId, Criteria criteria) { + return getListReportModeDataSummary(tenantId,criteria,false); + } + + @Override + public List getListReportModeDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListReportModeDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListCashDataSummary(String tenantId, Criteria criteria) { + return getListCashDataSummary(tenantId,criteria,false); + } + + @Override + public List getListCashDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListCashDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListRankDataSummary(String tenantId, Criteria criteria) { + return getListRankDataSummary(tenantId,criteria,false); + } + + @Override + public List getListRankDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListRankDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketDeliveryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketDeliveryDaoImpl.java new file mode 100644 index 0000000..a68c5f9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketDeliveryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreBusinessTicketDeliveryDao; +import com.jwsaas.entity.food.StoreBusinessTicketDelivery; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 前台销售单外送信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketDeliveryDaoImpl") +public class StoreBusinessTicketDeliveryDaoImpl extends BaseDaoImpl implements StoreBusinessTicketDeliveryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketInfoDaoImpl.java new file mode 100644 index 0000000..6339aa3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketInfoDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreBusinessTicketInfoDao; +import com.jwsaas.entity.food.StoreBusinessTicket; +import com.jwsaas.entity.food.StoreBusinessTicketInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 前台销售单优惠明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketInfoDaoImpl") +public class StoreBusinessTicketInfoDaoImpl extends BaseDaoImpl implements StoreBusinessTicketInfoDao { + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) { + return getListReportDataSummary(tenantId,criteria,false); + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreBusinessTicket.class.getName() + "Mapper.getListReportDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketTableDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketTableDaoImpl.java new file mode 100644 index 0000000..d49b97d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreBusinessTicketTableDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreBusinessTicketTableDao; +import com.jwsaas.entity.food.StoreBusinessTicketTable; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 前台销售单桌台信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketTableDaoImpl") +public class StoreBusinessTicketTableDaoImpl extends BaseDaoImpl implements StoreBusinessTicketTableDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostManageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostManageDaoImpl.java new file mode 100644 index 0000000..5282d07 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostManageDaoImpl.java @@ -0,0 +1,116 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreCostManageDao; +import com.jwsaas.entity.food.StoreCostManage; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 门店费用管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreCostManageDaoImpl") +public class StoreCostManageDaoImpl extends BaseDaoImpl implements StoreCostManageDao { + + @Override + public Integer saveStores(String tenantId, List storeCostMananges) { + Integer result = 0; + String defaultStatement = StoreCostManage.class.getName() + "Mapper.saveStores"; + Assert.notEmpty(storeCostMananges, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeCostMananges.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(storeCostMananges.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(storeCostMananges.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, storeCostMananges.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getStoreCostManageIdsByStoreId(String tenantId, String storeId) { + return getStoreCostManageIdsByStoreId(tenantId,storeId,false); + } + + @Override + public List getStoreCostManageIdsByStoreId(String tenantId, String storeId, boolean isBatch) { + String defaultStatement = StoreCostManage.class.getName() + "Mapper.getStoreCostManageIdsByStoreId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getStoresByFeeId(String tenantId, String id) { + return getStoresByFeeId(tenantId,id,false); + } + + @Override + public List getStoresByFeeId(String tenantId, String id, boolean isBatch) { + String defaultStatement = StoreCostManage.class.getName() + "Mapper.getStoresByFeeId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("feeId", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer deleteStores(String tenantId, String id) { + return deleteStores(tenantId,id,false); + } + + @Override + public Integer deleteStores(String tenantId, String id, boolean isBatch) { + String defaultStatement = StoreCostManage.class.getName() + "Mapper.deleteStores"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("feeId", id); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostManageLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostManageLogDaoImpl.java new file mode 100644 index 0000000..c0a6619 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostManageLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreCostManageLogDao; +import com.jwsaas.entity.food.StoreCostManageLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店费用扣款操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreCostManageLogDaoImpl") +public class StoreCostManageLogDaoImpl extends BaseDaoImpl implements StoreCostManageLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostRevenueDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostRevenueDaoImpl.java new file mode 100644 index 0000000..644b7ac --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreCostRevenueDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreCostRevenueDao; +import com.jwsaas.entity.food.StoreCostRevenue; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 非营业收入支出登记数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreCostRevenueDaoImpl") +public class StoreCostRevenueDaoImpl extends BaseDaoImpl implements StoreCostRevenueDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDaoImpl.java new file mode 100644 index 0000000..345da2c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDaoImpl.java @@ -0,0 +1,184 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 门店信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") +public class StoreDaoImpl extends BaseDaoImpl implements StoreDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = Store.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer saveBrands(String tenantId, String storeId, List brandIdList) { + Integer result = 0; + Assert.notNull(storeId, "parameter 'storeId' can't be null"); + Assert.notEmpty(brandIdList, "parameter 'brandIdList' can't be null or empty!"); + String defaultStatement = Store.class.getName() + "Mapper.saveBrands"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < brandIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("storeId", storeId); + relationship.put("brandId", brandIdList.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public List getBrandIdList(String tenantId, String storeId) { + String defaultStatement = Store.class.getName() + "Mapper.getBrands"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer delBrands(String tenantId, String storeId) { + String defaultStatement = Store.class.getName() + "Mapper.delBrands"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = Store.class.getName() + "Mapper.getPagerExtendNoBrand";// 不包含品牌 + if(criteria.toSQL().contains(".brandId")){ + defaultStatement = Store.class.getName() + "Mapper.getPagerExtend";// 包含品牌 + } + // 增加租户过滤 + criteria.add(Restrictions.eq("s.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = Store.class.getName() + "Mapper.getListExtendNoBrand"; + if(criteria.toSQL().contains(".brandId")){ + defaultStatement = Store.class.getName() + "Mapper.getListExtend";// 包含品牌 + } + + // 增加租户过滤 + criteria.add(Restrictions.eq("s.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getAllStoreIds(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = Store.class.getName() + "Mapper.getAllStoreIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public boolean isExistBatch(String tenantId, String property, String value) { + String defaultStatement = Store.class.getName() + "Mapper.isExist"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("value", value); + + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } + + @Override + public String selectMaxValueBatch(String tenantId, String property) { + String defaultStatement = Store.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } + + @Override + public Integer updateDefaultGroup(String tenantId, String groupId, String groupNo, Criteria criteria) { + + String defaultStatement = Store.class.getName() + "Mapper.updateDefaultGroup"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("groupId", groupId); + parameter.put("groupNo", groupNo); + parameter.put("condition", criteria.getCondition()); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + + } + + @Override + public List getStoreIdsByBrandId(String tenantId, String brandId) { + return getStoreIdsByBrandId(tenantId,brandId,false); + } + + @Override + public List getStoreIdsByBrandId(String tenantId, String brandId, boolean isBatch) { + String defaultStatement = Store.class.getName() + "Mapper.getStoreIdsByBrandId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("brandId", brandId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDeliveryOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDeliveryOrderDaoImpl.java new file mode 100644 index 0000000..6d702ec --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDeliveryOrderDaoImpl.java @@ -0,0 +1,183 @@ +package com.jwsaas.dao.food.impl; + +import java.util.Date; +import java.util.List; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StoreDeliveryOrderDao; +import com.jwsaas.dao.food.StoreDeliveryOrderItemDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreBusinessTicket; +import com.jwsaas.entity.food.StoreBusinessTicketDelivery; +import com.jwsaas.entity.food.StoreDeliveryOrder; +import com.jwsaas.entity.food.StoreDeliveryOrderItem; +import com.jwsaas.entity.food.StoreOrderProduct; +import com.jwsaas.util.JSONUtil; + +/** + * 前台外送单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderDaoImpl") +public class StoreDeliveryOrderDaoImpl extends BaseDaoImpl implements StoreDeliveryOrderDao { + + @Override + public StoreDeliveryOrder saveExtend(String tenantId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao) { + return saveExtend(tenantId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + } + + @Override + public StoreDeliveryOrder saveExtend(String tenantId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao, Boolean isBatch) { + StoreDeliveryOrder storeDeliveryOrder = new StoreDeliveryOrder(); + storeDeliveryOrder.setClientId(bus.getClientId());// 前台系统ID + storeDeliveryOrder.setNo(bus.getNo());// 单据编号 + storeDeliveryOrder.setStoreId(bus.getStoreId());// 门店ID + storeDeliveryOrder.setStoreNo(bus.getStoreNo());// 门店编号 + storeDeliveryOrder.setStoreName(bus.getStoreName());// 门店名称 + storeDeliveryOrder.setStatus(bus.getStatus());// 单据状态 + storeDeliveryOrder.setWorkNo(bus.getWorkNo());// 操作员工号 + storeDeliveryOrder.setSaleDate(bus.getSaleDate());// 销售时间 + storeDeliveryOrder.setAmount(bus.getAmount());// 消费金额 + storeDeliveryOrder.setDiscount(bus.getDiscount());// 优惠率 + storeDeliveryOrder.setDiscountTotal(bus.getDiscountTotal());// 优惠额 + storeDeliveryOrder.setReceivable(bus.getReceivable());// 应收金额 + storeDeliveryOrder.setMaling(bus.getMaling());// 抹零金额 + storeDeliveryOrder.setPaid(bus.getPaid());// 实收金额 + storeDeliveryOrder.setDeviceName(bus.getDeviceName());// 设备名称 + storeDeliveryOrder.setDeviceMac(bus.getDeviceMac());// 设备MAC + storeDeliveryOrder.setDeviceIp(bus.getDeviceIp());// 设备IP + storeDeliveryOrder.setPosNo(bus.getPosNo());// 设备编号 + storeDeliveryOrder.setIsInvalid(bus.getIsInvalid());// 是否失效 + storeDeliveryOrder.setCreateUser(bus.getCreateUser()); + if (CollectionUtils.isNotEmpty(deliveryInfos)) { + StoreBusinessTicketDelivery ticketDelivery = deliveryInfos.get(0); + storeDeliveryOrder.setOrderTime(ticketDelivery.getOrderTime());// 订餐时间 + storeDeliveryOrder.setVisitorName(ticketDelivery.getVisitorName());// 订餐人 + storeDeliveryOrder.setOrderTel(ticketDelivery.getOrderTel());// 订餐电话 + storeDeliveryOrder.setRecipientName(ticketDelivery.getRecipientName());// 收货人名称 + storeDeliveryOrder.setRecipientPhone(ticketDelivery.getRecipientPhone());// 收货人电话 + storeDeliveryOrder.setRecipientAddress(ticketDelivery.getRecipientAddress());// 收货人地址 + storeDeliveryOrder.setDeliveryWorkerNo(ticketDelivery.getDeliveryWorkerNo());// 送餐员工号 + storeDeliveryOrder.setDeliveryWorkerName(ticketDelivery.getDeliveryWorkerName());// 送餐员名称 + storeDeliveryOrder.setAdvanceAmount(ticketDelivery.getAdvanceAmount());// 预支金额 + storeDeliveryOrder.setDistributionFee(ticketDelivery.getDistributionFee());// 加收服务费 + storeDeliveryOrder.setDeliveryBeginTime(ticketDelivery.getDeliveryBeginTime());// 送出时间 + storeDeliveryOrder.setDeliveryEndTime(ticketDelivery.getDeliveryEndTime());// 送达时间 + storeDeliveryOrder.setSettlementTime(ticketDelivery.getSettlementTime());// 交账时间 + } + storeDeliveryOrder = save(tenantId, storeDeliveryOrder, isBatch); + String ticketId = storeDeliveryOrder.getId(); + + if (CollectionUtils.isNotEmpty(products)) { + for (StoreOrderProduct orderProduct : products) { + StoreDeliveryOrderItem storeDeliveryOrderItem = new StoreDeliveryOrderItem(); + storeDeliveryOrderItem.setClientId(orderProduct.getClientId());// 前台系统ID + storeDeliveryOrderItem.setParentId(orderProduct.getParentId());// 父记录ID + storeDeliveryOrderItem.setStoreId(orderProduct.getStoreId());// 门店ID + storeDeliveryOrderItem.setStoreNo(orderProduct.getStoreNo());// 门店编号 + storeDeliveryOrderItem.setStoreName(orderProduct.getStoreName());// 门店名称 + storeDeliveryOrderItem.setTicketId(ticketId);// 销售单ID + storeDeliveryOrderItem.setBusNo(orderProduct.getBusNo());// 销售单号 + storeDeliveryOrderItem.setProductId(orderProduct.getProductId());// 产品ID + storeDeliveryOrderItem.setProductNo(orderProduct.getProductNo());// 产品编号 + storeDeliveryOrderItem.setProductName(orderProduct.getProductName());// 产品名称 + storeDeliveryOrderItem.setProductUnitId(orderProduct.getProductUnitId());// 产品单位 + storeDeliveryOrderItem.setProductUnitName(orderProduct.getProductUnitName());// 产品单位名 + storeDeliveryOrderItem.setTypeId(orderProduct.getTypeId());// 类别ID + storeDeliveryOrderItem.setTypeName(orderProduct.getTypeName());// 类别名 + storeDeliveryOrderItem.setSpecId(orderProduct.getSpecId());// 规格ID + storeDeliveryOrderItem.setSpecName(orderProduct.getSpecName());// 规格名称 + storeDeliveryOrderItem.setCount(orderProduct.getCount());// 数量 + storeDeliveryOrderItem.setRcount(orderProduct.getRcount());// 退菜数量 + storeDeliveryOrderItem.setPrice(orderProduct.getPrice());// 销售价格 + storeDeliveryOrderItem.setPriceOrg(orderProduct.getPriceOrg());// 产品原价 + storeDeliveryOrderItem.setDiscountPrice(orderProduct.getDiscountPrice());// 折后价格 + storeDeliveryOrderItem.setIsSuit(orderProduct.getIsSuit());// 是否套菜 + storeDeliveryOrderItem.setSuitId(orderProduct.getSuitId());// 套菜ID + storeDeliveryOrderItem.setWorkerNo(orderProduct.getWorkerNo());// 工号 + storeDeliveryOrderItem.setSaleDate(orderProduct.getSaleDate());// 销售时间 + storeDeliveryOrderItem.setDeviceName(orderProduct.getDeviceName());// 设备名称 + storeDeliveryOrderItem.setDeviceMac(orderProduct.getDeviceMac());// 设备MAC + storeDeliveryOrderItem.setDeviceIp(orderProduct.getDeviceIp());// 设备IP + storeDeliveryOrderItem.setPosNo(orderProduct.getPosNo());// 设备编号 + storeDeliveryOrderItem.setAmount(orderProduct.getAmount());// 消费金额 + storeDeliveryOrderItem.setDiscount(orderProduct.getDiscount());// 优惠率 + storeDeliveryOrderItem.setDiscountTotal(orderProduct.getDiscountTotal());// 优惠额 + storeDeliveryOrderItem.setReceivable(orderProduct.getReceivable());// 应收金额 + storeDeliveryOrderItem.setAddPriceTotal(orderProduct.getAddPriceTotal());// 加价金额 + storeDeliveryOrderItem.setDiscountAddTotal(orderProduct.getDiscountAddTotal());// 加价优惠金额 + storeDeliveryOrderItem.setAmountAddTotal(orderProduct.getAmountAddTotal());// 加价应收金额 + storeDeliveryOrderItem.setAmountTotal(orderProduct.getAmountTotal());// 消费总额 + storeDeliveryOrderItem.setReceivableTotal(orderProduct.getReceivableTotal());// 应收总额 + storeDeliveryOrderItem.setIsInvalid(orderProduct.getIsInvalid());// 是否失效 + storeDeliveryOrderItem.setLineNo(orderProduct.getLineNo());// 行号 + storeDeliveryOrderItem.setSeqNo(orderProduct.getSeqNo());// 当日流水号 + storeDeliveryOrderItem.setCreateUser(orderProduct.getCreateUser()); + storeDeliveryOrderItemDao.save(tenantId, storeDeliveryOrderItem, isBatch); + } + } + + return storeDeliveryOrder; + } + + @Override + public StoreDeliveryOrder updateExtend(String tenantId, String ticketId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao) { + return updateExtend(tenantId, ticketId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + } + + @Override + public StoreDeliveryOrder updateExtend(String tenantId, String ticketId, StoreBusinessTicket bus, List products, List deliveryInfos, + StoreDeliveryOrderItemDao storeDeliveryOrderItemDao, Boolean isBatch) { + // 更新主单数据 + StoreDeliveryOrder storeDeliveryOrder = new StoreDeliveryOrder(); + storeDeliveryOrder.setClientId(bus.getClientId());// 前台系统ID + storeDeliveryOrder.setNo(bus.getNo());// 单据编号 + storeDeliveryOrder.setStoreId(bus.getStoreId());// 门店ID + storeDeliveryOrder.setStoreNo(bus.getStoreNo());// 门店编号 + storeDeliveryOrder.setStoreName(bus.getStoreName());// 门店名称 + storeDeliveryOrder.setStatus(bus.getStatus());// 单据状态 + storeDeliveryOrder.setWorkNo(bus.getWorkNo());// 操作员工号 + storeDeliveryOrder.setSaleDate(bus.getSaleDate());// 销售时间 + storeDeliveryOrder.setAmount(bus.getAmount());// 消费金额 + storeDeliveryOrder.setDiscount(bus.getDiscount());// 优惠率 + storeDeliveryOrder.setDiscountTotal(bus.getDiscountTotal());// 优惠额 + storeDeliveryOrder.setReceivable(bus.getReceivable());// 应收金额 + storeDeliveryOrder.setMaling(bus.getMaling());// 抹零金额 + storeDeliveryOrder.setPaid(bus.getPaid());// 实收金额 + storeDeliveryOrder.setDeviceName(bus.getDeviceName());// 设备名称 + storeDeliveryOrder.setDeviceMac(bus.getDeviceMac());// 设备MAC + storeDeliveryOrder.setDeviceIp(bus.getDeviceIp());// 设备IP + storeDeliveryOrder.setPosNo(bus.getPosNo());// 设备编号 + storeDeliveryOrder.setIsInvalid(bus.getIsInvalid());// 是否失效 + storeDeliveryOrder.setCreateUser(bus.getCreateUser()); + if (CollectionUtils.isNotEmpty(deliveryInfos)) { + StoreBusinessTicketDelivery ticketDelivery = deliveryInfos.get(0); + storeDeliveryOrder.setOrderTime(ticketDelivery.getOrderTime());// 订餐时间 + storeDeliveryOrder.setVisitorName(ticketDelivery.getVisitorName());// 订餐人 + storeDeliveryOrder.setOrderTel(ticketDelivery.getOrderTel());// 订餐电话 + storeDeliveryOrder.setRecipientName(ticketDelivery.getRecipientName());// 收货人名称 + storeDeliveryOrder.setRecipientPhone(ticketDelivery.getRecipientPhone());// 收货人电话 + storeDeliveryOrder.setRecipientAddress(ticketDelivery.getRecipientAddress());// 收货人地址 + storeDeliveryOrder.setDeliveryWorkerNo(ticketDelivery.getDeliveryWorkerNo());// 送餐员工号 + storeDeliveryOrder.setDeliveryWorkerName(ticketDelivery.getDeliveryWorkerName());// 送餐员名称 + storeDeliveryOrder.setAdvanceAmount(ticketDelivery.getAdvanceAmount());// 预支金额 + storeDeliveryOrder.setDistributionFee(ticketDelivery.getDistributionFee());// 加收服务费 + storeDeliveryOrder.setDeliveryBeginTime(ticketDelivery.getDeliveryBeginTime());// 送出时间 + storeDeliveryOrder.setDeliveryEndTime(ticketDelivery.getDeliveryEndTime());// 送达时间 + storeDeliveryOrder.setSettlementTime(ticketDelivery.getSettlementTime());// 交账时间 + } + + storeDeliveryOrder.setId(ticketId); + storeDeliveryOrder.setModifyDate(new Date()); + storeDeliveryOrder.setModifyUser(bus.getCreateUser()); + update(tenantId, storeDeliveryOrder, isBatch); + storeDeliveryOrder = get(tenantId, ticketId, isBatch); + // 方法二,原数据全部置为无效,重新保存一份 + return storeDeliveryOrder; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDeliveryOrderItemDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDeliveryOrderItemDaoImpl.java new file mode 100644 index 0000000..dc23957 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDeliveryOrderItemDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreDeliveryOrderItemDao; +import com.jwsaas.entity.food.StoreDeliveryOrderItem; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 前台外送单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderItemDaoImpl") +public class StoreDeliveryOrderItemDaoImpl extends BaseDaoImpl implements StoreDeliveryOrderItemDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDepartmentDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDepartmentDaoImpl.java new file mode 100644 index 0000000..561b7c6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDepartmentDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StoreDepartmentDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreDepartment; + +/** + * 门店部门数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreDepartmentDaoImpl") +public class StoreDepartmentDaoImpl extends BaseDaoImpl implements StoreDepartmentDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = StoreDepartment.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDispatchAccountDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDispatchAccountDaoImpl.java new file mode 100644 index 0000000..591b566 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDispatchAccountDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreDispatchAccountDao; +import com.jwsaas.entity.food.StoreDispatchAccount; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送结算账号数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreDispatchAccountDaoImpl") +public class StoreDispatchAccountDaoImpl extends BaseDaoImpl implements StoreDispatchAccountDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDispatchAccountLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDispatchAccountLogDaoImpl.java new file mode 100644 index 0000000..aac0285 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreDispatchAccountLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreDispatchAccountLogDao; +import com.jwsaas.entity.food.StoreDispatchAccountLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 配送结算账号金额变动明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreDispatchAccountLogDaoImpl") +public class StoreDispatchAccountLogDaoImpl extends BaseDaoImpl implements StoreDispatchAccountLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreEnchashmentRecordDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreEnchashmentRecordDaoImpl.java new file mode 100644 index 0000000..4ba47ce --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreEnchashmentRecordDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreEnchashmentRecordDao; +import com.jwsaas.entity.food.StoreEnchashmentRecord; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店余额提现记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreEnchashmentRecordDaoImpl") +public class StoreEnchashmentRecordDaoImpl extends BaseDaoImpl implements StoreEnchashmentRecordDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreEnchashmentRecordLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreEnchashmentRecordLogDaoImpl.java new file mode 100644 index 0000000..06ba06d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreEnchashmentRecordLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreEnchashmentRecordLogDao; +import com.jwsaas.entity.food.StoreEnchashmentRecordLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店余额提现操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreEnchashmentRecordLogDaoImpl") +public class StoreEnchashmentRecordLogDaoImpl extends BaseDaoImpl implements StoreEnchashmentRecordLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreFeeCutLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreFeeCutLogDaoImpl.java new file mode 100644 index 0000000..db0c3fb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreFeeCutLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreFeeCutLogDao; +import com.jwsaas.entity.food.StoreFeeCutLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店费用扣款记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreFeeCutLogDaoImpl") +public class StoreFeeCutLogDaoImpl extends BaseDaoImpl implements StoreFeeCutLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDaoImpl.java new file mode 100644 index 0000000..7f45805 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDaoImpl.java @@ -0,0 +1,61 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreHandoverDao; +import com.jwsaas.entity.food.StoreHandover; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 门店交班主表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDaoImpl") +public class StoreHandoverDaoImpl extends BaseDaoImpl implements StoreHandoverDao { + + + @Override + public List getPagerByAllAgentStores(String tenantId, List storeIds, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreHandover.class.getName() + "Mapper.getPagerByAllAgentStores"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, + pageBounds); + } + + @Override + public List getListByAllAgentStores(String tenantId, List storeIds, Criteria criteria) { + return getListByAllAgentStores(tenantId,storeIds,criteria,false); + } + + @Override + public List getListByAllAgentStores(String tenantId, List storeIds, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreHandover.class.getName() + "Mapper.getListByAllAgentStores"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailDaoImpl.java new file mode 100644 index 0000000..1071909 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreHandoverDetailDao; +import com.jwsaas.entity.food.StoreHandoverDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店交班明细表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailDaoImpl") +public class StoreHandoverDetailDaoImpl extends BaseDaoImpl implements StoreHandoverDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailPartDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailPartDaoImpl.java new file mode 100644 index 0000000..a76ece4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailPartDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreHandoverDetailPartDao; +import com.jwsaas.entity.food.StoreHandoverDetailPart; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店交班明细表(杯子/碗数)数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailPartDaoImpl") +public class StoreHandoverDetailPartDaoImpl extends BaseDaoImpl implements StoreHandoverDetailPartDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailPayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailPayDaoImpl.java new file mode 100644 index 0000000..0479780 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreHandoverDetailPayDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreHandoverDetailPayDao; +import com.jwsaas.entity.food.StoreHandoverDetailPay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店交班支付方式明细表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailPayDaoImpl") +public class StoreHandoverDetailPayDaoImpl extends BaseDaoImpl implements StoreHandoverDetailPayDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreLoginLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreLoginLogDaoImpl.java new file mode 100644 index 0000000..0d143c4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreLoginLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreLoginLogDao; +import com.jwsaas.entity.food.StoreLoginLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店登录日志数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreLoginLogDaoImpl") +public class StoreLoginLogDaoImpl extends BaseDaoImpl implements StoreLoginLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOperationLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOperationLogDaoImpl.java new file mode 100644 index 0000000..7f9aefe --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOperationLogDaoImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreOperationLogDao; +import com.jwsaas.entity.food.StoreOperationLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 前台操作日志记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreOperationLogDaoImpl") +public class StoreOperationLogDaoImpl extends BaseDaoImpl implements StoreOperationLogDao { + + @Override + public List getStoreTypeSummaryPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreOperationLog.class.getName() + "Mapper.getStoreTypeSummaryPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductDaoImpl.java new file mode 100644 index 0000000..46dd3a7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductDaoImpl.java @@ -0,0 +1,136 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreOrderProductDao; +import com.jwsaas.entity.food.StoreOrderProduct; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; +import java.util.Map; + +/** + * 门店产品销售记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductDaoImpl") +public class StoreOrderProductDaoImpl extends BaseDaoImpl implements StoreOrderProductDao { + + @Override + public List> getPagerCountSumAndAmountTotalSum(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getPagerCountSumAndAmountTotalSum"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List> getListCountSumAndAmountTotalSum(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getListCountSumAndAmountTotalSum"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getListAmountTotalSum(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getListAmountTotalSum"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getListByExport"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getPagerForSalesDayProductSummary(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getPagerForSalesDayProductSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListDataSummary(String tenantId, Criteria criteria) { + return getListDataSummary(tenantId,criteria,false); + } + + @Override + public List getListDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getListDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) { + return getListReportDataSummary(tenantId,criteria,false); + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getListReportDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListProductDataSummary(String tenantId, Criteria criteria) { + return getListProductDataSummary(tenantId,criteria,false); + } + + @Override + public List getListProductDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProduct.class.getName() + "Mapper.getListProductDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductInfoDaoImpl.java new file mode 100644 index 0000000..2f43bf1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductInfoDaoImpl.java @@ -0,0 +1,40 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreOrderProductInfoDao; +import com.jwsaas.entity.food.StoreOrderProductInfo; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +/** + * 门店产品销售记录优惠明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductInfoDaoImpl") +public class StoreOrderProductInfoDaoImpl extends BaseDaoImpl implements StoreOrderProductInfoDao { + + @Override + public List> getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreOrderProductInfo.class.getName() + "Mapper.getPagerExtend"; + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListSummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProductInfo.class.getName() + "Mapper.getListSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductMakeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductMakeDaoImpl.java new file mode 100644 index 0000000..b1b332b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreOrderProductMakeDaoImpl.java @@ -0,0 +1,44 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreOrderProductMakeDao; +import com.jwsaas.entity.food.StoreOrderProductMake; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 门店销售单做法数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductMakeDaoImpl") +public class StoreOrderProductMakeDaoImpl extends BaseDaoImpl implements StoreOrderProductMakeDao { + + @Override + public List> getPagerSumInfos(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreOrderProductMake.class.getName() + "Mapper.getPagerSumInfos"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List> getListSumInfos(String tenantId, Criteria criteria) { + + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreOrderProductMake.class.getName() + "Mapper.getListSumInfos"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StorePayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StorePayDaoImpl.java new file mode 100644 index 0000000..1de366d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StorePayDaoImpl.java @@ -0,0 +1,169 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StorePayDao; +import com.jwsaas.entity.food.StorePay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; +import java.util.Map; + +/** + * 门店收银流水数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StorePayDaoImpl") +public class StorePayDaoImpl extends BaseDaoImpl implements StorePayDao { + + @Override + public List getPagerWithShiftAndPosNo(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StorePay.class.getName() + "Mapper.getPagerWithShiftAndPosNo"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pay.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListWithShiftAndPosNo(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListWithShiftAndPosNo"; + // 增加租户过滤 + criteria.add(Restrictions.eq("pay.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getListDailyRevenue(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListDailyRevenue"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListByExport"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getListByChargeBackSummary(String tenantId, Criteria criteria) { + return getListByChargeBackSummary(tenantId,criteria,false); + } + + @Override + public List getListByChargeBackSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListByChargeBackSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListBySumChargeBack(String tenantId, Criteria criteria) { + return getListBySumChargeBack(tenantId,criteria,false); + } + + @Override + public List getListBySumChargeBack(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListBySumChargeBack"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListByAccountingSummary(String tenantId, Criteria criteria) { + return getListByAccountingSummary(tenantId,criteria,false); + } + + @Override + public List getListByAccountingSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListByAccountingSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List> getListReportDataSummary(String tenantId, Criteria criteria) { + return getListReportDataSummary(tenantId,criteria,false); + } + + @Override + public List> getListReportDataSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListReportDataSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListReportDataByBusModeSummary(String tenantId, Criteria criteria) { + return getListReportDataByBusModeSummary(tenantId,criteria,false); + } + + @Override + public List getListReportDataByBusModeSummary(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StorePay.class.getName() + "Mapper.getListReportDataByBusModeSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreProductDaoImpl.java new file mode 100644 index 0000000..cd141b2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreProductDaoImpl.java @@ -0,0 +1,118 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreProductDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreProduct; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 门店商品关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreProductDaoImpl") +public class StoreProductDaoImpl extends BaseDaoImpl implements StoreProductDao { + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreProduct.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getPagerWithStoreInfo(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreProduct.class.getName() + "Mapper.getPagerWithStoreInfo"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getSpecIdsList(String tenantId, String storeId) { + return getSpecIdsList(tenantId, storeId, false); + } + + @Override + public List getSpecIdsList(String tenantId, String storeId, boolean isBatch) { + String defaultStatement = StoreProduct.class.getName() + "Mapper.getSpecIdsList"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreProduct.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getSyncStoreDishList(String tenantId, Criteria c) { + Assert.notNull(c, "parameter 'c' can't be null or empty!"); + String defaultStatement = StoreProduct.class.getName() + "Mapper.getSyncStoreDishList"; + // 增加租户过滤 + c.add(Restrictions.eq("csp.tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, c); + } + + @Override + public List getListWithErpInfo(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = StoreProduct.class.getName() + "Mapper.getListWithErpInfo"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sp.tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List> getUsageList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = StoreProduct.class.getName() + "Mapper.getUsageList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ps.tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public Integer updateStoreProductSaleStock(String tenantId, String storeId, String specId, double stock) { + String defaultStatement = StoreProduct.class.getName() + "Mapper.updateStoreProductSaleStock"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("specId", specId); + parameter.put("stock", stock); + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreProductSaleStockDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreProductSaleStockDaoImpl.java new file mode 100644 index 0000000..54813df --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreProductSaleStockDaoImpl.java @@ -0,0 +1,103 @@ +package com.jwsaas.dao.food.impl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.google.common.collect.Maps; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreProductSaleStockDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreProductSaleStock; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.utils.ReflectUtils; + +/** + * 门店商品规格库存数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreProductSaleStockDaoImpl") +public class StoreProductSaleStockDaoImpl extends BaseDaoImpl + implements StoreProductSaleStockDao { + + @Override + public int synchronousData(String tenantId, String modifyUserName, double totalStock, double stock) { + // TODO Auto-generated method stub + String defaultStatement = StoreProductSaleStock.class.getName() + "Mapper.synchronousData"; + Map map = Maps.newHashMap(); + map.put("modifyUserName", modifyUserName); + map.put("totalStock", totalStock); + map.put("stock", stock); + map.put("tenantId", tenantId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).insert(defaultStatement, map); + + } + + @Override + public List getPartPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + // TODO Auto-generated method stub + String defaultStatement = StoreProductSaleStock.class.getName() + "Mapper.getPartPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public Integer updateStoreProductSaleStock(String tenantId, String storeId, String specId, double stock) { + String defaultStatement = StoreProductSaleStock.class.getName() + "Mapper.updateStoreProductSaleStock"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("specId", specId); + parameter.put("stock", stock); + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + } + + @Override + public List getseriesNameAndseriesIdByTenantld(Criteria criteria,String tenantId) { + // TODO Auto-generated method stub + String defaultStatement = StoreProductSaleStock.class.getName() + "Mapper.getseriesNameAndseriesIdByTenantld"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.isNotNull("seriesId")); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public int updateImptStock(String tenantId,List entity) { + // TODO Auto-generated method stub + Integer result = 0; + String defaultStatement = StoreProductSaleStock.class.getName() + "Mapper.updateImptStock"; + Assert.notEmpty(entity, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < entity.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity.get(i), "tenantId", tenantId); + } + + sqlSession.update(defaultStatement, entity.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDaoImpl.java new file mode 100644 index 0000000..a37f14a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDaoImpl.java @@ -0,0 +1,130 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import java.util.List; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreStockCheckTemplateDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.jwsaas.entity.food.StoreStockCheckTemplate; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 总部门店库存盘点模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTemplateDaoImpl") +public class StoreStockCheckTemplateDaoImpl extends BaseDaoImpl implements StoreStockCheckTemplateDao { + + @Override + public Integer saveTemplateRelations(String tenantId, List templates) { + Integer result = 0; + String defaultStatement = StoreStockCheckTemplate.class.getName() + "Mapper.saveTemplateRelations"; + Assert.notEmpty(templates, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < templates.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(templates.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(templates.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, templates.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String id) { + return getStoreIdByTemplateId(tenantId,id,false); + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String id,boolean isBatch) { + String defaultStatement = StoreStockCheckTemplate.class.getName() + "Mapper.getStoreIdByTemplateId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("ticketId", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer deleteTemplateRelations(String tenantId, Criteria criteria) { + return deleteTemplateRelations(tenantId,criteria,false); + } + + @Override + public Integer deleteTemplateRelations(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = StoreStockCheckTemplate.class.getName() + "Mapper.deleteTemplateRelations"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public List getAllStoreIds(String tenantId) { + return getAllStoreIds(tenantId,false); + } + + @Override + public List getAllStoreIds(String tenantId,boolean isBatch) { + String defaultStatement = StoreStockCheckTemplate.class.getName() + "Mapper.getAllStoreIds"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + @Override + public List getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreStockCheckTemplate.class.getName() + "Mapper.getPagerByStoreId"; + // 增加租户过滤 + criteria.add(Restrictions.eq("t.tenantId", tenantId)); + criteria.add(Restrictions.eq("ts.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDetailDaoImpl.java new file mode 100644 index 0000000..74e27ce --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDetailDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreStockCheckTemplateDetailDao; +import com.jwsaas.entity.food.StoreStockCheckTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 总部门店库存盘点模块明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTemplateDetailDaoImpl") +public class StoreStockCheckTemplateDetailDaoImpl extends BaseDaoImpl implements StoreStockCheckTemplateDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketDaoImpl.java new file mode 100644 index 0000000..14c6dd1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketDaoImpl.java @@ -0,0 +1,80 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreStockCheckTicketDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreStockCheckTicket; + +/** + * 门店库存盘点单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketDaoImpl") +public class StoreStockCheckTicketDaoImpl extends BaseDaoImpl implements StoreStockCheckTicketDao { + + @Override + public List getUnCheckList(String tenantId, String storeId, String storageId) { + return getUnCheckList(tenantId, storeId, storageId, false); + } + + @Override + public List getUnCheckList(String tenantId, String storeId, String storageId, Boolean isBatch) { + String defaultStatement = StoreStockCheckTicket.class.getName() + "Mapper.getUnCheckList"; + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ct.tenantId", tenantId)); + criteria.add(Restrictions.eq("ct.status", 0)); + criteria.add(Restrictions.eq("ct.storeId", storeId)); + if (StringUtils.isNotBlank(storageId)) { + criteria.add(Restrictions.eq("ctd.storageId", storageId)); + } + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List> getSummary(String tenantId, String storeId, String no, String storageId, String startTime, String endTime, String typeId, String keyword) { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + + String defaultStatement = StoreStockCheckTicket.class.getName() + "Mapper.getSummary"; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ct.tenantId", tenantId)); + criteria.add(Restrictions.eq("ct.storeId", storeId)); + criteria.add(Restrictions.eq("ct.status", 1)); + if (StringUtils.isNotBlank(no)) { + criteria.add(Restrictions.eq("ct.no", no)); + } + if (StringUtils.isNotBlank(storageId)) { + criteria.add(Restrictions.eq("ctd.storageId", storageId)); + } + if (StringUtils.isNotBlank(startTime)) { + criteria.add(Restrictions.gt("ct.checkDate", startTime)); + } + if (StringUtils.isNotBlank(endTime)) { + criteria.add(Restrictions.lt("ct.checkDate", endTime)); + } + if (StringUtils.isNotBlank(typeId)) { + criteria.add(Restrictions.like("p.typePath", "%" + typeId + "%")); + } + if (StringUtils.isNotBlank(keyword)) { + criteria.add(Restrictions.or(Restrictions.like("p.barCode", "%" + keyword + "%"),Restrictions.like("ctd.productNo", "%" + keyword + "%"), Restrictions.like("ctd.productName", "%" + keyword + "%"))); + } + criteria.add(Restrictions.order("ct.no", "asc")); + criteria.add(Restrictions.order("ctd.productNo", "asc")); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketDetailDaoImpl.java new file mode 100644 index 0000000..e06b8d3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketDetailDaoImpl.java @@ -0,0 +1,66 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; +import java.util.Map; + +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreStockCheckTicketDetailDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreStockCheckTicketDetail; + +/** + * 门店库存盘点单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketDetailDaoImpl") +public class StoreStockCheckTicketDetailDaoImpl extends BaseDaoImpl implements StoreStockCheckTicketDetailDao { + + @Override + public List> getList4UnCheck(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreStockCheckTicketDetail.class.getName() + "Mapper.getList4UnCheck"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ctd.tenantId", tenantId)); + criteria.add(Restrictions.eq("ct.status", 0)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getPagerCheckedTicketDetails(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreStockCheckTicketDetail.class.getName() + "Mapper.getPagerCheckedTicketDetails"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListCheckedTicketDetails(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreStockCheckTicketDetail.class.getName() + "Mapper.getListCheckedTicketDetails"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ticket.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListCheckedTicketDetails(String tenantId, Criteria criteria) { + return getListCheckedTicketDetails(tenantId,criteria,false); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketLogDaoImpl.java new file mode 100644 index 0000000..8b813d3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStockCheckTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreStockCheckTicketLogDao; +import com.jwsaas.entity.food.StoreStockCheckTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店库存盘点单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketLogDaoImpl") +public class StoreStockCheckTicketLogDaoImpl extends BaseDaoImpl implements StoreStockCheckTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageDaoImpl.java new file mode 100644 index 0000000..3d0364a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageDaoImpl.java @@ -0,0 +1,115 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.entity.food.StoreStorage; +import org.apache.commons.lang3.BooleanUtils; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StoreStorageDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 门店仓库数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageDaoImpl") +public class StoreStorageDaoImpl extends BaseDaoImpl implements StoreStorageDao { + + @Override + public List getListByStoreId(String tenantId, String storeId) { + String defaultStatement = StoreStorage.class.getName() + "Mapper.getListByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer saveStoreStorageRelations(String tenantId, List list) { + Integer result = 0; + String defaultStatement = StoreStorage.class.getName() + "Mapper.saveStoreStorageRelations"; + Assert.notEmpty(list, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < list.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(list.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(list.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, list.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getStoreStorageStoreIdsByStorageId(String tenantId, String storageId) { + String defaultStatement = StoreStorage.class.getName() + "Mapper.getStoreStorageStoreIdsByStorageId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storageId", storageId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer deleteStoreStorageRelations(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = StoreStorage.class.getName() + "Mapper.deleteStoreStorageRelations"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public List getAllStoreStorageInfos(String tenantId, Criteria criteria) { + return getAllStoreStorageInfos(tenantId,criteria,false); + } + + @Override + public List getAllStoreStorageInfos(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = StoreStorage.class.getName() + "Mapper.getAllStoreStorageInfos"; + // 增加租户过滤 + criteria.add(Restrictions.eq("storage.tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListByStoreIdBatch(String tenantId, String storeId) { + String defaultStatement = StoreStorage.class.getName() + "Mapper.getListByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketDaoImpl.java new file mode 100644 index 0000000..9e6a8f8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreStorageOutTicketDao; +import com.jwsaas.entity.food.StoreStorageOutTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店出库单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketDaoImpl") +public class StoreStorageOutTicketDaoImpl extends BaseDaoImpl implements StoreStorageOutTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketDetailDaoImpl.java new file mode 100644 index 0000000..4b883d2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketDetailDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreStorageOutTicketDetailDao; +import com.jwsaas.entity.food.StoreStorageOutTicketDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 门店出库单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketDetailDaoImpl") +public class StoreStorageOutTicketDetailDaoImpl extends BaseDaoImpl implements StoreStorageOutTicketDetailDao { + + @Override + public List getPagerSumAmount(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreStorageOutTicketDetail.class.getName() + "Mapper.getPagerSumAmount"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListSumAmount(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreStorageOutTicketDetail.class.getName() + "Mapper.getListSumAmount"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketLogDaoImpl.java new file mode 100644 index 0000000..c6e17da --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageOutTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreStorageOutTicketLogDao; +import com.jwsaas.entity.food.StoreStorageOutTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店出库单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketLogDaoImpl") +public class StoreStorageOutTicketLogDaoImpl extends BaseDaoImpl implements StoreStorageOutTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketDaoImpl.java new file mode 100644 index 0000000..86efc2c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreStorageTicketDao; +import com.jwsaas.entity.food.StoreStorageTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店入库单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketDaoImpl") +public class StoreStorageTicketDaoImpl extends BaseDaoImpl implements StoreStorageTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketDetailDaoImpl.java new file mode 100644 index 0000000..963adef --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketDetailDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreStorageTicketDetailDao; +import com.jwsaas.entity.food.StoreStorageTicketDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 门店入库单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketDetailDaoImpl") +public class StoreStorageTicketDetailDaoImpl extends BaseDaoImpl implements StoreStorageTicketDetailDao { + + @Override + public List getPagerSumAmount(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreStorageTicketDetail.class.getName() + "Mapper.getPagerSumAmount"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListSumAmount(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = StoreStorageTicketDetail.class.getName() + "Mapper.getListSumAmount"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketLogDaoImpl.java new file mode 100644 index 0000000..c06eb5e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreStorageTicketLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreStorageTicketLogDao; +import com.jwsaas.entity.food.StoreStorageTicketLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店入库单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketLogDaoImpl") +public class StoreStorageTicketLogDaoImpl extends BaseDaoImpl implements StoreStorageTicketLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreTypeDaoImpl.java new file mode 100644 index 0000000..57c89d6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreTypeDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StoreTypeDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreType; + +/** + * 门店类型数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreTypeDaoImpl") +public class StoreTypeDaoImpl extends BaseDaoImpl implements StoreTypeDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = StoreType.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreWorkerDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreWorkerDaoImpl.java new file mode 100644 index 0000000..09568c8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreWorkerDaoImpl.java @@ -0,0 +1,179 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreWorkerDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoreWorker; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 门店员工管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreWorkerDaoImpl") +public class StoreWorkerDaoImpl extends BaseDaoImpl implements StoreWorkerDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public String selectMaxValueExtend(String tenantId, String property, List excludeValueList) { + Assert.notNull(excludeValueList, "parameter 'excludeValueList' can't be null"); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.notIn(property, excludeValueList)); + + String defaultStatement = StoreWorker.class.getName() + "Mapper.selectMaxValueExtend"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer saveStores(String tenantId, String storeWorkerId, List storeIdList) { + Integer result = 0; + Assert.notNull(storeWorkerId, "parameter 'storeWorkerId' can't be null"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + String defaultStatement = StoreWorker.class.getName() + "Mapper.saveStores"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < storeIdList.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("workerId", storeWorkerId); + relationship.put("storeId", storeIdList.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public List getStoreIdList(String tenantId, String workerId) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.getStores"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("workerId", workerId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer delStores(String tenantId, String workerId) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.delStores"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("workerId", workerId); + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } + + @Override + public List getPosRoleIds(String tenantId, String workerId) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.getPosRoleIds"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("workerId", workerId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Integer delPosRoleRelation(String tenantId, String workerId) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.delPosRoleRelation"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("workerId", workerId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } + + @Override + public Integer savePosRoleRelation(String tenantId, String workerId, List posRoleIds) { + Integer result = 0; + Assert.notNull(workerId, "parameter 'workerId' can't be null"); + Assert.notEmpty(posRoleIds, "parameter 'posRoleIds' can't be null or empty!"); + String defaultStatement = StoreWorker.class.getName() + "Mapper.savePosRoleRelation"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < posRoleIds.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("workerId", workerId); + relationship.put("roleId", posRoleIds.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public List isStoreWorker(String tenantId, String workerId, String storeId) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.isStoreWorker"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("workerId", workerId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getStoreWorkerList(String tenantId, String storeId) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.getStoreWorkerList"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getWorkerStorePager(String tenantId, PageBounds pageBounds) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.getWorkerStorePager"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } + + @Override + public List getStoreWorkerPager(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = StoreWorker.class.getName() + "Mapper.getStoreWorkerPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("sw.tenantId", tenantId)); + criteria.add(Restrictions.eq("sw.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreWorkerExtDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreWorkerExtDaoImpl.java new file mode 100644 index 0000000..6cfd93f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoreWorkerExtDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.StoreWorkerExtDao; +import com.jwsaas.entity.food.StoreWorkerExt; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店员工扩展信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoreWorkerExtDaoImpl") +public class StoreWorkerExtDaoImpl extends BaseDaoImpl implements StoreWorkerExtDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableAreaDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableAreaDaoImpl.java new file mode 100644 index 0000000..e1d5b8b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableAreaDaoImpl.java @@ -0,0 +1,39 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StoretableAreaDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoretableArea; + +/** + * 餐桌区域数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoretableAreaDaoImpl") +public class StoretableAreaDaoImpl extends BaseDaoImpl implements StoretableAreaDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = StoretableArea.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getListByStoreId(String tenantId, String storeId) { + String defaultStatement = StoretableArea.class.getName() + "Mapper.getListByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableDaoImpl.java new file mode 100644 index 0000000..37044e4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableDaoImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoretableDao; +import com.jwsaas.entity.food.Storetable; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 餐桌资料数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoretableDaoImpl") +public class StoretableDaoImpl extends BaseDaoImpl implements StoretableDao { + + @Override + public List getWeixinStoreTablePager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = Storetable.class.getName() + "Mapper.getWeixinStoreTablePager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tab.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getProgramStoreTablePager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = Storetable.class.getName() + "Mapper.getProgramStoreTablePager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tab.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableTypeDaoImpl.java new file mode 100644 index 0000000..dda1398 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/StoretableTypeDaoImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.StoretableTypeDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.StoretableType; + +/** + * 餐桌类型数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "StoretableTypeDaoImpl") +public class StoretableTypeDaoImpl extends BaseDaoImpl implements StoretableTypeDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = StoretableType.class.getName() + "Mapper.selectMaxValue"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public List getListByStoreId(String tenantId, String sotreId) { + String defaultStatement = StoretableType.class.getName() + "Mapper.getListByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("sotreId", sotreId); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SupplierDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SupplierDaoImpl.java new file mode 100644 index 0000000..1c05b71 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SupplierDaoImpl.java @@ -0,0 +1,49 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.SupplierDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.Supplier; + +/** + * 供应商信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SupplierDaoImpl") +public class SupplierDaoImpl extends BaseDaoImpl implements SupplierDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = Supplier.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer updateTypeToNull(String tenantId, String typeId) { + return updateTypeToNull(tenantId, typeId, false); + } + + @Override + public Integer updateTypeToNull(String tenantId, String typeId, Boolean isBatch) { + String defaultStatement = Supplier.class.getName() + "Mapper.updateTypeToNull"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("typeId", typeId); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/SupplierTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/SupplierTypeDaoImpl.java new file mode 100644 index 0000000..8cadd85 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/SupplierTypeDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.SupplierTypeDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.SupplierType; + +/** + * 供应商类别数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "SupplierTypeDaoImpl") +public class SupplierTypeDaoImpl extends BaseDaoImpl implements SupplierTypeDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + String defaultStatement = SupplierType.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/TaskScheduleDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/TaskScheduleDaoImpl.java new file mode 100644 index 0000000..9fff08d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/TaskScheduleDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.TaskScheduleDao; +import com.jwsaas.entity.food.TaskSchedule; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 任务管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "TaskScheduleDaoImpl") +public class TaskScheduleDaoImpl extends BaseDaoImpl implements TaskScheduleDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketDaoImpl.java new file mode 100644 index 0000000..9fddc63 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ThuselevelTicketDao; +import com.jwsaas.entity.food.ThuselevelTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 万元用量管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ThuselevelTicketDaoImpl") +public class ThuselevelTicketDaoImpl extends BaseDaoImpl implements ThuselevelTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketMaterialDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketMaterialDaoImpl.java new file mode 100644 index 0000000..a06fede --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketMaterialDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ThuselevelTicketMaterialDao; +import com.jwsaas.entity.food.ThuselevelTicketMaterial; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 万元用量原料数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ThuselevelTicketMaterialDaoImpl") +public class ThuselevelTicketMaterialDaoImpl extends BaseDaoImpl implements ThuselevelTicketMaterialDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketStoreDaoImpl.java new file mode 100644 index 0000000..ec19a31 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/ThuselevelTicketStoreDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.ThuselevelTicketStoreDao; +import com.jwsaas.entity.food.ThuselevelTicketStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 万元用量单门店数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ThuselevelTicketStoreDaoImpl") +public class ThuselevelTicketStoreDaoImpl extends BaseDaoImpl implements ThuselevelTicketStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/TicketPrintSettingDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/TicketPrintSettingDaoImpl.java new file mode 100644 index 0000000..273bc6a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/TicketPrintSettingDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.TicketPrintSettingDao; +import com.jwsaas.entity.food.TicketPrintSetting; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 单据打印设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "TicketPrintSettingDaoImpl") +public class TicketPrintSettingDaoImpl extends BaseDaoImpl implements TicketPrintSettingDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/UserDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/UserDaoImpl.java new file mode 100644 index 0000000..aed180b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/UserDaoImpl.java @@ -0,0 +1,173 @@ +package com.jwsaas.dao.food.impl; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.dao.food.UserDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.User; +import com.jwsaas.utils.ReflectUtils; + +/** + * 用户表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "UserDaoImpl") +public class UserDaoImpl extends BaseDaoImpl implements UserDao { + + @Override + public User getLogin(String tenantId, String userName, String password) { + Assert.notNull(userName, "parameter 'userName' can't be null"); + Assert.notNull(password, "parameter 'password' can't be null"); + String defaultStatement = User.class.getName() + "Mapper.getLogin"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("userName", userName); + parameter.put("password", password); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Integer saveRelationUserRole(String tenantId, String userId, List roleIds) { + Integer result = 0; + Assert.notNull(userId, "parameter 'userId' can't be null"); + Assert.notEmpty(roleIds, "parameter 'roleIds' can't be null or empty!"); + String defaultStatement = User.class.getName() + "Mapper.saveRelationUserRole"; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < roleIds.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("userId", userId); + relationship.put("roleId", roleIds.get(i)); + sqlSession.insert(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public List getRoleIdByUserId(String tenantId, String userId) { + String defaultStatement = User.class.getName() + "Mapper.getRoleIdByUserId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("userId", userId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public int delRelationUserRole(String tenantId, String userId) { + String defaultStatement = User.class.getName() + "Mapper.delRelationUserRole"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("userId", userId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, parameter); + } + + @Override + public int delRelationUserRoles(String tenantId, List userIds) { + Integer result = 0; + String defaultStatement = User.class.getName() + "Mapper.delRelationUserRole"; + Assert.notEmpty(userIds, "parameter 'userIds' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < userIds.size(); i++) { + Map relationship = new HashMap(); + relationship.put("tenantId", tenantId); + relationship.put("userId", userIds.get(i)); + sqlSession.delete(defaultStatement, relationship); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public User save(String tenantId, User entity) { + String defaultStatement = User.class.getName() + "Mapper.save"; + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity, "tenantId", tenantId); + } + this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).insert(defaultStatement, entity); + + return entity; + } + + @Override + public Integer delete(String tenantId, String id) { + String defaultStatement = User.class.getName() + "Mapper.delete"; + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, id); + } + + @Override + public User find(String tenantId, String property, Object value) { + String defaultStatement = User.class.getName() + "Mapper.find"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("value", value); + + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } + + @Override + public List getRoleNameByUserId(String tenantId, String userId) { + String defaultStatement = User.class.getName() + "Mapper.getRoleNameByUserId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("userId", userId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public int updatePwd(String tenantId, String id, String passwd) { + Assert.notNull(id, "parameter 'id' can't be null"); + Assert.notNull(passwd, "parameter 'passwd' can't be null"); + String defaultStatement = User.class.getName() + "Mapper.updatePwd"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", id); + parameter.put("passwd", passwd); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, parameter); + } + + @Override + public Integer update(String tenantId, User entity) { + String defaultStatement = User.class.getName() + "Mapper.update"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity, "tenantId", tenantId); + } + + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, entity); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorAddressDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorAddressDaoImpl.java new file mode 100644 index 0000000..c6cd9c5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorAddressDaoImpl.java @@ -0,0 +1,35 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.VisitorAddressDao; +import com.jwsaas.entity.food.VisitorAddress; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; + +import org.springframework.stereotype.Repository; + +/** + * 熟客常用地址数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VisitorAddressDaoImpl") +public class VisitorAddressDaoImpl extends BaseDaoImpl implements VisitorAddressDao { + + @Override + public List getPagerExtend(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = VisitorAddress.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("va.tenantId", tenantId)); + criteria.add(Restrictions.eq("v.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getWithVisitorPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = VisitorAddress.class.getName() + "Mapper.getWithVisitorPager"; + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorDaoImpl.java new file mode 100644 index 0000000..cd147e6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorDaoImpl.java @@ -0,0 +1,61 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VisitorDao; +import com.jwsaas.entity.food.Visitor; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +/** + * 熟客信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VisitorDaoImpl") +public class VisitorDaoImpl extends BaseDaoImpl implements VisitorDao { + + @Override + public String selectMaxValue(String tenantId, String property) { + return selectMaxValue(tenantId, property, false); + } + + @Override + public String selectMaxValue(String tenantId, String property, Boolean isBatch) { + String defaultStatement = Visitor.class.getName() + "Mapper.selectMaxValue"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + + @Override + public String selectMaxValue(String tenantId, String storeId, String property) { + return selectMaxValue(tenantId, storeId, property, false); + } + + @Override + public String selectMaxValue(String tenantId, String storeId, String property, Boolean isBatch) { + String defaultStatement = Visitor.class.getName() + "Mapper.selectMaxValueWithStoreId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + parameter.put("property", property); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorTagDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorTagDaoImpl.java new file mode 100644 index 0000000..ba44321 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VisitorTagDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.food.impl; + +import java.util.List; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.VisitorTagDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.VisitorTag; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 熟客标签数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VisitorTagDaoImpl") +public class VisitorTagDaoImpl extends BaseDaoImpl implements VisitorTagDao { + + @Override + public List getPagerExtend(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = VisitorTag.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("vt.tenantId", tenantId)); + criteria.add(Restrictions.eq("v.storeId", storeId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposAdPictureDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposAdPictureDaoImpl.java new file mode 100644 index 0000000..d4f6369 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposAdPictureDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposAdPictureDao; +import com.jwsaas.entity.food.VposAdPicture; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 广告图片数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposAdPictureDaoImpl") +public class VposAdPictureDaoImpl extends BaseDaoImpl implements VposAdPictureDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposCcbfzAccountDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposCcbfzAccountDaoImpl.java new file mode 100644 index 0000000..e540474 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposCcbfzAccountDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.VposCcbfzAccountDao; +import com.jwsaas.entity.food.VposCcbfzAccount; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 档口商户建行分账账户信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposCcbfzAccountDaoImpl") +public class VposCcbfzAccountDaoImpl extends BaseDaoImpl implements VposCcbfzAccountDao { + + @Override + public List getAllSeriesIds(String tenantId, Criteria criteria) { + return getAllSeriesIds(tenantId,criteria,false); + } + + @Override + public List getAllSeriesIds(String tenantId, Criteria criteria, boolean isBatch) { + String defaultStatement = VposCcbfzAccount.class.getName() + "Mapper.getAllSeriesIds"; + + Map parameter = new HashMap(); + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposProductEvaluateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposProductEvaluateDaoImpl.java new file mode 100644 index 0000000..4b86eaa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposProductEvaluateDaoImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.food.VposProductEvaluateDao; +import com.jwsaas.entity.food.VposProductEvaluate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 商品评价表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposProductEvaluateDaoImpl") +public class VposProductEvaluateDaoImpl extends BaseDaoImpl implements VposProductEvaluateDao { + + @Override + public List getPager4ApiView(String tenantId, String openId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = VposProductEvaluate.class.getName() + "Mapper.getPager4ApiView"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("openId", openId); + String conditionSql = null; + if(StringUtils.isNotBlank(criteria.toSQL())){ + conditionSql = criteria.toSQL().trim(); + if(!StringUtils.startsWithIgnoreCase(conditionSql,"order")){ + conditionSql = " AND " + conditionSql; + } + } + parameter.put("conditionSQL", conditionSql); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter, pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposProductEvaluateImageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposProductEvaluateImageDaoImpl.java new file mode 100644 index 0000000..813f57b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposProductEvaluateImageDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposProductEvaluateImageDao; +import com.jwsaas.entity.food.VposProductEvaluateImage; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 商品评价图片表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposProductEvaluateImageDaoImpl") +public class VposProductEvaluateImageDaoImpl extends BaseDaoImpl implements VposProductEvaluateImageDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreBusinessTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreBusinessTicketDaoImpl.java new file mode 100644 index 0000000..d22b3e2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreBusinessTicketDaoImpl.java @@ -0,0 +1,30 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.VposStoreBusinessTicketDao; +import com.jwsaas.entity.food.VposStoreBusinessTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 移动端销售单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposStoreBusinessTicketDaoImpl") +public class VposStoreBusinessTicketDaoImpl extends BaseDaoImpl implements VposStoreBusinessTicketDao { + + @Override + public List getListByExport(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = VposStoreBusinessTicket.class.getName() + "Mapper.getListByExport"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreBusinessTicketInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreBusinessTicketInfoDaoImpl.java new file mode 100644 index 0000000..76e73d8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreBusinessTicketInfoDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposStoreBusinessTicketInfoDao; +import com.jwsaas.entity.food.VposStoreBusinessTicketInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 移动端销售单优惠明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposStoreBusinessTicketInfoDaoImpl") +public class VposStoreBusinessTicketInfoDaoImpl extends BaseDaoImpl implements VposStoreBusinessTicketInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductDaoImpl.java new file mode 100644 index 0000000..64bb13c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductDaoImpl.java @@ -0,0 +1,53 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.VposStoreOrderProductDao; +import com.jwsaas.entity.food.VposStoreOrderProduct; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 移动端产品销售记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposStoreOrderProductDaoImpl") +public class VposStoreOrderProductDaoImpl extends BaseDaoImpl implements VposStoreOrderProductDao { + + @Override + public List getListByExport(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = VposStoreOrderProduct.class.getName() + "Mapper.getListByExport"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getSummaryList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = VposStoreOrderProduct.class.getName() + "Mapper.getSummaryList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getListByProductSalesSummary(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = VposStoreOrderProduct.class.getName() + "Mapper.getListByProductSalesSummary"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductInfoDaoImpl.java new file mode 100644 index 0000000..41e5708 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductInfoDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposStoreOrderProductInfoDao; +import com.jwsaas.entity.food.VposStoreOrderProductInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 移动端产品销售记录优惠明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposStoreOrderProductInfoDaoImpl") +public class VposStoreOrderProductInfoDaoImpl extends BaseDaoImpl implements VposStoreOrderProductInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductMakeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductMakeDaoImpl.java new file mode 100644 index 0000000..24b1580 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStoreOrderProductMakeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposStoreOrderProductMakeDao; +import com.jwsaas.entity.food.VposStoreOrderProductMake; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 移动端销售单做法数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposStoreOrderProductMakeDaoImpl") +public class VposStoreOrderProductMakeDaoImpl extends BaseDaoImpl implements VposStoreOrderProductMakeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStorePayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStorePayDaoImpl.java new file mode 100644 index 0000000..9906fb8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposStorePayDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposStorePayDao; +import com.jwsaas.entity.food.VposStorePay; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 移动端收银流水数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposStorePayDaoImpl") +public class VposStorePayDaoImpl extends BaseDaoImpl implements VposStorePayDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposUserDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposUserDaoImpl.java new file mode 100644 index 0000000..a93a5ab --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposUserDaoImpl.java @@ -0,0 +1,20 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposUserDao; +import com.jwsaas.entity.food.VposUser; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 档口商户信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposUserDaoImpl") +public class VposUserDaoImpl extends BaseDaoImpl implements VposUserDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/VposUserSeriesDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposUserSeriesDaoImpl.java new file mode 100644 index 0000000..f1e4191 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/VposUserSeriesDaoImpl.java @@ -0,0 +1,40 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.VposUserSeriesDao; +import com.jwsaas.entity.food.VposUserSeries; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 档口商户分类关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "VposUserSeriesDaoImpl") +public class VposUserSeriesDaoImpl extends BaseDaoImpl implements VposUserSeriesDao { + + @Override + public List getSeriesIdByUserId(String tenantId, String id, boolean isBatch) { + String defaultStatement = VposUserSeries.class.getName() + "Mapper.getSeriesIdByUserId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("userId", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getSeriesIdByUserId(String tenantId, String id) { + return getSeriesIdByUserId(tenantId,id,false); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdPictureDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdPictureDaoImpl.java new file mode 100644 index 0000000..c58bdd2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdPictureDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxAdPictureDao; +import com.jwsaas.entity.food.WxAdPicture; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信广告图片数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxAdPictureDaoImpl") +public class WxAdPictureDaoImpl extends BaseDaoImpl implements WxAdPictureDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceGoodsDaoImpl.java new file mode 100644 index 0000000..83fd153 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceGoodsDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxAdjustPriceGoodsDao; +import com.jwsaas.entity.food.WxAdjustPriceGoods; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.service.food.WxAdjustPriceGoodsService; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 微信调价单商品明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxAdjustPriceGoodsDaoImpl") +public class WxAdjustPriceGoodsDaoImpl extends BaseDaoImpl implements WxAdjustPriceGoodsDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxAdjustPriceGoods.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("adjust.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceStoreDaoImpl.java new file mode 100644 index 0000000..fc6e2e4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceStoreDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxAdjustPriceStoreDao; +import com.jwsaas.entity.food.WxAdjustPriceStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 微信调价单门店明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxAdjustPriceStoreDaoImpl") +public class WxAdjustPriceStoreDaoImpl extends BaseDaoImpl implements WxAdjustPriceStoreDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria,boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxAdjustPriceStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("adjust.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId,criteria,false); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceTicketDaoImpl.java new file mode 100644 index 0000000..f4dfc1b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxAdjustPriceTicketDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxAdjustPriceTicketDao; +import com.jwsaas.entity.food.WxAdjustPriceTicket; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信商品调价单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxAdjustPriceTicketDaoImpl") +public class WxAdjustPriceTicketDaoImpl extends BaseDaoImpl implements WxAdjustPriceTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsCategoryDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsCategoryDaoImpl.java new file mode 100644 index 0000000..31d895d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsCategoryDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxGoodsCategoryDao; +import com.jwsaas.entity.food.WxGoodsCategory; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信商品分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsCategoryDaoImpl") +public class WxGoodsCategoryDaoImpl extends BaseDaoImpl implements WxGoodsCategoryDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsDaoImpl.java new file mode 100644 index 0000000..52502fd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsDaoImpl.java @@ -0,0 +1,70 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxGoodsDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.WxGoods; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 微信商品信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsDaoImpl") +public class WxGoodsDaoImpl extends BaseDaoImpl implements WxGoodsDao { + + @Override + public List getAllSpecIds(String tenantId) { + + String defaultStatement = WxGoods.class.getName() + "Mapper.getAllSpecIds"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getAllProductIds(String tenantId) { + String defaultStatement = WxGoods.class.getName() + "Mapper.getAllProductIds"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getExtendPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = WxGoods.class.getName() + "Mapper.getExtendPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("wx.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + + @Override + public List getListByStoreIds(String tenantId, List ids, Criteria criteria) { + String defaultStatement = WxGoods.class.getName() + "Mapper.getListByStoreIds"; + // 增加租户过滤 + criteria.add(Restrictions.eq("goods.tenantId", tenantId)); + + StringBuffer storeIds = new StringBuffer(); + for (String storeId : ids) { + storeIds.append(storeId).append(","); + } + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeIds", storeIds.substring(0, storeIds.length() - 1)); + parameter.put("storeSize", ids.size());// 门店数量 + parameter.put("conditionSQL", StringUtils.isNotBlank(criteria.toSQL()) ? " AND " + criteria.toSQL() : null); + + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsMakeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsMakeDaoImpl.java new file mode 100644 index 0000000..bf41dfb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsMakeDaoImpl.java @@ -0,0 +1,65 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxGoodsMakeDao; +import com.jwsaas.entity.food.WxGoodsMake; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +/** + * 微信商品做法关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsMakeDaoImpl") +public class WxGoodsMakeDaoImpl extends BaseDaoImpl implements WxGoodsMakeDao { + + @Override + public List> getMakeCount(String tenantId, Criteria criteria) { + return getMakeCount(tenantId, criteria, false); + } + + @Override + public List> getMakeCount(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxGoodsMake.class.getName() + "Mapper.getMakeCount"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.group("productId")); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getListExtends(String tenantId, Criteria criteria) { + return getListExtends(tenantId,criteria,false); + } + + @Override + public List getListExtends(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxGoodsMake.class.getName() + "Mapper.getListExtends"; + // 增加租户过滤 + criteria.add(Restrictions.eq("wgm.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateDaoImpl.java new file mode 100644 index 0000000..54ab251 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxGoodsTemplateDao; +import com.jwsaas.entity.food.WxGoodsTemplate; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信商品模板数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsTemplateDaoImpl") +public class WxGoodsTemplateDaoImpl extends BaseDaoImpl implements WxGoodsTemplateDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateDetailDaoImpl.java new file mode 100644 index 0000000..f81cd8d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateDetailDaoImpl.java @@ -0,0 +1,64 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxGoodsTemplateDetailDao; +import com.jwsaas.entity.food.WxGoodsTemplateDetail; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 微信商品模板明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsTemplateDetailDaoImpl") +public class WxGoodsTemplateDetailDaoImpl extends BaseDaoImpl implements WxGoodsTemplateDetailDao { + + @Override + public List getGoodsIdByTemplateId(String tenantId, String templateId,boolean isBatch) { + String defaultStatement = WxGoodsTemplateDetail.class.getName() + "Mapper.getGoodsIdByTemplateId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("templateId", templateId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getGoodsIdByTemplateId(String tenantId, String templateId) { + return getGoodsIdByTemplateId(tenantId,templateId,false); + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria) { + return getListWithExtend(tenantId,criteria,false); + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxGoodsTemplateDetail.class.getName() + "Mapper.getListWithExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("detail.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateStoreDaoImpl.java new file mode 100644 index 0000000..4745c41 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxGoodsTemplateStoreDaoImpl.java @@ -0,0 +1,64 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxGoodsTemplateStoreDao; +import com.jwsaas.entity.food.WxGoodsTemplateStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 微信商品模板门店明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsTemplateStoreDaoImpl") +public class WxGoodsTemplateStoreDaoImpl extends BaseDaoImpl implements WxGoodsTemplateStoreDao { + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId) { + return getStoreIdByTemplateId(tenantId,templateId,false); + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId,boolean isBatch) { + String defaultStatement = WxGoodsTemplateStore.class.getName() + "Mapper.getStoreIdByTemplateId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("templateId", templateId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria) { + return getListWithExtend(tenantId,criteria,false); + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxGoodsTemplateStore.class.getName() + "Mapper.getListWithExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("ts.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxPaymentParameterDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxPaymentParameterDaoImpl.java new file mode 100644 index 0000000..5f61feb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxPaymentParameterDaoImpl.java @@ -0,0 +1,103 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxPaymentParameterDao; +import com.jwsaas.entity.food.PaymentParameter; +import com.jwsaas.entity.food.WxPaymentParameter; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.utils.ReflectUtils; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 微信点餐支付参数方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxPaymentParameterDaoImpl") +public class WxPaymentParameterDaoImpl extends BaseDaoImpl implements WxPaymentParameterDao { + + @Override + public Integer saveRelation(String tenantId, List parameters) { + Integer result = 0; + String defaultStatement = WxPaymentParameter.class.getName() + "Mapper.saveRelation"; + Assert.notEmpty(parameters, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < parameters.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(parameters.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(parameters.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, parameters.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public List getStoreIdsByPaymentId(String tenantId, String id) { + return getStoreIdsByPaymentId(tenantId, id, false); + } + + @Override + public List getStoreIdsByPaymentId(String tenantId, String id, boolean isBatch) { + String defaultStatement = WxPaymentParameter.class.getName() + "Mapper.getStoreIdsByPaymentId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("parameterId", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public Integer deleteRelationByCriteria(String tenantId, Criteria criteria) { + return deleteRelationByCriteria(tenantId, criteria, false); + } + + @Override + public Integer deleteRelationByCriteria(String tenantId, Criteria criteria, boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = WxPaymentParameter.class.getName() + "Mapper.deleteRelationByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public List getPaymentParameterByStoreId(String tenantId, String wxStoreId) { + String defaultStatement = WxPaymentParameter.class.getName() + "Mapper.getPaymentParameterByStoreId"; + Map parameter = new HashMap(); + parameter.put("wxStoreId", wxStoreId); + parameter.put("tenantId", tenantId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxQrcodeSettingDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxQrcodeSettingDaoImpl.java new file mode 100644 index 0000000..65368e7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxQrcodeSettingDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxQrcodeSettingDao; +import com.jwsaas.entity.food.WxQrcodeSetting; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信二维码图片设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxQrcodeSettingDaoImpl") +public class WxQrcodeSettingDaoImpl extends BaseDaoImpl implements WxQrcodeSettingDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderDaoImpl.java new file mode 100644 index 0000000..1860bf6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderDaoImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.food.WxSalesOrderDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.WxSalesOrder; + +/** + * 微信销售订单数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderDaoImpl") +public class WxSalesOrderDaoImpl extends BaseDaoImpl implements WxSalesOrderDao { + + @Override + public String selectMaxDaySeq(String tenantId, String currentDate, String storeId) { + return selectMaxDaySeq(tenantId, currentDate, storeId, false); + } + + @Override + public String selectMaxDaySeq(String tenantId, String currentDate, String storeId, Boolean isBatch) { + String defaultStatement = WxSalesOrder.class.getName() + "Mapper.selectMaxDaySeq"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("currentDate", currentDate + " 00:00:00"); + parameter.put("storeId", storeId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemDaoImpl.java new file mode 100644 index 0000000..e53017e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxSalesOrderItemDao; +import com.jwsaas.entity.food.WxSalesOrderItem; +import com.jwsaas.dao.impl.BaseDaoImpl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +/** + * 微信销售订单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemDaoImpl") +public class WxSalesOrderItemDaoImpl extends BaseDaoImpl implements WxSalesOrderItemDao { + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxSalesOrderItem.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("oi.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemMakeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemMakeDaoImpl.java new file mode 100644 index 0000000..33f846f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemMakeDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxSalesOrderItemMakeDao; +import com.jwsaas.entity.food.WxSalesOrderItemMake; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信销售订单做法明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemMakeDaoImpl") +public class WxSalesOrderItemMakeDaoImpl extends BaseDaoImpl implements WxSalesOrderItemMakeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemPromoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemPromoDaoImpl.java new file mode 100644 index 0000000..7878967 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderItemPromoDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxSalesOrderItemPromoDao; +import com.jwsaas.entity.food.WxSalesOrderItemPromo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信销售订单明细项优惠信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemPromoDaoImpl") +public class WxSalesOrderItemPromoDaoImpl extends BaseDaoImpl implements WxSalesOrderItemPromoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderLogDaoImpl.java new file mode 100644 index 0000000..9aade80 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesOrderLogDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxSalesOrderLogDao; +import com.jwsaas.entity.food.WxSalesOrderLog; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信销售订单操作记录数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderLogDaoImpl") +public class WxSalesOrderLogDaoImpl extends BaseDaoImpl implements WxSalesOrderLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesPaymentDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesPaymentDaoImpl.java new file mode 100644 index 0000000..acaf538 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxSalesPaymentDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxSalesPaymentDao; +import com.jwsaas.entity.food.WxSalesPayment; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信订单付款信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxSalesPaymentDaoImpl") +public class WxSalesPaymentDaoImpl extends BaseDaoImpl implements WxSalesPaymentDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxStoreDaoImpl.java new file mode 100644 index 0000000..15074f2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxStoreDaoImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxStoreDao; +import com.jwsaas.entity.food.WxStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 微信门店信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxStoreDaoImpl") +public class WxStoreDaoImpl extends BaseDaoImpl implements WxStoreDao { + + @Override + public List getStoreIdList(String tenantId) { + + String defaultStatement = WxStore.class.getName() + "Mapper.getStoreIdList"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = WxStore.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("wx.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxStore.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("wx.tenantId", tenantId)); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, + criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxStoreGoodsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxStoreGoodsDaoImpl.java new file mode 100644 index 0000000..d35fa0a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxStoreGoodsDaoImpl.java @@ -0,0 +1,92 @@ +package com.jwsaas.dao.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxStoreGoodsDao; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.entity.food.WxStoreGoods; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 微信门店商品关联表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxStoreGoodsDaoImpl") +public class WxStoreGoodsDaoImpl extends BaseDaoImpl implements WxStoreGoodsDao { + + @Override + public List> getPagerExtendSimple(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = WxStoreGoods.class.getName() + "Mapper.getPagerExtendSimple"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List> getListExtend(String tenantId, Criteria criteria) { + return getListExtend(tenantId, criteria, false); + } + + @Override + public List> getListExtend(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = WxStoreGoods.class.getName() + "Mapper.getListExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("wsg.tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = WxStoreGoods.class.getName() + "Mapper.getPagerExtend"; + // 增加租户过滤 + criteria.add(Restrictions.eq("goods.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getSpecIdsByWxStoreId(String tenantId, String storeId) { + return getSpecIdsByWxStoreId(tenantId, storeId, false); + } + + @Override + public List getSpecIdsByWxStoreId(String tenantId, String storeId, boolean isBatch) { + String defaultStatement = WxStoreGoods.class.getName() + "Mapper.getSpecIdsByWxStoreId"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("storeId", storeId); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + } + + @Override + public Integer updateStoreWxGoodsStatusByStoreId(String tenantId, String wxStoreId, int saleStatus) { + String defaultStatement = WxStoreGoods.class.getName() + "Mapper.updateStoreWxGoodsStatusByStoreId"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("saleStatus", saleStatus); + parameter.put("storeId", wxStoreId); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxdcDistributionAddressDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxdcDistributionAddressDaoImpl.java new file mode 100644 index 0000000..e1c6eab --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxdcDistributionAddressDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxdcDistributionAddressDao; +import com.jwsaas.entity.food.WxdcDistributionAddress; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信点餐饮配送地址数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxdcDistributionAddressDaoImpl") +public class WxdcDistributionAddressDaoImpl extends BaseDaoImpl implements WxdcDistributionAddressDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/WxdcDistributionDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxdcDistributionDaoImpl.java new file mode 100644 index 0000000..6266e9e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/WxdcDistributionDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.WxdcDistributionDao; +import com.jwsaas.entity.food.WxdcDistribution; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 微信点餐饮配送信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "WxdcDistributionDaoImpl") +public class WxdcDistributionDaoImpl extends BaseDaoImpl implements WxdcDistributionDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/YunposSetDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/YunposSetDaoImpl.java new file mode 100644 index 0000000..fa69766 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/YunposSetDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.YunposSetDao; +import com.jwsaas.entity.food.YunposSet; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店云参数设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "YunposSetDaoImpl") +public class YunposSetDaoImpl extends BaseDaoImpl implements YunposSetDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/food/impl/YunposSetStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/food/impl/YunposSetStoreDaoImpl.java new file mode 100644 index 0000000..7acff4a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/food/impl/YunposSetStoreDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.food.impl; + +import com.jwsaas.dao.food.YunposSetStoreDao; +import com.jwsaas.entity.food.YunposSetStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 门店云参数设置门店关联数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "YunposSetStoreDaoImpl") +public class YunposSetStoreDaoImpl extends BaseDaoImpl implements YunposSetStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/impl/BaseDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/impl/BaseDaoImpl.java new file mode 100644 index 0000000..012bb8c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/impl/BaseDaoImpl.java @@ -0,0 +1,546 @@ +package com.jwsaas.dao.impl; + +import java.io.Serializable; +import java.lang.reflect.Field; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.executor.BatchResult; +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSession; +import org.mybatis.spring.SqlSessionTemplate; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.util.Assert; + +import com.alibaba.druid.sql.PagerUtils; +import com.alibaba.druid.util.JdbcConstants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.BaseEntity; +import com.jwsaas.mybatis.SqlSessionTemplateFactory; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.mybatis.support.SqlSessionCallback; +import com.jwsaas.pager.Pager; +import com.jwsaas.utils.ReflectUtils; + +/** + * Dao实现类 - Dao实现类基类 + */ +public abstract class BaseDaoImpl implements BaseDao { + + protected final Logger logger = LoggerFactory.getLogger(this.getClass()); + + /** 大批量操作时,每1000笔批量操作后执行JDBC操作 */ + public static final int DEFAULT_FLUSH_BATCH_SIZE = 1000; + + /** + * 动态SQL固定的Namespace + */ + public final String DYNAMIC_SQL_NAMPSPACE = "com.jwsaas.DynamicMapper."; + + protected SqlSessionTemplateFactory sqlSessionTemplateFactory; + + private Class entityClass = null; + + @SuppressWarnings({ "unchecked", "rawtypes" }) + public BaseDaoImpl() { + this.entityClass = null; + Class c = getClass(); + Type type = c.getGenericSuperclass(); + if (type instanceof ParameterizedType) { + Type[] parameterizedType = ((ParameterizedType) type).getActualTypeArguments(); + this.entityClass = (Class) parameterizedType[0]; + } + } + + @Resource(name = "sqlSessionTemplateFactory") + public void setSqlSessionTemplateFactory(SqlSessionTemplateFactory sqlSessionTemplateFactory) { + this.sqlSessionTemplateFactory = sqlSessionTemplateFactory; + } + + @Override + public T get(String tenantId, PK id) { + return get(tenantId, id, false); + } + + @Override + public T get(String tenantId, PK id, Boolean isBatch) { + String defaultStatement = this.entityClass.getName() + "Mapper.get"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("id", id); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + + @Override + public List getPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = this.entityClass.getName() + "Mapper.getPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } + + @Override + public T find(String tenantId, String property, Object value) { + return find(tenantId, property, value, false); + } + + @Override + public T find(String tenantId, String property, Object value, Boolean isBatch) { + String defaultStatement = this.entityClass.getName() + "Mapper.find"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("value", value); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectOne(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + } + + @Override + public List findList(String tenantId, String property, Object value, Boolean isBatch) { + String defaultStatement = this.entityClass.getName() + "Mapper.find"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("value", value); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + + @Override + public List findListByIds(String tenantId, List ids, Boolean isBatch) { + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + + String defaultStatement = this.entityClass.getName() + "Mapper.findListByIds"; + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + ids); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, ids); + } + + } + + @Override + public List findList(String tenantId, String property, Object value) { + return findList(tenantId, property, value, false); + } + + @Override + public List findListByIds(String tenantId, List ids) { + return findListByIds(tenantId, ids, false); + } + + @Override + public List getList(String tenantId, Criteria criteria) { + return getList(tenantId, criteria, false); + } + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = this.entityClass.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public Long getTotalCount(String tenantId) { + String defaultStatement = this.entityClass.getName() + "Mapper.getTotalCount"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Boolean isExist(String tenantId, String property, Object value) { + String defaultStatement = this.entityClass.getName() + "Mapper.isExist"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("value", value); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public T save(String tenantId, T entity) { + return save(tenantId, entity, false); + } + + @Override + public T save(String tenantId, T entity, Boolean isBatch) { + String defaultStatement = this.entityClass.getName() + "Mapper.save"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity, "tenantId", tenantId); + } + + if (BooleanUtils.isTrue(isBatch)) { + this.sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).insert(defaultStatement, entity); + } else { + this.sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, entity); + } + + return entity; + } + + @Override + public Integer save(String tenantId, List entity) { + Integer result = 0; + String defaultStatement = this.entityClass.getName() + "Mapper.save"; + Assert.notEmpty(entity, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < entity.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity.get(i), "tenantId", tenantId); + } + + sqlSession.insert(defaultStatement, entity.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public Integer save(String tenantId, String statement, Map parameter) { + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + parameter.put("tenantId", tenantId); + return sqlSession.insert(statement, parameter); + } + + @Override + public Integer save(String tenantId, String statement, List list) { + Integer result = 0; + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + // 提交次数 + int counts = list.size() / DEFAULT_FLUSH_BATCH_SIZE + (list.size() % DEFAULT_FLUSH_BATCH_SIZE == 0 ? 0 : 1); + for (int i = 0; i < counts; i++) { + // 起始位置 + Integer fromIndex = i * DEFAULT_FLUSH_BATCH_SIZE; + // 结束位置 + Integer toIndex = (i + 1 == counts) ? list.size() : (i + 1) * DEFAULT_FLUSH_BATCH_SIZE; + List subList = list.subList(fromIndex, toIndex); + + parameter.put("list", subList); + + sqlSession.insert(statement, parameter); + + List currentBatchResultList = sqlSession.flushStatements(); + + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public Integer update(String tenantId, T entity) { + return update(tenantId, entity, false); + } + + @Override + public Integer update(String tenantId, T entity, Boolean isBatch) { + String defaultStatement = this.entityClass.getName() + "Mapper.update"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity, "tenantId", tenantId); + } + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, entity); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, entity); + } + } + + @Override + public Integer update(String tenantId, List entity) { + Integer result = 0; + String defaultStatement = this.entityClass.getName() + "Mapper.update"; + Assert.notEmpty(entity, "parameter 'entity' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < entity.size(); i++) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity.get(i), "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity.get(i), "tenantId", tenantId); + } + + sqlSession.update(defaultStatement, entity.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + + return result; + } + + @Override + public Integer delete(String tenantId, PK id) { + return delete(tenantId, id, false); + } + + @Override + public Integer delete(String tenantId, PK id, Boolean isBatch) { + String defaultStatement = this.entityClass.getName() + "Mapper.delete"; + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, id); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, id); + } + } + + @Override + public Integer delete(String tenantId, String property, Object value) { + return delete(tenantId, property, value, false); + } + + @Override + public Integer delete(String tenantId, String property, Object value, Boolean isBatch) { + String defaultStatement = this.entityClass.getName() + "Mapper.deleteByProperty"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("property", property); + parameter.put("value", value); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, parameter); + } + + } + + @Override + public Integer delete(String tenantId, Criteria criteria) { + return delete(tenantId, criteria, false); + } + + @Override + public Integer delete(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = this.entityClass.getName() + "Mapper.deleteByCriteria"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).delete(defaultStatement, + criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().delete(defaultStatement, criteria); + } + } + + @Override + public Integer delete(String tenantId, List ids) { + Integer result = 0; + String defaultStatement = this.entityClass.getName() + "Mapper.delete"; + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < ids.size(); i++) { + sqlSession.delete(defaultStatement, ids.get(i)); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + public Integer delete(String tenantId, String statement, Map parameter) { + Assert.notNull(parameter, "parameter 'parameter' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + + parameter.put("tenantId", tenantId); + + return sqlSession.delete(statement, parameter); + } + + protected Integer extractBatchResult(List currentBatchResultList) { + Integer result = 0; + if (currentBatchResultList != null && !currentBatchResultList.isEmpty()) { + for (BatchResult batchResult : currentBatchResultList) { + int[] updateCounts = batchResult.getUpdateCounts(); + if (updateCounts != null && updateCounts.length > 0) { + for (int count : updateCounts) { + result += count; + } + } + } + } + return result; + } + + @Override + public List> selectList(String sql) { + + String defaultStatement = this.DYNAMIC_SQL_NAMPSPACE + "selectList"; + + Map parameter = new HashMap(); + parameter.put("sql", sql); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public Map selectOne(String sql) { + + String defaultStatement = this.DYNAMIC_SQL_NAMPSPACE + "selectOne"; + + Map parameter = new HashMap(); + parameter.put("sql", sql); + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, parameter); + } + + @Override + public Pager selectPager(String sql, Pager pager) throws SQLException { + + if (pager == null) { + pager = new Pager(); + } + + String defaultStatement = this.DYNAMIC_SQL_NAMPSPACE + "selectList"; + // 构建总记录数语句 + final String countSql = PagerUtils.count(sql, JdbcConstants.MYSQL); + // 构建分页语句 + sql = PagerUtils.limit(sql, JdbcConstants.MYSQL, (pager.getPageNumber() - 1) * pager.getPageSize(), + pager.getPageSize()); + // 计算总记录数 + SqlSessionCallback callback = new SqlSessionCallback() { + @Override + public Integer doInSqlSession(SqlSessionTemplateFactory sqlSessionTemplateFactory) throws SQLException { + Integer result = 0; + SqlSessionTemplate st = sqlSessionTemplateFactory.getSqlSessionTemplate(); + Connection connection = st.getConnection(); + java.sql.Statement stmt = connection.createStatement(); + ResultSet rs = stmt.executeQuery(countSql); + if (rs.next()) { + result = rs.getInt(1); + } + rs.close(); + stmt.close(); + return result; + } + }; + + int totalCount = callback.doInSqlSession(this.sqlSessionTemplateFactory); + + Map parameter = new HashMap(); + parameter.put("sql", sql); + + List> lists = this.sqlSessionTemplateFactory.getSqlSessionTemplate() + .selectList(defaultStatement, parameter); + + pager.setList(lists); + pager.setTotalCount(totalCount); + + return pager; + } + + @Override + public Integer deleteLogical(String tenantId, List ids, String currentUser) { + Integer result = 0; + String defaultStatement = this.entityClass.getName() + "Mapper.deleteLogical"; + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + SqlSession sqlSession = sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH); + try { + for (int i = 0; i < ids.size(); i++) { + // sqlSession.delete(defaultStatement, ids.get(i)); + Map parameter = new HashMap<>(); + parameter.put("tenantId", tenantId); + parameter.put("id", ids.get(i)); + parameter.put("modifyUser", currentUser); + sqlSession.update(defaultStatement, parameter); + if ((i + 1) % DEFAULT_FLUSH_BATCH_SIZE == 0) { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + } + } finally { + List currentBatchResultList = sqlSession.flushStatements(); + result += extractBatchResult(currentBatchResultList); + } + return result; + } + + @Override + public String getMaxNo(String tenantId, Criteria criteria) { + String defaultStatement = this.entityClass.getName() + "Mapper.getMaxNo"; + criteria.add(Restrictions.eq("tenantId", tenantId)); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectOne(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/impl/TenantDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/impl/TenantDaoImpl.java new file mode 100644 index 0000000..c2a515b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/impl/TenantDaoImpl.java @@ -0,0 +1,14 @@ +package com.jwsaas.dao.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.TenantDao; +import com.jwsaas.entity.Tenant; + +/** + * 租户管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.SHARED_SIGN + "TenantDaoImpl") +public class TenantDaoImpl extends BaseDaoImpl implements TenantDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AgentDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AgentDao.java new file mode 100644 index 0000000..18b1741 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AgentDao.java @@ -0,0 +1,11 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.Agent; + + +public interface AgentDao extends BaseDao { + + + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AgentSubFuyouTicketDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AgentSubFuyouTicketDao.java new file mode 100644 index 0000000..73bef26 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AgentSubFuyouTicketDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.AgentSubFuyouTicket; + +public interface AgentSubFuyouTicketDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AgentSubFuyouTicketImageDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AgentSubFuyouTicketImageDao.java new file mode 100644 index 0000000..4fc64c8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AgentSubFuyouTicketImageDao.java @@ -0,0 +1,13 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.AgentSubFuyouTicketImage; +import com.jwsaas.mybatis.domain.PageBounds; + +import java.util.List; + +public interface AgentSubFuyouTicketImageDao extends BaseDao { + + List getPagerExtendInfo(String tenantId, Criteria criteria, PageBounds pageBounds); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppBaiduBranchDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppBaiduBranchDao.java new file mode 100644 index 0000000..fa07926 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppBaiduBranchDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.AppBaiduBranch; +import com.jwsaas.dao.BaseDao; + +public interface AppBaiduBranchDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppGuopanStoreInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppGuopanStoreInfoDao.java new file mode 100644 index 0000000..2874850 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppGuopanStoreInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.AppGuopanStoreInfo; +import com.jwsaas.dao.BaseDao; + +public interface AppGuopanStoreInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppInfoDao.java new file mode 100644 index 0000000..f026237 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppInfoDao.java @@ -0,0 +1,9 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.AppInfo; + + +public interface AppInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppQimaiSetStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppQimaiSetStoreDao.java new file mode 100644 index 0000000..d8500e2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppQimaiSetStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.AppQimaiSetStore; +import com.jwsaas.dao.BaseDao; + +public interface AppQimaiSetStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppShopmeituanSetDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppShopmeituanSetDao.java new file mode 100644 index 0000000..b8c97e7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppShopmeituanSetDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.AppShopmeituanSet; +import com.jwsaas.dao.BaseDao; + +public interface AppShopmeituanSetDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppShopmeituanSetStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppShopmeituanSetStoreDao.java new file mode 100644 index 0000000..752774a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppShopmeituanSetStoreDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.AppShopmeituanSetStore; +import com.jwsaas.dao.BaseDao; + +import java.util.List; + +public interface AppShopmeituanSetStoreDao extends BaseDao { + + List getStoreIdsBySetIdAndTenantCode(String tenantId, String setId, String tenantCode); + List getStoreIdsBySetIdAndTenantCode(String tenantId, String setId, String tenantCode,boolean isBatch); +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppVersionDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppVersionDao.java new file mode 100644 index 0000000..6e475b8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppVersionDao.java @@ -0,0 +1,41 @@ +package com.jwsaas.dao.ops; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.AppVersion; +import com.jwsaas.mybatis.domain.PageBounds; + +public interface AppVersionDao extends BaseDao { + + /** + * 获取分页集合对象 + * + * @param tenantId + * 租户ID + * @param criteria + * 查询条件 + * @param pageBounds + * 分页参数 + * @return 分页对象 + */ + List getPagerWithRelation(String tenantId, Criteria criteria, PageBounds pageBounds); + + /** + * 获取列表数据 + * + * @param tenantId + * 租户标识 + * @param criteria + * 查询条件 + * @return + * @throws Exception + */ + List getListByPosNo(String tenantId, String tenantCode, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, String versionNum); + + List getListExtend(String tenantId, String tenantCode, String storeNo, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, String versionNum); + + List getListByPlan(String tenantId, String tenantCode, String storeNo, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, String versionNum, List planIdList); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppWhiteDetailDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppWhiteDetailDao.java new file mode 100644 index 0000000..13d5b16 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppWhiteDetailDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.AppWhiteDetail; + +public interface AppWhiteDetailDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/AppWhitePlanDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/AppWhitePlanDao.java new file mode 100644 index 0000000..ac399e4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/AppWhitePlanDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.AppWhitePlan; + +public interface AppWhitePlanDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/BankCodeDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/BankCodeDao.java new file mode 100644 index 0000000..ea991ce --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/BankCodeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.BankCode; + +public interface BankCodeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/CardReaderInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/CardReaderInfoDao.java new file mode 100644 index 0000000..6cea402 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/CardReaderInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.CardReaderInfo; + +public interface CardReaderInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/CityCodeDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/CityCodeDao.java new file mode 100644 index 0000000..f4f5229 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/CityCodeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.CityCode; + +public interface CityCodeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/CityDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/CityDao.java new file mode 100644 index 0000000..efcd47a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/CityDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.City; + +public interface CityDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/ElemeAuthorizeInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/ElemeAuthorizeInfoDao.java new file mode 100644 index 0000000..f534831 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/ElemeAuthorizeInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.ElemeAuthorizeInfo; +import com.jwsaas.dao.BaseDao; + +public interface ElemeAuthorizeInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/ErrorInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/ErrorInfoDao.java new file mode 100644 index 0000000..f074013 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/ErrorInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.ErrorInfo; + +public interface ErrorInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/MeituanBranchDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/MeituanBranchDao.java new file mode 100644 index 0000000..0dbb9fc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/MeituanBranchDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.MeituanBranch; +import com.jwsaas.dao.BaseDao; + +public interface MeituanBranchDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/PosModuleDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/PosModuleDao.java new file mode 100644 index 0000000..c741a76 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/PosModuleDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.PosModule; +import com.jwsaas.dao.BaseDao; + +public interface PosModuleDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/PosModuleTypeDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/PosModuleTypeDao.java new file mode 100644 index 0000000..8e487c5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/PosModuleTypeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.PosModuleType; +import com.jwsaas.dao.BaseDao; + +public interface PosModuleTypeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/PrinterInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/PrinterInfoDao.java new file mode 100644 index 0000000..850f4e8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/PrinterInfoDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.PrinterInfo; + +public interface PrinterInfoDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/ProductPermissionsDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/ProductPermissionsDao.java new file mode 100644 index 0000000..2743797 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/ProductPermissionsDao.java @@ -0,0 +1,22 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.ProductPermissions; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; + +public interface ProductPermissionsDao extends BaseDao { + + /** + * 根据产品ID以及模块类型(总部/门店),获取对应的产品权限 + * + * @param tenantId + * @param productId + * @param moduleType + * 模块类型(总部/门店) + * @return + */ + public List getListByModuleType(String tenantId, String productId, String moduleType); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/QimaiSetDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/QimaiSetDao.java new file mode 100644 index 0000000..2a558f7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/QimaiSetDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.QimaiSet; + +public interface QimaiSetDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/SetCodeDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/SetCodeDao.java new file mode 100644 index 0000000..0723496 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/SetCodeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.SetCode; + +public interface SetCodeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/TenantLineProductDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/TenantLineProductDao.java new file mode 100644 index 0000000..e9e9609 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/TenantLineProductDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.TenantLineProduct; + +public interface TenantLineProductDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/TenantPosInfoDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/TenantPosInfoDao.java new file mode 100644 index 0000000..bc53f1c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/TenantPosInfoDao.java @@ -0,0 +1,28 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.TenantPosInfo; + +public interface TenantPosInfoDao extends BaseDao { + + /** + * 更新采集到的POS监控信息 + */ + Integer updateMonitorInfo(String tenantId, TenantPosInfo entity); + + /** + * 更新采集到的POS监控信息 + */ + Integer updateMonitorInfo(String tenantId, TenantPosInfo entity, Boolean isBatch); + + /** + * 更新POS最后活跃时间 + */ + Integer updateLastActiveTime(String tenantId, TenantPosInfo entity); + + /** + * 更新POS最后活跃时间 + */ + Integer updateLastActiveTime(String tenantId, TenantPosInfo entity, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/TenantPosLoginLogDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/TenantPosLoginLogDao.java new file mode 100644 index 0000000..33acb8d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/TenantPosLoginLogDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.TenantPosLoginLog; + +public interface TenantPosLoginLogDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/TenantProductDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/TenantProductDao.java new file mode 100644 index 0000000..c3adb6d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/TenantProductDao.java @@ -0,0 +1,26 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.entity.ops.TenantProduct; + +import java.util.List; + +import com.jwsaas.dao.BaseDao; + +public interface TenantProductDao extends BaseDao { + + /** + * 根据租户编码和应用类型(标识),获取该租户订购的产品信息
+ *

+ * 依据订阅时间倒序排列 + *

+ * + * @param tenantId + * @param tenantCode + * 租户编码 + * @param appSign + * 应用类型(标识) + * @return + */ + List getListByTenantCode(String tenantId, String tenantCode, String appSign); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/TenantStoreAuthDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/TenantStoreAuthDao.java new file mode 100644 index 0000000..70ee08c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/TenantStoreAuthDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.TenantStoreAuth; + +public interface TenantStoreAuthDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/UpgradePosDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/UpgradePosDao.java new file mode 100644 index 0000000..c2e9408 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/UpgradePosDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.UpgradePos; + +public interface UpgradePosDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/UpgradeSchemeDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/UpgradeSchemeDao.java new file mode 100644 index 0000000..e4f617e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/UpgradeSchemeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.UpgradeScheme; + +public interface UpgradeSchemeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/UpgradeStoreDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/UpgradeStoreDao.java new file mode 100644 index 0000000..be5de8f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/UpgradeStoreDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.UpgradeStore; + +public interface UpgradeStoreDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/WxBusinessCodeDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/WxBusinessCodeDao.java new file mode 100644 index 0000000..269f798 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/WxBusinessCodeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.WxBusinessCode; + +public interface WxBusinessCodeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/ZfbBusinessCodeDao.java b/food-server/src/main/java/com/jwsaas/dao/ops/ZfbBusinessCodeDao.java new file mode 100644 index 0000000..6b22c28 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/ZfbBusinessCodeDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.ops; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.ops.ZfbBusinessCode; + +public interface ZfbBusinessCodeDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentDaoImpl.java new file mode 100644 index 0000000..32482ad --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentDaoImpl.java @@ -0,0 +1,17 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.AgentDao; +import com.jwsaas.entity.ops.Agent; +import org.springframework.stereotype.Repository; + + + +/** + * 代理商管理数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "AgentDaoImpl") +public class AgentDaoImpl extends BaseDaoImpl implements AgentDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketDaoImpl.java new file mode 100644 index 0000000..606b0ef --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.AgentSubFuyouTicketDao; +import com.jwsaas.entity.ops.AgentSubFuyouTicket; +import org.springframework.stereotype.Repository; + +/** + * 富有子商户登记记录数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "AgentSubFuyouTicketDaoImpl") +public class AgentSubFuyouTicketDaoImpl extends BaseDaoImpl implements AgentSubFuyouTicketDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketImageDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketImageDaoImpl.java new file mode 100644 index 0000000..087a8ab --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketImageDaoImpl.java @@ -0,0 +1,28 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.AgentSubFuyouTicketImageDao; +import com.jwsaas.entity.ops.AgentSubFuyouTicketImage; +import com.jwsaas.mybatis.domain.PageBounds; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * 富有支付子商户登记图片数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "AgentSubFuyouTicketImageDaoImpl") +public class AgentSubFuyouTicketImageDaoImpl extends BaseDaoImpl implements AgentSubFuyouTicketImageDao { + + @Override + public List getPagerExtendInfo(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AgentSubFuyouTicketImage.class.getName() + "Mapper.getPagerExtendInfo"; + // 增加租户过滤 + criteria.add(Restrictions.eq("image.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, + pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppBaiduBranchDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppBaiduBranchDaoImpl.java new file mode 100644 index 0000000..27f8e58 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppBaiduBranchDaoImpl.java @@ -0,0 +1,48 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.ops.AppBaiduBranchDao; +import com.jwsaas.entity.ops.AppBaiduBranch; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 百度外卖门店关联信息表数据接口实现 + */ +@Repository(Constants.FOOD_SIGN + "AppBaiduBranchDaoImpl") +public class AppBaiduBranchDaoImpl extends BaseDaoImpl implements AppBaiduBranchDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = AppBaiduBranch.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AppBaiduBranch.class.getName() + "Mapper.getPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppGuopanStoreInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppGuopanStoreInfoDaoImpl.java new file mode 100644 index 0000000..52800d0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppGuopanStoreInfoDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.ops.AppGuopanStoreInfoDao; +import com.jwsaas.entity.ops.AppGuopanStoreInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 果盘门店关联信息表数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "AppGuopanStoreInfoDaoImpl") +public class AppGuopanStoreInfoDaoImpl extends BaseDaoImpl implements AppGuopanStoreInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppInfoDaoImpl.java new file mode 100644 index 0000000..3ec50b9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppInfoDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.AppInfoDao; +import com.jwsaas.entity.ops.AppInfo; + +/** + * 应用管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "AppInfoDaoImpl") +public class AppInfoDaoImpl extends BaseDaoImpl implements AppInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppQimaiSetStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppQimaiSetStoreDaoImpl.java new file mode 100644 index 0000000..9eb1814 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppQimaiSetStoreDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.ops.AppQimaiSetStoreDao; +import com.jwsaas.entity.ops.AppQimaiSetStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 企迈小程设置门店数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "AppQimaiSetStoreDaoImpl") +public class AppQimaiSetStoreDaoImpl extends BaseDaoImpl implements AppQimaiSetStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppShopmeituanSetDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppShopmeituanSetDaoImpl.java new file mode 100644 index 0000000..d1ed4bb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppShopmeituanSetDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.ops.AppShopmeituanSetDao; +import com.jwsaas.entity.ops.AppShopmeituanSet; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.springframework.stereotype.Repository; + +/** + * 商家美团店铺设置表数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "AppShopmeituanSetDaoImpl") +public class AppShopmeituanSetDaoImpl extends BaseDaoImpl implements AppShopmeituanSetDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppShopmeituanSetStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppShopmeituanSetStoreDaoImpl.java new file mode 100644 index 0000000..81c3f40 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppShopmeituanSetStoreDaoImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.ops.AppShopmeituanSetStoreDao; +import com.jwsaas.entity.ops.AppShopmeituanSetStore; +import com.jwsaas.dao.impl.BaseDaoImpl; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 商家美团店铺设置门店数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "AppShopmeituanSetStoreDaoImpl") +public class AppShopmeituanSetStoreDaoImpl extends BaseDaoImpl implements AppShopmeituanSetStoreDao { + + @Override + public List getStoreIdsBySetIdAndTenantCode(String tenantId, String setId, String tenantCode) { + return getStoreIdsBySetIdAndTenantCode(tenantId,setId,tenantCode,false); + } + + @Override + public List getStoreIdsBySetIdAndTenantCode(String tenantId, String setId, String tenantCode, boolean isBatch) { + String defaultStatement = AppShopmeituanSetStore.class.getName() + "Mapper.getStoreIdsBySetIdAndTenantCode"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("setId", setId); + parameter.put("tenantCode", tenantCode); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, + parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppVersionDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppVersionDaoImpl.java new file mode 100644 index 0000000..601507f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppVersionDaoImpl.java @@ -0,0 +1,81 @@ +package com.jwsaas.dao.ops.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.AppVersionDao; +import com.jwsaas.entity.ops.AppVersion; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 应用版本管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "AppVersionDaoImpl") +public class AppVersionDaoImpl extends BaseDaoImpl implements AppVersionDao { + + @Override + public List getPagerWithRelation(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = AppVersion.class.getName() + "Mapper.getPagerWithRelation"; + // 增加租户过滤 + criteria.add(Restrictions.eq("av.tenantId", tenantId)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + + @Override + public List getListByPosNo(String tenantId, String tenantCode, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, String versionNum) { + String defaultStatement = AppVersion.class.getName() + "Mapper.getListByPosNo"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("tenantCode", tenantCode); + parameter.put("posNo", posNo); + parameter.put("appSign", appSign); + parameter.put("terminalType", terminalType); + parameter.put("enableWhite", enableWhite); + parameter.put("versionType", versionType); + parameter.put("versionNum", versionNum); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getListExtend(String tenantId, String tenantCode, String storeNo, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, + String versionNum) { + String defaultStatement = AppVersion.class.getName() + "Mapper.getListExtend"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("tenantCode", tenantCode); + parameter.put("storeNo", storeNo); + parameter.put("posNo", posNo); + parameter.put("appSign", appSign); + parameter.put("terminalType", terminalType); + parameter.put("enableWhite", enableWhite); + parameter.put("versionType", versionType); + parameter.put("versionNum", versionNum); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + + @Override + public List getListByPlan(String tenantId, String tenantCode, String storeNo, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, + String versionNum, List planIdList) { + String defaultStatement = AppVersion.class.getName() + "Mapper.getListByPlan"; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("c.`id`", planIdList)); + criteria.add(Restrictions.eq("a.appSign", appSign)); + criteria.add(Restrictions.eq("a.terminalType", terminalType)); + criteria.add(Restrictions.eq("a.versionType", versionType)); + criteria.add(Restrictions.eq("a.`status`", 1)); + criteria.add(Restrictions.eq("a.`enableWhite`", enableWhite)); + criteria.add(Restrictions.gt("a.versionNum", versionNum)); + criteria.add(Restrictions.le("a.minVersionNum", versionNum)); + criteria.add(Restrictions.order("minVersionNum", "asc")); + criteria.add(Restrictions.order("versionNum", "desc")); + criteria.add(Restrictions.limit("0", "1")); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppWhiteDetailDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppWhiteDetailDaoImpl.java new file mode 100644 index 0000000..c73ed20 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppWhiteDetailDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.AppWhiteDetailDao; +import com.jwsaas.entity.ops.AppWhiteDetail; + +/** + * 应用方案白名单明细数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "AppWhiteDetailDaoImpl") +public class AppWhiteDetailDaoImpl extends BaseDaoImpl implements AppWhiteDetailDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppWhitePlanDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppWhitePlanDaoImpl.java new file mode 100644 index 0000000..267aebb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/AppWhitePlanDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.AppWhitePlanDao; +import com.jwsaas.entity.ops.AppWhitePlan; + +/** + * 应用白名单方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "AppWhitePlanDaoImpl") +public class AppWhitePlanDaoImpl extends BaseDaoImpl implements AppWhitePlanDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/BankCodeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/BankCodeDaoImpl.java new file mode 100644 index 0000000..651961b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/BankCodeDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.BankCodeDao; +import com.jwsaas.entity.ops.BankCode; +import org.springframework.stereotype.Repository; + +/** + * 银行对照表数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "BankCodeDaoImpl") +public class BankCodeDaoImpl extends BaseDaoImpl implements BankCodeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/CardReaderInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/CardReaderInfoDaoImpl.java new file mode 100644 index 0000000..c98560a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/CardReaderInfoDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.CardReaderInfoDao; +import com.jwsaas.entity.ops.CardReaderInfo; + +/** + * 读卡器信息管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "CardReaderInfoDaoImpl") +public class CardReaderInfoDaoImpl extends BaseDaoImpl implements CardReaderInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/CityCodeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/CityCodeDaoImpl.java new file mode 100644 index 0000000..3e3831f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/CityCodeDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.CityCodeDao; +import com.jwsaas.entity.ops.CityCode; +import org.springframework.stereotype.Repository; + +/** + * 省市区代码对应表数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "CityCodeDaoImpl") +public class CityCodeDaoImpl extends BaseDaoImpl implements CityCodeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/CityDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/CityDaoImpl.java new file mode 100644 index 0000000..f823b22 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/CityDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.CityDao; +import com.jwsaas.entity.ops.City; + +/** + * 城市信息表数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "CityDaoImpl") +public class CityDaoImpl extends BaseDaoImpl implements CityDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/ElemeAuthorizeInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ElemeAuthorizeInfoDaoImpl.java new file mode 100644 index 0000000..40e438b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ElemeAuthorizeInfoDaoImpl.java @@ -0,0 +1,48 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.ops.ElemeAuthorizeInfoDao; +import com.jwsaas.entity.ops.ElemeAuthorizeInfo; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 饿了么授权信息表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "ElemeAuthorizeInfoDaoImpl") +public class ElemeAuthorizeInfoDaoImpl extends BaseDaoImpl implements ElemeAuthorizeInfoDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = ElemeAuthorizeInfo.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = ElemeAuthorizeInfo.class.getName() + "Mapper.getPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/ErrorInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ErrorInfoDaoImpl.java new file mode 100644 index 0000000..340ef0d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ErrorInfoDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.ErrorInfoDao; +import com.jwsaas.entity.ops.ErrorInfo; + +/** + * 报错信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "ErrorInfoDaoImpl") +public class ErrorInfoDaoImpl extends BaseDaoImpl implements ErrorInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/MeituanBranchDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/MeituanBranchDaoImpl.java new file mode 100644 index 0000000..eaebf4e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/MeituanBranchDaoImpl.java @@ -0,0 +1,48 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.ops.MeituanBranchDao; +import com.jwsaas.entity.ops.MeituanBranch; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.mybatis.domain.PageBounds; +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import java.util.List; + +/** + * 美团门店关联信息表数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "MeituanBranchDaoImpl") +public class MeituanBranchDaoImpl extends BaseDaoImpl implements MeituanBranchDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = MeituanBranch.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = MeituanBranch.class.getName() + "Mapper.getPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/PosModuleDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/PosModuleDaoImpl.java new file mode 100644 index 0000000..09979b7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/PosModuleDaoImpl.java @@ -0,0 +1,49 @@ +package com.jwsaas.dao.ops.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.PosModuleDao; +import com.jwsaas.entity.ops.PosModule; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 前台模块数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "PosModuleDaoImpl") +public class PosModuleDaoImpl extends BaseDaoImpl implements PosModuleDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PosModule.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PosModule.class.getName() + "Mapper.getPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/PosModuleTypeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/PosModuleTypeDaoImpl.java new file mode 100644 index 0000000..fa720d3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/PosModuleTypeDaoImpl.java @@ -0,0 +1,49 @@ +package com.jwsaas.dao.ops.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.PosModuleTypeDao; +import com.jwsaas.entity.ops.PosModuleType; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 前台模块分类数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "PosModuleTypeDaoImpl") +public class PosModuleTypeDaoImpl extends BaseDaoImpl implements PosModuleTypeDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = PosModuleType.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = PosModuleType.class.getName() + "Mapper.getPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/PrinterInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/PrinterInfoDaoImpl.java new file mode 100644 index 0000000..3d41f98 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/PrinterInfoDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.PrinterInfoDao; +import com.jwsaas.entity.ops.PrinterInfo; + +/** + * 打印机信息管理数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "PrinterInfoDaoImpl") +public class PrinterInfoDaoImpl extends BaseDaoImpl implements PrinterInfoDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/ProductPermissionsDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ProductPermissionsDaoImpl.java new file mode 100644 index 0000000..f56547c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ProductPermissionsDaoImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.dao.ops.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.ProductPermissionsDao; +import com.jwsaas.entity.ops.ProductPermissions; + +/** + * 产品权限表数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "ProductPermissionsDaoImpl") +public class ProductPermissionsDaoImpl extends BaseDaoImpl implements ProductPermissionsDao { + + @Override + public List getListByModuleType(String tenantId, String productId, String moduleType) { + String defaultStatement = ProductPermissions.class.getName() + "Mapper.getListByModuleType"; + Map parameter = new HashMap<>(); + parameter.put("tenantId", tenantId); + parameter.put("productId", productId); + parameter.put("moduleType", moduleType); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/QimaiSetDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/QimaiSetDaoImpl.java new file mode 100644 index 0000000..9240bff --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/QimaiSetDaoImpl.java @@ -0,0 +1,48 @@ +package com.jwsaas.dao.ops.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.QimaiSetDao; +import com.jwsaas.entity.ops.QimaiSet; +import com.jwsaas.mybatis.domain.PageBounds; + +/** + * 企迈小程序设置数据接口实现 + */ +@Repository(com.jwsaas.Constants.FOOD_SIGN + "QimaiSetDaoImpl") +public class QimaiSetDaoImpl extends BaseDaoImpl implements QimaiSetDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = QimaiSet.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List getPager(String tenantId, Criteria criteria, PageBounds pageBounds) { + String defaultStatement = QimaiSet.class.getName() + "Mapper.getPager"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria, pageBounds); + } +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/SetCodeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/SetCodeDaoImpl.java new file mode 100644 index 0000000..44e84e7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/SetCodeDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.SetCodeDao; +import com.jwsaas.entity.ops.SetCode; +import org.springframework.stereotype.Repository; + +/** + * 扣率代码对应表数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "SetCodeDaoImpl") +public class SetCodeDaoImpl extends BaseDaoImpl implements SetCodeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantLineProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantLineProductDaoImpl.java new file mode 100644 index 0000000..647f3b9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantLineProductDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.TenantLineProductDao; +import com.jwsaas.entity.ops.TenantLineProduct; + +/** + * 租户云产品订阅数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "TenantLineProductDaoImpl") +public class TenantLineProductDaoImpl extends BaseDaoImpl implements TenantLineProductDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantPosInfoDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantPosInfoDaoImpl.java new file mode 100644 index 0000000..336db45 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantPosInfoDaoImpl.java @@ -0,0 +1,64 @@ +package com.jwsaas.dao.ops.impl; + +import java.lang.reflect.Field; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.TenantPosInfoDao; +import com.jwsaas.entity.ops.TenantPosInfo; +import com.jwsaas.utils.ReflectUtils; + +/** + * 租户POS终端信息表数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "TenantPosInfoDaoImpl") +public class TenantPosInfoDaoImpl extends BaseDaoImpl implements TenantPosInfoDao { + + @Override + public Integer updateMonitorInfo(String tenantId, TenantPosInfo entity) { + return updateMonitorInfo(tenantId, entity, false); + } + + @Override + public Integer updateMonitorInfo(String tenantId, TenantPosInfo entity, Boolean isBatch) { + String defaultStatement = TenantPosInfo.class.getName() + "Mapper.updateMonitorInfo"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity, "tenantId", tenantId); + } + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, entity); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, entity); + } + } + + @Override + public Integer updateLastActiveTime(String tenantId, TenantPosInfo entity) { + return updateLastActiveTime(tenantId, entity, false); + } + + @Override + public Integer updateLastActiveTime(String tenantId, TenantPosInfo entity, Boolean isBatch) { + String defaultStatement = TenantPosInfo.class.getName() + "Mapper.updateLastActiveTime"; + + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity, "tenantId", tenantId); + } + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).update(defaultStatement, entity); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().update(defaultStatement, entity); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantPosLoginLogDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantPosLoginLogDaoImpl.java new file mode 100644 index 0000000..7d09938 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantPosLoginLogDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.TenantPosLoginLogDao; +import com.jwsaas.entity.ops.TenantPosLoginLog; + +/** + * 租户POS登录信息表数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "TenantPosLoginLogDaoImpl") +public class TenantPosLoginLogDaoImpl extends BaseDaoImpl implements TenantPosLoginLogDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantProductDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantProductDaoImpl.java new file mode 100644 index 0000000..42146d2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantProductDaoImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.dao.ops.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.TenantProductDao; +import com.jwsaas.entity.ops.TenantProduct; + +/** + * 租户产品订购信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "TenantProductDaoImpl") +public class TenantProductDaoImpl extends BaseDaoImpl implements TenantProductDao { + + @Override + public List getListByTenantCode(String tenantId, String tenantCode, String appSign) { + Assert.notNull(tenantCode, "parameter 'tenantCode' can't be null or empty!"); + Assert.notNull(appSign, "parameter 'appSign' can't be null or empty!"); + + String defaultStatement = TenantProduct.class.getName() + "Mapper.getListByTenantCode"; + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("tenantCode", tenantCode); + parameter.put("appSign", appSign); + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantStoreAuthDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantStoreAuthDaoImpl.java new file mode 100644 index 0000000..32984d0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/TenantStoreAuthDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.TenantStoreAuthDao; +import com.jwsaas.entity.ops.TenantStoreAuth; +import org.springframework.stereotype.Repository; + +/** + * 租户门店授权记录数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "TenantStoreAuthDaoImpl") +public class TenantStoreAuthDaoImpl extends BaseDaoImpl implements TenantStoreAuthDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradePosDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradePosDaoImpl.java new file mode 100644 index 0000000..40328ce --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradePosDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.UpgradePosDao; +import com.jwsaas.entity.ops.UpgradePos; + +import org.springframework.stereotype.Repository; + +/** + * 升级POS信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "UpgradePosDaoImpl") +public class UpgradePosDaoImpl extends BaseDaoImpl implements UpgradePosDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradeSchemeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradeSchemeDaoImpl.java new file mode 100644 index 0000000..ee68bce --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradeSchemeDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.UpgradeSchemeDao; +import com.jwsaas.entity.ops.UpgradeScheme; + +import org.springframework.stereotype.Repository; + +/** + * 升级方案数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "UpgradeSchemeDaoImpl") +public class UpgradeSchemeDaoImpl extends BaseDaoImpl implements UpgradeSchemeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradeStoreDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradeStoreDaoImpl.java new file mode 100644 index 0000000..0e8d26d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/UpgradeStoreDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.UpgradeStoreDao; +import com.jwsaas.entity.ops.UpgradeStore; + +import org.springframework.stereotype.Repository; + +/** + * 升级门店映射信息数据接口实现 + */ +@Repository(com.jwsaas.Constants.OPS_SIGN + "UpgradeStoreDaoImpl") +public class UpgradeStoreDaoImpl extends BaseDaoImpl implements UpgradeStoreDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/WxBusinessCodeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/WxBusinessCodeDaoImpl.java new file mode 100644 index 0000000..1ff6b94 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/WxBusinessCodeDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.WxBusinessCodeDao; +import com.jwsaas.entity.ops.WxBusinessCode; +import org.springframework.stereotype.Repository; + +/** + * 微信经营范围代码对照表数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "WxBusinessCodeDaoImpl") +public class WxBusinessCodeDaoImpl extends BaseDaoImpl implements WxBusinessCodeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/ops/impl/ZfbBusinessCodeDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ZfbBusinessCodeDaoImpl.java new file mode 100644 index 0000000..0803c14 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/ops/impl/ZfbBusinessCodeDaoImpl.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.ops.ZfbBusinessCodeDao; +import com.jwsaas.entity.ops.ZfbBusinessCode; +import org.springframework.stereotype.Repository; + +/** + * 支付宝经营范围代码对照表数据接口实现 + */ +@Repository(Constants.OPS_SIGN + "ZfbBusinessCodeDaoImpl") +public class ZfbBusinessCodeDaoImpl extends BaseDaoImpl implements ZfbBusinessCodeDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/AppAuthDao.java b/food-server/src/main/java/com/jwsaas/dao/shared/AppAuthDao.java new file mode 100644 index 0000000..ac2e650 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/AppAuthDao.java @@ -0,0 +1,15 @@ +package com.jwsaas.dao.shared; + +import java.util.List; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.shared.AppAuth; + +public interface AppAuthDao extends BaseDao { + + List getListWithAppSign(String tenantId, String appSign, Criteria criteria); + + List getListWithAppSign(String tenantId, String appSign, Criteria criteria, Boolean isBatch); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/FunctionDao.java b/food-server/src/main/java/com/jwsaas/dao/shared/FunctionDao.java new file mode 100644 index 0000000..febe6f0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/FunctionDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.shared; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.shared.Function; + +public interface FunctionDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/ModuleDao.java b/food-server/src/main/java/com/jwsaas/dao/shared/ModuleDao.java new file mode 100644 index 0000000..596483c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/ModuleDao.java @@ -0,0 +1,7 @@ +package com.jwsaas.dao.shared; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.shared.Module; + +public interface ModuleDao extends BaseDao { +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/ResourcesDao.java b/food-server/src/main/java/com/jwsaas/dao/shared/ResourcesDao.java new file mode 100644 index 0000000..002877e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/ResourcesDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.shared; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.shared.Resources; + +public interface ResourcesDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/impl/AppAuthDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/shared/impl/AppAuthDaoImpl.java new file mode 100644 index 0000000..5c25a60 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/impl/AppAuthDaoImpl.java @@ -0,0 +1,55 @@ +package com.jwsaas.dao.shared.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.shared.AppAuthDao; +import com.jwsaas.entity.shared.AppAuth; + +/** + * 应用授权表数据接口实现 + */ +@Repository(com.jwsaas.Constants.SHARED_SIGN + "AppAuthDaoImpl") +public class AppAuthDaoImpl extends BaseDaoImpl implements AppAuthDao { + + @Override + public List getList(String tenantId, Criteria criteria) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + String defaultStatement = AppAuth.class.getName() + "Mapper.getList"; + if(!criteria.toSQL().contains("appSign")){ + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + } + + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + + @Override + public List getListWithAppSign(String tenantId, String appSign, Criteria criteria) { + return getListWithAppSign(tenantId, appSign, criteria, false); + } + + @Override + public List getListWithAppSign(String tenantId, String appSign, Criteria criteria, Boolean isBatch) { + String defaultStatement = AppAuth.class.getName() + "Mapper.getList"; + + if (StringUtils.isNotBlank(appSign)) { + criteria.add(Restrictions.eq("appSign", appSign)); + } + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/impl/FunctionDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/shared/impl/FunctionDaoImpl.java new file mode 100644 index 0000000..6e798ea --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/impl/FunctionDaoImpl.java @@ -0,0 +1,39 @@ +package com.jwsaas.dao.shared.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.shared.FunctionDao; +import com.jwsaas.entity.shared.Function; + +/** + * 功能表数据接口实现 + */ +@Repository(com.jwsaas.Constants.SHARED_SIGN + "FunctionDaoImpl") +public class FunctionDaoImpl extends BaseDaoImpl implements FunctionDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = Function.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/impl/ModuleDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/shared/impl/ModuleDaoImpl.java new file mode 100644 index 0000000..1610d63 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/impl/ModuleDaoImpl.java @@ -0,0 +1,59 @@ +package com.jwsaas.dao.shared.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.shared.ModuleDao; +import com.jwsaas.entity.shared.Module; + +/** + * 模块表数据接口实现 + */ +@Repository(com.jwsaas.Constants.SHARED_SIGN + "ModuleDaoImpl") +public class ModuleDaoImpl extends BaseDaoImpl implements ModuleDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = Module.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + + @Override + public List findListByIds(String tenantId, List ids, Boolean isBatch) { + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + + String defaultStatement = Module.class.getName() + "Mapper.findListByIds"; + + Map parameter = new HashMap(); + parameter.put("tenantId", tenantId); + parameter.put("ids", ids); + parameter.put("appSign", Constants.APP_TYPE_SIGN); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, parameter); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, parameter); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/shared/impl/ResourcesDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/shared/impl/ResourcesDaoImpl.java new file mode 100644 index 0000000..bab27f4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/shared/impl/ResourcesDaoImpl.java @@ -0,0 +1,39 @@ +package com.jwsaas.dao.shared.impl; + +import java.util.List; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.shared.ResourcesDao; +import com.jwsaas.entity.shared.Resources; + +/** + * 资源表数据接口实现 + */ +@Repository(com.jwsaas.Constants.SHARED_SIGN + "ResourcesDaoImpl") +public class ResourcesDaoImpl extends BaseDaoImpl implements ResourcesDao { + + @Override + public List getList(String tenantId, Criteria criteria, Boolean isBatch) { + Assert.notNull(criteria, "parameter 'criteria' can't be null or empty!"); + + String defaultStatement = Resources.class.getName() + "Mapper.getList"; + // 增加租户过滤 + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("appSign", Constants.APP_TYPE_SIGN)); + + if (BooleanUtils.isTrue(isBatch)) { + return sqlSessionTemplateFactory.getSqlSessionTemplate(ExecutorType.BATCH).selectList(defaultStatement, criteria); + } else { + return sqlSessionTemplateFactory.getSqlSessionTemplate().selectList(defaultStatement, criteria); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinAccountDao.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinAccountDao.java new file mode 100644 index 0000000..4814701 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinAccountDao.java @@ -0,0 +1,12 @@ +package com.jwsaas.dao.wxdc; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.wxdc.WeixinAccount; + +public interface WeixinAccountDao extends BaseDao { + + Integer savezhangguiQuery(String defaultDbSign, WeixinAccount account); + + Integer updatezhangguiQuery(String defaultDbSign, WeixinAccount account); + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinOrderPayDao.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinOrderPayDao.java new file mode 100644 index 0000000..01d8150 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinOrderPayDao.java @@ -0,0 +1,9 @@ +package com.jwsaas.dao.wxdc; + + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.wxdc.WeixinOrderPay; + +public interface WeixinOrderPayDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinPayResultDao.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinPayResultDao.java new file mode 100644 index 0000000..7a5a684 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinPayResultDao.java @@ -0,0 +1,9 @@ +package com.jwsaas.dao.wxdc; + + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.wxdc.WeixinPayResult; + +public interface WeixinPayResultDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinPayUnifiedOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinPayUnifiedOrderDao.java new file mode 100644 index 0000000..91bdf1c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinPayUnifiedOrderDao.java @@ -0,0 +1,9 @@ +package com.jwsaas.dao.wxdc; + + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.wxdc.WeixinPayUnifiedOrder; + +public interface WeixinPayUnifiedOrderDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinRechargeOrderDao.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinRechargeOrderDao.java new file mode 100644 index 0000000..259c1f8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinRechargeOrderDao.java @@ -0,0 +1,9 @@ +package com.jwsaas.dao.wxdc; + + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.wxdc.WeixinRechargeOrder; + +public interface WeixinRechargeOrderDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinUserDao.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinUserDao.java new file mode 100644 index 0000000..9a64e0c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/WeixinUserDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.wxdc; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.wxdc.WeixinUser; + +public interface WeixinUserDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinAccountDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinAccountDaoImpl.java new file mode 100644 index 0000000..dfa9615 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinAccountDaoImpl.java @@ -0,0 +1,45 @@ +package com.jwsaas.dao.wxdc.impl; + +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.wxdc.WeixinAccountDao; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.entity.wxdc.WeixinAccount; +import com.jwsaas.utils.ReflectUtils; + +import java.lang.reflect.Field; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.ibatis.session.ExecutorType; +import org.springframework.stereotype.Repository; +import org.springframework.util.Assert; + +/** + * 微信公众号管理数据接口实现 + * + * @author 张莹 + * + * @version 创建时间:2017-7-12 + */ +@Repository(com.jwsaas.Constants.WXDC_SIGN + "WeixinAccountDaoImpl") +public class WeixinAccountDaoImpl extends BaseDaoImpl implements WeixinAccountDao { + + @Override + public Integer savezhangguiQuery(String defaultDbSign, WeixinAccount account) { + String defaultStatement = WeixinAccount.class.getName() + "Mapper.savezhangguiQuery"; + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, account); + + } + + @Override + public Integer updatezhangguiQuery(String tenantId, WeixinAccount entity) { + // 实体类存在tenantId字段 + Field field = ReflectUtils.getFieldByFieldName(entity, "tenantId"); + if (field != null) { + ReflectUtils.setValueByFieldName(entity, "tenantId", tenantId); + } + String defaultStatement = WeixinAccount.class.getName() + "Mapper.updatezhangguiQuery"; + return this.sqlSessionTemplateFactory.getSqlSessionTemplate().insert(defaultStatement, entity); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinOrderPayDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinOrderPayDaoImpl.java new file mode 100644 index 0000000..13e73d8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinOrderPayDaoImpl.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.wxdc.impl; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.wxdc.WeixinOrderPayDao; +import com.jwsaas.entity.wxdc.WeixinOrderPay; + +import org.springframework.stereotype.Repository; + +/** + * 微信支付订单记录数据接口实现 + * + * @author 张莹 + * + * @version 创建时间:2016-9-27 + */ +@Repository(com.jwsaas.Constants.WXDC_SIGN + "WeixinOrderPayDaoImpl") +public class WeixinOrderPayDaoImpl extends BaseDaoImpl implements WeixinOrderPayDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinPayResultDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinPayResultDaoImpl.java new file mode 100644 index 0000000..c606994 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinPayResultDaoImpl.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.wxdc.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.wxdc.WeixinPayResultDao; +import com.jwsaas.entity.wxdc.WeixinPayResult; + +/** + * 支付结果数据接口实现 + * + * @author 张莹 + * + * @version 创建时间:2016-4-29 +*/ +@Repository(com.jwsaas.Constants.WXDC_SIGN + "WeixinPayResultDaoImpl") +public class WeixinPayResultDaoImpl extends BaseDaoImpl implements WeixinPayResultDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinPayUnifiedOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinPayUnifiedOrderDaoImpl.java new file mode 100644 index 0000000..7481ddd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinPayUnifiedOrderDaoImpl.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.wxdc.impl; + +import org.springframework.stereotype.Repository; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.wxdc.WeixinPayUnifiedOrderDao; +import com.jwsaas.entity.wxdc.WeixinPayUnifiedOrder; + +/** + * 统一下单数据接口实现 + * + * @author 张莹 + * + * @version 创建时间:2016-4-29 + */ +@Repository(com.jwsaas.Constants.WXDC_SIGN + "WeixinPayUnifiedOrderDaoImpl") +public class WeixinPayUnifiedOrderDaoImpl extends BaseDaoImpl implements WeixinPayUnifiedOrderDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinRechargeOrderDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinRechargeOrderDaoImpl.java new file mode 100644 index 0000000..d6c015b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinRechargeOrderDaoImpl.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.wxdc.impl; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.wxdc.WeixinRechargeOrderDao; +import com.jwsaas.entity.wxdc.WeixinRechargeOrder; + +import org.springframework.stereotype.Repository; + +/** + * 微信支付订单记录数据接口实现 + * + * @author 张莹 + * + * @version 创建时间:2016-9-27 + */ +@Repository(com.jwsaas.Constants.WXDC_SIGN + "WeixinRechargeOrderDaoImpl") +public class WeixinRechargeOrderDaoImpl extends BaseDaoImpl implements WeixinRechargeOrderDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinUserDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinUserDaoImpl.java new file mode 100644 index 0000000..6a4da5b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxdc/impl/WeixinUserDaoImpl.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.wxdc.impl; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.wxdc.WeixinUserDao; +import com.jwsaas.entity.wxdc.WeixinUser; + +import org.springframework.stereotype.Repository; + +/** + * 微信用戶信息数据接口实现 + * + * @author 张莹 + * + * @version 创建时间:2017-7-12 + */ +@Repository(com.jwsaas.Constants.WXDC_SIGN + "WeixinUserDaoImpl") +public class WeixinUserDaoImpl extends BaseDaoImpl implements WeixinUserDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxyh/WeixinUserDao.java b/food-server/src/main/java/com/jwsaas/dao/wxyh/WeixinUserDao.java new file mode 100644 index 0000000..3023351 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxyh/WeixinUserDao.java @@ -0,0 +1,8 @@ +package com.jwsaas.dao.wxyh; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.wxyh.WeixinUser; + +public interface WeixinUserDao extends BaseDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/dao/wxyh/impl/WeixinUserDaoImpl.java b/food-server/src/main/java/com/jwsaas/dao/wxyh/impl/WeixinUserDaoImpl.java new file mode 100644 index 0000000..79cc064 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/dao/wxyh/impl/WeixinUserDaoImpl.java @@ -0,0 +1,19 @@ +package com.jwsaas.dao.wxyh.impl; + +import com.jwsaas.dao.impl.BaseDaoImpl; +import com.jwsaas.dao.wxyh.WeixinUserDao; +import com.jwsaas.entity.wxyh.WeixinUser; + +import org.springframework.stereotype.Repository; + +/** + * 小程序用戶信息数据接口实现 + * + * @author 娄许涛 + * + * @version 创建时间:2017-12-20 + */ +@Repository(com.jwsaas.Constants.WXYH_SIGN + "WeixinUserDaoImpl") +public class WeixinUserDaoImpl extends BaseDaoImpl implements WeixinUserDao { + +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/AbstractRoutingDataSource.java b/food-server/src/main/java/com/jwsaas/datasource/AbstractRoutingDataSource.java new file mode 100644 index 0000000..2b1b681 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/AbstractRoutingDataSource.java @@ -0,0 +1,153 @@ +package com.jwsaas.datasource; + +import java.sql.Connection; +import java.sql.SQLException; +import java.util.HashMap; +import java.util.Map; + +import org.springframework.beans.factory.InitializingBean; +import org.springframework.jdbc.datasource.AbstractDataSource; + +import com.alibaba.druid.pool.DruidDataSource; +import com.jwsaas.Constants; + +public abstract class AbstractRoutingDataSource extends AbstractDataSource implements InitializingBean { + + private Map resolvedDataSources; + + private Map targetDataSources; + + public Map getTargetDataSources() { + return targetDataSources; + } + + /** + * Specify the map of target DataSources, with the lookup key as key. The + * mapped value can either be a corresponding {@link javax.sql.DataSource} + * instance or a data source name String (to be resolved via a + * {@link #setDataSourceLookup DataSourceLookup}). + *

+ * The key can be of arbitrary type; this class implements the generic + * lookup process only. The concrete key representation will be handled by + * {@link #resolveSpecifiedLookupKey(Object)} and + * {@link #determineCurrentLookupKey()}. + */ + public void setTargetDataSources(Map targetDataSources) { + this.targetDataSources = targetDataSources; + } + + @Override + public void afterPropertiesSet() throws Exception { + + if (this.targetDataSources == null) { + throw new IllegalArgumentException("Property 'targetDataSources' is required"); + } + + this.resolvedDataSources = new HashMap(); + + for (Map.Entry entry : this.targetDataSources.entrySet()) { + Object lookupKey = resolveSpecifiedLookupKey(entry.getKey()); + + DataSourceDescriptor dataSourceDescriptor = resolveSpecifiedDataSource(entry.getValue()); + + this.resolvedDataSources.put(lookupKey, dataSourceDescriptor); + } + } + + /** + * Resolve the specified data source object into a DataSource instance. + *

+ * The default implementation handles DataSource instances and data source + * names (to be resolved via a {@link #setDataSourceLookup DataSourceLookup} + * ). + * + * @param dataSource + * the data source value object as specified in the + * {@link #setTargetDataSources targetDataSources} map + * @return the resolved DataSource (never {@code null}) + * @throws IllegalArgumentException + * in case of an unsupported value type + */ + protected DataSourceDescriptor resolveSpecifiedDataSource(Object dataSource) throws IllegalArgumentException { + if (dataSource instanceof DataSourceDescriptor) { + return (DataSourceDescriptor) dataSource; + } else { + throw new IllegalArgumentException("Illegal data source value - only [com.azkoss.datasource.DataSourceDescriptor] supported: " + dataSource); + } + } + + /** + * Resolve the given lookup key object, as specified in the + * {@link #setTargetDataSources targetDataSources} map, into the actual + * lookup key to be used for matching with the + * {@link #determineCurrentLookupKey() current lookup key}. + *

+ * The default implementation simply returns the given key as-is. + * + * @param lookupKey + * the lookup key object as specified by the user + * @return the lookup key as needed for matching + */ + protected Object resolveSpecifiedLookupKey(Object lookupKey) { + return lookupKey; + } + + /** + * Retrieve the current target DataSource. Determines the + * {@link #determineCurrentLookupKey() current lookup key}, performs a + * lookup in the {@link #setTargetDataSources targetDataSources} map, falls + * back to the specified {@link #setDefaultTargetDataSource default target + * DataSource} if necessary. + * + * @see #determineCurrentLookupKey() + */ + protected DruidDataSource determineTargetDataSource() { + Object lookupKey = determineCurrentLookupKey(); + DataSourceDescriptor dataSourceDescriptor = this.resolvedDataSources.get(lookupKey + "_" + Constants.APP_TYPE_SIGN); + if (dataSourceDescriptor == null) { + throw new IllegalStateException("Cannot determine target DataSourceDescriptor for lookup key [" + lookupKey + "]"); + } + DruidDataSource dataSource = determineCurrentDataSource(dataSourceDescriptor); + if (dataSource == null) { + throw new IllegalStateException("Cannot determine target DataSource for lookup key [" + lookupKey + "]"); + } + //2020-11-15 10:00 调整数据源配置; +// dataSource.setMaxActive(500); +// dataSource.setRemoveAbandonedTimeout(1800); +// dataSource.setRemoveAbandoned(false); + if(dataSource.getMaxActive() == 8){ + dataSource.setMaxActive(16); + } + return dataSource; + } + + @Override + public Connection getConnection() throws SQLException { + Connection connection = determineTargetDataSource().getConnection(); + return connection; + } + + @Override + public Connection getConnection(String username, String password) throws SQLException { + return determineTargetDataSource().getConnection(username, password); + } + + @Override + @SuppressWarnings("unchecked") + public T unwrap(Class iface) throws SQLException { + if (iface.isInstance(this)) { + return (T) this; + } + return determineTargetDataSource().unwrap(iface); + } + + @Override + public boolean isWrapperFor(Class iface) throws SQLException { + return (iface.isInstance(this) || determineTargetDataSource().isWrapperFor(iface)); + } + + protected abstract Object determineCurrentLookupKey(); + + protected abstract DruidDataSource determineCurrentDataSource(DataSourceDescriptor dataSourceDescriptor); + +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/DataSourceDescriptor.java b/food-server/src/main/java/com/jwsaas/datasource/DataSourceDescriptor.java new file mode 100644 index 0000000..2f2a60b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/DataSourceDescriptor.java @@ -0,0 +1,84 @@ +package com.jwsaas.datasource; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.alibaba.druid.pool.DruidDataSource; + +public class DataSourceDescriptor { + + protected static final Logger logger = LoggerFactory.getLogger(DataSourceDescriptor.class); + + private String identity; + + private DruidDataSource targetDataSource; + + private DruidDataSource standbyDataSource; + + public String getIdentity() { + return identity; + } + + public void setIdentity(String identity) { + this.identity = identity; + } + + public DruidDataSource getTargetDataSource() { + return targetDataSource; + } + + public void setTargetDataSource(DruidDataSource targetDataSource) { + this.targetDataSource = targetDataSource; + } + + public DruidDataSource getStandbyDataSource() { + return standbyDataSource; + } + + public void setStandbyDataSource(DruidDataSource standbyDataSource) { + this.standbyDataSource = standbyDataSource; + } + + /** + * 初始化对象 + */ + public void init() { + logger.debug("Loading DataSourceDescriptor Objects For [" + this.identity + "]"); + } + + /** + * 销毁所有对象 + */ + public void destroy() { + logger.debug("Destroy DataSourceDescriptor Objects For [" + this.identity + "]"); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((identity == null) ? 0 : identity.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + DataSourceDescriptor other = (DataSourceDescriptor) obj; + if (identity == null) { + if (other.identity != null) + return false; + } else if (!identity.equals(other.identity)) { + return false; + } + return true; + } +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/RoutingDataSource.java b/food-server/src/main/java/com/jwsaas/datasource/RoutingDataSource.java new file mode 100644 index 0000000..46099d6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/RoutingDataSource.java @@ -0,0 +1,190 @@ +package com.jwsaas.datasource; + +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.HashMap; +import java.util.Map; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.BeansException; +import org.springframework.beans.factory.support.BeanDefinitionRegistry; +import org.springframework.beans.factory.xml.ResourceEntityResolver; +import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.core.io.InputStreamResource; +import org.springframework.stereotype.Component; + +import com.alibaba.druid.pool.DruidDataSource; +import com.alibaba.druid.util.JdbcUtils; +import com.jwsaas.Constants; +import com.jwsaas.datasource.holder.DataSourceHolder; +import com.jwsaas.datasource.holder.Identity; + +@Component("dataSource") +public class RoutingDataSource extends AbstractRoutingDataSource implements ApplicationContextAware { + + protected Logger logger = LoggerFactory.getLogger(this.getClass()); + + /** + * 系统默认的数据源标识,用于处理公共表数据 + */ + protected final String DEFAULT_DATASOURCE = "10001"; + + protected final String DEFAULT_SQL = "SELECT `xml`,`ref`,`isInit`,`tenantCode`,`appSign` FROM `db_config` "; + + protected ConfigurableApplicationContext applicationContext = null; + + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { + this.applicationContext = (ConfigurableApplicationContext) applicationContext; + } + + private String getSuffix() { + return "_" + Constants.APP_TYPE_SIGN; + } + + /** + * 检测租户是否配置数据源连接参数,如果没有配置,主动获取并注入Spring容器 + * + * @param dataSourceKey + * 数据源标识 + * + * @author 张莹 + */ + protected void checkDataSourceDescriptor(String dataSourceKey) { + Object bean = null; + // 判断当前数据源是否已经注册为Bean,Bean统一以"db_"开头 + try { + bean = this.applicationContext.getBean("db_" + dataSourceKey + getSuffix()); + } catch (Exception ex) { + logger.error("not registered [" + dataSourceKey + "]"); + } + + if (bean == null) { + logger.info("loading config form default database"); + + Connection conn = null; + PreparedStatement stmt = null; + ResultSet rs = null; + + String xml = null; + try { + DataSourceDescriptor dataSourceDescriptor = this.applicationContext.getBean("db_" + DEFAULT_DATASOURCE + getSuffix(), DataSourceDescriptor.class); + DruidDataSource defaultDataSource = this.determineCurrentDataSource(dataSourceDescriptor); + // 获取默认数据源的一个连接 + conn = defaultDataSource.getConnection(3000); + + String sql = DEFAULT_SQL + " WHERE `appSign` = ? AND `tenantCode` = ?"; + + stmt = conn.prepareStatement(sql); + stmt.setString(1, Constants.APP_TYPE_SIGN); + stmt.setString(2, dataSourceKey); + rs = stmt.executeQuery(); + if (rs.next()) { + xml = rs.getString(1); + } + JdbcUtils.close(rs); + JdbcUtils.close(stmt); + JdbcUtils.close(conn); + + XmlBeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader((BeanDefinitionRegistry) this.applicationContext.getBeanFactory()); + beanDefinitionReader.setResourceLoader(this.applicationContext); + beanDefinitionReader.setEntityResolver(new ResourceEntityResolver(this.applicationContext)); + beanDefinitionReader.setValidationMode(XmlBeanDefinitionReader.VALIDATION_XSD); + + InputStream input = new ByteArrayInputStream(xml.getBytes("UTF-8")); + org.springframework.core.io.Resource resource = new InputStreamResource(input); + beanDefinitionReader.loadBeanDefinitions(resource); + + // 将新数据源注入容器中 + Map targetDataSources = this.getTargetDataSources(); + targetDataSources.put(dataSourceKey + getSuffix(), this.applicationContext.getBean("db_" + dataSourceKey + getSuffix())); + + setTargetDataSources(targetDataSources); + super.afterPropertiesSet(); + } catch (Exception ex) { + logger.error("loaded config from default database exception", ex); + } + } else { + logger.debug("loading config form applicationContext"); + } + } + + @Override + protected Object determineCurrentLookupKey() { + Identity identity = DataSourceHolder.getIdentity(); + String dataSourceKey = identity.getTenantCode(); + + this.checkDataSourceDescriptor(dataSourceKey); + + return dataSourceKey; + } + + @Override + public void afterPropertiesSet() throws Exception { + Map targetDataSources = new HashMap(); + // 一组物理数据源,包含主备数据库 + targetDataSources.put(DEFAULT_DATASOURCE + getSuffix(), this.applicationContext.getBean("db_" + DEFAULT_DATASOURCE + getSuffix())); + // 将默认数据源注入容器中 + setTargetDataSources(targetDataSources); + + Connection conn = null; + PreparedStatement stmt = null; + ResultSet rs = null; + + String tenantCode = null; + String xml = null; + try { + DataSourceDescriptor dataSourceDescriptor = this.applicationContext.getBean("db_" + DEFAULT_DATASOURCE + getSuffix(), DataSourceDescriptor.class); + DruidDataSource defaultDataSource = this.determineCurrentDataSource(dataSourceDescriptor); + // 获取默认数据源的一个连接 + conn = defaultDataSource.getConnection(3000); + + String sql = DEFAULT_SQL + " WHERE `appSign` = ? AND `isInit` = ?"; + + stmt = conn.prepareStatement(sql); + stmt.setString(1, Constants.APP_TYPE_SIGN); + stmt.setString(2, "1"); + rs = stmt.executeQuery(); + while (rs.next()) { + xml = rs.getString(1); + tenantCode = rs.getString(4); + + XmlBeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader((BeanDefinitionRegistry) this.applicationContext.getBeanFactory()); + beanDefinitionReader.setResourceLoader(this.applicationContext); + beanDefinitionReader.setEntityResolver(new ResourceEntityResolver(this.applicationContext)); + beanDefinitionReader.setValidationMode(XmlBeanDefinitionReader.VALIDATION_XSD); + + InputStream input = new ByteArrayInputStream(xml.getBytes("UTF-8")); + org.springframework.core.io.Resource resource = new InputStreamResource(input); + beanDefinitionReader.loadBeanDefinitions(resource); + + // 将新数据源注入容器中 + targetDataSources.put(tenantCode + getSuffix(), this.applicationContext.getBean("db_" + tenantCode + getSuffix())); + + setTargetDataSources(targetDataSources); + + } + JdbcUtils.close(rs); + JdbcUtils.close(stmt); + JdbcUtils.close(conn); + } catch (Exception ex) { + logger.error("loaded config from default database exception", ex); + } + + super.afterPropertiesSet(); + } + + @Override + protected DruidDataSource determineCurrentDataSource(DataSourceDescriptor dataSourceDescriptor) { + DruidDataSource dataSource = dataSourceDescriptor.getTargetDataSource(); + return dataSource; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceAfterAdvice.java b/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceAfterAdvice.java new file mode 100644 index 0000000..9b8a2eb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceAfterAdvice.java @@ -0,0 +1,27 @@ +package com.jwsaas.datasource.advice; + +import java.lang.reflect.Method; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.aop.AfterReturningAdvice; +import org.springframework.stereotype.Component; + +import com.jwsaas.datasource.holder.DataSourceHolder; + +@Component +public class DataSourceAfterAdvice implements AfterReturningAdvice { + + protected static final Logger logger = LoggerFactory + .getLogger(DataSourceAfterAdvice.class); + + @Override + public void afterReturning(Object returnValue, Method method, + Object[] args, Object target) throws Throwable { + DataSourceHolder.clean(); + + logger.debug("DataSourceAfterAdvice>>>"+method.getName()); + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceBeforeAdvice.java b/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceBeforeAdvice.java new file mode 100644 index 0000000..9b132ea --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceBeforeAdvice.java @@ -0,0 +1,35 @@ +package com.jwsaas.datasource.advice; + +import java.lang.reflect.Method; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.aop.MethodBeforeAdvice; +import org.springframework.stereotype.Component; + +import com.jwsaas.datasource.holder.DataSourceHolder; +import com.jwsaas.datasource.holder.Identity; + +@Component +public class DataSourceBeforeAdvice implements MethodBeforeAdvice { + + protected static final Logger logger = LoggerFactory.getLogger(DataSourceBeforeAdvice.class); + + @Override + public void before(Method method, Object[] args, Object target) throws Throwable { + + if (args.length < 1) { + throw new Exception("method args no define,please check:" + method.getName()); + } + + String tenantCode = args[0].toString().trim(); + + Identity identity = new Identity(); + identity.setTenantCode(tenantCode); + identity.setMethodName(method.getName()); + + DataSourceHolder.setIdentity(identity); + + logger.debug("DataSourceBeforeAdvice>>>" + tenantCode + "," + method.getName()); + } +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceThrowsAdvice.java b/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceThrowsAdvice.java new file mode 100644 index 0000000..970b48f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/advice/DataSourceThrowsAdvice.java @@ -0,0 +1,30 @@ +package com.jwsaas.datasource.advice; + +import java.lang.reflect.Method; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.aop.ThrowsAdvice; +import org.springframework.stereotype.Component; + +@Component +public class DataSourceThrowsAdvice implements ThrowsAdvice { + + protected static final Logger logger = LoggerFactory.getLogger(DataSourceThrowsAdvice.class); + + public void afterThrowing(Method method, Object[] args, Object target, Exception ex) { + logger.info("*************************************"); + logger.info("Error happened in class: " + target.getClass().getName()); + logger.info("Error happened in method: " + method.getName()); + logger.info("Error happened in args.length: " + args.length); + + if (logger.isInfoEnabled()) { +// for (int i = 0; i < args.length; i++) { +// logger.info("arg[" + i + "]: " + args[i]); +// } + } + logger.info("Exception class: " + ex.getClass().getName()); + ex.printStackTrace(); + logger.info("*************************************"); + } +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/holder/DataSourceHolder.java b/food-server/src/main/java/com/jwsaas/datasource/holder/DataSourceHolder.java new file mode 100644 index 0000000..aabe300 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/holder/DataSourceHolder.java @@ -0,0 +1,36 @@ +package com.jwsaas.datasource.holder; + + +public class DataSourceHolder { + + /** + * 放置租户ID, 采用堆栈的方式,增加扩展性 + */ + private static final ThreadLocal holder = new ThreadLocal(); + + /** + * 获取当前租户ID + * + * @return + */ + public static Identity getIdentity() { + return holder.get(); + } + + /** + * 设置当前租户ID + * + * @param dataSourceKey + */ + public static void setIdentity(Identity identity) { + holder.set(identity); + } + + /** + * 清理 + */ + public static void clean() { + holder.remove(); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/datasource/holder/Identity.java b/food-server/src/main/java/com/jwsaas/datasource/holder/Identity.java new file mode 100644 index 0000000..7fc620f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/datasource/holder/Identity.java @@ -0,0 +1,45 @@ +package com.jwsaas.datasource.holder; + +import java.io.Serializable; + +/** + * 唯一标识,包含租户ID和方法名称 + * + * @author 张莹 + * + */ +public class Identity implements Serializable { + + private static final long serialVersionUID = 5390258326081549064L; + + private String tenantCode; + + private String methodName; + + /** + * 租户标识 + * + * @return + */ + public String getTenantCode() { + return tenantCode; + } + + public void setTenantCode(String tenantCode) { + this.tenantCode = tenantCode; + } + + /** + * 读写分离 + * + * @return + */ + public String getMethodName() { + return methodName; + } + + public void setMethodName(String methodName) { + this.methodName = methodName; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/MyBatisPrimaryKey.java b/food-server/src/main/java/com/jwsaas/mybatis/MyBatisPrimaryKey.java new file mode 100644 index 0000000..539ddce --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/MyBatisPrimaryKey.java @@ -0,0 +1,97 @@ +package com.jwsaas.mybatis; + +public class MyBatisPrimaryKey { + + private final long workerId; + private final long datacenterId; + private final long idepoch; + + private final long workerIdBits = 5L; + private final long datacenterIdBits = 5L; + private final long maxWorkerId = -1L ^ (-1L << workerIdBits); + private final long maxDatacenterId = -1L ^ (-1L << datacenterIdBits); + + private final long sequenceBits = 12L; + private final long workerIdShift = sequenceBits; + private final long datacenterIdShift = sequenceBits + workerIdBits; + private final long timestampLeftShift = sequenceBits + workerIdBits + datacenterIdBits; + private final long sequenceMask = -1L ^ (-1L << sequenceBits); + + private long lastTimestamp = -1L; + private long sequence; + + public MyBatisPrimaryKey(){ + this(0, 0, 0, 1344322705519L); + } + + public MyBatisPrimaryKey(long workerId, long datacenterId, long sequence) { + this(workerId, datacenterId, sequence, 1344322705519L); + } + + // + public MyBatisPrimaryKey(long workerId, long datacenterId, long sequence, long idepoch) { + this.workerId = workerId; + this.datacenterId = datacenterId; + this.sequence = sequence; + this.idepoch = idepoch; + if (workerId < 0 || workerId > maxWorkerId) { + throw new IllegalArgumentException("primaryKey is illegal: " + workerId); + } + if (datacenterId < 0 || datacenterId > maxDatacenterId) { + throw new IllegalArgumentException("datacenterId is illegal: " + workerId); + } + } + + public long getDatacenterId() { + return datacenterId; + } + + public long getWorkerId() { + return workerId; + } + + public long getTime() { + return System.currentTimeMillis(); + } + + public long getId() { + long id = nextId(); + return id; + } + + private synchronized long nextId() { + long timestamp = timeGen(); + if (timestamp < lastTimestamp) { + throw new IllegalStateException("Clock moved backwards."); + } + if (lastTimestamp == timestamp) { + sequence = (sequence + 1) & sequenceMask; + if (sequence == 0) { + timestamp = tilNextMillis(lastTimestamp); + } + } else { + // sequence = 0; + /** ------调整序号的值,保证生成的数据尾数有奇数有偶数------ **/ + sequence = (Long) datacenterId != null ? (datacenterId + 1) % 2 : 0; + } + lastTimestamp = timestamp; + long id = ((timestamp - idepoch) << timestampLeftShift) + | (datacenterId << datacenterIdShift) + | (workerId << workerIdShift) + | sequence; + return id; + } + + private long tilNextMillis(long lastTimestamp) { + long timestamp = timeGen(); + while (timestamp <= lastTimestamp) { + timestamp = timeGen(); + } + return timestamp; + } + + private long timeGen() { + return System.currentTimeMillis(); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/NullDatabaseIdProvider.java b/food-server/src/main/java/com/jwsaas/mybatis/NullDatabaseIdProvider.java new file mode 100644 index 0000000..818135e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/NullDatabaseIdProvider.java @@ -0,0 +1,30 @@ +package com.jwsaas.mybatis; + +import java.sql.SQLException; +import java.util.Properties; + +import javax.sql.DataSource; + +import org.apache.ibatis.mapping.DatabaseIdProvider; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class NullDatabaseIdProvider implements DatabaseIdProvider { + + private Logger log = LoggerFactory.getLogger(NullDatabaseIdProvider.class); + + @SuppressWarnings("unused") + private Properties properties; + + @Override + public void setProperties(Properties p) { + this.properties = p; + } + + @Override + public String getDatabaseId(DataSource dataSource) throws SQLException { + log.warn("Because have multi data source, so databaseId is seted null."); + return null; + } + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/mybatis/SqlSessionTemplateFactory.java b/food-server/src/main/java/com/jwsaas/mybatis/SqlSessionTemplateFactory.java new file mode 100644 index 0000000..836457a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/SqlSessionTemplateFactory.java @@ -0,0 +1,63 @@ +package com.jwsaas.mybatis; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; + +import org.apache.ibatis.session.ExecutorType; +import org.apache.ibatis.session.SqlSessionFactory; +import org.mybatis.spring.SqlSessionTemplate; + +/** + * 解决MyBatis有一个现有的事务的时候无法改变的ExecutorType + * + * @author 张莹 + * + */ +public class SqlSessionTemplateFactory implements Serializable{ + + private static final long serialVersionUID = -5070222555352854327L; + + /** + * SqlSessionTemplate singleton instance factory map keyed with ExecutorType + */ + private final Map sqlSessionTemplateMap; + + private SqlSessionFactory sqlSessionFactory; + + public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) { + this.sqlSessionFactory = sqlSessionFactory; + } + + public SqlSessionTemplateFactory() { + super(); + sqlSessionTemplateMap = new HashMap(); + } + + public SqlSessionTemplate getSqlSessionTemplate() { + return getSqlSessionTemplate(ExecutorType.SIMPLE); + } + + public SqlSessionFactory getSqlSessionFactory() { + return sqlSessionFactory; + } + + public SqlSessionTemplate getSqlSessionTemplate(ExecutorType executorType) { + SqlSessionTemplate sqlSessionTemplate = sqlSessionTemplateMap + .get(executorType); + if (sqlSessionTemplate == null) { + createSqlSessionTemplate(executorType); + return sqlSessionTemplateMap.get(executorType); + } + return sqlSessionTemplate; + } + + protected synchronized void createSqlSessionTemplate( + ExecutorType executorType) { + if (sqlSessionTemplateMap.get(executorType) == null) { + SqlSessionTemplate sqlSessionTemplate = new SqlSessionTemplate( + sqlSessionFactory, executorType); + sqlSessionTemplateMap.put(executorType, sqlSessionTemplate); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/domain/PageBounds.java b/food-server/src/main/java/com/jwsaas/mybatis/domain/PageBounds.java new file mode 100644 index 0000000..4125f38 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/domain/PageBounds.java @@ -0,0 +1,88 @@ +package com.jwsaas.mybatis.domain; + +import java.io.Serializable; + +import org.apache.ibatis.session.RowBounds; + +/** + * 分页查询对象 + */ +public class PageBounds extends RowBounds implements Serializable { + + private static final long serialVersionUID = 4469496642733398327L; + + /** 页号 */ + protected Integer pageNumber = 1; + + /** 分页大小 */ + protected Integer pageSize = 50; + + /** 是否异步获取TotalCount */ + protected Boolean asyncTotalCount=false; + + public PageBounds(){} + + public PageBounds(RowBounds rowBounds) { + if(rowBounds instanceof PageBounds){ + PageBounds pageBounds = (PageBounds)rowBounds; + this.pageNumber = pageBounds.getPageNumber(); + this.pageSize = pageBounds.getPageSize(); + this.asyncTotalCount = pageBounds.getAsyncTotalCount(); + }else{ + this.pageNumber = (rowBounds.getOffset()/rowBounds.getLimit())+1; + this.pageSize = rowBounds.getLimit(); + } + } + + public PageBounds(Integer pageNumber, Integer pageSize) { + this.pageNumber = pageNumber; + this.pageSize = pageSize; + } + + public int getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + @Override + public int getLimit() { + return pageSize; + } + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + this.pageSize = pageSize; + } + + public Boolean getAsyncTotalCount() { + return asyncTotalCount; + } + + public void setAsyncTotalCount(Boolean asyncTotalCount) { + this.asyncTotalCount = asyncTotalCount; + } + + @Override + public int getOffset() { + if(this.pageNumber >= 1){ + return (this.pageNumber-1) * getLimit(); + } + return 0; + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder("PageBounds{"); + sb.append("pageNumber=").append(pageNumber); + sb.append(", pageSize=").append(getPageSize()); + sb.append(", asyncTotalCount=").append(asyncTotalCount); + sb.append('}'); + return sb.toString(); + } +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/mybatis/handlers/AbstractTypeHandler.java b/food-server/src/main/java/com/jwsaas/mybatis/handlers/AbstractTypeHandler.java new file mode 100644 index 0000000..fbb5dbd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/handlers/AbstractTypeHandler.java @@ -0,0 +1,58 @@ +package com.jwsaas.mybatis.handlers; + +import java.sql.CallableStatement; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Types; +import java.text.ParseException; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.ibatis.type.JdbcType; +import org.apache.ibatis.type.TypeHandler; + +public abstract class AbstractTypeHandler implements TypeHandler { + + protected final Log logger = LogFactory.getLog(getClass()); + + @Override + public void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException { + if (parameter == null) + ps.setNull(i, Types.NULL); + else + ps.setString(i, print(parameter)); + } + + @Override + public T getResult(ResultSet rs, String columnName) throws SQLException { + if (rs.getObject(columnName) == null) return null; + return parseWithExceptionAbstraction(rs.getString(columnName)); + } + + @Override + public T getResult(ResultSet rs, int columnIndex) throws SQLException { + if (rs.getObject(columnIndex) == null) return null; + return parseWithExceptionAbstraction(rs.getString(columnIndex)); + } + + @Override + public T getResult(CallableStatement cs, int columnIndex) throws SQLException { + if (cs.getObject(columnIndex) == null) return null; + return parseWithExceptionAbstraction(cs.getString(columnIndex)); + } + + private T parseWithExceptionAbstraction(String text) throws SQLException { + try { + return parse(text); + } + catch (ParseException e) { + throw new SQLException(e); + } + } + + protected abstract String print(T object); + + protected abstract T parse(String text) throws ParseException; + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/mybatis/plugins/MyBatisLogInterceptor.java b/food-server/src/main/java/com/jwsaas/mybatis/plugins/MyBatisLogInterceptor.java new file mode 100644 index 0000000..eef7f2e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/plugins/MyBatisLogInterceptor.java @@ -0,0 +1,149 @@ +package com.jwsaas.mybatis.plugins; + +import java.text.DateFormat; +import java.util.Date; +import java.util.List; +import java.util.Locale; +import java.util.Properties; + +import org.apache.commons.lang3.BooleanUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.ibatis.executor.Executor; +import org.apache.ibatis.mapping.BoundSql; +import org.apache.ibatis.mapping.MappedStatement; +import org.apache.ibatis.mapping.ParameterMapping; +import org.apache.ibatis.plugin.Intercepts; +import org.apache.ibatis.plugin.Invocation; +import org.apache.ibatis.plugin.Signature; +import org.apache.ibatis.reflection.MetaObject; +import org.apache.ibatis.session.Configuration; +import org.apache.ibatis.session.ResultHandler; +import org.apache.ibatis.session.RowBounds; +import org.apache.ibatis.type.TypeHandlerRegistry; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@Intercepts({ @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class }), @Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class }) }) +public class MyBatisLogInterceptor extends PluginAdapter { + + /** SQL slow execute time */ + private long slowExecuteTime = DEFAULT_SQL_SLOW_EXECUTE_TIME; + /** SQL default slow execute time */ + public static final long DEFAULT_SQL_SLOW_EXECUTE_TIME = 100L; + + private boolean showSql = Boolean.FALSE; + + /** logger utility */ + private final Logger logger = LoggerFactory.getLogger(MyBatisLogInterceptor.class); + + @Override + public Object intercept(Invocation invocation) throws Throwable { + + MappedStatement mappedStatement = (MappedStatement) invocation.getArgs()[0]; + Object parameter = null; + if (invocation.getArgs().length > 1) { + parameter = invocation.getArgs()[1]; + } + String sqlId = mappedStatement.getId(); + BoundSql boundSql = mappedStatement.getBoundSql(parameter); + Configuration configuration = mappedStatement.getConfiguration(); + + long startTime = System.currentTimeMillis(); + + Object result = invocation.proceed(); + + long executeTime = System.currentTimeMillis() - startTime; + + if (executeTime < slowExecuteTime) { + logger.debug("Sql executed time: {}ms",executeTime); + } else { + logger.warn("Sql executed time is too slow: {}ms",executeTime); + String sql = getSql(configuration, boundSql, sqlId, executeTime); + logger.warn("{}" ,sql); + + } + + return result; + } + + public static String getSql(Configuration configuration, BoundSql boundSql, String sqlId, long time) { + String sql = showSql(configuration, boundSql); + StringBuilder str = new StringBuilder(100); + str.append(sqlId); + str.append(":"); + str.append(sql); + + return str.toString(); + } + + private static String getParameterValue(Object obj) { + String value = null; + if (obj instanceof String) { + value = "'" + obj.toString() + "'"; + } else if (obj instanceof Date) { + DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.CHINA); + value = "'" + formatter.format(new Date()) + "'"; + } else { + if (obj != null) { + value = obj.toString(); + } else { + value = ""; + } + + } + return value; + } + + public static String showSql(Configuration configuration, BoundSql boundSql) { + Object parameterObject = boundSql.getParameterObject(); + List parameterMappings = boundSql.getParameterMappings(); + String sql = boundSql.getSql().replaceAll("[\\s]+", " "); + if (parameterMappings.size() > 0 && parameterObject != null) { + TypeHandlerRegistry typeHandlerRegistry = configuration.getTypeHandlerRegistry(); + if (typeHandlerRegistry.hasTypeHandler(parameterObject.getClass())) { + sql = StringUtils.replace(sql,"?",getParameterValue(parameterObject),1); + } else { + MetaObject metaObject = configuration.newMetaObject(parameterObject); + for (ParameterMapping parameterMapping : parameterMappings) { + String propertyName = parameterMapping.getProperty(); + if (metaObject.hasGetter(propertyName)) { + Object obj = metaObject.getValue(propertyName); + sql = StringUtils.replace(sql,"?",getParameterValue(obj),1); + } else if (boundSql.hasAdditionalParameter(propertyName)) { + Object obj = boundSql.getAdditionalParameter(propertyName); + sql = StringUtils.replace(sql,"?",getParameterValue(obj),1); + } + } + } + } + return sql; + } + + @Override + public void setProperties(Properties props) { + String slowTime = props.getProperty("slowExecuteTime"); + String showSql = props.getProperty("showSql"); + + if (slowTime != null && !slowTime.isEmpty()) { + this.slowExecuteTime = Long.parseLong(slowTime); + this.showSql = BooleanUtils.toBoolean(showSql); + } + } + + public boolean isShowSql() { + return showSql; + } + + public void setShowSql(boolean showSql) { + this.showSql = showSql; + } + + public long getSlowExecuteTime() { + return slowExecuteTime; + } + + public void setSlowExecuteTime(long slowExecuteTime) { + this.slowExecuteTime = slowExecuteTime; + } + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/mybatis/plugins/PagerInterceptor.java b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PagerInterceptor.java new file mode 100644 index 0000000..3be239a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PagerInterceptor.java @@ -0,0 +1,244 @@ +package com.jwsaas.mybatis.plugins; + +import java.util.List; +import java.util.Properties; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import java.util.concurrent.FutureTask; + +import org.apache.ibatis.cache.Cache; +import org.apache.ibatis.cache.CacheKey; +import org.apache.ibatis.executor.Executor; +import org.apache.ibatis.mapping.BoundSql; +import org.apache.ibatis.mapping.MappedStatement; +import org.apache.ibatis.mapping.MappedStatement.Builder; +import org.apache.ibatis.mapping.ParameterMapping; +import org.apache.ibatis.mapping.SqlSource; +import org.apache.ibatis.plugin.Intercepts; +import org.apache.ibatis.plugin.Invocation; +import org.apache.ibatis.plugin.Signature; +import org.apache.ibatis.session.ResultHandler; +import org.apache.ibatis.session.RowBounds; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.mybatis.support.Dialect; +import com.jwsaas.mybatis.support.PropertiesUtils; +import com.jwsaas.mybatis.support.SQLUtils; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Paginator; + +@Intercepts({ @Signature(type = Executor.class, method = "query", args = { MappedStatement.class, Object.class, + RowBounds.class, ResultHandler.class }) }) +public class PagerInterceptor extends PluginAdapter { + + private static Logger logger = LoggerFactory.getLogger(PagerInterceptor.class); + + private static int MAPPED_STATEMENT_INDEX = 0; + + private static int PARAMETER_INDEX = 1; + + private static int ROWBOUNDS_INDEX = 2; + + private static ExecutorService executorService; + + private Dialect dialect; + + boolean asyncTotalCount = false; + + @SuppressWarnings({ "rawtypes", "unchecked" }) + @Override + public Object intercept(final Invocation invocation) throws Throwable { + final Executor executor = (Executor) invocation.getTarget(); + final Object[] queryArgs = invocation.getArgs(); + final MappedStatement ms = (MappedStatement) queryArgs[MAPPED_STATEMENT_INDEX]; + final Object parameter = queryArgs[PARAMETER_INDEX]; + final RowBounds rowBounds = (RowBounds) queryArgs[ROWBOUNDS_INDEX]; + + if (rowBounds == null || rowBounds == RowBounds.DEFAULT) { + return invocation.proceed(); + } + + final PageBounds pageBounds = new PageBounds(rowBounds); + + final int offset = pageBounds.getOffset(); + final int pageSize = pageBounds.getPageSize(); + final int pageNumber = pageBounds.getPageNumber(); + + final BoundSql boundSql = ms.getBoundSql(parameter); + final StringBuffer bufferSql = new StringBuffer(boundSql.getSql().trim()); + if (bufferSql.lastIndexOf(";") == bufferSql.length() - 1) { + bufferSql.deleteCharAt(bufferSql.length() - 1); + } + String sql = bufferSql.toString(); + + Callable countTask = null; + + if (dialect.supportsLimit() && (offset != RowBounds.NO_ROW_OFFSET || pageSize != RowBounds.NO_ROW_LIMIT)) { + + countTask = new Callable() { + + @Override + public Paginator call() throws Exception { + Integer totalCount = null; + Cache cache = ms.getCache(); + if (cache != null && ms.isUseCache()) { + CacheKey cacheKey = executor.createCacheKey(ms, parameter, pageBounds, + copyFromBoundSql(ms, boundSql, bufferSql.toString())); + totalCount = (Integer) cache.getObject(cacheKey); + if (totalCount == null) { + totalCount = SQLUtils.getCount(bufferSql.toString(), ms, parameter, boundSql, dialect); + cache.putObject(cacheKey, totalCount); + } + } else { + totalCount = SQLUtils.getCount(bufferSql.toString(), ms, parameter, boundSql, dialect); + } + + return new Paginator(pageNumber, pageSize, totalCount); + } + + }; + + if (dialect.supportsLimitOffset()) { + sql = dialect.getLimitString(sql, offset, pageSize); + } else { + sql = dialect.getLimitString(sql, 0, pageSize); + } + + queryArgs[ROWBOUNDS_INDEX] = new RowBounds(RowBounds.NO_ROW_OFFSET, RowBounds.NO_ROW_LIMIT); + } + + queryArgs[MAPPED_STATEMENT_INDEX] = copyFromNewSql(ms, boundSql, sql); + + if (logger.isDebugEnabled()) { + logger.debug("pager sql:" + sql); + } + + Boolean async = pageBounds.getAsyncTotalCount() == null ? asyncTotalCount : pageBounds.getAsyncTotalCount(); + + Future> listFuture = call(new Callable>() { + public List call() throws Exception { + Object result = invocation.proceed(); + return (List) result; + } + }, async); + + if (countTask != null) { + Future countFutrue = call(countTask, async); + + PageList pageList = new PageList(listFuture.get(), countFutrue.get()); + + return pageList; + + } else { + return listFuture.get(); + } + } + + private Future call(Callable callable, boolean async) { + if (async) { + return executorService.submit(callable); + } else { + FutureTask future = new FutureTask(callable); + future.run(); + return future; + } + } + + private BoundSql copyFromBoundSql(MappedStatement ms, BoundSql boundSql, String sql) { + BoundSql newBoundSql = new BoundSql(ms.getConfiguration(), sql, boundSql.getParameterMappings(), + boundSql.getParameterObject()); + for (ParameterMapping mapping : boundSql.getParameterMappings()) { + String prop = mapping.getProperty(); + if (boundSql.hasAdditionalParameter(prop)) { + newBoundSql.setAdditionalParameter(prop, boundSql.getAdditionalParameter(prop)); + } + } + return newBoundSql; + } + + private MappedStatement copyFromNewSql(MappedStatement ms, BoundSql boundSql, String sql) { + BoundSql newBoundSql = copyFromBoundSql(ms, boundSql, sql); + return copyFromMappedStatement(ms, new BoundSqlSqlSource(newBoundSql)); + } + + public static class BoundSqlSqlSource implements SqlSource { + BoundSql boundSql; + + public BoundSqlSqlSource(BoundSql boundSql) { + this.boundSql = boundSql; + } + + public BoundSql getBoundSql(Object parameterObject) { + return boundSql; + } + } + + private MappedStatement copyFromMappedStatement(MappedStatement ms, SqlSource newSqlSource) { + Builder builder = new Builder(ms.getConfiguration(), ms.getId(), newSqlSource, ms.getSqlCommandType()); + + builder.resource(ms.getResource()); + builder.fetchSize(ms.getFetchSize()); + builder.statementType(ms.getStatementType()); + builder.keyGenerator(ms.getKeyGenerator()); + if (ms.getKeyProperties() != null && ms.getKeyProperties().length != 0) { + StringBuffer keyProperties = new StringBuffer(); + for (String keyProperty : ms.getKeyProperties()) { + keyProperties.append(keyProperty).append(","); + } + keyProperties.delete(keyProperties.length() - 1, keyProperties.length()); + builder.keyProperty(keyProperties.toString()); + } + + builder.timeout(ms.getTimeout()); + + builder.parameterMap(ms.getParameterMap()); + + builder.resultMaps(ms.getResultMaps()); + builder.resultSetType(ms.getResultSetType()); + + builder.cache(ms.getCache()); + builder.flushCacheRequired(ms.isFlushCacheRequired()); + builder.useCache(ms.isUseCache()); + + return builder.build(); + } + + @Override + public void setProperties(Properties properties) { + PropertiesUtils propertiesHelper = new PropertiesUtils(properties); + String dialectClass = propertiesHelper.getRequiredString("dialectClass"); + try { + setDialect((Dialect) Class.forName(dialectClass).newInstance()); + } catch (Exception e) { + throw new RuntimeException("cannot create dialect instance by dialectClass:" + dialectClass, e); + } + + setAsyncTotalCount(propertiesHelper.getBoolean("asyncTotalCount", false)); + + setPoolMaxSize(propertiesHelper.getInt("poolMaxSize", 0)); + + } + + public void setDialect(Dialect dialect) { + logger.debug("dialectClass: {} ", dialect.getClass().getName()); + this.dialect = dialect; + } + + public void setAsyncTotalCount(boolean asyncTotalCount) { + logger.debug("asyncTotalCount: {} ", asyncTotalCount); + this.asyncTotalCount = asyncTotalCount; + } + + public void setPoolMaxSize(int poolMaxSize) { + if (poolMaxSize > 0) { + logger.debug("poolMaxSize: {} ", poolMaxSize); + executorService = Executors.newFixedThreadPool(poolMaxSize); + } else { + executorService = Executors.newCachedThreadPool(); + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/plugins/PluginAdapter.java b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PluginAdapter.java new file mode 100644 index 0000000..65ef294 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PluginAdapter.java @@ -0,0 +1,25 @@ +package com.jwsaas.mybatis.plugins; + +import java.util.Properties; + +import org.apache.ibatis.plugin.Interceptor; +import org.apache.ibatis.plugin.Plugin; + +/** + * Mybatis插件适配器类。 + * 此类默认实现了{@link #plugin(Object)} + * 和{@link #setProperties(java.util.Properties)} + * 两个方法。 + * + * @author 张莹 + */ +public abstract class PluginAdapter implements Interceptor { + + public Object plugin(Object target) { + return Plugin.wrap(target, this); + } + + public void setProperties(Properties properties) { + // no op + } +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/plugins/PrimaryKeyGenerator.java b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PrimaryKeyGenerator.java new file mode 100644 index 0000000..88ded7d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PrimaryKeyGenerator.java @@ -0,0 +1,49 @@ +package com.jwsaas.mybatis.plugins; + +import java.sql.Statement; + +import org.apache.ibatis.executor.Executor; +import org.apache.ibatis.executor.ExecutorException; +import org.apache.ibatis.executor.keygen.KeyGenerator; +import org.apache.ibatis.mapping.MappedStatement; +import org.apache.ibatis.mapping.SqlCommandType; +import org.apache.ibatis.reflection.MetaObject; +import org.apache.ibatis.session.Configuration; + +import com.jwsaas.mybatis.MyBatisPrimaryKey; + +public class PrimaryKeyGenerator implements KeyGenerator { + + private MyBatisPrimaryKey primaryKey; + + public PrimaryKeyGenerator(MyBatisPrimaryKey primaryKey) { + this.primaryKey = primaryKey; + } + + public void processBefore(Executor executor, MappedStatement ms, Statement stmt, Object parameter) { + processGeneratedKeys(executor, ms, parameter); + } + + public void processAfter(Executor executor, MappedStatement ms, Statement stmt, Object parameter) { + } + + private void processGeneratedKeys(Executor executor, MappedStatement ms, Object parameter) { + + if (ms.getSqlCommandType() != SqlCommandType.INSERT) { + return; + } + + if (parameter != null && ms.getKeyProperties() != null) { + try { + Configuration configuration = ms.getConfiguration(); + MetaObject metaParam = configuration.newMetaObject(parameter); + String keyProperty = ms.getKeyProperties()[0]; + if (metaParam.getGetterType(keyProperty) == String.class && metaParam.hasGetter(keyProperty) && metaParam.hasSetter(keyProperty) && (metaParam.getValue(keyProperty) == null || "".equals(metaParam.getValue(keyProperty)))) { + metaParam.setValue(keyProperty, Long.toString(this.primaryKey.getId())); + } + } catch (Exception e) { + throw new ExecutorException("Error selecting key or setting result to parameter object. Cause: " + e, e); + } + } + } +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/mybatis/plugins/PrimaryKeyInterceptor.java b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PrimaryKeyInterceptor.java new file mode 100644 index 0000000..ed29969 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/plugins/PrimaryKeyInterceptor.java @@ -0,0 +1,60 @@ +package com.jwsaas.mybatis.plugins; + +import java.lang.reflect.Field; + +import org.apache.ibatis.executor.Executor; +import org.apache.ibatis.mapping.MappedStatement; +import org.apache.ibatis.mapping.SqlCommandType; +import org.apache.ibatis.plugin.Intercepts; +import org.apache.ibatis.plugin.Invocation; +import org.apache.ibatis.plugin.Signature; + +import com.jwsaas.mybatis.MyBatisPrimaryKey; + +@Intercepts({ @Signature(type = Executor.class, method = "update", args = { MappedStatement.class, Object.class }) }) +public class PrimaryKeyInterceptor extends PluginAdapter { + + private MyBatisPrimaryKey primaryKey; + + public PrimaryKeyInterceptor(MyBatisPrimaryKey primaryKey) { + this.primaryKey = primaryKey; + } + + @Override + public Object intercept(Invocation invocation) throws Throwable { + final MappedStatement mappedStatement = (MappedStatement) invocation.getArgs()[0]; + if (mappedStatement.getSqlCommandType() == SqlCommandType.INSERT) { + setValueByFieldName(mappedStatement, "keyGenerator", new PrimaryKeyGenerator(this.primaryKey)); + } + return invocation.proceed(); + } + + /** + * 设置obj对象fieldName的属性值 + * + * @param obj + * @param fieldName + * @param value + * @throws SecurityException + * @throws NoSuchFieldException + * @throws IllegalArgumentException + * @throws IllegalAccessException + */ + public static boolean setValueByFieldName(Object obj, String fieldName, Object value) { + try { + Field field = obj.getClass().getDeclaredField(fieldName); + if (field.isAccessible()) { + field.set(obj, value); + } else { + field.setAccessible(true); + field.set(obj, value); + field.setAccessible(false); + } + return true; + } catch (Exception e) { + // do nothing + } + return false; + } + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/mybatis/spring/SqlSessionFactoryBeanExt.java b/food-server/src/main/java/com/jwsaas/mybatis/spring/SqlSessionFactoryBeanExt.java new file mode 100644 index 0000000..6c32904 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/spring/SqlSessionFactoryBeanExt.java @@ -0,0 +1,66 @@ +package com.jwsaas.mybatis.spring; + +import org.apache.ibatis.logging.Log; +import org.apache.ibatis.logging.LogFactory; +import org.mybatis.spring.SqlSessionFactoryBean; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; + +public class SqlSessionFactoryBeanExt extends SqlSessionFactoryBean implements ApplicationContextAware{ + + protected static final Log LOGGER = LogFactory.getLog(SqlSessionFactoryBeanExt.class); + + protected ApplicationContext applicationContext; + +// @Override +// public void setTypeAliasesPackage(String typeAliasesPackage) { +// List packages = PackageUtils.getPackages(typeAliasesPackage); +// if (packages != null && packages.size() > 0) { +// StringBuilder absoluteTypeAliasesPackageBuilder = new StringBuilder(); +// for (int idx = 0; idx < packages.size(); idx++) { +// if (idx > 0) { +// absoluteTypeAliasesPackageBuilder.append(","); +// } +// String packageString = packages.get(idx); +// absoluteTypeAliasesPackageBuilder.append(packageString); +// } +// String absoluteTypeAliasesPackage = absoluteTypeAliasesPackageBuilder.toString(); +// +// super.setTypeAliasesPackage(absoluteTypeAliasesPackage); +// } else { +// LOGGER.warn("typeAliasesPackage:" + typeAliasesPackage + ",Not found any package!"); +// } +// } + + @Override + public void afterPropertiesSet() throws Exception { + super.afterPropertiesSet(); + } + +// @Override +// public void setTypeHandlersPackage(String typeHandlersPackage) { +// +// List packages = PackageUtils.getPackages(typeHandlersPackage); +// if (packages != null && packages.size() > 0) { +// StringBuilder absoluteTypeHandlersPackageBuilder = new StringBuilder(); +// for (int idx = 0; idx < packages.size(); idx++) { +// if (idx > 0) { +// absoluteTypeHandlersPackageBuilder.append(","); +// } +// String packageString = packages.get(idx); +// absoluteTypeHandlersPackageBuilder.append(packageString); +// } +// String absoluteTypeHandlersPackage = absoluteTypeHandlersPackageBuilder.toString(); +// super.setTypeHandlersPackage(absoluteTypeHandlersPackage); +// } else { +// LOGGER.warn("typeHandlersPackage:" + typeHandlersPackage + ",Not found any package!"); +// } +// } + + @Override + public void setApplicationContext(ApplicationContext applicationContext) { + this.applicationContext = applicationContext; + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/support/Dialect.java b/food-server/src/main/java/com/jwsaas/mybatis/support/Dialect.java new file mode 100644 index 0000000..9ead9f1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/support/Dialect.java @@ -0,0 +1,46 @@ +package com.jwsaas.mybatis.support; + + +/** + * 类似hibernate的Dialect,但只精简出分页部分 + */ +public class Dialect { + + public boolean supportsLimit(){ + return false; + } + + public boolean supportsLimitOffset() { + return supportsLimit(); + } + + /** + * 将sql变成分页sql语句,直接使用offset,limit的值作为占位符.
+ */ + public String getLimitString(String sql, int offset, int limit) { + return getLimitString(sql,offset,Integer.toString(offset),limit,Integer.toString(limit)); + } + + /** + * 将sql变成分页sql语句,提供将offset及limit使用占位符(placeholder)替换. + *

+     * 如mysql
+     * dialect.getLimitString("select * from user", 12, ":offset",0,":limit") 将返回
+     * select * from user limit :offset,:limit
+     * 
+ * @return 包含占位符的分页sql + */ + public String getLimitString(String sql, int offset,String offsetPlaceholder, int limit,String limitPlaceholder) { + throw new UnsupportedOperationException("paged queries not supported"); + } + + /** + * 将sql转换为总记录数SQL + * @param sql SQL语句 + * @return 总记录数的sql + */ + public String getCountString(String sql){ + return "select count(1) from (" + sql + ") __tmp_count__"; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/support/MySQLDialect.java b/food-server/src/main/java/com/jwsaas/mybatis/support/MySQLDialect.java new file mode 100644 index 0000000..cb01b7b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/support/MySQLDialect.java @@ -0,0 +1,37 @@ +package com.jwsaas.mybatis.support; + +import com.alibaba.druid.sql.PagerUtils; +import com.alibaba.druid.util.JdbcConstants; + +/** + */ +public class MySQLDialect extends Dialect { + + @Override + public boolean supportsLimitOffset() { + return true; + } + + @Override + public boolean supportsLimit() { + return true; + } + + @Override + public String getLimitString(String sql, int offset, + String offsetPlaceholder, int limit, String limitPlaceholder) { + return PagerUtils.limit(sql, JdbcConstants.MYSQL, offset, limit); + } + + + @Override + public String getLimitString(String sql, int offset, int limit) { + return super.getLimitString(sql, offset, limit); + } + + @Override + public String getCountString(String sql) { + return PagerUtils.count(sql, JdbcConstants.MYSQL); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/support/OracleDialect.java b/food-server/src/main/java/com/jwsaas/mybatis/support/OracleDialect.java new file mode 100644 index 0000000..167b007 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/support/OracleDialect.java @@ -0,0 +1,46 @@ +package com.jwsaas.mybatis.support; +/** + */ +public class OracleDialect extends Dialect{ + + public boolean supportsLimit() { + return true; + } + + public boolean supportsLimitOffset() { + return true; + } + + public String getLimitString(String sql, int offset,String offsetPlaceholder, int limit, String limitPlaceholder) { + sql = sql.trim(); + boolean isForUpdate = false; + if ( sql.toLowerCase().endsWith(" for update") ) { + sql = sql.substring( 0, sql.length()-11 ); + isForUpdate = true; + } + + StringBuffer pagingSelect = new StringBuffer( sql.length()+100 ); + if (offset > 0) { + pagingSelect.append("select * from ( select row_.*, rownum rownum_ from ( "); + } + else { + pagingSelect.append("select * from ( "); + } + pagingSelect.append(sql); + if (offset > 0) { +// int end = offset+limit; + String endString = offsetPlaceholder+"+"+limitPlaceholder; + pagingSelect.append(" ) row_ ) where rownum_ <= " + endString + " and rownum_ > " + offsetPlaceholder); + } + else { + pagingSelect.append(" ) where rownum <= " + limitPlaceholder); + } + + if ( isForUpdate ) { + pagingSelect.append( " for update" ); + } + + return pagingSelect.toString(); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/support/PostgreSQLDialect.java b/food-server/src/main/java/com/jwsaas/mybatis/support/PostgreSQLDialect.java new file mode 100644 index 0000000..7bd57fc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/support/PostgreSQLDialect.java @@ -0,0 +1,21 @@ +package com.jwsaas.mybatis.support; +/** + */ +public class PostgreSQLDialect extends Dialect{ + + public boolean supportsLimit() { + return true; + } + + public boolean supportsLimitOffset(){ + return true; + } + + public String getLimitString(String sql, int offset, + String offsetPlaceholder, int limit, String limitPlaceholder) { + return new StringBuffer( sql.length()+20 ) + .append(sql) + .append(offset > 0 ? " limit "+limitPlaceholder+" offset "+offsetPlaceholder : " limit "+limitPlaceholder) + .toString(); + } +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/support/PropertiesUtils.java b/food-server/src/main/java/com/jwsaas/mybatis/support/PropertiesUtils.java new file mode 100644 index 0000000..855b657 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/support/PropertiesUtils.java @@ -0,0 +1,407 @@ +package com.jwsaas.mybatis.support; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.PrintStream; +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Enumeration; +import java.util.InvalidPropertiesFormatException; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Properties; +import java.util.Set; +import java.util.StringTokenizer; + +public class PropertiesUtils { + + /** Never check system properties. */ + public static final int SYSTEM_PROPERTIES_MODE_NEVER = 0; + + /** + * Check system properties if not resolvable in the specified properties. + * This is the default. + */ + public static final int SYSTEM_PROPERTIES_MODE_FALLBACK = 1; + + /** + * Check system properties first, before trying the specified properties. + * This allows system properties to override any other property source. + */ + public static final int SYSTEM_PROPERTIES_MODE_OVERRIDE = 2; + + private int systemPropertiesMode = SYSTEM_PROPERTIES_MODE_NEVER; + private Properties p; + + public PropertiesUtils(Properties p) { + setProperties(p); + } + + public PropertiesUtils(Properties p, int systemPropertiesMode) { + setProperties(p); + if (systemPropertiesMode != SYSTEM_PROPERTIES_MODE_NEVER + && systemPropertiesMode != SYSTEM_PROPERTIES_MODE_FALLBACK + && systemPropertiesMode != SYSTEM_PROPERTIES_MODE_OVERRIDE) { + throw new IllegalArgumentException( + "error systemPropertiesMode mode:" + systemPropertiesMode); + } + this.systemPropertiesMode = systemPropertiesMode; + } + + public Properties getProperties() { + return p; + } + + public void setProperties(Properties props) { + if (props == null) + throw new IllegalArgumentException("properties must be not null"); + this.p = props; + } + + public String getRequiredString(String key) { + String value = getProperty(key); + if (isBlankString(value)) { + throw new IllegalStateException( + "required property is blank by key=" + key); + } + return value; + } + + public String getNullIfBlank(String key) { + String value = getProperty(key); + if (isBlankString(value)) { + return null; + } + return value; + } + + public String getNullIfEmpty(String key) { + String value = getProperty(key); + if (value == null || "".equals(value)) { + return null; + } + return value; + } + + /** + * 尝试从System.getProperty(key)及System.getenv(key)得到值 + * + * @return + */ + public String getAndTryFromSystem(String key) { + String value = getProperty(key); + if (isBlankString(value)) { + value = getSystemProperty(key); + } + return value; + } + + private String getSystemProperty(String key) { + String value; + value = System.getProperty(key); + if (isBlankString(value)) { + value = System.getenv(key); + } + return value; + } + + public Integer getInteger(String key) { + String v = getProperty(key); + if (v == null) { + return null; + } + return Integer.parseInt(v); + } + + public int getInt(String key, int defaultValue) { + if (getProperty(key) == null) { + return defaultValue; + } + return Integer.parseInt(getRequiredString(key)); + } + + public int getRequiredInt(String key) { + return Integer.parseInt(getRequiredString(key)); + } + + public Long getLong(String key) { + if (getProperty(key) == null) { + return null; + } + return Long.parseLong(getRequiredString(key)); + } + + public long getLong(String key, long defaultValue) { + if (getProperty(key) == null) { + return defaultValue; + } + return Long.parseLong(getRequiredString(key)); + } + + public Long getRequiredLong(String key) { + return Long.parseLong(getRequiredString(key)); + } + + public Boolean getBoolean(String key) { + if (getProperty(key) == null) { + return null; + } + return Boolean.parseBoolean(getRequiredString(key)); + } + + public boolean getBoolean(String key, boolean defaultValue) { + if (getProperty(key) == null) { + return defaultValue; + } + return Boolean.parseBoolean(getRequiredString(key)); + } + + public boolean getRequiredBoolean(String key) { + return Boolean.parseBoolean(getRequiredString(key)); + } + + public Float getFloat(String key) { + if (getProperty(key) == null) { + return null; + } + return Float.parseFloat(getRequiredString(key)); + } + + public float getFloat(String key, float defaultValue) { + if (getProperty(key) == null) { + return defaultValue; + } + return Float.parseFloat(getRequiredString(key)); + } + + public Float getRequiredFloat(String key) { + return Float.parseFloat(getRequiredString(key)); + } + + public Double getDouble(String key) { + if (getProperty(key) == null) { + return null; + } + return Double.parseDouble(getRequiredString(key)); + } + + public double getDouble(String key, double defaultValue) { + if (getProperty(key) == null) { + return defaultValue; + } + return Double.parseDouble(getRequiredString(key)); + } + + public Double getRequiredDouble(String key) { + return Double.parseDouble(getRequiredString(key)); + } + + /** setProperty(String key,int value) ... start */ + + public Object setProperty(String key, int value) { + return setProperty(key, String.valueOf(value)); + } + + public Object setProperty(String key, long value) { + return setProperty(key, String.valueOf(value)); + } + + public Object setProperty(String key, float value) { + return setProperty(key, String.valueOf(value)); + } + + public Object setProperty(String key, double value) { + return setProperty(key, String.valueOf(value)); + } + + public Object setProperty(String key, boolean value) { + return setProperty(key, String.valueOf(value)); + } + + public String[] getStringArray(String key) { + String v = getProperty(key); + if (v == null) { + return new String[0]; + } else { + return tokenizeToStringArray(v, ", \t\n\r\f"); + } + } + + public int[] getIntArray(String key) { + return toIntArray(getStringArray(key)); + } + + public Properties getStartsWithProperties(String prefix) { + if (prefix == null) + throw new IllegalArgumentException("'prefix' must be not null"); + + Properties props = getProperties(); + Properties result = new Properties(); + for (Entry entry : props.entrySet()) { + String key = (String) entry.getKey(); + if (key != null && key.startsWith(prefix)) { + result.put(key.substring(prefix.length()), entry.getValue()); + } + } + return result; + } + + /** delegate method start */ + + public String getProperty(String key, String defaultValue) { + String value = getProperty(key); + if (isBlankString(value)) { + return defaultValue; + } + return value; + } + + public String getProperty(String key) { + String propVal = null; + if (systemPropertiesMode == SYSTEM_PROPERTIES_MODE_OVERRIDE) { + propVal = getSystemProperty(key); + } + if (propVal == null) { + propVal = p.getProperty(key); + } + if (propVal == null + && systemPropertiesMode == SYSTEM_PROPERTIES_MODE_FALLBACK) { + propVal = getSystemProperty(key); + } + return propVal; + } + + public Object setProperty(String key, String value) { + return p.setProperty(key, value); + } + + public void clear() { + p.clear(); + } + + public Set> entrySet() { + return p.entrySet(); + } + + public Enumeration propertyNames() { + return p.propertyNames(); + } + + public boolean contains(Object value) { + return p.contains(value); + } + + public boolean containsKey(Object key) { + return p.containsKey(key); + } + + public boolean containsValue(Object value) { + return p.containsValue(value); + } + + public Enumeration elements() { + return p.elements(); + } + + public Object get(Object key) { + return p.get(key); + } + + public boolean isEmpty() { + return p.isEmpty(); + } + + public Enumeration keys() { + return p.keys(); + } + + public Set keySet() { + return p.keySet(); + } + + public void list(PrintStream out) { + p.list(out); + } + + public void list(PrintWriter out) { + p.list(out); + } + + public void load(InputStream inStream) throws IOException { + p.load(inStream); + } + + public void loadFromXML(InputStream in) throws IOException, + InvalidPropertiesFormatException { + p.loadFromXML(in); + } + + public Object put(Object key, Object value) { + return p.put(key, value); + } + + public void putAll(Map t) { + p.putAll(t); + } + + public Object remove(Object key) { + return p.remove(key); + } + + /** @deprecated */ + public void save(OutputStream out, String comments) { + p.save(out, comments); + } + + public int size() { + return p.size(); + } + + public void store(OutputStream out, String comments) throws IOException { + p.store(out, comments); + } + + public void storeToXML(OutputStream os, String comment, String encoding) + throws IOException { + p.storeToXML(os, comment, encoding); + } + + public void storeToXML(OutputStream os, String comment) throws IOException { + p.storeToXML(os, comment); + } + + public Collection values() { + return p.values(); + } + + public String toString() { + return p.toString(); + } + + private static boolean isBlankString(String value) { + return value == null || "".equals(value.trim()); + } + + private static String[] tokenizeToStringArray(String str, String seperators) { + StringTokenizer tokenlizer = new StringTokenizer(str, seperators); + List result = new ArrayList(); + + while (tokenlizer.hasMoreElements()) { + Object s = tokenlizer.nextElement(); + result.add(s.toString()); + } + return (String[]) result.toArray(new String[result.size()]); + } + + private static int[] toIntArray(String[] array) { + int[] result = new int[array.length]; + for (int i = 0; i < array.length; i++) { + result[i] = Integer.parseInt(array[i]); + } + return result; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/support/SQLUtils.java b/food-server/src/main/java/com/jwsaas/mybatis/support/SQLUtils.java new file mode 100644 index 0000000..9012666 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/support/SQLUtils.java @@ -0,0 +1,73 @@ +package com.jwsaas.mybatis.support; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; + +import org.apache.ibatis.mapping.BoundSql; +import org.apache.ibatis.mapping.MappedStatement; +import org.apache.ibatis.scripting.defaults.DefaultParameterHandler; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class SQLUtils { + + private static Logger logger = LoggerFactory.getLogger(SQLUtils.class); + + /** + * 查询总纪录数 + * + * @param sql SQL语句 + * @param mappedStatement mapped + * @param parameterObject 参数 + * @param boundSql boundSql + * @param dialect database dialect + * @return 总记录数 + * @throws java.sql.SQLException sql查询错误 + */ + public static int getCount(final String sql, + final MappedStatement mappedStatement, final Object parameterObject, + final BoundSql boundSql, Dialect dialect) throws SQLException { + final String count_sql = dialect.getCountString(sql); + logger.debug("Total count SQL [{}] ", count_sql); + logger.debug("Total count Parameters: {} ", parameterObject); + + Connection connection = null; + PreparedStatement countStmt = null; + ResultSet rs = null; + try { + connection = mappedStatement.getConfiguration().getEnvironment().getDataSource().getConnection(); + countStmt = connection.prepareStatement(count_sql); + final BoundSql countBS = new BoundSql(mappedStatement.getConfiguration(), count_sql, + boundSql.getParameterMappings(), parameterObject); + + DefaultParameterHandler handler = new DefaultParameterHandler(mappedStatement,parameterObject,countBS); + handler.setParameters(countStmt); + + rs = countStmt.executeQuery(); + int count = 0; + if (rs.next()) { + count = rs.getInt(1); + } + logger.debug("Total count: {}", count); + return count; + } finally { + try { + if (rs != null) { + rs.close(); + } + } finally { + try { + if (countStmt != null) { + countStmt.close(); + } + } finally { + if (connection != null && !connection.isClosed()) { + connection.close(); + } + } + } + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/mybatis/support/SqlSessionCallback.java b/food-server/src/main/java/com/jwsaas/mybatis/support/SqlSessionCallback.java new file mode 100644 index 0000000..2cb9f6b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/mybatis/support/SqlSessionCallback.java @@ -0,0 +1,10 @@ +package com.jwsaas.mybatis.support; + +import java.sql.SQLException; + +import com.jwsaas.mybatis.SqlSessionTemplateFactory; + +public interface SqlSessionCallback { + + T doInSqlSession(SqlSessionTemplateFactory sqlSessionTemplateFactory) throws SQLException; +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceProductServiceImpl.java new file mode 100644 index 0000000..7162705 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceProductServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AdjustPriceProductDao; +import com.jwsaas.entity.food.AdjustPriceProduct; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.AdjustPriceProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceProductServiceImpl") +public class AdjustPriceProductServiceImpl extends BaseServiceImpl implements AdjustPriceProductService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceProductDaoImpl") + private AdjustPriceProductDao adjustPriceProductDao; + + @Override + public BaseDao getBaseDao() { + return this.adjustPriceProductDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.adjustPriceProductDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.adjustPriceProductDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceStoreServiceImpl.java new file mode 100644 index 0000000..713c866 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceStoreServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AdjustPriceStoreDao; +import com.jwsaas.entity.food.AdjustPriceStore; +import com.jwsaas.service.food.AdjustPriceStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceStoreServiceImpl") +public class AdjustPriceStoreServiceImpl extends BaseServiceImpl implements AdjustPriceStoreService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceStoreDaoImpl") + private AdjustPriceStoreDao adjustPriceStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.adjustPriceStoreDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.adjustPriceStoreDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceTicketServiceImpl.java new file mode 100644 index 0000000..8534156 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AdjustPriceTicketServiceImpl.java @@ -0,0 +1,153 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AdjustPriceProductDao; +import com.jwsaas.dao.food.AdjustPriceStoreDao; +import com.jwsaas.dao.food.AdjustPriceTicketDao; +import com.jwsaas.entity.food.AdjustPriceProduct; +import com.jwsaas.entity.food.AdjustPriceStore; +import com.jwsaas.entity.food.AdjustPriceTicket; +import com.jwsaas.entity.food.Product; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.AdjustPriceTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceTicketServiceImpl") +public class AdjustPriceTicketServiceImpl extends BaseServiceImpl implements AdjustPriceTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceTicketDaoImpl") + private AdjustPriceTicketDao adjustPriceTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceStoreDaoImpl") + private AdjustPriceStoreDao adjustPriceStoreDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AdjustPriceProductDaoImpl") + private AdjustPriceProductDao adjustPriceProductDao; + + @Override + public BaseDao getBaseDao() { + return this.adjustPriceTicketDao; + } + + @Override + public AdjustPriceTicket saveTicket(String tenantId, AdjustPriceTicket ticket, List storeList, List productList) throws Exception { + try { + ticket = this.adjustPriceTicketDao.save(tenantId, ticket, true); + if (CollectionUtils.isNotEmpty(storeList)) { + for (AdjustPriceStore store : storeList) { + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateDate(new Date()); + store.setCreateUser(ticket.getCreateUser()); + } + this.adjustPriceStoreDao.save(tenantId, storeList); + } + + List saveProducts = new ArrayList(); + if (CollectionUtils.isNotEmpty(productList)) { + for (int i = 0; i < productList.size(); i++) { + AdjustPriceProduct product = productList.get(i); + product.setTicketId(ticket.getId()); + product.setTicketNo(ticket.getNo()); + product.setCreateDate(new Date()); + product.setCreateUser(ticket.getCreateUser()); + saveProducts.add(product); + } + if (CollectionUtils.isNotEmpty(saveProducts)) { + this.adjustPriceProductDao.save(tenantId, saveProducts); + } + } + return ticket; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, AdjustPriceTicket ticket, List storeList, List productList) throws Exception { + try { + this.adjustPriceTicketDao.update(tenantId, ticket, true); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + this.adjustPriceStoreDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + this.adjustPriceProductDao.delete(tenantId, criteria, true); + + if (CollectionUtils.isNotEmpty(storeList)) { + for (AdjustPriceStore store : storeList) { + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateDate(new Date()); + store.setCreateUser(ticket.getModifyUser()); + } + this.adjustPriceStoreDao.save(tenantId, storeList); + } + + List saveProducts = new ArrayList(); + if (CollectionUtils.isNotEmpty(productList)) { + for (int i = 0; i < productList.size(); i++) { + AdjustPriceProduct product = productList.get(i); + product.setTicketId(ticket.getId()); + product.setTicketNo(ticket.getNo()); + product.setCreateDate(new Date()); + product.setCreateUser(ticket.getModifyUser()); + saveProducts.add(product); + } + if (CollectionUtils.isNotEmpty(saveProducts)) { + this.adjustPriceProductDao.save(tenantId, saveProducts); + } + } + return 1; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Criteria criteria = null; + for (String ticketId : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.adjustPriceStoreDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.adjustPriceProductDao.delete(tenantId, criteria, true); + } + return this.adjustPriceTicketDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = this.adjustPriceTicketDao.getPagerByStoreId(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AdvertCaptionServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AdvertCaptionServiceImpl.java new file mode 100644 index 0000000..9caf9aa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AdvertCaptionServiceImpl.java @@ -0,0 +1,122 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AdvertCaptionDao; +import com.jwsaas.entity.food.AdvertCaption; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.AdvertCaptionService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AdvertCaptionServiceImpl") +public class AdvertCaptionServiceImpl extends BaseServiceImpl implements AdvertCaptionService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AdvertCaptionDaoImpl") + private AdvertCaptionDao advertCaptionDao; + + @Override + public BaseDao getBaseDao() { + return this.advertCaptionDao; + } + + @Override + public Pager getPager4RelatedStore(String tenantId, String advertCaptionId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.advertCaptionDao.getPager4RelatedStore(tenantId, advertCaptionId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPager4UnRelatedStore(String tenantId, String advertCaptionId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.advertCaptionDao.getPager4UnRelatedStore(tenantId, advertCaptionId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveStoreRelated(String tenantId, String advertCaptionId, Boolean isAll, List storeIdList, String currentUser) throws Exception { + try { + Assert.notNull(advertCaptionId, "parameter 'advertCaptionId' can't be null or empty!"); + + if (isAll) { + storeIdList = new ArrayList<>(); + Criteria criteria = new Criteria(); + List storeList = this.advertCaptionDao.getAll4UnRelatedStore(tenantId, advertCaptionId, criteria, true); + for (Store store : storeList) { + storeIdList.add(store.getId()); + } + } + + this.advertCaptionDao.saveStoreRelated(tenantId, advertCaptionId, storeIdList, currentUser); + } catch (Exception e) { + throw e; + } + } + + @Override + public void deleteStoreRelated(String tenantId, String advertCaptionId, Boolean isAll, List storeIdList, String currentUser) throws Exception { + try { + Assert.notNull(advertCaptionId, "parameter 'advertCaptionId' can't be null or empty!"); + + if (isAll) { + this.advertCaptionDao.deleteStoreRelated(tenantId, advertCaptionId); + } else { + this.advertCaptionDao.deleteStoreRelated(tenantId, advertCaptionId, storeIdList); + } + + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListBystoreId(String tenantId, String storeId) throws Exception { + try { + return this.advertCaptionDao.getListBystoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteRelationByStoreId(String tenantId, String storeId, List captionIds) throws Exception { + Integer i = 0; + try{ + for(String captionId: captionIds){ + List list = new ArrayList<>(); + list.add(storeId); + this.advertCaptionDao.deleteStoreRelated(tenantId, captionId, list); + i++; + } + }catch (Exception e){ + throw e; + } + return i; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AdvertPictureServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AdvertPictureServiceImpl.java new file mode 100644 index 0000000..f983524 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AdvertPictureServiceImpl.java @@ -0,0 +1,153 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AdvertPictureDao; +import com.jwsaas.entity.food.AdvertPicture; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.AdvertPictureService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AdvertPictureServiceImpl") +public class AdvertPictureServiceImpl extends BaseServiceImpl implements AdvertPictureService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AdvertPictureDaoImpl") + private AdvertPictureDao advertPictureDao; + + @Override + public BaseDao getBaseDao() { + return this.advertPictureDao; + } + + @Override + public Pager getPager4RelatedStore(String tenantId, String pictureId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.advertPictureDao.getPager4RelatedStore(tenantId, pictureId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPager4UnRelatedStore(String tenantId, String pictureId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.advertPictureDao.getPager4UnRelatedStore(tenantId, pictureId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveStoreRelated(String tenantId, String pictureId, Boolean isAll, List storeIdList, String currentUser) throws Exception { + try { + Assert.notNull(pictureId, "parameter 'pictureId' can't be null or empty!"); + + if (isAll) { + storeIdList = new ArrayList<>(); + Criteria criteria = new Criteria(); + List storeList = this.advertPictureDao.getAll4UnRelatedStore(tenantId, pictureId, criteria, true); + for (Store store : storeList) { + storeIdList.add(store.getId()); + } + } + + // 先删除 + this.advertPictureDao.deleteStoreRelated(tenantId, pictureId, storeIdList); + + // 再关联 + this.advertPictureDao.saveStoreRelated(tenantId, pictureId, storeIdList, currentUser); + } catch (Exception e) { + throw e; + } + } + + @Override + public void deleteStoreRelated(String tenantId, String pictureId, Boolean isAll, List storeIdList, String currentUser) throws Exception { + try { + Assert.notNull(pictureId, "parameter 'pictureId' can't be null or empty!"); + + if (isAll) { + this.advertPictureDao.deleteStoreRelated(tenantId, pictureId); + } else { + this.advertPictureDao.deleteStoreRelated(tenantId, pictureId, storeIdList); + } + + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListBystoreId(String tenantId, String storeId) throws Exception { + try { + return this.advertPictureDao.getListBystoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveStoreRelatedExtend(String tenantId, Boolean onRelation, List storeIdList, List idList, String currentUser) throws Exception { + try { + Assert.notNull(onRelation, "parameter 'onRelation' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + Assert.notEmpty(idList, "parameter 'idList' can't be null or empty!"); + Assert.notNull(currentUser, "parameter 'currentUser' can't be null or empty!"); + + // 先删除 + for (String pictureId : idList) { + for (String storeId : storeIdList) { + this.advertPictureDao.deleteStoreRelated(tenantId, pictureId, storeId, true); + } + } + + // 如果是关联,进行保存 + if (onRelation) { + for (String pictureId : idList) { + for (String storeId : storeIdList) { + this.advertPictureDao.saveStoreRelated(tenantId, pictureId, storeId, true); + } + } + } + + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteRelationByStoreId(String tenantId, String storeId, List pictureIds) throws Exception { + Integer i = 0; + try{ + for (String pictureId : pictureIds) { + this.advertPictureDao.deleteStoreRelated(tenantId, pictureId, storeId); + i++; + } + }catch (Exception e){ + throw e; + } + return i; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AgentServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AgentServiceImpl.java new file mode 100644 index 0000000..f083ab4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AgentServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AgentDao; +import com.jwsaas.entity.food.Agent; +import com.jwsaas.service.food.AgentService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AgentServiceImpl") +public class AgentServiceImpl extends BaseServiceImpl implements AgentService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AgentDaoImpl") + private AgentDao agentDao; + + @Override + public BaseDao getBaseDao() { + return this.agentDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AgentStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AgentStoreServiceImpl.java new file mode 100644 index 0000000..852955d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AgentStoreServiceImpl.java @@ -0,0 +1,79 @@ +package com.jwsaas.service.food.impl; + + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AgentStoreDao; +import com.jwsaas.entity.food.AgentStore; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.AgentStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"AgentStoreServiceImpl") +public class AgentStoreServiceImpl extends BaseServiceImpl implements AgentStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"AgentStoreDaoImpl") + private AgentStoreDao agentStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.agentStoreDao; + } + + @Override + public List getValueIdsByAgentId(String tenantId, Integer valueType, String agentId) throws Exception { + try { + return agentStoreDao.getValueIdsByAgentId(tenantId,valueType,agentId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = agentStoreDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return agentStoreDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getStoreIdsByAreaValueId(String tenantId, String agentId) throws Exception { + try { + return agentStoreDao.getStoreIdsByAreaValueId(tenantId, agentId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getAllStoreIdsByAgentId(String tenantId, String agentId) throws Exception { + try { + return agentStoreDao.getAllStoreIdsByAgentId(tenantId, agentId); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsDetailServiceImpl.java new file mode 100644 index 0000000..163f10f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsDetailServiceImpl.java @@ -0,0 +1,91 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AskGoodsDetailDao; +import com.jwsaas.entity.food.AskGoodsDetail; +import com.jwsaas.service.food.AskGoodsDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"AskGoodsDetailServiceImpl") +public class AskGoodsDetailServiceImpl extends BaseServiceImpl implements AskGoodsDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"AskGoodsDetailDaoImpl") + private AskGoodsDetailDao askGoodsDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.askGoodsDetailDao; + } + + @Override + public Pager getPagerWithDispatch(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = askGoodsDetailDao.getPagerWithDispatch(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByAskGoodsSummary(String tenantId, Criteria criteria) throws Exception { + try { + return askGoodsDetailDao.getListByAskGoodsSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByAskGoodsSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = askGoodsDetailDao.getPagerByAskGoodsSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.askGoodsDetailDao.getPagerWithTypeIdByAskGoodsSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria) throws Exception { + try { + return this.askGoodsDetailDao.getListWithTypeIdByAskGoodsSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateDetailServiceImpl.java new file mode 100644 index 0000000..9abf45d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AskGoodsTemplateDetailDao; +import com.jwsaas.entity.food.AskGoodsTemplateDetail; +import com.jwsaas.service.food.AskGoodsTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTemplateDetailServiceImpl") +public class AskGoodsTemplateDetailServiceImpl extends BaseServiceImpl implements AskGoodsTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTemplateDetailDaoImpl") + private AskGoodsTemplateDetailDao askGoodsTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.askGoodsTemplateDetailDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateServiceImpl.java new file mode 100644 index 0000000..ef6ab6f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateServiceImpl.java @@ -0,0 +1,279 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.AskGoodsTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTemplateServiceImpl") +public class AskGoodsTemplateServiceImpl extends BaseServiceImpl implements AskGoodsTemplateService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTemplateDaoImpl") + private AskGoodsTemplateDao askGoodsTemplateDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTemplateDetailDaoImpl") + private AskGoodsTemplateDetailDao askGoodsTemplateDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTemplateStoreDaoImpl") + private AskGoodsTemplateStoreDao askGoodsTemplateStoreDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + + @Override + public BaseDao getBaseDao() { + return this.askGoodsTemplateDao; + } + + @Override + public Integer saveTemplateDetailAndStores(String tenantId, AskGoodsTemplate askGoodsTemplate, List storeList, List specIds, List descriptions) throws Exception { + Integer i = 0; + try { + AskGoodsTemplate template = askGoodsTemplateDao.save(tenantId, askGoodsTemplate, true); + List askGoodsTemplateStoreList = new ArrayList<>(); + List askGoodsTemplateDetailList = new ArrayList<>(); + if (storeList != null && storeList.size() > 0) { + for (String storeId : storeList) { + AskGoodsTemplateStore store = new AskGoodsTemplateStore(); + store.setTenantId(tenantId); + store.setStoreId(storeId); + store.setTicketId(template.getId()); + askGoodsTemplateStoreList.add(store); + } + } + if (specIds != null && specIds.size() > 0) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ps.id", specIds)); + criteria.add(Restrictions.eq("p.stopFlag", 0)); + criteria.add(Restrictions.eq("p.deleteFlag", 0)); + List productSpecs = productSpecDao.getListWithProduct(tenantId, criteria, true); + Map spp = getProductRatioMap(tenantId); + Map ssp = getProductUnitMap(tenantId); + if (productSpecs != null && productSpecs.size() > 0) { + int x = 0; + for (ProductSpec ps : productSpecs) { + AskGoodsTemplateDetail detail = new AskGoodsTemplateDetail(); + detail.setTenantId(tenantId); + detail.setTicketId(template.getId()); + detail.setSpecId(ps.getId()); + detail.setSpecName(ps.getName()); + detail.setProductId(ps.getProductId()); + detail.setProductName(ps.getProductName()); + detail.setProductNo(ps.getProductNo()); + detail.setProductDescription(ps.getProductDescription()); + detail.setDispatchUnitId(spp.get(ps.getProductId()) == null ? "" : spp.get(ps.getProductId()).getDispatchUnitId()); + detail.setDispatchUnitName(ssp.get(detail.getDispatchUnitId()) == null ? "" : ssp.get(detail.getDispatchUnitId())); + if (StringUtils.isNotBlank(descriptions.get(x))) { + detail.setDescription(descriptions.get(x)); + } + detail.setCreateUser(template.getCreateUser()); + askGoodsTemplateDetailList.add(detail); + x++; + } + } + + } + if (askGoodsTemplateStoreList.size() > 0) { + askGoodsTemplateStoreDao.save(tenantId, askGoodsTemplateStoreList); + } + if (askGoodsTemplateDetailList.size() > 0) { + askGoodsTemplateDetailDao.save(tenantId, askGoodsTemplateDetailList); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer updateTemplateDetailAndStores(String tenantId, AskGoodsTemplate askGoodsTemplate, List storeList, List specIds, List descriptions) throws Exception { + Integer i = 0; + try { + i = askGoodsTemplateDao.update(tenantId, askGoodsTemplate, true); + // 删除明细; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("ticketId", askGoodsTemplate.getId())); + askGoodsTemplateStoreDao.delete(tenantId, criteria, true); + askGoodsTemplateDetailDao.delete(tenantId, criteria, true); + // 修改明细; + List askGoodsTemplateStoreList = new ArrayList<>(); + List askGoodsTemplateDetailList = new ArrayList<>(); + if (storeList != null && storeList.size() > 0) { + for (String storeId : storeList) { + AskGoodsTemplateStore store = new AskGoodsTemplateStore(); + store.setTenantId(tenantId); + store.setStoreId(storeId); + store.setTicketId(askGoodsTemplate.getId()); + askGoodsTemplateStoreList.add(store); + } + } + if (specIds != null && specIds.size() > 0) { + Criteria crit = new Criteria(); + crit.add(Restrictions.in("ps.id", specIds)); + crit.add(Restrictions.eq("ps.tenantId", tenantId)); + crit.add(Restrictions.eq("p.stopFlag", 0)); + crit.add(Restrictions.eq("p.deleteFlag", 0)); + List productSpecs = productSpecDao.getListWithProduct(tenantId, crit, true); + Map spp = getProductRatioMap(tenantId); + Map ssp = getProductUnitMap(tenantId); + if (productSpecs != null && productSpecs.size() > 0) { + int x = 0; + for (ProductSpec ps : productSpecs) { + AskGoodsTemplateDetail detail = new AskGoodsTemplateDetail(); + detail.setTenantId(tenantId); + detail.setTicketId(askGoodsTemplate.getId()); + detail.setSpecId(ps.getId()); + detail.setSpecName(ps.getName()); + detail.setProductId(ps.getProductId()); + detail.setProductName(ps.getProductName()); + detail.setProductNo(ps.getProductNo()); + detail.setProductDescription(ps.getProductDescription()); + detail.setDispatchUnitId(spp.get(ps.getProductId()) == null ? "" : spp.get(ps.getProductId()).getDispatchUnitId()); + detail.setDispatchUnitName(ssp.get(detail.getDispatchUnitId()) == null ? "" : ssp.get(detail.getDispatchUnitId())); + detail.setDescription(descriptions.get(x) == null ? "" : descriptions.get(x)); + detail.setCreateUser(askGoodsTemplate.getModifyUser()); + detail.setModifyUser(askGoodsTemplate.getModifyUser()); + askGoodsTemplateDetailList.add(detail); + x++; + } + } + + } + if (askGoodsTemplateStoreList.size() > 0) { + askGoodsTemplateStoreDao.save(tenantId, askGoodsTemplateStoreList); + } + if (askGoodsTemplateDetailList.size() > 0) { + askGoodsTemplateDetailDao.save(tenantId, askGoodsTemplateDetailList); + } + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer deleteStoreAndDetailsById(String tenantId, String id) throws Exception { + Integer i = 0; + try { + // 删除明细; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", id)); + askGoodsTemplateStoreDao.delete(tenantId, criteria, false); + askGoodsTemplateDetailDao.delete(tenantId, criteria, false); + i = askGoodsTemplateDao.delete(tenantId, id); + } catch (Exception e) { + throw e; + } + return i; + } + + private Map getProductRatioMap(String tenantId) throws Exception { + Map map = new HashMap<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("tenantId", tenantId)); + // criteria.add(Restrictions.in("productId",productIds)); + List productRatioList = productRatioDao.getList(tenantId, criteria, true); + if (productRatioList != null && productRatioList.size() > 0) { + for (ProductRatio ratio : productRatioList) { + map.put(ratio.getProductId(), ratio); + } + } + return map; + } + + private Map getProductUnitMap(String tenantId) throws Exception { + Map map = new HashMap<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("deleteFlag", 0)); + List productUnitList = productUnitDao.getList(tenantId, criteria, true); + if (productUnitList != null && productUnitList.size() > 0) { + for (ProductUnit unit : productUnitList) { + map.put(unit.getId(), unit.getName()); + } + } + return map; + } + + @Override + public Pager getPagerByStoreId(String tenantId, Criteria criteria, Pager pager, String storeId) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.askGoodsTemplateDao.getPagerByStoreId(tenantId, criteria, pageBounds, storeId); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public String saveAskGoodsTemplate(String tenantId, AskGoodsTemplate template, List detail) throws Exception { + AskGoodsTemplate askGoodsTemplate = askGoodsTemplateDao.save(tenantId, template, true); + if (CollectionUtils.isNotEmpty(detail)) { + for (AskGoodsTemplateDetail askGoodsTemplateDetail : detail) { + askGoodsTemplateDetail.setTicketId(askGoodsTemplate.getId()); + askGoodsTemplateDetailDao.save(tenantId, askGoodsTemplateDetail, true); + } + } + List askGoodsTemplateStoreList = new ArrayList<>(); + AskGoodsTemplateStore store = new AskGoodsTemplateStore(); + store.setTenantId(tenantId); + store.setStoreId(template.getStoreId()); + store.setTicketId(template.getId()); + askGoodsTemplateStoreList.add(store); + if (askGoodsTemplateStoreList.size() > 0) { + askGoodsTemplateStoreDao.save(tenantId, askGoodsTemplateStoreList); + } + return askGoodsTemplate.getId(); + } + + @Override + public String updateAskGoodsTemplate(String tenantId, AskGoodsTemplate template, List detail) throws Exception { + askGoodsTemplateDao.update(tenantId, template, true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", template.getId())); + askGoodsTemplateDetailDao.delete(tenantId, criteria, true); + askGoodsTemplateStoreDao.delete(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(detail)) { + for (AskGoodsTemplateDetail askGoodsTemplateDetail : detail) { + askGoodsTemplateDetail.setTicketId(template.getId()); + askGoodsTemplateDetailDao.save(tenantId, askGoodsTemplateDetail, true); + } + } + List askGoodsTemplateStoreList = new ArrayList<>(); + AskGoodsTemplateStore store = new AskGoodsTemplateStore(); + store.setTenantId(tenantId); + store.setStoreId(template.getStoreId()); + store.setTicketId(template.getId()); + askGoodsTemplateStoreList.add(store); + if (askGoodsTemplateStoreList.size() > 0) { + askGoodsTemplateStoreDao.save(tenantId, askGoodsTemplateStoreList); + } + return template.getId(); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateStoreServiceImpl.java new file mode 100644 index 0000000..c6a96fd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTemplateStoreServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AskGoodsTemplateStoreDao; +import com.jwsaas.entity.food.AskGoodsTemplateStore; +import com.jwsaas.service.food.AskGoodsTemplateStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTemplateStoreServiceImpl") +public class AskGoodsTemplateStoreServiceImpl extends BaseServiceImpl implements AskGoodsTemplateStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTemplateStoreDaoImpl") + private AskGoodsTemplateStoreDao askGoodsTemplateStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.askGoodsTemplateStoreDao; + } + + @Override + public List getStoreInfoList(String tenantId, Criteria criteria,boolean isBatch) { + return askGoodsTemplateStoreDao.getStoreInfoList(tenantId,criteria,isBatch); + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketLogServiceImpl.java new file mode 100644 index 0000000..0c33f40 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketLogServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AskGoodsTicketLogDao; +import com.jwsaas.entity.food.AskGoodsTicketLog; +import com.jwsaas.service.food.AskGoodsTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTicketLogServiceImpl") +public class AskGoodsTicketLogServiceImpl extends BaseServiceImpl implements AskGoodsTicketLogService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTicketLogDaoImpl") + private AskGoodsTicketLogDao askGoodsTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.askGoodsTicketLogDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketPayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketPayServiceImpl.java new file mode 100644 index 0000000..d21beea --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketPayServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AskGoodsTicketPayDao; +import com.jwsaas.entity.food.AskGoodsTicketPay; +import com.jwsaas.service.food.AskGoodsTicketPayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTicketPayServiceImpl") +public class AskGoodsTicketPayServiceImpl extends BaseServiceImpl implements AskGoodsTicketPayService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"AskGoodsTicketPayDaoImpl") + private AskGoodsTicketPayDao askGoodsTicketPayDao; + + @Override + public BaseDao getBaseDao() { + return this.askGoodsTicketPayDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketServiceImpl.java new file mode 100644 index 0000000..0cabe13 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/AskGoodsTicketServiceImpl.java @@ -0,0 +1,103 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AskGoodsDetailDao; +import com.jwsaas.dao.food.AskGoodsTicketDao; +import com.jwsaas.dao.food.AskGoodsTicketLogDao; +import com.jwsaas.entity.food.AskGoodsDetail; +import com.jwsaas.entity.food.AskGoodsTicket; +import com.jwsaas.entity.food.AskGoodsTicketLog; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.AskGoodsTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketServiceImpl") +public class AskGoodsTicketServiceImpl extends BaseServiceImpl implements AskGoodsTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketDaoImpl") + private AskGoodsTicketDao askGoodsTicketDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsDetailDaoImpl") + private AskGoodsDetailDao askGoodsDetailDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketLogDaoImpl") + private AskGoodsTicketLogDao askGoodsTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.askGoodsTicketDao; + } + + @Override + public String saveAskGoodsTicket(String tenantId, AskGoodsTicket ticket, List detail, AskGoodsTicketLog log) throws Exception { + AskGoodsTicket askGoodsTicket = askGoodsTicketDao.save(tenantId, ticket, true); + if (CollectionUtils.isNotEmpty(detail)) { + for (AskGoodsDetail askGoodsDetail : detail) { + askGoodsDetail.setTicketId(askGoodsTicket.getId()); + askGoodsDetail.setTicketNo(askGoodsTicket.getNo()); + askGoodsDetailDao.save(tenantId, askGoodsDetail, true); + } + } + log.setTicketId(askGoodsTicket.getId()); + log.setTicketNo(askGoodsTicket.getNo()); + askGoodsTicketLogDao.save(tenantId, log, true); + return askGoodsTicket.getId(); + } + + @Override + public String updateAskGoodsTicket(String tenantId, AskGoodsTicket ticket, List detail, AskGoodsTicketLog log) throws Exception { + askGoodsTicketDao.update(tenantId, ticket, true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + askGoodsDetailDao.delete(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(detail)) { + for (AskGoodsDetail askGoodsDetail : detail) { + askGoodsDetail.setTicketId(ticket.getId()); + askGoodsDetail.setTicketNo(ticket.getNo()); + askGoodsDetailDao.save(tenantId, askGoodsDetail, true); + } + } + log.setTicketId(ticket.getId()); + log.setTicketNo(ticket.getNo()); + askGoodsTicketLogDao.save(tenantId, log, true); + return ticket.getId(); + } + + @Override + public String updateAskGoodsTicketStatus(String tenantId, AskGoodsTicket ticket, AskGoodsTicketLog log) throws Exception { + askGoodsTicketDao.update(tenantId, ticket, true); + log.setTicketId(ticket.getId()); + log.setTicketNo(ticket.getNo()); + askGoodsTicketLogDao.save(tenantId, log, true); + return ticket.getId(); + } + + @Override + public List getTicketIdsList(String tenantId, Criteria criteria) throws Exception { + return this.askGoodsTicketDao.getTicketIdsList(tenantId, criteria); + } + + @Override + public Pager getPagerWithDispatch(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = askGoodsTicketDao.getPagerWithDispatch(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduFoodServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduFoodServiceImpl.java new file mode 100644 index 0000000..4260e7c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduFoodServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.BaiduFoodDao; +import com.jwsaas.entity.food.BaiduFood; +import com.jwsaas.service.food.BaiduFoodService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"BaiduFoodServiceImpl") +public class BaiduFoodServiceImpl extends BaseServiceImpl implements BaiduFoodService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"BaiduFoodDaoImpl") + private BaiduFoodDao baiduFoodDao; + + @Override + public BaseDao getBaseDao() { + return this.baiduFoodDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduOrderProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduOrderProductServiceImpl.java new file mode 100644 index 0000000..1faa036 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduOrderProductServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.BaiduOrderProductDao; +import com.jwsaas.entity.food.BaiduOrderProduct; +import com.jwsaas.service.food.BaiduOrderProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"BaiduOrderProductServiceImpl") +public class BaiduOrderProductServiceImpl extends BaseServiceImpl implements BaiduOrderProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"BaiduOrderProductDaoImpl") + private BaiduOrderProductDao baiduOrderProductDao; + + @Override + public BaseDao getBaseDao() { + return this.baiduOrderProductDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduOrderServiceImpl.java new file mode 100644 index 0000000..828249d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/BaiduOrderServiceImpl.java @@ -0,0 +1,63 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.BaiduOrderDao; +import com.jwsaas.dao.food.BaiduOrderProductDao; +import com.jwsaas.entity.food.BaiduOrder; +import com.jwsaas.entity.food.BaiduOrderProduct; +import com.jwsaas.service.food.BaiduOrderService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "BaiduOrderServiceImpl") +public class BaiduOrderServiceImpl extends BaseServiceImpl implements BaiduOrderService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "BaiduOrderDaoImpl") + private BaiduOrderDao baiduOrderDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "BaiduOrderProductDaoImpl") + private BaiduOrderProductDao baiduOrderProductDao; + + @Resource + private com.jwsaas.cache.CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.baiduOrderDao; + } + + @Override + public String saveOrder(String tenantId, BaiduOrder order, List product) throws Exception { + try { + Object orderId = cacheService.get(tenantId, "orderId:" + order.getShopId() + order.getOrderId()); + String ticketId = null; + if (orderId == null) { + // 未上传过 + cacheService.set(tenantId, "orderId:" + order.getShopId() + order.getOrderId(), order.getOrderId(), 300); + BaiduOrder bus = baiduOrderDao.save(tenantId, order, true); + ticketId = bus.getId(); + if (CollectionUtils.isNotEmpty(product)) { + baiduOrderProductDao.save(tenantId, product); + } + return ticketId; + } else { + return "ALREADY"; + } + } catch (Exception e) { + try { + cacheService.del(tenantId, "orderId:" + order.getShopId() + order.getOrderId()); + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/BrandServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/BrandServiceImpl.java new file mode 100644 index 0000000..9b5170d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/BrandServiceImpl.java @@ -0,0 +1,44 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.BrandDao; +import com.jwsaas.entity.food.Brand; +import com.jwsaas.service.food.BrandService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "BrandServiceImpl") +public class BrandServiceImpl extends BaseServiceImpl implements BrandService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "BrandDaoImpl") + private BrandDao brandDao; + + @Override + public BaseDao getBaseDao() { + return this.brandDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.brandDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListBystoreId(String tenantId, String storeId) throws Exception { + try { + return this.brandDao.getListBystoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/BusinessPlanDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/BusinessPlanDetailServiceImpl.java new file mode 100644 index 0000000..2a62462 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/BusinessPlanDetailServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.BusinessPlanDetailDao; +import com.jwsaas.entity.food.BusinessPlanDetail; +import com.jwsaas.service.food.BusinessPlanDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanDetailServiceImpl") +public class BusinessPlanDetailServiceImpl extends BaseServiceImpl + implements BusinessPlanDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanDetailDaoImpl") + private BusinessPlanDetailDao businessPlanDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.businessPlanDetailDao; + } + + @Override + public List getBusinessPlanDetailByStoreId(String tenantId, String storeId) throws Exception { + try { + return this.businessPlanDetailDao.getBusinessPlanDetailByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/BusinessPlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/BusinessPlanServiceImpl.java new file mode 100644 index 0000000..1aa4462 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/BusinessPlanServiceImpl.java @@ -0,0 +1,116 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.BusinessPlanDao; +import com.jwsaas.dao.food.BusinessPlanDetailDao; +import com.jwsaas.entity.food.BusinessPlan; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.BusinessPlanService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanServiceImpl") +public class BusinessPlanServiceImpl extends BaseServiceImpl implements BusinessPlanService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanDaoImpl") + private BusinessPlanDao businessPlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanDetailDaoImpl") + private BusinessPlanDetailDao businessPlanDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.businessPlanDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.businessPlanDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getBusinessPlanByStoreId(String tenantId, String storeId) throws Exception { + try { + return this.businessPlanDao.getBusinessPlanByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerForStore(String tenantId, String planId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.businessPlanDao.getPagerForStore(tenantId, planId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerForStoreNoPlan(String tenantId, String storeAreaId, String storeTypeId, String brandId, String property, String keyword, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.businessPlanDao.getPagerForStoreNoPlan(tenantId, storeAreaId, storeTypeId, brandId, property, keyword, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveStoreRelation(String tenantId, String planId, List storeIdList) throws Exception { + try { + // 先删除 + this.businessPlanDao.deleteStoreRelationByStoreId(tenantId, storeIdList); + // 再保存 + return this.businessPlanDao.saveStoreRelation(tenantId, planId, storeIdList); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteStoreRelation(String tenantId, String planId, List storeIdList) throws Exception { + try { + return this.businessPlanDao.deleteStoreRelation(tenantId, planId, storeIdList); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + for (String planId : ids) { + this.businessPlanDetailDao.delete(tenantId, "planId", planId, true); + this.businessPlanDao.deleteStoreRelationByPlanId(tenantId, planId, true); + } + return this.businessPlanDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CandaoStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CandaoStoreServiceImpl.java new file mode 100644 index 0000000..08114c9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CandaoStoreServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CandaoStoreDao; +import com.jwsaas.entity.food.CandaoStore; +import com.jwsaas.service.food.CandaoStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CandaoStoreServiceImpl") +public class CandaoStoreServiceImpl extends BaseServiceImpl implements CandaoStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CandaoStoreDaoImpl") + private CandaoStoreDao candaoStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.candaoStoreDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CategoryServiceImpl.java new file mode 100644 index 0000000..559017a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CategoryServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CategoryDao; +import com.jwsaas.entity.food.Category; +import com.jwsaas.service.food.CategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CategoryServiceImpl") +public class CategoryServiceImpl extends BaseServiceImpl implements CategoryService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CategoryDaoImpl") + private CategoryDao categoryDao; + + @Override + public BaseDao getBaseDao() { + return this.categoryDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTemplateDetailServiceImpl.java new file mode 100644 index 0000000..6e42db3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTemplateDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CheckTemplateDetailDao; +import com.jwsaas.entity.food.CheckTemplateDetail; +import com.jwsaas.service.food.CheckTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CheckTemplateDetailServiceImpl") +public class CheckTemplateDetailServiceImpl extends BaseServiceImpl implements CheckTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTemplateDetailDaoImpl") + private CheckTemplateDetailDao checkTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.checkTemplateDetailDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTemplateServiceImpl.java new file mode 100644 index 0000000..3357f97 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTemplateServiceImpl.java @@ -0,0 +1,88 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.CheckTemplateDetailDao; +import com.jwsaas.entity.food.CheckTemplateDetail; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CheckTemplateDao; +import com.jwsaas.entity.food.CheckTemplate; +import com.jwsaas.service.food.CheckTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CheckTemplateServiceImpl") +public class CheckTemplateServiceImpl extends BaseServiceImpl implements CheckTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTemplateDaoImpl") + private CheckTemplateDao checkTemplateDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTemplateDetailDaoImpl") + private CheckTemplateDetailDao checkTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.checkTemplateDao; + } + + @Override + public Integer saveTemplateAndDetail(String tenantId, CheckTemplate template, List details) throws Exception { + Integer i = 0; + try{ + CheckTemplate checkTemplate = checkTemplateDao.save(tenantId,template,true); + if(CollectionUtils.isNotEmpty(details)){ + for(CheckTemplateDetail detail : details){ + detail.setTicketId(checkTemplate.getId()); + } + checkTemplateDetailDao.save(tenantId,details); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTemplateAndDetail(String tenantId, CheckTemplate template, List details) throws Exception { + Integer i = 0; + try{ + checkTemplateDao.update(tenantId,template,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",template.getId())); + checkTemplateDetailDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(details)){ + for(CheckTemplateDetail detail : details){ + detail.setTicketId(template.getId()); + } + checkTemplateDetailDao.save(tenantId,details); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteTemplateAndDetail(String tenantId, List ids) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ticketId",ids)); + checkTemplateDetailDao.delete(tenantId,criteria,true); + checkTemplateDao.delete(tenantId,ids); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketDetailServiceImpl.java new file mode 100644 index 0000000..8767d91 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketDetailServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CheckTicketDetailDao; +import com.jwsaas.entity.food.CheckTicketDetail; +import com.jwsaas.service.food.CheckTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CheckTicketDetailServiceImpl") +public class CheckTicketDetailServiceImpl extends BaseServiceImpl implements CheckTicketDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTicketDetailDaoImpl") + private CheckTicketDetailDao checkTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.checkTicketDetailDao; + } + + @Override + public Pager getExtendsPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = checkTicketDetailDao.getExtendsPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria) throws Exception { + try { + return checkTicketDetailDao.getExtendsList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketLogServiceImpl.java new file mode 100644 index 0000000..db451a9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketLogServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CheckTicketLogDao; +import com.jwsaas.entity.food.CheckTicketLog; +import com.jwsaas.service.food.CheckTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CheckTicketLogServiceImpl") +public class CheckTicketLogServiceImpl extends BaseServiceImpl implements CheckTicketLogService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTicketLogDaoImpl") + private CheckTicketLogDao checkTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.checkTicketLogDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketServiceImpl.java new file mode 100644 index 0000000..9551232 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CheckTicketServiceImpl.java @@ -0,0 +1,503 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.utils.MathUtil; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.CheckTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.math.BigDecimal; +import java.util.*; +import java.util.concurrent.ExecutionException; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CheckTicketServiceImpl") +public class CheckTicketServiceImpl extends BaseServiceImpl implements CheckTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTicketDaoImpl") + private CheckTicketDao checkTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTicketDetailDaoImpl") + private CheckTicketDetailDao checkTicketDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CheckTicketLogDaoImpl") + private CheckTicketLogDao checkTicketLogDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductStockDaoImpl") + private ProductStockDao productStockDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductStockLogDaoImpl") + private ProductStockLogDao productStockLogDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductBatchStockChangeDaoImpl") + private ProductBatchStockChangeDao productBatchStockChangeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductBatchNegativeStockDaoImpl") + private ProductBatchNegativeStockDao productBatchNegativeStockDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SupplierDaoImpl") + private SupplierDao supplierDao; + + @Override + public BaseDao getBaseDao() { + return this.checkTicketDao; + } + + @Override + public Integer saveTicketAndDetails(String tenantId, CheckTicket ticket, List details) throws Exception { + Integer i = 0; + try{ + CheckTicket checkTicket = checkTicketDao.save(tenantId,ticket,true); + if(CollectionUtils.isNotEmpty(details)){ + for(CheckTicketDetail detail:details){ + detail.setTicketId(checkTicket.getId()); + } + checkTicketDetailDao.save(tenantId,details); + } + CheckTicketLog log = new CheckTicketLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(checkTicket.getCreateUser()); + log.setTicketId(checkTicket.getId()); + log.setTicketNo(checkTicket.getNo()); + log.setType(0); + log.setStatus(0); + log.setDescription("新建盘点单"); + checkTicketLogDao.save(tenantId,log,true); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateDetailsAndTicketIds(String tenantId, List ticketIds, List details,String userName) throws Exception { + Integer i = 0; + try{ + List tickets = checkTicketDao.findListByIds(tenantId,ticketIds,true); + List logs = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(tickets)){ + for(CheckTicket ticket : tickets){ + ticket.setModifyUser(userName); + ticket.setModifyDate(new Date()); + + CheckTicketLog log = new CheckTicketLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setTicketId(ticket.getId()); + log.setTicketNo(ticket.getNo()); + log.setType(1); + log.setStatus(0); + log.setDescription("修改盘点单明细"); + logs.add(log); + } + checkTicketDao.update(tenantId,tickets); + checkTicketLogDao.save(tenantId,logs); + } + if(CollectionUtils.isNotEmpty(details)){ + checkTicketDetailDao.update(tenantId,details); + } + i =1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateInvalid(String tenantId, String storageId,String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticket.status",0)); + if(StringUtils.isNotBlank(storageId)){ + criteria.add(Restrictions.eq("detail.storageId",storageId)); + } + criteria.add(Restrictions.group("detail.ticketId")); + List details = checkTicketDetailDao.getExtendsList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(details)){ + List ticketIds = new ArrayList<>(); + for(CheckTicketDetail detail : details){ + if(!ticketIds.contains(detail.getTicketId())){ + ticketIds.add(detail.getTicketId()); + } + } + + List tickets = checkTicketDao.findListByIds(tenantId,ticketIds,true); + List logs = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(tickets)){ + for(CheckTicket ticket : tickets){ + ticket.setModifyDate(new Date()); + ticket.setModifyUser(userName); + ticket.setCheckMan(userName); + ticket.setCheckDate(new Date()); + ticket.setStatus(2); + + CheckTicketLog log = new CheckTicketLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setTicketId(ticket.getId()); + log.setTicketNo(ticket.getNo()); + log.setType(3); + log.setStatus(3); + log.setDescription("作废盘点单"); + logs.add(log); + } + } + + if(CollectionUtils.isNotEmpty(tickets)){ + checkTicketDao.update(tenantId,tickets); + } + + if(CollectionUtils.isNotEmpty(logs)){ + checkTicketLogDao.save(tenantId,logs); + } + + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateAuditEasy(String tenantId, String storageId, String userName) throws Exception { + Integer i = 0; + try{ + + //查找未审核的单据明细; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticket.status",0)); + if(StringUtils.isNotBlank(storageId)){ + criteria.add(Restrictions.eq("detail.storageId",storageId)); + } + + List details = checkTicketDetailDao.getExtendsList(tenantId,criteria,true); + //调整库存,修改单据状态; + List stockUpdateList = new ArrayList<>(); + List stockSaveList = new ArrayList<>(); + List stockLogs = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(details)){ + Criteria crit = new Criteria(); + if(StringUtils.isNotBlank(storageId)){ + crit.add(Restrictions.eq("storageId",storageId)); + } + //库存; + List stocks = productStockDao.getList(tenantId,crit,true); + Map stockMap = new HashMap<>(); + if(CollectionUtils.isNotEmpty(stocks)){ + for(ProductStock ps : stocks){ + stockMap.put(ps.getStorageId()+"-"+ps.getSpecId(),ps); + } + } + + List ticketIds = new ArrayList<>(); + for(CheckTicketDetail detail : details){ + if(!ticketIds.contains(detail.getTicketId())){ + ticketIds.add(detail.getTicketId()); + } + + if(detail.getDifferenceAmount() == 0.00){ + continue; + } + + String key = detail.getStorageId() +"-"+detail.getSpecId(); + if(stockMap.containsKey(key)){ + ProductStock stock = stockMap.get(key); + //存库流水; + ProductStockLog log = new ProductStockLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setStorageId(detail.getStorageId()); + log.setStorageName(detail.getStorageName()); + log.setProductId(detail.getProductId()); + log.setProductNo(detail.getProductNo()); + log.setProductName(detail.getProductName()); + log.setSpecId(detail.getSpecId()); + log.setSpecName(detail.getSpecName()); + log.setOperationType(detail.getDifferenceAmount() < 0 ? 2:1); + log.setOrderNo(detail.getTicketNo()); + log.setOrderType(4);//盘点; + log.setOrderTypeName("盘点单"); + log.setDispatchUnitId(detail.getStockUnitId()); + log.setDispatchUnitName(detail.getStockUnitName()); + log.setPurchaseUnitId(stock.getPurchaseUnitId()); + log.setPurchaseUnitName(stock.getPurchaseUnitName()); + log.setPreAmount(stock.getStockAmount()); + log.setAmount(detail.getCheckAmount()); + log.setAfterAmount(detail.getCheckAmount()); + log.setMoney(detail.getCheckMoney()); + log.setCostAmount(detail.getCheckMoney()); + stockLogs.add(log); + + //更改库存; + stock.setStockAmount(detail.getCheckAmount()); + stock.setStockCost(detail.getCheckMoney()); + stock.setModifyDate(new Date()); + stock.setModifyUser(userName); + stockUpdateList.add(stock); + }else{ + //库存中没有的; + ProductStock stock = new ProductStock(); + stock.setTenantId(tenantId); + stock.setStorageId(detail.getStorageId()); + stock.setStorageName(detail.getStorageName()); + stock.setProductId(detail.getProductId()); + stock.setProductNo(detail.getProductNo()); + stock.setProductName(detail.getProductName()); + stock.setSpecId(detail.getSpecId()); + stock.setSpecName(detail.getSpecName()); + stock.setProductDescription(detail.getProductDescription()); + stock.setDispatchUnitId(detail.getStockUnitId()); + stock.setDispatchUnitName(detail.getStockUnitName()); + stock.setPurchaseUnitId(productRatioDao.find(tenantId,"productId",detail.getProductId(),true).getPurchaseUnitId()); + stock.setPurchaseUnitName(productUnitDao.get(tenantId,stock.getPurchaseUnitId(),true).getName()); + stock.setStockAmount(detail.getCheckAmount()); + stock.setStockCost(detail.getCheckMoney()); + stock.setCreateUser(userName); + stock.setCreateDate(new Date()); + stockSaveList.add(stock); + + //存库流水; + ProductStockLog log = new ProductStockLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setStorageId(detail.getStorageId()); + log.setStorageName(detail.getStorageName()); + log.setProductId(detail.getProductId()); + log.setProductNo(detail.getProductNo()); + log.setProductName(detail.getProductName()); + log.setSpecId(detail.getSpecId()); + log.setSpecName(detail.getSpecName()); + log.setOperationType(detail.getDifferenceAmount() < 0 ? 2:1); + log.setOrderNo(detail.getTicketNo()); + log.setOrderType(4);//盘点; + log.setOrderTypeName("盘点单"); + log.setDispatchUnitId(detail.getStockUnitId()); + log.setDispatchUnitName(detail.getStockUnitName()); + log.setPurchaseUnitId(stock.getPurchaseUnitId()); + log.setPurchaseUnitName(stock.getPurchaseUnitName()); + log.setPreAmount(0.00); + log.setAmount(detail.getCheckAmount()); + log.setAfterAmount(detail.getCheckAmount()); + log.setMoney(detail.getCheckMoney()); + log.setCostAmount(detail.getCheckMoney()); + stockLogs.add(log); + } + + } + + //根据明细查找单据; + List tickets = checkTicketDao.findListByIds(tenantId,ticketIds,true); + List logs = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(tickets)){ + for(CheckTicket ticket : tickets){ + ticket.setModifyDate(new Date()); + ticket.setModifyUser(userName); + ticket.setCheckMan(userName); + ticket.setCheckDate(new Date()); + ticket.setStatus(1); + + CheckTicketLog log = new CheckTicketLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setTicketId(ticket.getId()); + log.setTicketNo(ticket.getNo()); + log.setType(2); + log.setStatus(2); + log.setDescription("审核盘点单"); + logs.add(log); + } + } + + if(CollectionUtils.isNotEmpty(tickets)){ + checkTicketDao.update(tenantId,tickets); + } + + if(CollectionUtils.isNotEmpty(logs)){ + checkTicketLogDao.save(tenantId,logs); + } + if(CollectionUtils.isNotEmpty(stockUpdateList)){ + productStockDao.update(tenantId,stockUpdateList); + } + if(CollectionUtils.isNotEmpty(stockSaveList)){ + productStockDao.save(tenantId,stockSaveList); + } + if(CollectionUtils.isNotEmpty(stockLogs)){ + productStockLogDao.save(tenantId,stockLogs); + } + + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateAudit(String tenantId, String storageId, String userName) throws Exception { + Integer i = 0; + try{ + + //查找未审核的单据明细; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticket.status",0)); + if(StringUtils.isNotBlank(storageId)){ + criteria.add(Restrictions.eq("detail.storageId",storageId)); + } + + List details = checkTicketDetailDao.getExtendsList(tenantId,criteria); + //调整库存,修改单据状态; + if(CollectionUtils.isNotEmpty(details)){ + List ticketIds = new ArrayList<>(); + for(CheckTicketDetail detail : details){ + //保存盘点单Id; + if(!ticketIds.contains(detail.getTicketId())){ + ticketIds.add(detail.getTicketId()); + } + + if(detail.getDifferenceAmount() == 0.00){ + continue; + } + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", detail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + criteria.add(Restrictions.eq("id",detail.getSpecId())); + List productSpecList = productSpecDao.getList(tenantId,criteria); + ProductSpec productSpec = productSpecList.get(0); + + + + if(MathUtil.gt(new BigDecimal(detail.getDifferenceAmount()), BigDecimal.ZERO)){//入库; + // 单据类型(1-采购入库;2-配送出库;3-转仓库;4-其他入库;6-盘亏;7-盘盈) + Integer ticketType = 7; + String ticketNo = detail.getTicketNo(); + // 产品入库 - 批次管理 + productStockDao.stockIn(tenantId, detail.getStorageId(), detail.getStorageName(), detail.getProductId(), detail.getProductNo(), detail.getProductName(), detail.getSpecId(), + detail.getSpecName(), detail.getProductDescription(), null, null, detail.getStockUnitId(), productSpec.getCostPrice(), + detail.getDifferenceAmount(), detail.getDifferenceMoney(), null, null, userName, null, ticketType, ticketNo, ratio, productBatchNumberDao, + productBatchStockDao, productStockLogDao); + }else if(MathUtil.lt(new BigDecimal(detail.getDifferenceAmount()), BigDecimal.ZERO)){//出库; + //单据类型(1-采购入库;2-配送出库;3-转仓库;4-其他入库;5-其他出库;6-盘亏;7-盘盈) + Integer ticketType = 6;// + String ticketNo = detail.getTicketNo(); + + // 出库商品自动分配批次,先进先出,允许负库存 + Map allocateBatchesMap = productBatchStockDao.allocateBatches(tenantId, detail.getStorageId(), detail.getProductId(), detail.getProductNo(), + detail.getProductName(), detail.getSpecId(), detail.getSpecName(), detail.getProductDescription(), productSpec.getCostPrice(), + MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(detail.getDifferenceAmount())).doubleValue(), true, productBatchNumberDao, productRatioDao, productBatchStockDao); + + boolean allocateResult = (Boolean) allocateBatchesMap.get("status"); + Map allocateData = (Map) allocateBatchesMap.get("data"); + if (!allocateResult) { + throw new Exception(detail.getProductName() + (StringUtils.isNotBlank(detail.getSpecName()) ? "[" + detail.getSpecName() + "]" : "") + "库存分配失败"); + } + double allocatedQuantity = (Double) allocateBatchesMap.get("allocatedQuantity");// 已分配数量 + boolean negativeStock = (Boolean) allocateBatchesMap.get("negativeStock");// 是否负库存 + double negativeStockQuantity = (Double) allocateBatchesMap.get("negativeStockQuantity");// 负库存数量 + + logger.debug("allocatedQuantity:" + allocatedQuantity); + logger.debug("negativeStock:" + negativeStock); + logger.debug("negativeStockQuantity:" + negativeStockQuantity); + + // 批次冲减明细 + Map batches = allocateData; + + // 产品出库信息 + Double quantity = MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(detail.getDifferenceAmount())).doubleValue();// 出库数量 + Double price = productSpec.getCostPrice();// 成本价格 + Double totalAmount = MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(detail.getDifferenceMoney())).doubleValue();// 出库总金额 + productStockDao.stockOut(tenantId, detail.getStorageId(), detail.getStorageName(), detail.getProductId(), detail.getProductNo(), detail.getProductName(), + detail.getSpecId(), detail.getSpecName(), detail.getProductDescription(), price, quantity, totalAmount, userName, ticketType, + ticketNo, null,ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao,supplierDao); + } + } + + //根据明细查找单据; + List tickets = checkTicketDao.findListByIds(tenantId,ticketIds); + if(CollectionUtils.isNotEmpty(tickets)){ + for(CheckTicket ticket : tickets){ + ticket.setModifyDate(new Date()); + ticket.setModifyUser(userName); + ticket.setCheckMan(userName); + ticket.setCheckDate(new Date()); + ticket.setStatus(1); + checkTicketDao.update(tenantId,ticket); + + CheckTicketLog log = new CheckTicketLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setTicketId(ticket.getId()); + log.setTicketNo(ticket.getNo()); + log.setType(2); + log.setStatus(2); + log.setDescription("审核盘点单"); + checkTicketLogDao.save(tenantId,log); + } + } + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteDetailByDetailId(String tenantId, String id,String userName) throws Exception { + Integer i = 0; + try{ + CheckTicketDetail detail = checkTicketDetailDao.get(tenantId,id); + checkTicketDetailDao.delete(tenantId,id); + //判断此单据下是否还有明细,没有明细则删除此盘点单; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",detail.getTicketId())); + List details = checkTicketDetailDao.getList(tenantId,criteria); + if(CollectionUtils.isEmpty(details)){ + CheckTicket ticket = checkTicketDao.get(tenantId,detail.getTicketId()); + if(ticket != null){ + checkTicketDao.delete(tenantId,ticket.getId()); + CheckTicketLog log = new CheckTicketLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setTicketId(ticket.getId()); + log.setTicketNo(ticket.getNo()); + log.setType(1); + log.setStatus(0); + log.setDescription("盘点单所有明细删除完后删除盘点单"); + checkTicketLogDao.save(tenantId,log); + } + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostFeeItemServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostFeeItemServiceImpl.java new file mode 100644 index 0000000..41fe917 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostFeeItemServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostFeeItemDao; +import com.jwsaas.entity.food.CostFeeItem; +import com.jwsaas.service.food.CostFeeItemService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostFeeItemServiceImpl") +public class CostFeeItemServiceImpl extends BaseServiceImpl implements CostFeeItemService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostFeeItemDaoImpl") + private CostFeeItemDao costFeeItemDao; + + @Override + public BaseDao getBaseDao() { + return this.costFeeItemDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostFeeTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostFeeTypeServiceImpl.java new file mode 100644 index 0000000..3ba6a5a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostFeeTypeServiceImpl.java @@ -0,0 +1,55 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.Constants; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostFeeTypeDao; +import com.jwsaas.entity.food.CostFeeType; +import com.jwsaas.service.food.CostFeeTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostFeeTypeServiceImpl") +public class CostFeeTypeServiceImpl extends BaseServiceImpl implements CostFeeTypeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostFeeTypeDaoImpl") + private CostFeeTypeDao costFeeTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.costFeeTypeDao; + } + + @Override + public CostFeeType save(String tenantId, CostFeeType entity) throws Exception { + try { + CostFeeType type = this.costFeeTypeDao.save(tenantId, entity); + + CostFeeType parent = null; + if (StringUtils.isNotBlank(entity.getParentId())) { + parent = this.costFeeTypeDao.get(tenantId, entity.getParentId()); + } + + CostFeeType updateObj = new CostFeeType(); + updateObj.setId(type.getId()); + String path = type.getId(); + + if (parent != null) { + path = parent.getPath() + Constants.PATH_SEPARATOR + type.getId(); + } + updateObj.setPath(path); + this.costFeeTypeDao.update(tenantId, updateObj); + + type.setPath(path); + return type; + } catch (Exception e) { + throw e; + } + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketPayTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketPayTypeServiceImpl.java new file mode 100644 index 0000000..9feb6f0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketPayTypeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketPayTypeDao; +import com.jwsaas.entity.food.CostTicketPayType; +import com.jwsaas.service.food.CostTicketPayTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketPayTypeServiceImpl") +public class CostTicketPayTypeServiceImpl extends BaseServiceImpl implements CostTicketPayTypeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketPayTypeDaoImpl") + private CostTicketPayTypeDao costTicketPayTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketPayTypeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductChangeServiceImpl.java new file mode 100644 index 0000000..a26a3e8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketProductChangeDao; +import com.jwsaas.entity.food.CostTicketProductChange; +import com.jwsaas.service.food.CostTicketProductChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductChangeServiceImpl") +public class CostTicketProductChangeServiceImpl extends BaseServiceImpl implements CostTicketProductChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductChangeDaoImpl") + private CostTicketProductChangeDao costTicketProductChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketProductChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductFixedChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductFixedChangeServiceImpl.java new file mode 100644 index 0000000..90c09c3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductFixedChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketProductFixedChangeDao; +import com.jwsaas.entity.food.CostTicketProductFixedChange; +import com.jwsaas.service.food.CostTicketProductFixedChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductFixedChangeServiceImpl") +public class CostTicketProductFixedChangeServiceImpl extends BaseServiceImpl implements CostTicketProductFixedChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductFixedChangeDaoImpl") + private CostTicketProductFixedChangeDao costTicketProductFixedChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketProductFixedChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductMoreChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductMoreChangeServiceImpl.java new file mode 100644 index 0000000..94fcaba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductMoreChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketProductMoreChangeDao; +import com.jwsaas.entity.food.CostTicketProductMoreChange; +import com.jwsaas.service.food.CostTicketProductMoreChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductMoreChangeServiceImpl") +public class CostTicketProductMoreChangeServiceImpl extends BaseServiceImpl implements CostTicketProductMoreChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductMoreChangeDaoImpl") + private CostTicketProductMoreChangeDao costTicketProductMoreChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketProductMoreChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductOtherChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductOtherChangeServiceImpl.java new file mode 100644 index 0000000..ce54897 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductOtherChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketProductOtherChangeDao; +import com.jwsaas.entity.food.CostTicketProductOtherChange; +import com.jwsaas.service.food.CostTicketProductOtherChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductOtherChangeServiceImpl") +public class CostTicketProductOtherChangeServiceImpl extends BaseServiceImpl implements CostTicketProductOtherChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductOtherChangeDaoImpl") + private CostTicketProductOtherChangeDao costTicketProductOtherChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketProductOtherChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductTypeServiceImpl.java new file mode 100644 index 0000000..196cedd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketProductTypeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketProductTypeDao; +import com.jwsaas.entity.food.CostTicketProductType; +import com.jwsaas.service.food.CostTicketProductTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductTypeServiceImpl") +public class CostTicketProductTypeServiceImpl extends BaseServiceImpl implements CostTicketProductTypeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketProductTypeDaoImpl") + private CostTicketProductTypeDao costTicketProductTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketProductTypeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketServiceImpl.java new file mode 100644 index 0000000..de8f41d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketServiceImpl.java @@ -0,0 +1,179 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketDao; +import com.jwsaas.dao.food.CostTicketPayTypeDao; +import com.jwsaas.dao.food.CostTicketProductChangeDao; +import com.jwsaas.dao.food.CostTicketProductFixedChangeDao; +import com.jwsaas.dao.food.CostTicketProductMoreChangeDao; +import com.jwsaas.dao.food.CostTicketProductOtherChangeDao; +import com.jwsaas.dao.food.CostTicketProductTypeDao; +import com.jwsaas.entity.food.CostTicket; +import com.jwsaas.entity.food.CostTicketPayType; +import com.jwsaas.entity.food.CostTicketProductChange; +import com.jwsaas.entity.food.CostTicketProductFixedChange; +import com.jwsaas.entity.food.CostTicketProductMoreChange; +import com.jwsaas.entity.food.CostTicketProductOtherChange; +import com.jwsaas.entity.food.CostTicketProductType; +import com.jwsaas.service.food.CostTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "CostTicketServiceImpl") +public class CostTicketServiceImpl extends BaseServiceImpl implements CostTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CostTicketDaoImpl") + private CostTicketDao costTicketDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductTypeDaoImpl") + private CostTicketProductTypeDao costTicketProductTypeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CostTicketPayTypeDaoImpl") + private CostTicketPayTypeDao costTicketPayTypeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductChangeDaoImpl") + private CostTicketProductChangeDao costTicketProductChangeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductMoreChangeDaoImpl") + private CostTicketProductMoreChangeDao costTicketProductMoreChangeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductOtherChangeDaoImpl") + private CostTicketProductOtherChangeDao costTicketProductOtherChangeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CostTicketProductFixedChangeDaoImpl") + private CostTicketProductFixedChangeDao costTicketProductFixedChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketDao; + } + + @Override + public CostTicket saveCostTicket(String tenantId, CostTicket costTicket, List productType, List payType, List productChange, List productMoreChange, List productOtherChange, List productFixedChange) throws Exception { + try { + //存储主单 + costTicket = costTicketDao.save(tenantId, costTicket, true); + //存储类别汇总 + if (CollectionUtils.isNotEmpty(productType)) { + for (CostTicketProductType item : productType) { + item.setTicketId(costTicket.getId()); + } + costTicketProductTypeDao.save(tenantId, productType); + } + //存储支付方式汇总明细单 + if (CollectionUtils.isNotEmpty(payType)) { + for (CostTicketPayType item : payType) { + item.setTicketId(costTicket.getId()); + } + costTicketPayTypeDao.save(tenantId, payType); + } + //存储生成变动成本 + if (CollectionUtils.isNotEmpty(productChange)) { + for (CostTicketProductChange item : productChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductChangeDao.save(tenantId, productChange); + } + //存储辅助生产变动成本 + if (CollectionUtils.isNotEmpty(productMoreChange)) { + for (CostTicketProductMoreChange item : productMoreChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductMoreChangeDao.save(tenantId, productMoreChange); + } + //存储其他变动成本 + if (CollectionUtils.isNotEmpty(productOtherChange)) { + for (CostTicketProductOtherChange item : productOtherChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductOtherChangeDao.save(tenantId, productOtherChange); + } + //存储固定费用成本 + if (CollectionUtils.isNotEmpty(productFixedChange)) { + for (CostTicketProductFixedChange item : productFixedChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductFixedChangeDao.save(tenantId, productFixedChange); + } + return costTicket; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + + @Override + public Integer updateCostTicket(String tenantId, CostTicket costTicket, List productType, List payType, List productChange, List productMoreChange, List productOtherChange, List productFixedChange) throws Exception { + + try { + //存储主单 + Integer result = costTicketDao.update(tenantId, costTicket, true); + //先删除明细 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", costTicket.getId())); + criteria.add(Restrictions.eq("storeId", costTicket.getStoreId())); + costTicketProductTypeDao.delete(tenantId, criteria,true); + costTicketPayTypeDao.delete(tenantId, criteria,true); + costTicketProductChangeDao.delete(tenantId, criteria,true); + costTicketProductMoreChangeDao.delete(tenantId, criteria,true); + costTicketProductOtherChangeDao.delete(tenantId, criteria,true); + costTicketProductFixedChangeDao.delete(tenantId, criteria,true); + //存储类别汇总 + if (CollectionUtils.isNotEmpty(productType)) { + for (CostTicketProductType item : productType) { + item.setTicketId(costTicket.getId()); + } + costTicketProductTypeDao.save(tenantId, productType); + } + //存储支付方式汇总明细单 + if (CollectionUtils.isNotEmpty(payType)) { + for (CostTicketPayType item : payType) { + item.setTicketId(costTicket.getId()); + } + costTicketPayTypeDao.save(tenantId, payType); + } + //存储生成变动成本 + if (CollectionUtils.isNotEmpty(productChange)) { + for (CostTicketProductChange item : productChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductChangeDao.save(tenantId, productChange); + } + //存储辅助生产变动成本 + if (CollectionUtils.isNotEmpty(productMoreChange)) { + for (CostTicketProductMoreChange item : productMoreChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductMoreChangeDao.save(tenantId, productMoreChange); + } + //存储其他变动成本 + if (CollectionUtils.isNotEmpty(productOtherChange)) { + for (CostTicketProductOtherChange item : productOtherChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductOtherChangeDao.save(tenantId, productOtherChange); + } + //存储固定费用成本 + if (CollectionUtils.isNotEmpty(productFixedChange)) { + for (CostTicketProductFixedChange item : productFixedChange) { + item.setTicketId(costTicket.getId()); + } + costTicketProductFixedChangeDao.save(tenantId, productFixedChange); + } + return result; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductChangeServiceImpl.java new file mode 100644 index 0000000..919caed --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketTemplateProductChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductChange; +import com.jwsaas.service.food.CostTicketTemplateProductChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductChangeServiceImpl") +public class CostTicketTemplateProductChangeServiceImpl extends BaseServiceImpl implements CostTicketTemplateProductChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductChangeDaoImpl") + private CostTicketTemplateProductChangeDao costTicketTemplateProductChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketTemplateProductChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductFixedChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductFixedChangeServiceImpl.java new file mode 100644 index 0000000..b5ce1ca --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductFixedChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketTemplateProductFixedChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductFixedChange; +import com.jwsaas.service.food.CostTicketTemplateProductFixedChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductFixedChangeServiceImpl") +public class CostTicketTemplateProductFixedChangeServiceImpl extends BaseServiceImpl implements CostTicketTemplateProductFixedChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductFixedChangeDaoImpl") + private CostTicketTemplateProductFixedChangeDao costTicketTemplateProductFixedChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketTemplateProductFixedChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductMoreChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductMoreChangeServiceImpl.java new file mode 100644 index 0000000..f31f84a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductMoreChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketTemplateProductMoreChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductMoreChange; +import com.jwsaas.service.food.CostTicketTemplateProductMoreChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductMoreChangeServiceImpl") +public class CostTicketTemplateProductMoreChangeServiceImpl extends BaseServiceImpl implements CostTicketTemplateProductMoreChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductMoreChangeDaoImpl") + private CostTicketTemplateProductMoreChangeDao costTicketTemplateProductMoreChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketTemplateProductMoreChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductOtherChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductOtherChangeServiceImpl.java new file mode 100644 index 0000000..e4e08fd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateProductOtherChangeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CostTicketTemplateProductOtherChangeDao; +import com.jwsaas.entity.food.CostTicketTemplateProductOtherChange; +import com.jwsaas.service.food.CostTicketTemplateProductOtherChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductOtherChangeServiceImpl") +public class CostTicketTemplateProductOtherChangeServiceImpl extends BaseServiceImpl implements CostTicketTemplateProductOtherChangeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductOtherChangeDaoImpl") + private CostTicketTemplateProductOtherChangeDao costTicketTemplateProductOtherChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.costTicketTemplateProductOtherChangeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateServiceImpl.java new file mode 100644 index 0000000..6a180cf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CostTicketTemplateServiceImpl.java @@ -0,0 +1,265 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.ibatis.ognl.CollectionElementsAccessor; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.CostTicketTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateServiceImpl") +public class CostTicketTemplateServiceImpl extends BaseServiceImpl implements CostTicketTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateDaoImpl") + private CostTicketTemplateDao costTicketTemplateDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductChangeDaoImpl") + private CostTicketTemplateProductChangeDao costTicketTemplateProductChangeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductMoreChangeDaoImpl") + private CostTicketTemplateProductMoreChangeDao costTicketTemplateProductMoreChangeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductFixedChangeDaoImpl") + private CostTicketTemplateProductFixedChangeDao costTicketTemplateProductFixedChangeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostTicketTemplateProductOtherChangeDaoImpl") + private CostTicketTemplateProductOtherChangeDao costTicketTemplateProductOtherChangeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"CostFeeTypeDaoImpl") + private CostFeeTypeDao costFeeTypeDao; + + + + @Override + public BaseDao getBaseDao() { + return this.costTicketTemplateDao; + } + + @Override + public CostTicketTemplate saveTemplate(String tenantId, CostTicketTemplate template, List productList, + List assistProductList, List fixedList, + List unfixedList, String userName) throws Exception { + try{ + template = costTicketTemplateDao.save(tenantId,template,true); + //List templates = new ArrayList<>(); +// for(String storeId : storeList){ +// CostTicketTemplate ticketTemplate = new CostTicketTemplate(); +// ticketTemplate.setTenantId(tenantId); +// ticketTemplate.setId(template.getId()); +// ticketTemplate.setStoreId(storeId); +// templates.add(ticketTemplate); +// } + for(CostTicketTemplateProductChange change : productList){ + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + } + if(CollectionUtils.isNotEmpty(assistProductList)){ + for(CostTicketTemplateProductMoreChange change : assistProductList){ + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + } + } + + Map costFeeTypeMap = getCostFeeTypeMap(tenantId,true); + + + if(CollectionUtils.isNotEmpty(fixedList)){ + for(CostTicketTemplateProductFixedChange change : fixedList){ + CostFeeType type = costFeeTypeMap.get(change.getTypeId()); + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + change.setTypeNo(type.getNo()); + change.setTypeName(type.getName()); + } + } + if(CollectionUtils.isNotEmpty(unfixedList)){ + for(CostTicketTemplateProductOtherChange change : unfixedList){ + CostFeeType type = costFeeTypeMap.get(change.getTypeId()); + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + change.setTypeNo(type.getNo()); + change.setTypeName(type.getName()); + } + } + //costTicketTemplateDao.saveTemplateRelation(tenantId,templates); + costTicketTemplateProductChangeDao.save(tenantId,productList); + if(CollectionUtils.isNotEmpty(assistProductList)){ + costTicketTemplateProductMoreChangeDao.save(tenantId,assistProductList); + } + if(CollectionUtils.isNotEmpty(fixedList)){ + costTicketTemplateProductFixedChangeDao.save(tenantId,fixedList); + } + if(CollectionUtils.isNotEmpty(unfixedList)){ + costTicketTemplateProductOtherChangeDao.save(tenantId,unfixedList); + } + }catch (Exception e){ + throw e; + } + return template; + } + + @Override + public List getListByCriteria(String tenantId, String property, Criteria criteria) throws Exception { + try{ + return costTicketTemplateDao.getListByCriteria(tenantId,property,criteria); + }catch (Exception e){ + throw e; + } + + } + + @Override + public Integer updateTicket(String tenantId, CostTicketTemplate template, List changeList, List moreChangeList, List fixedList, List unfixedList, String userName) throws Exception { + Integer i = 0; + try{ + i = costTicketTemplateDao.update(tenantId,template,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",template.getId())); + //costTicketTemplateDao.deleteTemplateRelationByCriteria(tenantId,criteria,true); + costTicketTemplateProductChangeDao.delete(tenantId,criteria,true); + costTicketTemplateProductMoreChangeDao.delete(tenantId,criteria,true); + costTicketTemplateProductFixedChangeDao.delete(tenantId,criteria,true); + costTicketTemplateProductOtherChangeDao.delete(tenantId,criteria,true); + +// List templates = new ArrayList<>(); +// for(String storeId : storeIds){ +// CostTicketTemplate ticketTemplate = new CostTicketTemplate(); +// ticketTemplate.setTenantId(tenantId); +// ticketTemplate.setId(template.getId()); +// ticketTemplate.setStoreId(storeId); +// templates.add(ticketTemplate); +// } + for(CostTicketTemplateProductChange change : changeList){ + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + } + if(CollectionUtils.isNotEmpty(moreChangeList)){ + for(CostTicketTemplateProductMoreChange change : moreChangeList){ + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + } + } + + Map costFeeTypeMap = getCostFeeTypeMap(tenantId,true); + + if(CollectionUtils.isNotEmpty(fixedList)){ + for(CostTicketTemplateProductFixedChange change : fixedList){ + CostFeeType type = costFeeTypeMap.get(change.getTypeId()); + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + change.setTypeNo(type.getNo()); + change.setTypeName(type.getName()); + } + } + if(CollectionUtils.isNotEmpty(unfixedList)){ + for(CostTicketTemplateProductOtherChange change : unfixedList){ + CostFeeType type = costFeeTypeMap.get(change.getTypeId()); + change.setTenantId(tenantId); + change.setCreateUser(userName); + change.setCreateDate(new Date()); + change.setTicketId(template.getId()); + change.setTicketNo(template.getNo()); + change.setTypeNo(type.getNo()); + change.setTypeName(type.getName()); + } + } + //costTicketTemplateDao.saveTemplateRelation(tenantId,templates); + costTicketTemplateProductChangeDao.save(tenantId,changeList); + if(CollectionUtils.isNotEmpty(moreChangeList)){ + costTicketTemplateProductMoreChangeDao.save(tenantId,moreChangeList); + } + if(CollectionUtils.isNotEmpty(fixedList)){ + costTicketTemplateProductFixedChangeDao.save(tenantId,fixedList); + } + if(CollectionUtils.isNotEmpty(unfixedList)){ + costTicketTemplateProductOtherChangeDao.save(tenantId,unfixedList); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteTemplateById(String tenantId, String id) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",id)); + costTicketTemplateDao.deleteTemplateRelationByCriteria(tenantId,criteria); + costTicketTemplateProductChangeDao.delete(tenantId,criteria); + costTicketTemplateProductMoreChangeDao.delete(tenantId,criteria); + costTicketTemplateProductFixedChangeDao.delete(tenantId,criteria); + costTicketTemplateProductOtherChangeDao.delete(tenantId,criteria); + i = costTicketTemplateDao.delete(tenantId,id); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveTemplateRelation(String tenantId, String ticketId, List templates) throws Exception { + try{ + return costTicketTemplateDao.saveTemplateRelation(tenantId,templates); + }catch (Exception e){ + throw e; + } + + } + + @Override + public Integer deleteRelation(String tenantId, String ticketId, List storeList) throws Exception { + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticketId)); + criteria.add(Restrictions.in("storeId",storeList)); + return costTicketTemplateDao.deleteTemplateRelationByCriteria(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + + private Map getCostFeeTypeMap(String tenantId,boolean isBatch){ + Map map = new HashMap<>(); + try{ + List list = costFeeTypeDao.getList(tenantId,new Criteria(),isBatch); + if(CollectionUtils.isNotEmpty(list)){ + for(CostFeeType type : list){ + map.put(type.getId(),type); + } + } + }catch (Exception e){ + throw e; + } + return map; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CouponCodeDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponCodeDetailServiceImpl.java new file mode 100644 index 0000000..bcb516e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponCodeDetailServiceImpl.java @@ -0,0 +1,103 @@ +package com.jwsaas.service.food.impl; + +import java.text.SimpleDateFormat; +import java.util.Date; + +import javax.annotation.Resource; + +import com.jwsaas.utils.LuhnUtils; +import com.jwsaas.utils.RandomUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CouponCodeDetailDao; +import com.jwsaas.dao.food.CouponDao; +import com.jwsaas.entity.food.Coupon; +import com.jwsaas.entity.food.CouponCodeDetail; +import com.jwsaas.service.food.CouponCodeDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "CouponCodeDetailServiceImpl") +public class CouponCodeDetailServiceImpl extends BaseServiceImpl implements CouponCodeDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponCodeDetailDaoImpl") + private CouponCodeDetailDao couponCodeDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponDaoImpl") + private CouponDao couponDao; + + @Override + public BaseDao getBaseDao() { + return this.couponCodeDetailDao; + } + + @Override + public Integer updateCouponCodeCheck(String tenantId, String couponCode, String storeId, String storeName, String storeNo, String workerNo, String posNo, String busNo) { + int status = 0; + try { + CouponCodeDetail couponCodeDetail = couponCodeDetailDao.find(tenantId, "couponCode", couponCode); + if (couponCodeDetail == null) { + status = 1;// 找不到券码 + return status; + } + if (couponCodeDetail.getStatus() != 0) { + status = 2;// 优惠券已使用或已过期 + return status; + } + couponCodeDetail.setStatus(1); + couponCodeDetail.setStoreId(storeId); + couponCodeDetail.setStoreName(storeName); + couponCodeDetail.setStoreNo(storeNo); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + couponCodeDetail.setCheckTime(dateFormat.format(new Date())); + couponCodeDetail.setWorkerNo(workerNo); + couponCodeDetail.setPosNo(posNo); + couponCodeDetail.setBusNo(busNo); + couponCodeDetailDao.update(tenantId, couponCodeDetail); + status = 0; + } catch (Exception e) { + throw e; + } + return status; + } + + @Override + public Integer saveCreateCoupons(String tenantId, String couponId, String userName) throws Exception { + Integer i = 0; + try { + Coupon coupon = couponDao.get(tenantId, couponId); + if (coupon != null && coupon.getStatus() == 2) { + if (coupon.getVoucherFlag() == 1 && coupon.getPutNum() > 0) { + int num = coupon.getPutNum(); + String startDateTime = coupon.getStartDate() + " " + coupon.getStartTime(); + String endDateTime = coupon.getEndDate() + " " + coupon.getEndTime(); + for (int n = 0; n < num; n++) { + //String couponCode = IdWorkerUtils.getInstance().nextId() + ""; + String couponCode = ""; + Date date = new Date(); + String timeStr = date.getTime()+""; + String codes = timeStr.substring(3,timeStr.length()); + String randonStr = RandomUtils.generateStringByNumberChar(2); + codes = codes + randonStr; + couponCode = codes + LuhnUtils.getCheckNumber(codes); + + CouponCodeDetail detail = new CouponCodeDetail(); + detail.setTenantId(tenantId); + detail.setCouponId(couponId); + detail.setCouponCode(couponCode); + detail.setStatus(0); + detail.setBeginDateTime(startDateTime); + detail.setEndDateTime(endDateTime); + detail.setCreateDate(new Date()); + detail.setCreateUser(userName); + couponCodeDetailDao.save(tenantId, detail); + i++; + } + } + } + + } catch (Exception e) { + throw e; + } + return i; + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CouponServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponServiceImpl.java new file mode 100644 index 0000000..a47150d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponServiceImpl.java @@ -0,0 +1,112 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CouponDao; +import com.jwsaas.dao.food.CouponStoreDao; +import com.jwsaas.entity.food.Coupon; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.entity.food.CouponStore; +import com.jwsaas.service.food.CouponService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; + +import java.util.Date; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "CouponServiceImpl") +public class CouponServiceImpl extends BaseServiceImpl implements CouponService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponDaoImpl") + private CouponDao couponDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponStoreDaoImpl") + private CouponStoreDao couponStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.couponDao; + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.couponDao.getPagerByStoreId(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Coupon saveCoupon(String tenantId, Coupon coupon, List storeList) throws Exception { + Coupon c = null; + try{ + c = couponDao.save(tenantId,coupon,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(CouponStore cs : storeList){ + cs.setTenantId(tenantId); + cs.setCreateUser(c.getCreateUser()); + cs.setCreateDate(new Date()); + cs.setCouponId(c.getId()); + } + couponStoreDao.save(tenantId,storeList); + } + }catch(Exception e){ + throw e; + } + return c; + } + + @Override + public Integer updateCoupon(String tenantId, Coupon coupon, List storeList) throws Exception { + Integer i = 0; + try{ + couponDao.update(tenantId,coupon,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("couponId",coupon.getId())); + couponStoreDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(CouponStore cs : storeList){ + cs.setTenantId(tenantId); + cs.setCreateUser(coupon.getModifyUser()); + cs.setCreateDate(new Date()); + cs.setCouponId(coupon.getId()); + } + couponStoreDao.save(tenantId,storeList); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateCouponFinishByTask(String tenantId, String couponId, String currentUser) throws Exception { + Integer i = 0; + try{ + if(StringUtils.isNotEmpty(couponId)){ + Coupon coupon = couponDao.get(tenantId,couponId); + coupon.setModifyDate(new Date()); + coupon.setModifyUser(currentUser); + coupon.setStatus(4); + couponDao.update(tenantId,coupon); + } + }catch (Exception e){ + throw e; + } + return i; + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CouponStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponStoreServiceImpl.java new file mode 100644 index 0000000..4aff802 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponStoreServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CouponStoreDao; +import com.jwsaas.entity.food.CouponStore; +import com.jwsaas.service.food.CouponStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "CouponStoreServiceImpl") +public class CouponStoreServiceImpl extends BaseServiceImpl implements CouponStoreService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponStoreDaoImpl") + private CouponStoreDao couponStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.couponStoreDao; + } + + @Override + public List getStoreIdList(String tenantId, Criteria criteria) throws Exception { + try { + return couponStoreDao.getStoreIdList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketProductServiceImpl.java new file mode 100644 index 0000000..1e3ab1d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketProductServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CouponTicketProductDao; +import com.jwsaas.entity.food.CouponTicketProduct; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.CouponTicketProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "CouponTicketProductServiceImpl") +public class CouponTicketProductServiceImpl extends BaseServiceImpl implements CouponTicketProductService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponTicketProductDaoImpl") + private CouponTicketProductDao couponTicketProductDao; + + @Override + public BaseDao getBaseDao() { + return this.couponTicketProductDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.couponTicketProductDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = this.couponTicketProductDao.getPagerByStoreId(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketServiceImpl.java new file mode 100644 index 0000000..252dc0a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketServiceImpl.java @@ -0,0 +1,140 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CouponTicketDao; +import com.jwsaas.dao.food.CouponTicketProductDao; +import com.jwsaas.dao.food.CouponTicketStoreDao; +import com.jwsaas.entity.food.CouponTicket; +import com.jwsaas.entity.food.CouponTicketProduct; +import com.jwsaas.entity.food.CouponTicketStore; +import com.jwsaas.service.food.CouponTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "CouponTicketServiceImpl") +public class CouponTicketServiceImpl extends BaseServiceImpl implements CouponTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponTicketDaoImpl") + private CouponTicketDao couponTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponTicketStoreDaoImpl") + private CouponTicketStoreDao couponTicketStoreDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponTicketProductDaoImpl") + private CouponTicketProductDao couponTicketProductDao; + + @Override + public BaseDao getBaseDao() { + return this.couponTicketDao; + } + + @Override + public CouponTicket saveTicket(String tenantId, CouponTicket ticket, List storeList, List productList) throws Exception { + try { + ticket = this.couponTicketDao.save(tenantId, ticket, true); + if (CollectionUtils.isNotEmpty(storeList)) { + for (CouponTicketStore store : storeList) { + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateDate(new Date()); + store.setCreateUser(ticket.getCreateUser()); + } + this.couponTicketStoreDao.save(tenantId, storeList); + } + + List saveProducts = new ArrayList(); + if (CollectionUtils.isNotEmpty(productList)) { + for (int i = 0; i < productList.size(); i++) { + CouponTicketProduct product = productList.get(i); + if (product.getCouponPrice() != null) { + product.setTicketId(ticket.getId()); + product.setTicketNo(ticket.getNo()); + product.setCreateDate(new Date()); + product.setCreateUser(ticket.getCreateUser()); + saveProducts.add(product); + } + } + if (CollectionUtils.isNotEmpty(saveProducts)) { + this.couponTicketProductDao.save(tenantId, saveProducts); + } + } + return ticket; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, CouponTicket ticket, List storeList, List productList) throws Exception { + try { + this.couponTicketDao.update(tenantId, ticket, true); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + this.couponTicketStoreDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + this.couponTicketProductDao.delete(tenantId, criteria, true); + + if (CollectionUtils.isNotEmpty(storeList)) { + for (CouponTicketStore store : storeList) { + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateDate(new Date()); + store.setCreateUser(ticket.getModifyUser()); + } + this.couponTicketStoreDao.save(tenantId, storeList); + } + + List saveProducts = new ArrayList(); + if (CollectionUtils.isNotEmpty(productList)) { + for (int i = 0; i < productList.size(); i++) { + CouponTicketProduct product = productList.get(i); + if (product.getCouponPrice() != null) { + product.setTicketId(ticket.getId()); + product.setTicketNo(ticket.getNo()); + product.setCreateDate(new Date()); + product.setCreateUser(ticket.getModifyUser()); + saveProducts.add(product); + } + } + if (CollectionUtils.isNotEmpty(saveProducts)) { + this.couponTicketProductDao.save(tenantId, saveProducts); + } + } + + return 1; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Criteria criteria = null; + for (String ticketId : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.couponTicketStoreDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.couponTicketProductDao.delete(tenantId, criteria, true); + } + return this.couponTicketDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketStoreServiceImpl.java new file mode 100644 index 0000000..f5f84b2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/CouponTicketStoreServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.CouponTicketStoreDao; +import com.jwsaas.entity.food.CouponTicketStore; +import com.jwsaas.service.food.CouponTicketStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "CouponTicketStoreServiceImpl") +public class CouponTicketStoreServiceImpl extends BaseServiceImpl implements CouponTicketStoreService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "CouponTicketStoreDaoImpl") + private CouponTicketStoreDao couponTicketStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.couponTicketStoreDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.couponTicketStoreDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DeliverServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DeliverServiceImpl.java new file mode 100644 index 0000000..2007477 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DeliverServiceImpl.java @@ -0,0 +1,93 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.entity.ops.CardReaderInfo; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DeliverDao; +import com.jwsaas.entity.food.Deliver; +import com.jwsaas.service.food.DeliverService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"DeliverServiceImpl") +public class DeliverServiceImpl extends BaseServiceImpl implements DeliverService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"DeliverDaoImpl") + private DeliverDao deliverDao; + + @Override + public BaseDao getBaseDao() { + return this.deliverDao; + } + + @Override + public List getStoreIdsByDeliverId(String tenantId, String deliverId) throws Exception { + try { + return deliverDao.getStoreIdsByDeliverId(tenantId, deliverId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Deliver saveDeliverAndStoreIds(String tenantId, Deliver deliver, List storeIdList) throws Exception { + try { + deliver = deliverDao.save(tenantId,deliver,true); + if(CollectionUtils.isNotEmpty(storeIdList)){ + List list = new ArrayList<>(); + for(String storeId : storeIdList){ + Deliver deli = new Deliver(); + deli.setTenantId(tenantId); + deli.setId(deliver.getId()); + deli.setStoreId(storeId); + list.add(deli); + } + deliverDao.saveStoreRelations(tenantId,list); + } + } catch (Exception e) { + throw e; + } + return deliver; + } + + @Override + public Integer updateDeliverAndStoreIds(String tenantId, Deliver deliver, List storeIdList) throws Exception { + Integer i = 0; + try { + deliverDao.update(tenantId,deliver,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("deliverId",deliver.getId())); + deliverDao.deleteRelations(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeIdList)){ + List list = new ArrayList<>(); + for(String storeId : storeIdList){ + Deliver deli = new Deliver(); + deli.setTenantId(tenantId); + deli.setId(deliver.getId()); + deli.setStoreId(storeId); + list.add(deli); + } + deliverDao.saveStoreRelations(tenantId,list); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer deleteRelations(String tenantId, Criteria criteria) throws Exception { + return deliverDao.deleteRelations(tenantId,criteria); + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DfsFileServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DfsFileServiceImpl.java new file mode 100644 index 0000000..c6465b5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DfsFileServiceImpl.java @@ -0,0 +1,44 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DfsFileDao; +import com.jwsaas.entity.food.DfsFile; +import com.jwsaas.service.food.DfsFileService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "DfsFileServiceImpl") +public class DfsFileServiceImpl extends BaseServiceImpl implements DfsFileService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DfsFileDaoImpl") + private DfsFileDao dfsFileDao; + + @Override + public BaseDao getBaseDao() { + return this.dfsFileDao; + } + + @Override + public Integer updateUseCount(String tenantId, String userName, List list) throws Exception { + try { + return this.dfsFileDao.updateUseCount(tenantId, userName, list); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateDeleteCount(String tenantId, String userName, List list) throws Exception { + try { + return this.dfsFileDao.updateDeleteCount(tenantId, userName, list); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchSettlePlanPayModeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchSettlePlanPayModeServiceImpl.java new file mode 100644 index 0000000..28fc970 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchSettlePlanPayModeServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DispatchSettlePlanPayModeDao; +import com.jwsaas.entity.food.DispatchSettlePlanPayMode; +import com.jwsaas.service.food.DispatchSettlePlanPayModeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanPayModeServiceImpl") +public class DispatchSettlePlanPayModeServiceImpl extends BaseServiceImpl implements DispatchSettlePlanPayModeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanPayModeDaoImpl") + private DispatchSettlePlanPayModeDao dispatchSettlePlanPayModeDao; + + @Override + public BaseDao getBaseDao() { + return this.dispatchSettlePlanPayModeDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchSettlePlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchSettlePlanServiceImpl.java new file mode 100644 index 0000000..0c653bf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchSettlePlanServiceImpl.java @@ -0,0 +1,134 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.DispatchSettlePlanPayModeDao; +import com.jwsaas.entity.food.DispatchSettlePlanPayMode; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DispatchSettlePlanDao; +import com.jwsaas.entity.food.DispatchSettlePlan; +import com.jwsaas.service.food.DispatchSettlePlanService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanServiceImpl") +public class DispatchSettlePlanServiceImpl extends BaseServiceImpl implements DispatchSettlePlanService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanDaoImpl") + private DispatchSettlePlanDao dispatchSettlePlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanPayModeDaoImpl") + private DispatchSettlePlanPayModeDao dispatchSettlePlanPayModeDao; + + @Override + public BaseDao getBaseDao() { + return this.dispatchSettlePlanDao; + } + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria) throws Exception { + try { + return this.dispatchSettlePlanDao.getListByStoreId(tenantId, storeId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getAllStoreId(String tenantId) throws Exception { + try { + return this.dispatchSettlePlanDao.getAllStoreId(tenantId); + } catch (Exception e) { + throw e; + } + } + + @Override + public DispatchSettlePlan savePlanPayModesAndStoreIds(String tenantId, DispatchSettlePlan plan, List payModes, List storeIds) throws Exception { + try{ + plan = dispatchSettlePlanDao.save(tenantId,plan,true); + if(CollectionUtils.isNotEmpty(payModes)){ + for(DispatchSettlePlanPayMode payMode : payModes){ + payMode.setPlanId(plan.getId()); + } + dispatchSettlePlanPayModeDao.save(tenantId,payModes); + } + if(CollectionUtils.isNotEmpty(storeIds)){ + List plans = new ArrayList<>(); + for(String storeId : storeIds){ + DispatchSettlePlan p = new DispatchSettlePlan(); + p.setStoreId(storeId); + p.setTenantId(tenantId); + p.setId(plan.getId()); + plans.add(p); + } + + dispatchSettlePlanDao.saveStoreRelation(tenantId,plans); + } + }catch (Exception e){ + throw e; + } + return null; + } + + @Override + public List getStoreIdByPlanId(String tenantId, String planId) throws Exception { + try { + return dispatchSettlePlanDao.getStoreIdByPlanId(tenantId,planId); + }catch (Exception e){ + throw e; + } + } + + @Override + public Integer UpdatePlanPayModesAndStoreIds(String tenantId, DispatchSettlePlan plan, List payModes, List storeIds) throws Exception { + Integer i = 0; + try{ + dispatchSettlePlanDao.update(tenantId,plan,true); + if(CollectionUtils.isNotEmpty(payModes)){ + dispatchSettlePlanPayModeDao.save(tenantId,payModes); + } + dispatchSettlePlanDao.deleteStoreRelationByPlanId(tenantId,plan.getId(),true); + if(CollectionUtils.isNotEmpty(storeIds)){ + List plans = new ArrayList<>(); + for(String storeId : storeIds){ + DispatchSettlePlan p = new DispatchSettlePlan(); + p.setStoreId(storeId); + p.setTenantId(tenantId); + p.setId(plan.getId()); + plans.add(p); + } + dispatchSettlePlanDao.saveStoreRelation(tenantId,plans); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deletePayModeAndStoresByIds(String tenantId, List planIds) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("planId",planIds)); + dispatchSettlePlanPayModeDao.delete(tenantId,criteria,true); + for(String id : planIds){ + dispatchSettlePlanDao.deleteStoreRelationByPlanId(tenantId,id,true); + } + dispatchSettlePlanDao.delete(tenantId,planIds); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketDetailServiceImpl.java new file mode 100644 index 0000000..c6aa493 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketDetailServiceImpl.java @@ -0,0 +1,75 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DispatchTicketDetailDao; +import com.jwsaas.entity.food.DispatchTicketDetail; +import com.jwsaas.service.food.DispatchTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDetailServiceImpl") +public class DispatchTicketDetailServiceImpl extends BaseServiceImpl implements DispatchTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDetailDaoImpl") + private DispatchTicketDetailDao dispatchTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.dispatchTicketDetailDao; + } + + @Override + public List getListBydispatchSummary(String tenantId, Criteria criteria) throws Exception { + try { + return dispatchTicketDetailDao.getListBydispatchSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerBydispatchSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = dispatchTicketDetailDao.getPagerBydispatchSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerWithTypeIdBydispatchSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.dispatchTicketDetailDao.getPagerWithTypeIdBydispatchSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithTypeIdBydispatchSummary(String tenantId, Criteria criteria) throws Exception { + try { + return this.dispatchTicketDetailDao.getListWithTypeIdBydispatchSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketLogServiceImpl.java new file mode 100644 index 0000000..63ff08d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DispatchTicketLogDao; +import com.jwsaas.entity.food.DispatchTicketLog; +import com.jwsaas.service.food.DispatchTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketLogServiceImpl") +public class DispatchTicketLogServiceImpl extends BaseServiceImpl implements DispatchTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketLogDaoImpl") + private DispatchTicketLogDao dispatchTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.dispatchTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketServiceImpl.java new file mode 100644 index 0000000..85f4bd5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchTicketServiceImpl.java @@ -0,0 +1,1075 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.DispatchTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.DateUtils; +import com.jwsaas.utils.MathUtil; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.math.BigDecimal; +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketServiceImpl") +public class DispatchTicketServiceImpl extends BaseServiceImpl implements DispatchTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDaoImpl") + private DispatchTicketDao dispatchTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDetailDaoImpl") + private DispatchTicketDetailDao dispatchTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketLogDaoImpl") + private DispatchTicketLogDao dispatchTicketLogDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketDaoImpl") + private AskGoodsTicketDao askGoodsTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketLogDaoImpl") + private AskGoodsTicketLogDao askGoodsTicketLogDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") + private ProductStockDao productStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockChangeDaoImpl") + private ProductBatchStockChangeDao productBatchStockChangeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogDaoImpl") + private ProductStockLogDao productStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDaoImpl") + private ProductBatchNegativeStockDao productBatchNegativeStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") + private StoreDao storeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SupplierDaoImpl") + private SupplierDao supplierDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsTicketDaoImpl") + private ReceiveGoodsTicketDao receiveGoodsTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsDetailDaoImpl") + private ReceiveGoodsDetailDao receiveGoodsDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") + private ProductStoreStockDao productStoreStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") + private ProductStoreStockLogDao productStoreStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageDaoImpl") + private StoreStorageDao storeStorageDao; + + + + @Override + public BaseDao getBaseDao() { + return this.dispatchTicketDao; + } + + @Override + public DispatchTicket saveTicket(String tenantId, DispatchTicket entity, List ticketDetailList, DispatchTicketLog ticketLog) throws Exception { + try { + entity = this.dispatchTicketDao.save(tenantId, entity, true); + + for (DispatchTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setDispatchId(entity.getId()); + ticketDetail.setDispatchNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.dispatchTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setDispatchId(entity.getId()); + ticketLog.setDispatchNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.dispatchTicketLogDao.save(tenantId, ticketLog, true); + + return entity; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Criteria criteria = null; + for (String ticketId : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", ticketId)); + this.dispatchTicketDetailDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", ticketId)); + this.dispatchTicketLogDao.delete(tenantId, criteria, true); + } + + return this.dispatchTicketDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, DispatchTicket entity, List ticketDetailList, DispatchTicketLog ticketLog) throws Exception { + try { + int rows = this.dispatchTicketDao.update(tenantId, entity, true); + + Criteria criteria = null; + criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", entity.getId())); + this.dispatchTicketDetailDao.delete(tenantId, criteria, true); + + for (DispatchTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setDispatchId(entity.getId()); + ticketDetail.setDispatchNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.dispatchTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setDispatchId(entity.getId()); + ticketLog.setDispatchNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.dispatchTicketLogDao.save(tenantId, ticketLog, true); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStatus(String tenantId, DispatchTicket ticket, DispatchTicketLog ticketLog) throws Exception { + try { + int rows = this.dispatchTicketDao.update(tenantId, ticket); + ticketLog.setCreateUser(ticket.getCheckMan()); + ticketLog.setTenantId(tenantId); + ticketLog.setCreateDate(ticket.getCheckDate()); + this.dispatchTicketLogDao.save(tenantId, ticketLog); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public DispatchTicket saveAndAuditAskGoodsTicket(String tenantId, DispatchTicket ticket, List ticketDetailList, String operator) throws Exception { + try { + // 根据要货单生成配送单 + ticket = dispatchTicketDao.save(tenantId, ticket); + DispatchTicketLog ticketLog = new DispatchTicketLog(); + ticketLog.setDispatchId(ticket.getId()); + ticketLog.setDispatchNo(ticket.getNo()); + ticketLog.setStatus(0); + ticketLog.setType(0);// 0-新建 + ticketLog.setDescription("要货单转配送单"); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + dispatchTicketLogDao.save(tenantId, ticketLog); + Double totalMoney = 0.0; + + for (DispatchTicketDetail detail : ticketDetailList) { + detail.setDispatchId(ticket.getId()); + detail.setDispatchNo(ticket.getNo()); + detail.setCreateUser(operator); + detail.setCreateDate(new Date()); + detail.setMoney(detail.getDispatchAmount()*detail.getPrice()); + totalMoney += detail.getMoney(); + dispatchTicketDetailDao.save(tenantId, detail); + } + + if(totalMoney != ticket.getOrderMoney()){ + ticket.setOrderMoney(totalMoney); + ticket.setMoney(totalMoney+ticket.getLogisticsFee()); + dispatchTicketDao.update(tenantId,ticket); + } + + // 修改要货单状态; + AskGoodsTicket askGoodsTicket = askGoodsTicketDao.get(tenantId, ticket.getAskgoodsId()); + askGoodsTicket.setStatus(6);//0-新建 1-驳回2-审核通过 3-作废4-已发货5-已收货6-待发货 + // askGoodsTicket.setDispatchDate(new Date()); + askGoodsTicket.setCheckDate(new Date()); + askGoodsTicket.setCheckMan(operator); + askGoodsTicketDao.update(tenantId, askGoodsTicket); + AskGoodsTicketLog log = new AskGoodsTicketLog(); + log.setTenantId(tenantId); + log.setTicketId(askGoodsTicket.getId()); + log.setTicketNo(askGoodsTicket.getNo()); + log.setType(3); + log.setStatus(2); + log.setDescription("总部审核通过,生成配送单"); + log.setCreateUser(operator); + log.setCreateDate(new Date()); + askGoodsTicketLogDao.save(tenantId, log); + + } catch (Exception e) { + throw e; + } + return ticket; + } + + @Override + public DispatchTicket updateDeliveryStatus(String tenantId, DispatchTicket updateTicket, DispatchTicketLog ticketLog) throws Exception { + try { + updateTicket.setDeliveryDate(new Date()); + dispatchTicketDao.update(tenantId, updateTicket); + dispatchTicketLogDao.save(tenantId, ticketLog); + + + // 不存在出库流水,做出库处理; + // 配送日志出库类型; + if (ticketLog.getType() == 5) { + // 发货操作 + if (updateTicket.getStatus() == 4) { + // 审核通过,商品出库,减少库存 + // 更改库存;新判断此单据是否已经做过出库; + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("orderNo", updateTicket.getNo())); + criterias.add(Restrictions.eq("orderType", 2)); + List logs = productStockLogDao.getList(tenantId, criterias); + if (CollectionUtils.isEmpty(logs)) { + Store store = storeDao.get(tenantId, updateTicket.getStoreId()); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", updateTicket.getId())); + criteria.add(Restrictions.eq("dispatchNo", updateTicket.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List ticketDetailList = this.dispatchTicketDetailDao.getList(tenantId, criteria); + for (DispatchTicketDetail ticketDetail : ticketDetailList) { + String storageId = ticketDetail.getStorageId(); + String storageName = ticketDetail.getStorageName(); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + // 2-配送出库; + Integer ticketType = 2; + String ticketNo = updateTicket.getNo(); + + // 出库商品自动分配批次,先进先出,允许负库存 + Map allocateBatchesMap = productBatchStockDao.allocateBatches(tenantId, storageId, ticketDetail.getProductId(), ticketDetail.getProductNo(), + ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketDetail.getPrice(), + ticketDetail.getDispatchAmount(), true, productBatchNumberDao, productRatioDao, productBatchStockDao); + + boolean allocateResult = (Boolean) allocateBatchesMap.get("status"); + Map allocateData = (Map) allocateBatchesMap.get("data"); + if (!allocateResult) { + throw new Exception(ticketDetail.getProductName() + (StringUtils.isNotBlank(ticketDetail.getSpecName()) ? "[" + ticketDetail.getSpecName() + "]" : "") + "库存分配失败"); + } + double allocatedQuantity = (Double) allocateBatchesMap.get("allocatedQuantity");// 已分配数量 + boolean negativeStock = (Boolean) allocateBatchesMap.get("negativeStock");// 是否负库存 + double negativeStockQuantity = (Double) allocateBatchesMap.get("negativeStockQuantity");// 负库存数量 + + logger.debug("allocatedQuantity:" + allocatedQuantity); + logger.debug("negativeStock:" + negativeStock); + logger.debug("negativeStockQuantity:" + negativeStockQuantity); + + // 批次冲减明细 + Map batches = allocateData; + + // 产品出库信息 + Double quantity = ticketDetail.getDispatchAmount();// 出库数量 + Double price = ticketDetail.getPrice();// 出库单价 + Double totalAmount = ticketDetail.getMoney();// 出库总金额 + productStockDao.stockOut(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), + ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), price, quantity, totalAmount, updateTicket.getModifyUser(), ticketType, + ticketNo, store, ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao, + supplierDao); + } + + // 判断配送单此配送单是否由要货单转成; + if (updateTicket.getAskgoodsNo() != null) { + AskGoodsTicket askGoodsTicket = askGoodsTicketDao.find(tenantId, "no", updateTicket.getAskgoodsNo()); + // 要货单状态是审核、配送状态;0-新建 1-驳回2-审核通过 3-作废4-已发货5-已收货6-待发货; + if (askGoodsTicket.getStatus() == 2 || askGoodsTicket.getStatus() == 6) { + askGoodsTicket.setStatus(4); + askGoodsTicket.setDispatchDate(new Date()); + askGoodsTicket.setModifyDate(new Date()); + askGoodsTicket.setModifyUser(updateTicket.getModifyUser()); + askGoodsTicketDao.update(tenantId, askGoodsTicket); + AskGoodsTicketLog log = new AskGoodsTicketLog(); + log.setTenantId(tenantId); + log.setTicketId(askGoodsTicket.getId()); + log.setTicketNo(askGoodsTicket.getNo()); + log.setType(8); + log.setStatus(4); + log.setDescription("配送单发货,要货单状态改为发货"); + log.setCreateUser(updateTicket.getModifyUser()); + log.setCreateDate(new Date()); + askGoodsTicketLogDao.save(tenantId, log); + } + } + } + + } + } else if (ticketLog.getType() == 4) { + // 反审核,商品入库 + throw new Exception("该单据不支持反审核操作"); + } + return updateTicket; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getTicketIdsList(String tenantId, Criteria criteria) throws Exception { + return dispatchTicketDao.getTicketIdsList(tenantId, criteria); + } + + @Override + public DispatchTicket saveAndDelivery(String tenantId, DispatchTicket ticket, List ticketDetailList, String userName) throws Exception { + DispatchTicket dispatchTicket = null; + try{ + + Date date = new Date(); + System.out.println("直接审核-开始 >>>>>>>> "+date.getTime()); + + // 根据要货单生成配送单,配送单明细 + dispatchTicket = dispatchTicketDao.save(tenantId, ticket); + DispatchTicketLog ticketLog = new DispatchTicketLog(); + ticketLog.setDispatchId(dispatchTicket.getId()); + ticketLog.setDispatchNo(dispatchTicket.getNo()); + ticketLog.setStatus(0); + ticketLog.setType(0);// 0-新建 + ticketLog.setDescription("要货单转配送单"); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + dispatchTicketLogDao.save(tenantId, ticketLog); + + for (DispatchTicketDetail detail : ticketDetailList) { + detail.setDispatchId(dispatchTicket.getId()); + detail.setDispatchNo(dispatchTicket.getNo()); + detail.setCreateUser(userName); + detail.setCreateDate(new Date()); + dispatchTicketDetailDao.save(tenantId, detail); + } + + /*---------------------------------------------*/ + + //配送单直接发货; + dispatchTicket.setStatus(4); + dispatchTicket.setCheckMan(userName); + dispatchTicket.setCheckDate(new Date()); + dispatchTicket.setModifyDate(new Date()); + dispatchTicket.setModifyUser(userName); + //发货日期; + dispatchTicket.setDeliveryDate(new Date()); + + DispatchTicketLog Log = new DispatchTicketLog(); + Log.setDispatchId(dispatchTicket.getId()); + Log.setDispatchNo(dispatchTicket.getNo()); + Log.setStatus(4); // 0-新建,1-驳回,2-审核,3-作废,4-发货,5-收货 + Log.setType(5);// 发货 + Log.setDescription( "要货单转配送单后发货"); + Log.setCreateUser(userName); + Log.setCreateDate(new Date()); + Log.setTenantId(tenantId); + Log.setCreateUser(userName); + Log.setTenantId(tenantId); + Log.setCreateDate(new Date()); + dispatchTicketDao.update(tenantId, dispatchTicket); + this.dispatchTicketLogDao.save(tenantId, Log); + + Date date1 = new Date(); + System.out.println("直接审核-保存单据 >>>>>>>> "+date1.getTime()); + System.out.println("直接审核-保存单据 >>>>>>>> "+(date1.getTime()-date.getTime())); + /*---------------------------------------------*/ + + // 出库处理; + // 配送日志出库类型; + if (Log.getType() == 5) { + // 发货操作 + if (dispatchTicket.getStatus() == 4) { + // 审核通过,商品出库,减少库存 + // 更改库存;新判断此单据是否已经做过出库; + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("orderNo", dispatchTicket.getNo())); + criterias.add(Restrictions.eq("orderType", 2)); + List logs = productStockLogDao.getList(tenantId, criterias); + if (CollectionUtils.isEmpty(logs)) { + Store store = storeDao.get(tenantId, dispatchTicket.getStoreId()); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", dispatchTicket.getId())); + criteria.add(Restrictions.eq("dispatchNo", dispatchTicket.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List detailList = this.dispatchTicketDetailDao.getList(tenantId, criteria); + for (DispatchTicketDetail ticketDetail : detailList) { + String storageId = ticketDetail.getStorageId(); + String storageName = ticketDetail.getStorageName(); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + // 2-配送出库; + Integer ticketType = 2; + String ticketNo = dispatchTicket.getNo(); + + // 出库商品自动分配批次,先进先出,允许负库存 + Map allocateBatchesMap = productBatchStockDao.allocateBatches(tenantId, storageId, ticketDetail.getProductId(), ticketDetail.getProductNo(), + ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketDetail.getPrice(), + ticketDetail.getDispatchAmount(), true, productBatchNumberDao, productRatioDao, productBatchStockDao); + + boolean allocateResult = (Boolean) allocateBatchesMap.get("status"); + Map allocateData = (Map) allocateBatchesMap.get("data"); + if (!allocateResult) { + throw new Exception(ticketDetail.getProductName() + (StringUtils.isNotBlank(ticketDetail.getSpecName()) ? "[" + ticketDetail.getSpecName() + "]" : "") + "库存分配失败"); + } + double allocatedQuantity = (Double) allocateBatchesMap.get("allocatedQuantity");// 已分配数量 + boolean negativeStock = (Boolean) allocateBatchesMap.get("negativeStock");// 是否负库存 + double negativeStockQuantity = (Double) allocateBatchesMap.get("negativeStockQuantity");// 负库存数量 + + logger.debug("allocatedQuantity:" + allocatedQuantity); + logger.debug("negativeStock:" + negativeStock); + logger.debug("negativeStockQuantity:" + negativeStockQuantity); + + // 批次冲减明细 + Map batches = allocateData; + + // 产品出库信息 + Double quantity = ticketDetail.getDispatchAmount();// 出库数量 + Double price = ticketDetail.getPrice();// 出库单价 + Double totalAmount = ticketDetail.getMoney();// 出库总金额 + productStockDao.stockOut(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), + ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), price, quantity, totalAmount, dispatchTicket.getModifyUser(), ticketType, + ticketNo, store, ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao, + supplierDao); + } + + Date date2 = new Date(); + System.out.println("直接审核-库存处理 >>>>>>>> "+date2.getTime()); + System.out.println("直接审核-库存处理 >>>>>>>> "+(date2.getTime()-date.getTime())); + + // 修改要货单状态; + AskGoodsTicket askGoodsTicket = askGoodsTicketDao.get(tenantId, ticket.getAskgoodsId()); + askGoodsTicket.setStatus(4);//0-新建 1-驳回2-审核通过 3-作废4-已发货5-已收货6-待发货 + askGoodsTicket.setDispatchDate(new Date()); + askGoodsTicketDao.update(tenantId, askGoodsTicket); + + AskGoodsTicketLog log = new AskGoodsTicketLog(); + log.setTenantId(tenantId); + log.setTicketId(askGoodsTicket.getId()); + log.setTicketNo(askGoodsTicket.getNo()); + log.setType(8); + log.setStatus(4); + log.setDescription("要货单总部审核通过,生成配送单并配送"); + log.setCreateUser(userName); + log.setCreateDate(new Date()); + askGoodsTicketLogDao.save(tenantId, log); + + Date date3 = new Date(); + System.out.println("直接审核-结束 >>>>>>>> "+date3.getTime()); + System.out.println("直接审核-结束 >>>>>>>> "+(date3.getTime()-date.getTime())); + } + + } + } + }catch(Exception e){ + throw e; + } + return dispatchTicket; + } + + @Override + public Pager getPagerWithDifferentMoneySummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = dispatchTicketDao.getPagerWithDifferentMoneySummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithDifferentMoneySummary(String tenantId, Criteria criteria) throws Exception { + return dispatchTicketDao.getListWithDifferentMoneySummary(tenantId, criteria); + } + + @Override + public DispatchTicket saveTicketAndDetails(String tenantId, DispatchTicket ticket, List detailList,String operator) throws Exception { + try { + // 根据要货单生成配送单 + ticket = dispatchTicketDao.save(tenantId, ticket,true); + DispatchTicketLog ticketLog = new DispatchTicketLog(); + ticketLog.setDispatchId(ticket.getId()); + ticketLog.setDispatchNo(ticket.getNo()); + ticketLog.setStatus(0); + ticketLog.setType(0);// 0-新建 + ticketLog.setDescription("要货单转配送单"); + ticketLog.setCreateUser(operator); + ticketLog.setTenantId(tenantId); + dispatchTicketLogDao.save(tenantId, ticketLog,true); + Double totalMoney = 0.0; + + List details = new ArrayList<>(); + for (DispatchTicketDetail detail : detailList) { + detail.setCreateUser(operator); + detail.setCreateDate(new Date()); + detail.setDispatchId(ticket.getId()); + detail.setDispatchNo(ticket.getNo()); + detail.setMoney(detail.getDispatchAmount()*detail.getPrice()); + totalMoney += detail.getMoney(); + details.add(detail); + } + if(ticket.getOrderMoney() != totalMoney){ + ticket.setOrderMoney(totalMoney); + ticket.setMoney(totalMoney+ticket.getLogisticsFee()); + dispatchTicketDao.update(tenantId,ticket,true); + } + dispatchTicketDetailDao.save(tenantId,details); + + + } catch (Exception e) { + throw e; + } + return ticket; + } + + @Override + public DispatchTicket updateTicketAndDetails(String tenantId, DispatchTicket ticket, List detailList, String operator) throws Exception { + try { + ticket.setCreateDate(new Date()); + ticket.setCreateUser(operator); + dispatchTicketDao.update(tenantId, ticket,true); + DispatchTicketLog ticketLog = new DispatchTicketLog(); + ticketLog.setDispatchId(ticket.getId()); + ticketLog.setDispatchNo(ticket.getNo()); + ticketLog.setStatus(0); + ticketLog.setType(0);// 0-新建 + ticketLog.setDescription("修改货单转配送单"); + ticketLog.setCreateUser(operator); + ticketLog.setTenantId(tenantId); + dispatchTicketLogDao.save(tenantId, ticketLog,true); + + Double totalMoney = 0.0; + + List details = new ArrayList<>(); + for (DispatchTicketDetail detail : detailList) { + detail.setModifyUser(operator); + detail.setModifyDate(new Date()); + detail.setMoney(detail.getDispatchAmount()*detail.getPrice()); + totalMoney += detail.getMoney(); + + details.add(detail); + } + if(ticket.getOrderMoney() != totalMoney){ + ticket.setOrderMoney(totalMoney); + ticket.setMoney(totalMoney+ticket.getLogisticsFee()); + dispatchTicketDao.update(tenantId,ticket,true); + } + dispatchTicketDetailDao.update(tenantId,details); + + + } catch (Exception e) { + throw e; + } + return ticket; + } + + @Override + public DispatchTicket saveAuditAndDeliverys(String tenantId, String dispatchId, String operator) throws Exception { + DispatchTicket dispatchTicket = null; + try{ + + Date date = new Date(); + System.out.println("已生成配送单审核-审核开始 >>>>>>> " + date.getTime()); + + // 根据要货单生成配送单,配送单明细 + dispatchTicket = dispatchTicketDao.get(tenantId, dispatchId); + + //配送单直接发货; + dispatchTicket.setStatus(4); + dispatchTicket.setCheckMan(operator); + dispatchTicket.setCheckDate(new Date()); + dispatchTicket.setModifyDate(new Date()); + dispatchTicket.setModifyUser(operator); + //发货日期; + dispatchTicket.setDeliveryDate(new Date()); + + DispatchTicketLog Log = new DispatchTicketLog(); + Log.setDispatchId(dispatchTicket.getId()); + Log.setDispatchNo(dispatchTicket.getNo()); + Log.setStatus(4); // 0-新建,1-驳回,2-审核,3-作废,4-发货,5-收货 + Log.setType(5);// 发货 + Log.setDescription( "要货单转配送单后发货"); + Log.setCreateUser(operator); + Log.setCreateDate(new Date()); + Log.setTenantId(tenantId); + Log.setCreateUser(operator); + Log.setTenantId(tenantId); + Log.setCreateDate(new Date()); + dispatchTicketDao.update(tenantId, dispatchTicket); + this.dispatchTicketLogDao.save(tenantId, Log); + + Date date1 = new Date(); + System.out.println("已生成配送单审核-审核开始1 >>>>>>> " + date1.getTime()); + System.out.println("已生成配送单审核-审核开始1 >>>>>>> " + (date1.getTime()-date.getTime())); + + + + /*---------------------------------------------*/ + + // 出库处理; + // 配送日志出库类型; + if (Log.getType() == 5) { + // 发货操作 + if (dispatchTicket.getStatus() == 4) { + // 审核通过,商品出库,减少库存 + // 更改库存;新判断此单据是否已经做过出库; + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("orderNo", dispatchTicket.getNo())); + criterias.add(Restrictions.eq("orderType", 2)); + List logs = productStockLogDao.getList(tenantId, criterias); + if (CollectionUtils.isEmpty(logs)) { + Store store = storeDao.get(tenantId, dispatchTicket.getStoreId()); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", dispatchTicket.getId())); + criteria.add(Restrictions.eq("dispatchNo", dispatchTicket.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List detailList = this.dispatchTicketDetailDao.getList(tenantId, criteria); + for (DispatchTicketDetail ticketDetail : detailList) { + String storageId = ticketDetail.getStorageId(); + String storageName = ticketDetail.getStorageName(); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + // 2-配送出库; + Integer ticketType = 2; + String ticketNo = dispatchTicket.getNo(); + + // 出库商品自动分配批次,先进先出,允许负库存 + Map allocateBatchesMap = productBatchStockDao.allocateBatches(tenantId, storageId, ticketDetail.getProductId(), ticketDetail.getProductNo(), + ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketDetail.getPrice(), + ticketDetail.getDispatchAmount(), true, productBatchNumberDao, productRatioDao, productBatchStockDao); + + + boolean allocateResult = (Boolean) allocateBatchesMap.get("status"); + Map allocateData = (Map) allocateBatchesMap.get("data"); + if (!allocateResult) { + throw new Exception(ticketDetail.getProductName() + (StringUtils.isNotBlank(ticketDetail.getSpecName()) ? "[" + ticketDetail.getSpecName() + "]" : "") + "库存分配失败"); + } + double allocatedQuantity = (Double) allocateBatchesMap.get("allocatedQuantity");// 已分配数量 + boolean negativeStock = (Boolean) allocateBatchesMap.get("negativeStock");// 是否负库存 + double negativeStockQuantity = (Double) allocateBatchesMap.get("negativeStockQuantity");// 负库存数量 + + logger.debug("allocatedQuantity:" + allocatedQuantity); + logger.debug("negativeStock:" + negativeStock); + logger.debug("negativeStockQuantity:" + negativeStockQuantity); + + // 批次冲减明细 + Map batches = allocateData; + + // 产品出库信息 + Double quantity = ticketDetail.getDispatchAmount();// 出库数量 + Double price = ticketDetail.getPrice();// 出库单价 + Double totalAmount = ticketDetail.getMoney();// 出库总金额 + productStockDao.stockOut(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), + ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), price, quantity, totalAmount, dispatchTicket.getModifyUser(), ticketType, + ticketNo, store, ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao, + supplierDao); + } + + Date date2 = new Date(); + System.out.println("已生成配送单审核-配送出库 >>>>>>> " + date2.getTime()); + System.out.println("已生成配送单审核-配送出库 >>>>>>> " + (date2.getTime()-date.getTime())); + + // 修改要货单状态; + AskGoodsTicket askGoodsTicket = askGoodsTicketDao.get(tenantId, dispatchTicket.getAskgoodsId()); + askGoodsTicket.setStatus(4);//0-新建 1-驳回2-审核通过 3-作废4-已发货5-已收货6-待发货 + askGoodsTicket.setDispatchDate(new Date()); + askGoodsTicketDao.update(tenantId, askGoodsTicket); + + AskGoodsTicketLog log = new AskGoodsTicketLog(); + log.setTenantId(tenantId); + log.setTicketId(askGoodsTicket.getId()); + log.setTicketNo(askGoodsTicket.getNo()); + log.setType(8); + log.setStatus(4); + log.setDescription("要货单总部审核通过,生成配送单并配送"); + log.setCreateUser(operator); + log.setCreateDate(new Date()); + askGoodsTicketLogDao.save(tenantId, log); + } + + } + } + + Date date3 = new Date(); + System.out.println("已生成配送单审核-完成 >>>>>>> " + date3.getTime()); + System.out.println("已生成配送单审核-完成 >>>>>>> " + (date3.getTime()-date.getTime())); + }catch(Exception e){ + throw e; + } + return dispatchTicket; + } + + @Override + public boolean saveDispatchStockChange(String tenantId, String ticketId, String operator) throws Exception { + boolean flag = false; + try{ + DispatchTicket dispatchTicket = dispatchTicketDao.get(tenantId,ticketId); + // 审核通过,商品出库,减少库存 + // 更改库存;新判断此单据是否已经做过出库; + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("orderNo", dispatchTicket.getNo())); + criterias.add(Restrictions.eq("orderType", 2)); + List logs = productStockLogDao.getList(tenantId, criterias); + if (CollectionUtils.isEmpty(logs)) { + Store store = storeDao.get(tenantId, dispatchTicket.getStoreId()); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", dispatchTicket.getId())); + criteria.add(Restrictions.eq("dispatchNo", dispatchTicket.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List detailList = this.dispatchTicketDetailDao.getList(tenantId, criteria); + for (DispatchTicketDetail ticketDetail : detailList) { + String storageId = ticketDetail.getStorageId(); + String storageName = ticketDetail.getStorageName(); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + // 2-配送出库; + Integer ticketType = 2; + String ticketNo = dispatchTicket.getNo(); + + // 出库商品自动分配批次,先进先出,允许负库存 + Map allocateBatchesMap = productBatchStockDao.allocateBatches(tenantId, storageId, ticketDetail.getProductId(), ticketDetail.getProductNo(), + ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketDetail.getPrice(), + ticketDetail.getDispatchAmount(), true, productBatchNumberDao, productRatioDao, productBatchStockDao); + + boolean allocateResult = (Boolean) allocateBatchesMap.get("status"); + Map allocateData = (Map) allocateBatchesMap.get("data"); + if (!allocateResult) { + throw new Exception(ticketDetail.getProductName() + (StringUtils.isNotBlank(ticketDetail.getSpecName()) ? "[" + ticketDetail.getSpecName() + "]" : "") + "库存分配失败"); + } + double allocatedQuantity = (Double) allocateBatchesMap.get("allocatedQuantity");// 已分配数量 + boolean negativeStock = (Boolean) allocateBatchesMap.get("negativeStock");// 是否负库存 + double negativeStockQuantity = (Double) allocateBatchesMap.get("negativeStockQuantity");// 负库存数量 + + logger.debug("allocatedQuantity:" + allocatedQuantity); + logger.debug("negativeStock:" + negativeStock); + logger.debug("negativeStockQuantity:" + negativeStockQuantity); + + // 批次冲减明细 + Map batches = allocateData; + + // 产品出库信息 + Double quantity = ticketDetail.getDispatchAmount();// 出库数量 + Double price = ticketDetail.getPrice();// 出库单价 + Double totalAmount = ticketDetail.getMoney();// 出库总金额 + productStockDao.stockOut(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), + ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), price, quantity, totalAmount, dispatchTicket.getModifyUser(), ticketType, + ticketNo, store, ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao, + supplierDao); + } + flag = true; + } + }catch (Exception e){ + throw e; + } + return flag; + } + + @Override + public DispatchTicket saveTicketAndChangeStatus(String tenantId, DispatchTicket ticket, List ticketDetailList, String operator) throws Exception { + DispatchTicket dispatchTicket = null; + try{ + // 根据要货单生成配送单,配送单明细 + dispatchTicket = dispatchTicketDao.save(tenantId, ticket); + DispatchTicketLog ticketLog = new DispatchTicketLog(); + ticketLog.setDispatchId(dispatchTicket.getId()); + ticketLog.setDispatchNo(dispatchTicket.getNo()); + ticketLog.setStatus(0); + ticketLog.setType(0);// 0-新建 + ticketLog.setDescription("要货单转配送单"); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + dispatchTicketLogDao.save(tenantId, ticketLog); + Double totalMoney = 0.0; + + for (DispatchTicketDetail detail : ticketDetailList) { + detail.setDispatchId(dispatchTicket.getId()); + detail.setDispatchNo(dispatchTicket.getNo()); + detail.setCreateUser(operator); + detail.setCreateDate(new Date()); + detail.setMoney(detail.getPrice() * detail.getDispatchAmount()); + totalMoney+= detail.getMoney(); + dispatchTicketDetailDao.save(tenantId, detail); + } + + if(ticket.getOrderMoney() != totalMoney){ + ticket.setOrderMoney(totalMoney); + ticket.setMoney(totalMoney+ticket.getLogisticsFee()); + dispatchTicketDao.update(tenantId,ticket); + } + + /*---------------------------------------------*/ + + //配送单直接发货; + dispatchTicket.setStatus(4); + dispatchTicket.setCheckMan(operator); + dispatchTicket.setCheckDate(new Date()); + dispatchTicket.setModifyDate(new Date()); + dispatchTicket.setModifyUser(operator); + //发货日期; + dispatchTicket.setDeliveryDate(new Date()); + + DispatchTicketLog Log = new DispatchTicketLog(); + Log.setDispatchId(dispatchTicket.getId()); + Log.setDispatchNo(dispatchTicket.getNo()); + Log.setStatus(4); // 0-新建,1-驳回,2-审核,3-作废,4-发货,5-收货 + Log.setType(5);// 发货 + Log.setDescription( "要货单转配送单后发货"); + Log.setCreateUser(operator); + Log.setCreateDate(new Date()); + Log.setTenantId(tenantId); + Log.setCreateUser(operator); + Log.setTenantId(tenantId); + Log.setCreateDate(new Date()); + dispatchTicketDao.update(tenantId, dispatchTicket); + this.dispatchTicketLogDao.save(tenantId, Log); + + // 修改要货单状态; + AskGoodsTicket askGoodsTicket = askGoodsTicketDao.get(tenantId, ticket.getAskgoodsId()); + askGoodsTicket.setStatus(4);//0-新建 1-驳回2-审核通过 3-作废4-已发货5-已收货6-待发货 + askGoodsTicket.setDispatchDate(new Date()); + askGoodsTicketDao.update(tenantId, askGoodsTicket); + + AskGoodsTicketLog log = new AskGoodsTicketLog(); + log.setTenantId(tenantId); + log.setTicketId(askGoodsTicket.getId()); + log.setTicketNo(askGoodsTicket.getNo()); + log.setType(8); + log.setStatus(4); + log.setDescription("要货单总部审核通过,生成配送单并配送"); + log.setCreateUser(operator); + log.setCreateDate(new Date()); + askGoodsTicketLogDao.save(tenantId, log); + + }catch (Exception e){ + throw e; + } + + return dispatchTicket; + } + + @Override + public List> getListWithProductIds(String tenantId, Criteria criteria) throws Exception { + return dispatchTicketDao.getListWithProductIds(tenantId, criteria); + } + + @Override + public ReceiveGoodsTicket saveStoreReceiveGoodsTicketByAutoCheck(String tenantId, String ticketId) throws Exception { + try { + // 商品单位 + Criteria criteria = new Criteria(); + List productUnitList = productUnitDao.getList(tenantId, criteria, true); + Map productUnitMap = new HashMap<>(); + for (ProductUnit productUnit : productUnitList) { + productUnitMap.put(productUnit.getId(), productUnit); + } + + // 配送单 + DispatchTicket dispatchTicket = dispatchTicketDao.get(tenantId, ticketId, true); + // 配送单明细 + criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", ticketId)); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List dispatchTicketDetailList = dispatchTicketDetailDao.getList(tenantId, criteria, true); + Map dispatchTicketDetailMap = new HashMap<>(); + for (DispatchTicketDetail dispatchTicketDetail : dispatchTicketDetailList) { + dispatchTicketDetailMap.put(dispatchTicketDetail.getSpecId(), dispatchTicketDetail); + } + + // 仓库信息 + List storeStorages = storeStorageDao.getListByStoreIdBatch(tenantId,dispatchTicket.getStoreId()); + String storageId = storeStorages.get(0).getId(); + String storageName = storeStorages.get(0).getName(); + // 要货单 + AskGoodsTicket askGoodsTicket = null; + if (StringUtils.isNotBlank(dispatchTicket.getAskgoodsId())) { + askGoodsTicket = askGoodsTicketDao.get(tenantId, dispatchTicket.getAskgoodsId(), true); + } + + // ============生成验收单============ + Date currentDate = new Date(); + criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId",ticketId)); + List receiveGoodsTickets = receiveGoodsTicketDao.getList(tenantId,criteria,true); + ReceiveGoodsTicket ticket = null; + //判断验收单是否已存在; + if(CollectionUtils.isEmpty(receiveGoodsTickets)){ + ticket = new ReceiveGoodsTicket(); + ticket.setTenantId(tenantId); + ticket.setStoreId(dispatchTicket.getStoreId()); + ticket.setNo(DateUtils.getCurrDatetime()); + ticket.setStatus(0); + ticket.setStorageId(storageId); + ticket.setDispatchId(ticketId); + ticket.setDispatchNo("YS"+dispatchTicket.getNo()); + ticket.setDescription("自动验收"); + ticket.setSetMan("autoCheck"); + ticket.setSetDate(new Date()); + ticket.setCheckMan("autoCheck"); + ticket.setCheckDate(new Date()); + ticket.setCreateUser("autoCheck"); + ticket.setCreateDate(new Date()); + ticket = receiveGoodsTicketDao.save(tenantId, ticket, true); + + + List detailList = new ArrayList<>(); + List dispatchTicketDetails = new ArrayList<>(); + + for(DispatchTicketDetail detail : dispatchTicketDetailList){ + ReceiveGoodsDetail receiveGoodsDetail = new ReceiveGoodsDetail(); + receiveGoodsDetail.setTicketId(ticket.getId()); + receiveGoodsDetail.setStorageId(storageId); + receiveGoodsDetail.setProductId(detail.getProductId()); + receiveGoodsDetail.setProductNo(detail.getProductNo()); + receiveGoodsDetail.setProductName(detail.getProductName()); + receiveGoodsDetail.setSpecId(detail.getSpecId()); + receiveGoodsDetail.setSpecName(detail.getSpecName()); + receiveGoodsDetail.setProductDescription(detail.getProductDescription()); + receiveGoodsDetail.setDispatchUnitId(detail.getDispatchUnitId()); + receiveGoodsDetail.setDispatchUnitName(detail.getDispatchUnitName()); + receiveGoodsDetail.setDispatchPrice(detail.getPrice()); + receiveGoodsDetail.setAskgoodsAmount(detail.getAskgoodsAmount()); + receiveGoodsDetail.setDispatchAmount(detail.getDispatchAmount()); + receiveGoodsDetail.setReceiveAmount(detail.getDispatchAmount()); + receiveGoodsDetail.setSubtotalPrice(detail.getPrice()*detail.getDispatchAmount()); + receiveGoodsDetail.setDifferenceAmount(0.0); + receiveGoodsDetail.setDifferencePrice(0.0); + receiveGoodsDetail.setDescription("自动验收生成"); + receiveGoodsDetail.setCreateUser("autoCheck"); + receiveGoodsDetail.setCreateDate(new Date()); + detailList.add(receiveGoodsDetail); + + //配送单明细修改; + detail.setReceiveAmount(detail.getDispatchAmount()); + detail.setDifferenceAmount(0.0); + detail.setDifferenceMoney(0.0); + detail.setModifyDate(new Date()); + detail.setModifyUser("autoCheck"); + dispatchTicketDetails.add(detail); + } + receiveGoodsDetailDao.save(tenantId, detailList); + + // 更改配送单状态 + DispatchTicket updateDispatchTicket = new DispatchTicket(); + updateDispatchTicket.setId(dispatchTicket.getId()); + updateDispatchTicket.setStatus(5);// 1-驳回,2-审核通过,3-作废,4-已发货,5-已收货 + updateDispatchTicket.setArrivalDate(new Date());// 验收日期 + updateDispatchTicket.setModifyUser("system"); + updateDispatchTicket.setModifyDate(currentDate); + dispatchTicketDao.update(tenantId, updateDispatchTicket, true); + dispatchTicketDetailDao.update(tenantId,dispatchTicketDetails); + + + DispatchTicketLog dispatchTicketLog = new DispatchTicketLog(); + dispatchTicketLog.setDispatchId(ticket.getDispatchId()); + dispatchTicketLog.setDispatchNo(ticket.getDispatchNo()); + dispatchTicketLog.setStatus(updateDispatchTicket.getStatus()); + dispatchTicketLog.setType(5);// 0-新建,1-驳回,2-审核,3-作废,4-反审核,5-收货 + dispatchTicketLog.setDescription("7天自动验收任务,已收货[" + ticket.getSetMan() + "]"); + dispatchTicketLog.setCreateUser(ticket.getCreateUser()); + dispatchTicketLog.setCreateDate(ticket.getCreateDate()); + dispatchTicketLog.setTenantId(tenantId); + dispatchTicketLogDao.save(tenantId, dispatchTicketLog, true); + + + // 1-采购入库;2-配送入库;3-转仓库;4-销售出库; + Integer ticketType = 2; + String ticketTypeName = "配送入库"; + String ticketNo = ticket.getNo(); + + // 门店库存处理 + for (ReceiveGoodsDetail receiveGoodsDetail : detailList) { + if (MathUtil.lte(new BigDecimal(receiveGoodsDetail.getReceiveAmount()), BigDecimal.ZERO)) { + continue; + } + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", receiveGoodsDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria, true); + ProductRatio ratio = productRatioList.get(0); + + // 收货金额 + Double money = MathUtil.multiply(receiveGoodsDetail.getDispatchPrice(), receiveGoodsDetail.getReceiveAmount()); + + productStoreStockDao.stockIn(tenantId, ticket.getStoreId(), receiveGoodsDetail.getStorageId(), storageName, receiveGoodsDetail.getProductId(), + receiveGoodsDetail.getProductNo(), receiveGoodsDetail.getProductName(), receiveGoodsDetail.getSpecId(), receiveGoodsDetail.getSpecName(), + receiveGoodsDetail.getProductDescription(), ticketType, ticketTypeName, ticketNo, receiveGoodsDetail.getDispatchUnitId(), receiveGoodsDetail.getDispatchUnitName(), + ratio.getPackUnitId(), productUnitMap.get(ratio.getPackUnitId()) == null ? null : productUnitMap.get(ratio.getPackUnitId()).getName(), receiveGoodsDetail.getDispatchPrice(), + receiveGoodsDetail.getReceiveAmount(), money, ticket.getCreateUser(), ratio, productStoreStockLogDao); + } + + if (askGoodsTicket != null) { + // 更改要货单状态 + AskGoodsTicket updateAskGoodsTicket = new AskGoodsTicket(); + updateAskGoodsTicket.setId(askGoodsTicket.getId()); + updateAskGoodsTicket.setStatus(5);// 0-新建;1-驳回;2-审核通过;3-作废;4-已发货;5-已收货; + updateAskGoodsTicket.setModifyUser("system"); + updateAskGoodsTicket.setModifyDate(currentDate); + askGoodsTicketDao.update(tenantId, updateAskGoodsTicket, true); + + AskGoodsTicketLog askGoodsTicketLog = new AskGoodsTicketLog(); + askGoodsTicketLog.setTicketId(askGoodsTicket.getId()); + askGoodsTicketLog.setTicketNo(askGoodsTicket.getNo()); + askGoodsTicketLog.setType(5);// 0-新建,1-驳回,2-审核,3-作废,4-反审核,5-收货 + askGoodsTicketLog.setStatus(updateAskGoodsTicket.getStatus()); + askGoodsTicketLog.setPayStatus(askGoodsTicket.getPayStatus()); + askGoodsTicketLog.setDescription("7天自动验收,已收货[" + ticket.getSetMan() + "]"); + askGoodsTicketLog.setCreateUser(ticket.getCreateUser()); + askGoodsTicketLog.setCreateDate(ticket.getCreateDate()); + askGoodsTicketLog.setTenantId(tenantId); + askGoodsTicketLogDao.save(tenantId, askGoodsTicketLog, true); + } + + // 更改收货单状态 + ReceiveGoodsTicket updateReceiveGoodsTicket = new ReceiveGoodsTicket(); + updateReceiveGoodsTicket.setId(ticket.getId()); + updateReceiveGoodsTicket.setStatus(1);// 0-新建;1-审核;2-废弃;3-反审核; + updateReceiveGoodsTicket.setCheckMan(ticket.getCreateUser()); + updateReceiveGoodsTicket.setCheckDate(new Date()); + updateReceiveGoodsTicket.setModifyUser("system"); + updateReceiveGoodsTicket.setModifyDate(currentDate); + receiveGoodsTicketDao.update(tenantId, updateReceiveGoodsTicket, true); + } + return ticket; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketMaterialServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketMaterialServiceImpl.java new file mode 100644 index 0000000..4baac09 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketMaterialServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DispatchpriceTicketMaterialDao; +import com.jwsaas.entity.food.DispatchpriceTicketMaterial; +import com.jwsaas.service.food.DispatchpriceTicketMaterialService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketMaterialServiceImpl") +public class DispatchpriceTicketMaterialServiceImpl extends BaseServiceImpl implements DispatchpriceTicketMaterialService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketMaterialDaoImpl") + private DispatchpriceTicketMaterialDao dispatchpriceTicketMaterialDao; + + @Override + public BaseDao getBaseDao() { + return this.dispatchpriceTicketMaterialDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketServiceImpl.java new file mode 100644 index 0000000..0303587 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketServiceImpl.java @@ -0,0 +1,354 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.DispatchpriceTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketServiceImpl") +public class DispatchpriceTicketServiceImpl extends BaseServiceImpl implements DispatchpriceTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketDaoImpl") + private DispatchpriceTicketDao dispatchpriceTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketStoreDaoImpl") + private DispatchpriceTicketStoreDao dispatchpriceTicketStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketMaterialDaoImpl") + private DispatchpriceTicketMaterialDao dispatchpriceTicketMaterialDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreDaoImpl") + private StoreDao storeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreProductDaoImpl") + private StoreProductDao storeProductDao; + + + @Override + public BaseDao getBaseDao() { + return this.dispatchpriceTicketDao; + } + + @Override + public Integer saveTicketDetailsAndStores(String tenantId, DispatchpriceTicket dispatchpriceTicket, List storeIdList, List specIdList, List hqPriceList, List priceList, List descriptionList) throws Exception { + Integer i = 0; + try{ + DispatchpriceTicket ticket = dispatchpriceTicketDao.save(tenantId,dispatchpriceTicket,true); + List dispatchpriceTicketMaterialList = new ArrayList<>(); + List dispatchpriceTicketStoreList = new ArrayList<>(); + if(storeIdList != null && storeIdList.size() > 0){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",storeIdList)); + List stores = storeDao.getList(tenantId,criteria,true); + for(Store store:stores){ + DispatchpriceTicketStore tstore = new DispatchpriceTicketStore(); + tstore.setTenantId(tenantId); + tstore.setTicketId(ticket.getId()); + tstore.setStoreId(store.getId()); + tstore.setStoreNo(store.getNo()); + tstore.setStoreName(store.getName()); + tstore.setCreateUser(ticket.getCreateUser()); + dispatchpriceTicketStoreList.add(tstore); + } + } + + Map hqPriceMap = new HashMap<>(); + for(String hPrice : hqPriceList){ + String key = hPrice.split("-")[0]; + String price = hPrice.split("-")[1]; + hqPriceMap.put(key,price); + } + Map newPriceMap = new HashMap<>(); + for(String price : priceList){ + String key = price.split("-")[0]; + String prices = price.split("-")[1]; + newPriceMap.put(key,prices); + } + Map descMap = new HashMap<>(); + for(String desc:descriptionList){ + String key = desc.split("-")[0]; + String value = desc.split("-")[1]; + descMap.put(key,value); + } + + if(specIdList != null && specIdList.size() > 0){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ps.id",specIdList)); + List productSpecs = productSpecDao.getListWithProduct(tenantId,criteria,true); + Map spp = getProductRatioMap(tenantId); + int x = 0; + for(ProductSpec spec : productSpecs){ + DispatchpriceTicketMaterial material = new DispatchpriceTicketMaterial(); + material.setTenantId(tenantId); + material.setTicketId(ticket.getId()); + material.setProductId(spec.getProductId()); + material.setProductNo(spec.getProductNo()); + material.setProductName(spec.getProductName()); + material.setSpecId(spec.getId()); + material.setSpecName(spec.getName()); + material.setProductDescription(spec.getProductDescription()); + material.setDispatchUnitId(spp.get(spec.getProductId()).getDispatchUnitId()); + material.setHdispatchPrice(Double.parseDouble(hqPriceMap.get(spec.getId()))); + material.setDispatchPrice(Double.parseDouble(newPriceMap.get(spec.getId()))); + material.setCreateUser(ticket.getCreateUser()); + if(StringUtils.isNotBlank(descMap.get(spec.getId()))) { + material.setDescription(descMap.get(spec.getId())); + } + dispatchpriceTicketMaterialList.add(material); + x++; + } + } + if(dispatchpriceTicketStoreList.size() > 0){ + dispatchpriceTicketStoreDao.save(tenantId,dispatchpriceTicketStoreList); + } + if(dispatchpriceTicketMaterialList.size() > 0){ + dispatchpriceTicketMaterialDao.save(tenantId,dispatchpriceTicketMaterialList); + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Map getDispatchPriceMaterialByStoreId(String tenantId, String storeId) throws Exception{ + Map map = new HashMap<>(); + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",storeId)); + List stores = dispatchpriceTicketStoreDao.getList(tenantId,criteria); + if(stores != null && stores.size() > 0){ + List ticketIds = new ArrayList<>(); + for(DispatchpriceTicketStore store : stores){ + ticketIds.add(store.getTicketId()); + } + criteria = new Criteria(); + criteria.add(Restrictions.in("id",ticketIds)); + criteria.add(Restrictions.eq("status",1)); + List tickets = dispatchpriceTicketDao.getList(tenantId,criteria); + if(tickets != null && tickets.size() > 0){ + ticketIds = new ArrayList<>(); + for(DispatchpriceTicket ticket : tickets){ + ticketIds.add(ticket.getId()); + } + criteria = new Criteria(); + criteria.add(Restrictions.in("ticketId",ticketIds)); + criteria.add(Restrictions.order("createDate","desc")); + List list = dispatchpriceTicketMaterialDao.getList(tenantId,criteria); + if(list != null && list.size() > 0){ + for(DispatchpriceTicketMaterial material : list){ + if(!map.containsKey(material.getSpecId())){ + map.put(material.getSpecId(),material); + } + } + } + } + } + }catch(Exception e){ + throw e; + } + return map; + } + + @Override + public List getDispatchPriceByStoreId(String tenantId, String storeId) throws Exception{ + List list = new ArrayList<>(); + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",storeId)); + List storeProducts = storeProductDao.getList(tenantId,criteria); + if(storeProducts != null && storeProducts.size() > 0){ + for(StoreProduct sp : storeProducts){ + DispatchpriceTicketMaterial material = new DispatchpriceTicketMaterial(); + material.setSpecId(sp.getSpecId()); + material.setDispatchPrice(sp.getDispatchPrice()); + list.add(material); + } + } + }catch(Exception e){ + throw e; + } + return list; + } + + @Override + public Integer updateTicketDetailAndStores(String tenantId, DispatchpriceTicket dispatchpriceTicket, List storeIdList, + List specIdList, List hqPriceList, List priceList, List descriptionList) throws Exception { + Integer i = 0; + try{ + dispatchpriceTicketDao.update(tenantId,dispatchpriceTicket,true); + Criteria cirt = new Criteria(); + cirt.add(Restrictions.eq("ticketId",dispatchpriceTicket.getId())); + dispatchpriceTicketStoreDao.delete(tenantId,cirt,true); + dispatchpriceTicketMaterialDao.delete(tenantId,cirt,true); + List dispatchpriceTicketMaterialList = new ArrayList<>(); + List dispatchpriceTicketStoreList = new ArrayList<>(); + if(storeIdList != null && storeIdList.size() > 0){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",storeIdList)); + List stores = storeDao.getList(tenantId,criteria,true); + for(Store store:stores){ + DispatchpriceTicketStore tstore = new DispatchpriceTicketStore(); + tstore.setTenantId(tenantId); + tstore.setTicketId(dispatchpriceTicket.getId()); + tstore.setStoreId(store.getId()); + tstore.setStoreNo(store.getNo()); + tstore.setStoreName(store.getName()); + tstore.setCreateUser(dispatchpriceTicket.getModifyUser()); + dispatchpriceTicketStoreList.add(tstore); + } + } + + Map hqPriceMap = new HashMap<>(); + for(String hPrice : hqPriceList){ + String key = hPrice.split("-")[0]; + String price = hPrice.split("-")[1]; + hqPriceMap.put(key,price); + } + Map newPriceMap = new HashMap<>(); + for(String price : priceList){ + String key = price.split("-")[0]; + String prices = price.split("-")[1]; + newPriceMap.put(key,prices); + } + Map descMap = new HashMap<>(); + for(String desc:descriptionList){ + String key = desc.split("-")[0]; + String value = desc.split("-")[1]; + descMap.put(key,value); + } + + + if(specIdList != null && specIdList.size() > 0){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ps.id",specIdList)); + List productSpecs = productSpecDao.getListWithProduct(tenantId,criteria,true); + Map spp = getProductRatioMap(tenantId); + int x = 0; + for(ProductSpec spec : productSpecs){ + DispatchpriceTicketMaterial material = new DispatchpriceTicketMaterial(); + material.setTenantId(tenantId); + material.setTicketId(dispatchpriceTicket.getId()); + material.setProductId(spec.getProductId()); + material.setProductNo(spec.getProductNo()); + material.setProductName(spec.getProductName()); + material.setSpecId(spec.getId()); + material.setSpecName(spec.getName()); + material.setProductDescription(spec.getProductDescription()); + material.setDispatchUnitId(spp.get(spec.getProductId()).getDispatchUnitId()); + material.setHdispatchPrice(Double.parseDouble(hqPriceMap.get(spec.getId()))); + material.setDispatchPrice(Double.parseDouble(newPriceMap.get(spec.getId()))); + material.setCreateUser(dispatchpriceTicket.getModifyUser()); + if(StringUtils.isNotBlank(descMap.get(spec.getId()))) { + material.setDescription(descMap.get(spec.getId())); + } + dispatchpriceTicketMaterialList.add(material); + x++; + } + } + if(dispatchpriceTicketStoreList.size() > 0){ + dispatchpriceTicketStoreDao.save(tenantId,dispatchpriceTicketStoreList); + } + if(dispatchpriceTicketMaterialList.size() > 0){ + dispatchpriceTicketMaterialDao.save(tenantId,dispatchpriceTicketMaterialList); + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicketStatus(String tenantId, DispatchpriceTicket dispatchpriceTicket, String status,String operatorName) throws Exception{ + Integer i = 0; + try{ + if("1".equals(status)){//审核; + + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",dispatchpriceTicket.getId())); + List storeList = dispatchpriceTicketStoreDao.getList(tenantId,criteria,true); + List materialList = dispatchpriceTicketMaterialDao.getList(tenantId,criteria,true); + Map map = new HashMap<>(); + List storeIds = new ArrayList<>(); + for(DispatchpriceTicketStore store: storeList){ + storeIds.add(store.getStoreId()); + } + for(DispatchpriceTicketMaterial material : materialList){ + map.put(material.getSpecId(),material.getDispatchPrice()); + } + List spUpdateList = new ArrayList<>(); + + for(String storeId : storeIds){ + List storeProducts = storeProductDao.findList(tenantId,"storeId",storeId,true); + if(CollectionUtils.isNotEmpty(storeProducts)){ + for(StoreProduct sp : storeProducts){ + String key = sp.getSpecId(); + if(map.containsKey(key)){ + StoreProduct sproduct = new StoreProduct(); + sproduct.setId(sp.getId()); + sproduct.setDispatchPrice(map.get(sp.getSpecId())); + sproduct.setModifyUser(operatorName); + sproduct.setModifyDate(new Date()); + spUpdateList.add(sproduct); + if(spUpdateList.size()%200==0){ + storeProductDao.update(tenantId,spUpdateList); + spUpdateList = new ArrayList<>(); + } + } + } + } + } + if(spUpdateList.size() > 0){ + storeProductDao.update(tenantId,spUpdateList); + } + + dispatchpriceTicket.setStatus(1); + dispatchpriceTicket.setCheckUser(operatorName); + dispatchpriceTicket.setCheckDate(new Date()); + dispatchpriceTicketDao.update(tenantId,dispatchpriceTicket,true); + i = 1; + }else if("2".equals(status)){//作废; + dispatchpriceTicket.setStatus(2); + dispatchpriceTicket.setModifyUser(operatorName); + dispatchpriceTicket.setModifyDate(new Date()); + dispatchpriceTicketDao.update(tenantId,dispatchpriceTicket,true); + i = 2; + } + }catch(Exception e){ + throw e; + } + return i; + } + + + + private Map getProductRatioMap(String tenantId) throws Exception{ + Map map = new HashMap<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.limit("0","10000")); + List productRatioList = productRatioDao.getList(tenantId,criteria,true); + if(productRatioList != null && productRatioList.size() > 0){ + for(ProductRatio ratio : productRatioList){ + map.put(ratio.getProductId(),ratio); + } + } + return map; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketStoreServiceImpl.java new file mode 100644 index 0000000..b9e7b14 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/DispatchpriceTicketStoreServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.DispatchpriceTicketStoreDao; +import com.jwsaas.entity.food.DispatchpriceTicketStore; +import com.jwsaas.service.food.DispatchpriceTicketStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketStoreServiceImpl") +public class DispatchpriceTicketStoreServiceImpl extends BaseServiceImpl implements DispatchpriceTicketStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"DispatchpriceTicketStoreDaoImpl") + private DispatchpriceTicketStoreDao dispatchpriceTicketStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.dispatchpriceTicketStoreDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeCategoryFoodServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeCategoryFoodServiceImpl.java new file mode 100644 index 0000000..c8bc797 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeCategoryFoodServiceImpl.java @@ -0,0 +1,45 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ElemeCategoryFoodDao; +import com.jwsaas.entity.food.ElemeCategoryFood; +import com.jwsaas.service.food.ElemeCategoryFoodService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ElemeCategoryFoodServiceImpl") +public class ElemeCategoryFoodServiceImpl extends BaseServiceImpl implements ElemeCategoryFoodService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ElemeCategoryFoodDaoImpl") + private ElemeCategoryFoodDao elemeCategoryFoodDao; + + @Override + public BaseDao getBaseDao() { + return this.elemeCategoryFoodDao; + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = elemeCategoryFoodDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeFoodCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeFoodCategoryServiceImpl.java new file mode 100644 index 0000000..df3689d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeFoodCategoryServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ElemeFoodCategoryDao; +import com.jwsaas.entity.food.ElemeFoodCategory; +import com.jwsaas.service.food.ElemeFoodCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ElemeFoodCategoryServiceImpl") +public class ElemeFoodCategoryServiceImpl extends BaseServiceImpl implements ElemeFoodCategoryService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ElemeFoodCategoryDaoImpl") + private ElemeFoodCategoryDao elemeFoodCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.elemeFoodCategoryDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeOrderDetailGroupServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeOrderDetailGroupServiceImpl.java new file mode 100644 index 0000000..7cbe7d0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeOrderDetailGroupServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ElemeOrderDetailGroupDao; +import com.jwsaas.entity.food.ElemeOrderDetailGroup; +import com.jwsaas.service.food.ElemeOrderDetailGroupService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ElemeOrderDetailGroupServiceImpl") +public class ElemeOrderDetailGroupServiceImpl extends BaseServiceImpl implements ElemeOrderDetailGroupService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ElemeOrderDetailGroupDaoImpl") + private ElemeOrderDetailGroupDao elemeOrderDetailGroupDao; + + @Override + public BaseDao getBaseDao() { + return this.elemeOrderDetailGroupDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeOrderDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeOrderDetailServiceImpl.java new file mode 100644 index 0000000..c3c41b2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ElemeOrderDetailServiceImpl.java @@ -0,0 +1,81 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.alibaba.dubbo.common.utils.CollectionUtils; +import com.jwsaas.cache.CacheService; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ElemeOrderDetailDao; +import com.jwsaas.dao.food.ElemeOrderDetailGroupDao; +import com.jwsaas.entity.food.ElemeOrderDetail; +import com.jwsaas.entity.food.ElemeOrderDetailGroup; +import com.jwsaas.service.food.ElemeOrderDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ElemeOrderDetailServiceImpl") +public class ElemeOrderDetailServiceImpl extends BaseServiceImpl implements ElemeOrderDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ElemeOrderDetailDaoImpl") + private ElemeOrderDetailDao elemeOrderDetailDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ElemeOrderDetailGroupDaoImpl") + private ElemeOrderDetailGroupDao elemeOrderDetailGroupDao; + + @Resource + private CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.elemeOrderDetailDao; + } + + @Override + public Integer saveDetail(String tenantId, ElemeOrderDetail entity, List list) throws Exception { + try { + Object noValue = cacheService.get(tenantId, "eleme_" + entity.getStoreId() + entity.getOrderId()); + if (noValue == null || "".equals(noValue)) { + cacheService.set(tenantId, "eleme_" + entity.getStoreId() + entity.getOrderId(), entity.getOrderId(), 172800); + this.elemeOrderDetailDao.save(tenantId, entity, true); + if (!CollectionUtils.isEmpty(list)) { + this.elemeOrderDetailGroupDao.save(tenantId, list); + } + } + } catch (Exception e) { + try { + cacheService.del(tenantId, "eleme_" + entity.getStoreId() + entity.getOrderId()); + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + return 0; + } + + @Override + public Integer updateDetail(String tenantId, ElemeOrderDetail entity, List list) throws Exception { + this.elemeOrderDetailDao.update(tenantId, entity, true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("orderId", entity.getOrderId())); + this.elemeOrderDetailGroupDao.delete(tenantId, criteria, true); + if (!CollectionUtils.isEmpty(list)) { + this.elemeOrderDetailGroupDao.save(tenantId, list); + } + return 0; + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) throws Exception { + try { + return elemeOrderDetailDao.getListReportDataSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ErpPosSetServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ErpPosSetServiceImpl.java new file mode 100644 index 0000000..c500843 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ErpPosSetServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ErpPosSetDao; +import com.jwsaas.entity.food.ErpPosSet; +import com.jwsaas.service.food.ErpPosSetService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ErpPosSetServiceImpl") +public class ErpPosSetServiceImpl extends BaseServiceImpl implements ErpPosSetService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ErpPosSetDaoImpl") + private ErpPosSetDao erpPosSetDao; + + @Override + public BaseDao getBaseDao() { + return this.erpPosSetDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/FeeItemServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/FeeItemServiceImpl.java new file mode 100644 index 0000000..76bee0f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/FeeItemServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.FeeItemDao; +import com.jwsaas.entity.food.FeeItem; +import com.jwsaas.service.food.FeeItemService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "FeeItemServiceImpl") +public class FeeItemServiceImpl extends BaseServiceImpl implements FeeItemService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "FeeItemDaoImpl") + private FeeItemDao feeItemDao; + + @Override + public BaseDao getBaseDao() { + return this.feeItemDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/KdsPlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/KdsPlanServiceImpl.java new file mode 100644 index 0000000..32113a2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/KdsPlanServiceImpl.java @@ -0,0 +1,129 @@ +package com.jwsaas.service.food.impl; + + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import javax.annotation.Resource; + +import com.alibaba.dubbo.common.utils.CollectionUtils; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductKdsPlanDao; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.KdsPlanDao; +import com.jwsaas.entity.food.KdsPlan; +import com.jwsaas.service.food.KdsPlanService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"KdsPlanServiceImpl") +public class KdsPlanServiceImpl extends BaseServiceImpl implements KdsPlanService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"KdsPlanDaoImpl") + private KdsPlanDao kdsPlanDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductKdsPlanDaoImpl") + private ProductKdsPlanDao productKdsPlanDao; + + @Override + public BaseDao getBaseDao() { + return this.kdsPlanDao; + } + + @Override + public List getListBystoreId(String tenantId, String storeId) throws Exception { + try { + return kdsPlanDao.getListBystoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public KdsPlan saveKdsPlanAndStoreIds(String tenantId, KdsPlan kdsPlan, String storeIds) throws Exception { + try{ + kdsPlan = kdsPlanDao.save(tenantId,kdsPlan,true); + String planId = kdsPlan.getId(); + if(StringUtils.isNotBlank(storeIds)){ + List list = Arrays.asList(storeIds.split(",")); + List kitPlans = new ArrayList<>(); + for(String id : list){ + KdsPlan kp = new KdsPlan(); + kp.setId(planId); + kp.setStoreId(id); + kitPlans.add(kp); + } + kdsPlanDao.saveKdsPlanStoreRelation(tenantId,kitPlans); + } + }catch(Exception e){ + throw e; + } + return kdsPlan; + } + + @Override + public List getKdsPlanStoreIdsByPlanId(String tenantId, String id) throws Exception { + try { + return kdsPlanDao.getKdsPlanStoreIdsByPlanId(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateKdsPlanStoreRelation(String tenantId, KdsPlan kdsPlan, String storeIds) throws Exception { + Integer i = 0; + try{ + kdsPlanDao.update(tenantId,kdsPlan,true); + String planId = kdsPlan.getId(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("planId",planId)); + criteria.add(Restrictions.eq("tenantId",tenantId)); + kdsPlanDao.deleteKdsPlanStoreByCriteria(tenantId,criteria,true); + if(StringUtils.isNotBlank(storeIds)){ + List list = Arrays.asList(storeIds.split(",")); + List kitPlens = new ArrayList<>(); + for(String id : list){ + KdsPlan kp = new KdsPlan(); + kp.setId(planId); + kp.setStoreId(id); + kitPlens.add(kp); + } + Integer n = kdsPlanDao.saveKdsPlanStoreRelation(tenantId,kitPlens); + } + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteKdsPlanAndRelationsByIds(String tenantId, List planIds)throws Exception { + Integer i = 0; + try{ + if(CollectionUtils.isNotEmpty(planIds)){ + for(String id : planIds){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("planId",id)); + kdsPlanDao.deleteKdsPlanStoreByCriteria(tenantId,criteria); + + //删除门店商品厨显设置信息; + criteria = new Criteria(); + criteria.add(Restrictions.or(Restrictions.eq("chuxian",id),Restrictions.eq("chupin",id))); + productKdsPlanDao.delete(tenantId,criteria); + + kdsPlanDao.delete(tenantId,id); + i++; + } + } + }catch(Exception e){ + throw e; + } + return i; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/KitPlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/KitPlanServiceImpl.java new file mode 100644 index 0000000..ffbd0b7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/KitPlanServiceImpl.java @@ -0,0 +1,136 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.alibaba.dubbo.common.utils.CollectionUtils; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductKitPlanDao; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.KitPlanDao; +import com.jwsaas.entity.food.KitPlan; +import com.jwsaas.service.food.KitPlanService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"KitPlanServiceImpl") +public class KitPlanServiceImpl extends BaseServiceImpl implements KitPlanService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"KitPlanDaoImpl") + private KitPlanDao kitPlanDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductKitPlanDaoImpl") + private ProductKitPlanDao productKitPlanDao; + + @Override + public BaseDao getBaseDao() { + return this.kitPlanDao; + } + + @Override + public KitPlan saveKitPlanAndRelation(String tenantId, KitPlan kitPlan, String storeIds) throws Exception{ + try{ + kitPlan = kitPlanDao.save(tenantId,kitPlan); + String planId = kitPlan.getId(); + if(StringUtils.isNotBlank(storeIds)){ + List list = Arrays.asList(storeIds.split(",")); + List kitPlens = new ArrayList<>(); + for(String id : list){ + KitPlan kp = new KitPlan(); + kp.setTenantId(tenantId); + kp.setId(planId); + kp.setStoreId(id); + kitPlens.add(kp); + } + Integer i = kitPlanDao.saveKitPlanStoreRelation(tenantId,kitPlens); + } + }catch(Exception e){ + throw e; + } + return kitPlan; + } + + @Override + public List getKitPlanStoreIdsByPlanId(String tenantId, String id) throws Exception { + try { + return kitPlanDao.getKitPlanStoreIdsByPlanId(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateKitPlanStoreRelation(String tenantId, KitPlan kitPlan, String storeIds) throws Exception { + Integer i = 0; + try{ + kitPlanDao.update(tenantId,kitPlan); + String planId = kitPlan.getId(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("planId",planId)); + criteria.add(Restrictions.eq("tenantId",tenantId)); + kitPlanDao.deleteKitPlanStoreByCriteria(tenantId,criteria); + if(StringUtils.isNotBlank(storeIds)){ + List list = Arrays.asList(storeIds.split(",")); + List kitPlens = new ArrayList<>(); + for(String id : list){ + KitPlan kp = new KitPlan(); + kp.setId(planId); + kp.setStoreId(id); + kitPlens.add(kp); + } + Integer n = kitPlanDao.saveKitPlanStoreRelation(tenantId,kitPlens); + } + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteKitPlanAndRelationsByIds(String tenantId, List planIds) throws Exception{ + Integer i = 0; + try{ + if(CollectionUtils.isNotEmpty(planIds)){ + for(String id : planIds){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("planId",id)); + kitPlanDao.deleteKitPlanStoreByCriteria(tenantId,criteria); + //删除门店商品厨打设置信息; + criteria = new Criteria(); + criteria.add(Restrictions.or(Restrictions.eq("chuda",id),Restrictions.eq("chupin",id))); + productKitPlanDao.delete(tenantId,criteria); + kitPlanDao.delete(tenantId,id); + i++; + } + } + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public List getListBystoreId(String tenantId, String storeId) throws Exception{ + try { + return kitPlanDao.getListBystoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveRelations(String tenantId, List plans) throws Exception { + try { + return kitPlanDao.saveKitPlanStoreRelation(tenantId, plans); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MakeBurdenServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MakeBurdenServiceImpl.java new file mode 100644 index 0000000..74631ec --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MakeBurdenServiceImpl.java @@ -0,0 +1,147 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MakeBurdenDao; +import com.jwsaas.entity.food.MakeBurden; +import com.jwsaas.entity.food.MakeDetail; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.MakeBurdenService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "MakeBurdenServiceImpl") +public class MakeBurdenServiceImpl extends BaseServiceImpl implements MakeBurdenService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "MakeBurdenDaoImpl") + private MakeBurdenDao makeBurdenDao; + + @Override + public BaseDao getBaseDao() { + return this.makeBurdenDao; + } + + @Override + public Pager getPager4MakeDetail(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.makeBurdenDao.getPager4MakeDetail(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria) throws Exception { + try { + return this.makeBurdenDao.getListWithProduct(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByMakeIds(String tenantId, List makeIds) throws Exception { + try { + Assert.notEmpty(makeIds, "parameter 'makeIds' can't be null or empty!"); + int rows = 0; + for (String makeId : makeIds) { + rows += makeBurdenDao.delete(tenantId, "makeId", makeId); + } + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer update(String tenantId, List entity) throws Exception { + try { + Assert.notEmpty(entity, "parameter 'entity' can't be null or empty!"); + + String makeId = entity.get(0).getMakeId(); + String currentUser = entity.get(0).getCreateUser(); + Date currentDate = entity.get(0).getCreateDate() != null ? entity.get(0).getCreateDate() : new Date(); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("makeId", makeId)); + List oldList = this.makeBurdenDao.getList(tenantId, criteria, true); + List oldIdList = new ArrayList<>(); + for (MakeBurden oldBurden : oldList) { + oldIdList.add(oldBurden.getId()); + } + + List addList = new ArrayList<>(); + List updateList = new ArrayList<>(); + List delIdList = new ArrayList<>(); + + List newIdList = new ArrayList<>(); + for (int i = 0; i < entity.size(); i++) { + MakeBurden burden = entity.get(i); + if (StringUtils.isBlank(burden.getId())) { + addList.add(burden); + } else { + if (oldIdList.contains(burden.getId())) { + burden.setCreateUser(null); + burden.setModifyUser(currentUser); + burden.setModifyDate(currentDate); + updateList.add(burden); + + newIdList.add(burden.getId()); + } else { + burden.setId(null); + addList.add(burden); + } + } + } + + for (String oldId : oldIdList) { + if (!newIdList.contains(oldId)) { + delIdList.add(oldId); + } + } + + if (delIdList.size() > 0) { + this.makeBurdenDao.delete(tenantId, delIdList); + } + + if (addList.size() > 0) { + this.makeBurdenDao.save(tenantId, addList); + } + + if (updateList.size() > 0) { + this.makeBurdenDao.update(tenantId, updateList); + } + + return 1; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getMakeIdListHasBurden(String tenantId) throws Exception { + try { + return this.makeBurdenDao.getMakeIdListHasBurden(tenantId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MakeDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MakeDetailServiceImpl.java new file mode 100644 index 0000000..ee8abd4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MakeDetailServiceImpl.java @@ -0,0 +1,221 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.jwsaas.entity.food.MakeType; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MakeDetailDao; +import com.jwsaas.entity.food.MakeDetail; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.MakeDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "MakeDetailServiceImpl") +public class MakeDetailServiceImpl extends BaseServiceImpl implements MakeDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "MakeDetailDaoImpl") + private MakeDetailDao makeDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.makeDetailDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.makeDetailDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByProductId(String tenantId, String productId, Criteria criteria) throws Exception { + try { + return this.makeDetailDao.getListByProductId(tenantId, productId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveRelationProductMake(String tenantId, List productIdList, List makeDetailIdList) throws Exception { + try { + Assert.notEmpty(productIdList, "parameter 'productIdList' can't be null or empty!"); + Assert.notEmpty(makeDetailIdList, "parameter 'makeDetailIdList' can't be null or empty!"); + + Criteria criteria = null; + for (String productId : productIdList) { + for (String makeDetailId : makeDetailIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("makeId", makeDetailId)); + // 先删除 + this.makeDetailDao.deleteRelationProductMake(tenantId, criteria); + // 保存菜品私有做法信息 + this.makeDetailDao.saveRelationProductMake(tenantId, productId, makeDetailId); + } + } + } catch (Exception e) { + throw e; + } + } + + @Override + public void deleteRelationProductMake(String tenantId, String productId, List makeDetailIdList) throws Exception { + try { + Assert.notNull(productId, "parameter 'productId' can't be null or empty!"); + Assert.notEmpty(makeDetailIdList, "parameter 'makeDetailIdList' can't be null or empty!"); + + Criteria criteria = null; + for (String makeDetailId : makeDetailIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("makeId", makeDetailId)); + this.makeDetailDao.deleteRelationProductMake(tenantId, criteria); + } + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveRelationStoreMake(String tenantId, List storeIdList, List> makeDetailList) throws Exception { + try { + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + Assert.notEmpty(makeDetailList, "parameter 'makeDetailList' can't be null or empty!"); + + Criteria criteria = null; + for (String storeId : storeIdList) { + for (Map makeDetail : makeDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("makeId", makeDetail.get("makeId"))); + // 先删除 + this.makeDetailDao.deleteRelationStoreMake(tenantId, criteria); + // 保存门店做法信息 + this.makeDetailDao.saveRelationStoreMake(tenantId, storeId, makeDetail.get("makeId").toString(), Double.valueOf(makeDetail.get("addPrice").toString())); + } + } + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria) throws Exception { + try { + return this.makeDetailDao.getListByStoreId(tenantId, storeId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.makeDetailDao.getPagerByStoreId(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public void deleteRelationStoreMake(String tenantId, String storeId, List makeDetailIdList) throws Exception { + try { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notEmpty(makeDetailIdList, "parameter 'makeDetailIdList' can't be null or empty!"); + + Criteria criteria = null; + for (String makeDetailId : makeDetailIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("makeId", makeDetailId)); + this.makeDetailDao.deleteRelationStoreMake(tenantId, criteria); + } + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPager4Private(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = this.makeDetailDao.getPager4Private(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveByImpt(String tenantId, List dataList, int makeDetailNoLength, String currentUserName) throws Exception { + Integer i = 0; + try{ + List list = new ArrayList<>(); + String maxNo = makeDetailDao.selectMaxValueBatch(tenantId, "`no`"); + if(StringUtils.isEmpty(maxNo)){ + maxNo = "00"; + } + int maxNoInt = Integer.parseInt(maxNo); + + for(MakeDetail detail : dataList){ + detail.setTenantId(tenantId); + detail.setCreateUser(currentUserName); + detail.setCreateDate(new Date()); + if(StringUtils.isBlank(detail.getNo())) { + detail.setNo(getNextNo("" + maxNoInt, makeDetailNoLength)); + maxNoInt++; + } + detail.setDeleteFlag(0); + detail.setPrvFlag(0); + list.add(detail); + } + if(list.size() > 0){ + makeDetailDao.save(tenantId,list); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + private String getNextNo(String maxNo, int noLength) { + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + int maxNoInt = 0; + try { + maxNoInt = Integer.parseInt(maxNo); + } catch (Exception e) { + logger.error("字符串" + maxNo + "转换成数值出错!"); + } + String nextNo = StringUtils.leftPad("" + (maxNoInt + 1), noLength, "0"); + return nextNo; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MakeTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MakeTypeServiceImpl.java new file mode 100644 index 0000000..d7a92cc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MakeTypeServiceImpl.java @@ -0,0 +1,99 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MakeTypeDao; +import com.jwsaas.entity.food.MakeType; +import com.jwsaas.service.food.MakeTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"MakeTypeServiceImpl") +public class MakeTypeServiceImpl extends BaseServiceImpl implements MakeTypeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"MakeTypeDaoImpl") + private MakeTypeDao makeTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.makeTypeDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.makeTypeDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveByImpt(String tenantId, List dataList, int makeTypeNoLength, String currentUserName) throws Exception { + Integer i = 0; + try{ + List list = new ArrayList<>(); + String maxNo = makeTypeDao.selectMaxValueBatch(tenantId, "`no`"); + if(StringUtils.isEmpty(maxNo)){ + maxNo = "00"; + } + + int maxNoInt = Integer.parseInt(maxNo); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("deleteFlag",0)); + List types = makeTypeDao.getList(tenantId,new Criteria(),true); + List names = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(types)){ + for(MakeType type : types){ + names.add(type.getName()); + } + } + for(MakeType type : dataList){ + if(!names.contains(type.getName())){ + names.add(type.getName()); + + type.setTenantId(tenantId); + type.setCreateUser(currentUserName); + type.setCreateDate(new Date()); + type.setNo(getNextNo("" + maxNoInt,makeTypeNoLength)); + list.add(type); + maxNoInt++; + } + } + if(list.size() > 0){ + makeTypeDao.save(tenantId,list); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + + private String getNextNo(String maxNo, int noLength) { + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + int maxNoInt = 0; + try { + maxNoInt = Integer.parseInt(maxNo); + } catch (Exception e) { + logger.error("字符串" + maxNo + "转换成数值出错!"); + } + String nextNo = StringUtils.leftPad("" + (maxNoInt + 1), noLength, "0"); + return nextNo; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanFoodCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanFoodCategoryServiceImpl.java new file mode 100644 index 0000000..c421e39 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanFoodCategoryServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MeituanFoodCategoryDao; +import com.jwsaas.entity.food.MeituanFoodCategory; +import com.jwsaas.service.food.MeituanFoodCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"MeituanFoodCategoryServiceImpl") +public class MeituanFoodCategoryServiceImpl extends BaseServiceImpl implements MeituanFoodCategoryService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"MeituanFoodCategoryDaoImpl") + private MeituanFoodCategoryDao meituanFoodCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.meituanFoodCategoryDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanFoodServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanFoodServiceImpl.java new file mode 100644 index 0000000..9ac239a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanFoodServiceImpl.java @@ -0,0 +1,45 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MeituanFoodDao; +import com.jwsaas.entity.food.MeituanFood; +import com.jwsaas.service.food.MeituanFoodService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"MeituanFoodServiceImpl") +public class MeituanFoodServiceImpl extends BaseServiceImpl implements MeituanFoodService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"MeituanFoodDaoImpl") + private MeituanFoodDao meituanFoodDao; + + @Override + public BaseDao getBaseDao() { + return this.meituanFoodDao; + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = meituanFoodDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderExtraServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderExtraServiceImpl.java new file mode 100644 index 0000000..dcbd361 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderExtraServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MeituanOrderExtraDao; +import com.jwsaas.entity.food.MeituanOrderExtra; +import com.jwsaas.service.food.MeituanOrderExtraService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"MeituanOrderExtraServiceImpl") +public class MeituanOrderExtraServiceImpl extends BaseServiceImpl implements MeituanOrderExtraService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"MeituanOrderExtraDaoImpl") + private MeituanOrderExtraDao meituanOrderExtraDao; + + @Override + public BaseDao getBaseDao() { + return this.meituanOrderExtraDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderItemServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderItemServiceImpl.java new file mode 100644 index 0000000..fa4798b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderItemServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MeituanOrderItemDao; +import com.jwsaas.entity.food.MeituanOrderItem; +import com.jwsaas.service.food.MeituanOrderItemService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"MeituanOrderItemServiceImpl") +public class MeituanOrderItemServiceImpl extends BaseServiceImpl implements MeituanOrderItemService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"MeituanOrderItemDaoImpl") + private MeituanOrderItemDao meituanOrderItemDao; + + @Override + public BaseDao getBaseDao() { + return this.meituanOrderItemDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderServiceImpl.java new file mode 100644 index 0000000..129654f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/MeituanOrderServiceImpl.java @@ -0,0 +1,67 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.cache.CacheService; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.MeituanOrderDao; +import com.jwsaas.dao.food.MeituanOrderExtraDao; +import com.jwsaas.dao.food.MeituanOrderItemDao; +import com.jwsaas.entity.food.MeituanOrder; +import com.jwsaas.entity.food.MeituanOrderExtra; +import com.jwsaas.entity.food.MeituanOrderItem; +import com.jwsaas.service.food.MeituanOrderService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "MeituanOrderServiceImpl") +public class MeituanOrderServiceImpl extends BaseServiceImpl implements MeituanOrderService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "MeituanOrderDaoImpl") + private MeituanOrderDao meituanOrderDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "MeituanOrderItemDaoImpl") + private MeituanOrderItemDao meituanOrderItemDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "MeituanOrderExtraDaoImpl") + private MeituanOrderExtraDao meituanOrderExtraDao; + + @Resource + private CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.meituanOrderDao; + } + + @Override + public Integer saveOrder(String tenantId, MeituanOrder entity, List itemList, List extraList) throws Exception { + try { + Object noValue = cacheService.get(tenantId, entity.getStoreId() + entity.getOrderId()); + if (noValue == null || "".equals(noValue)) { + cacheService.set(tenantId, entity.getStoreId() + entity.getOrderId(), entity.getOrderId(), 172800); + meituanOrderDao.save(tenantId, entity, true); + if (!CollectionUtils.isEmpty(itemList)) { + meituanOrderItemDao.save(tenantId, itemList); + } + if (!CollectionUtils.isEmpty(extraList)) { + meituanOrderExtraDao.save(tenantId, extraList); + } + } + + } catch (Exception e) { + try { + cacheService.del(tenantId, entity.getStoreId() + entity.getOrderId()); + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + return 0; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketDetailServiceImpl.java new file mode 100644 index 0000000..ff7cf53 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketDetailServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.OtherStorageOutTicketDetailDao; +import com.jwsaas.entity.food.OtherStorageOutTicketDetail; +import com.jwsaas.service.food.OtherStorageOutTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketDetailServiceImpl") +public class OtherStorageOutTicketDetailServiceImpl extends BaseServiceImpl implements OtherStorageOutTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketDetailDaoImpl") + private OtherStorageOutTicketDetailDao otherStorageOutTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.otherStorageOutTicketDetailDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketLogServiceImpl.java new file mode 100644 index 0000000..00d265b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.OtherStorageOutTicketLogDao; +import com.jwsaas.entity.food.OtherStorageOutTicketLog; +import com.jwsaas.service.food.OtherStorageOutTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketLogServiceImpl") +public class OtherStorageOutTicketLogServiceImpl extends BaseServiceImpl implements OtherStorageOutTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketLogDaoImpl") + private OtherStorageOutTicketLogDao otherStorageOutTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.otherStorageOutTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketServiceImpl.java new file mode 100644 index 0000000..51c6510 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageOutTicketServiceImpl.java @@ -0,0 +1,225 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.OtherStorageOutTicketDao; +import com.jwsaas.dao.food.OtherStorageOutTicketDetailDao; +import com.jwsaas.dao.food.OtherStorageOutTicketLogDao; +import com.jwsaas.dao.food.ProductBatchNegativeStockDao; +import com.jwsaas.dao.food.ProductBatchNumberDao; +import com.jwsaas.dao.food.ProductBatchStockChangeDao; +import com.jwsaas.dao.food.ProductBatchStockDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductStockDao; +import com.jwsaas.dao.food.ProductStockLogDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.SupplierDao; +import com.jwsaas.entity.food.OtherStorageOutTicket; +import com.jwsaas.entity.food.OtherStorageOutTicketDetail; +import com.jwsaas.entity.food.OtherStorageOutTicketLog; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.service.food.OtherStorageOutTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketServiceImpl") +public class OtherStorageOutTicketServiceImpl extends BaseServiceImpl implements OtherStorageOutTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketDaoImpl") + private OtherStorageOutTicketDao otherStorageOutTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketDetailDaoImpl") + private OtherStorageOutTicketDetailDao otherStorageOutTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageOutTicketLogDaoImpl") + private OtherStorageOutTicketLogDao otherStorageOutTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockChangeDaoImpl") + private ProductBatchStockChangeDao productBatchStockChangeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") + private ProductStockDao productStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogDaoImpl") + private ProductStockLogDao productStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDaoImpl") + private ProductBatchNegativeStockDao productBatchNegativeStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SupplierDaoImpl") + private SupplierDao supplierDao; + + @Override + public BaseDao getBaseDao() { + return this.otherStorageOutTicketDao; + } + + @Override + public OtherStorageOutTicket saveTicket(String tenantId, OtherStorageOutTicket entity, List ticketDetailList, OtherStorageOutTicketLog ticketLog) throws Exception { + try { + entity = this.otherStorageOutTicketDao.save(tenantId, entity, true); + + for (OtherStorageOutTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.otherStorageOutTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.otherStorageOutTicketLogDao.save(tenantId, ticketLog, true); + + return entity; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Criteria criteria = null; + for (String ticketId : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.otherStorageOutTicketDetailDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.otherStorageOutTicketLogDao.delete(tenantId, criteria, true); + } + + return this.otherStorageOutTicketDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, OtherStorageOutTicket entity, List ticketDetailList, OtherStorageOutTicketLog ticketLog) throws Exception { + try { + int rows = this.otherStorageOutTicketDao.update(tenantId, entity, true); + + Criteria criteria = null; + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", entity.getId())); + this.otherStorageOutTicketDetailDao.delete(tenantId, criteria, true); + + for (OtherStorageOutTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.otherStorageOutTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.otherStorageOutTicketLogDao.save(tenantId, ticketLog, true); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @SuppressWarnings("unchecked") + @Override + public Integer updateStatus(String tenantId, OtherStorageOutTicket ticket, OtherStorageOutTicketLog ticketLog) throws Exception { + try { + int rows = this.otherStorageOutTicketDao.update(tenantId, ticket); + + ticketLog.setCreateUser(ticket.getCheckMan()); + ticketLog.setTenantId(tenantId); + ticketLog.setCreateDate(ticket.getCheckDate()); + this.otherStorageOutTicketLogDao.save(tenantId, ticketLog); + + OtherStorageOutTicket ticketInfo = this.otherStorageOutTicketDao.get(tenantId, ticket.getId()); + // 审核通过时,减少库存;反审核,增加库存 + if (ticketLog.getType() == 2) { + // 审核操作 + if (ticket.getStatus() == 2) { + // 审核通过,商品出库,减少库存 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketInfo.getId())); + criteria.add(Restrictions.eq("ticketNo", ticketInfo.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List ticketDetailList = this.otherStorageOutTicketDetailDao.getList(tenantId, criteria); + String storageId = ticketInfo.getStorageId(); + String storageName = ticketInfo.getStorageName(); + + for (OtherStorageOutTicketDetail ticketDetail : ticketDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + // 5-其他出库; + Integer ticketType = 5; + String ticketNo = ticketInfo.getNo(); + + // 出库商品自动分配批次,先进先出,不允许负库存出库 + Map allocateBatchesMap = productBatchStockDao.allocateBatches(tenantId, storageId, ticketDetail.getProductId(), ticketDetail.getProductNo(), + ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketDetail.getPrice(), + ticketDetail.getAmount(), false, productBatchNumberDao, productRatioDao, productBatchStockDao); + + boolean allocateResult = (Boolean) allocateBatchesMap.get("status"); + Map allocateData = (Map) allocateBatchesMap.get("data"); + + if (!allocateResult) { + throw new Exception(ticketDetail.getProductName() + (StringUtils.isNotBlank(ticketDetail.getSpecName()) ? "[" + ticketDetail.getSpecName() + "]" : "") + "库存不足"); + } + + // 批次冲减明细 + Map batches = allocateData; + + // 产品的入库价格,做为出库价格处理 + BigDecimal quantity = BigDecimal.ZERO;// 出库数量 + BigDecimal price = BigDecimal.ZERO;// 出库单价 + BigDecimal totalAmount = BigDecimal.ZERO;// 出库总金额 + for (ProductBatchStock batchStock : batches.keySet()) { + quantity = MathUtil.add(quantity, new BigDecimal(batches.get(batchStock))); + totalAmount = MathUtil.add(totalAmount, MathUtil.multiply(new BigDecimal(batches.get(batchStock)), new BigDecimal(batchStock.getPrice()))); + } + + price = MathUtil.divide(totalAmount, quantity); + + productStockDao.stockOut(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), ticketDetail.getSpecId(), + ticketDetail.getSpecName(), ticketDetail.getProductDescription(), price.doubleValue(), quantity.doubleValue(), totalAmount.doubleValue(), ticket.getModifyUser(), + ticketType, ticketNo, null, ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao, + supplierDao); + + } + + } + } else if (ticketLog.getType() == 4) { + // 反审核,商品入库 + throw new Exception("该单据不支持反审核操作"); + } + + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketDetailServiceImpl.java new file mode 100644 index 0000000..f659cbc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketDetailServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.OtherStorageTicketDetailDao; +import com.jwsaas.entity.food.OtherStorageTicketDetail; +import com.jwsaas.service.food.OtherStorageTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketDetailServiceImpl") +public class OtherStorageTicketDetailServiceImpl extends BaseServiceImpl implements OtherStorageTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketDetailDaoImpl") + private OtherStorageTicketDetailDao otherStorageTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.otherStorageTicketDetailDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketLogServiceImpl.java new file mode 100644 index 0000000..58b414d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.OtherStorageTicketLogDao; +import com.jwsaas.entity.food.OtherStorageTicketLog; +import com.jwsaas.service.food.OtherStorageTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketLogServiceImpl") +public class OtherStorageTicketLogServiceImpl extends BaseServiceImpl implements OtherStorageTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketLogDaoImpl") + private OtherStorageTicketLogDao otherStorageTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.otherStorageTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketServiceImpl.java new file mode 100644 index 0000000..3b16c4e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/OtherStorageTicketServiceImpl.java @@ -0,0 +1,247 @@ +package com.jwsaas.service.food.impl; + +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.OtherStorageTicketDao; +import com.jwsaas.dao.food.OtherStorageTicketDetailDao; +import com.jwsaas.dao.food.OtherStorageTicketLogDao; +import com.jwsaas.dao.food.ProductBatchNegativeStockDao; +import com.jwsaas.dao.food.ProductBatchNumberDao; +import com.jwsaas.dao.food.ProductBatchStockChangeDao; +import com.jwsaas.dao.food.ProductBatchStockDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductStockDao; +import com.jwsaas.dao.food.ProductStockLogDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.SupplierDao; +import com.jwsaas.entity.food.OtherStorageTicket; +import com.jwsaas.entity.food.OtherStorageTicketDetail; +import com.jwsaas.entity.food.OtherStorageTicketLog; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.service.food.OtherStorageTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketServiceImpl") +public class OtherStorageTicketServiceImpl extends BaseServiceImpl implements OtherStorageTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketDaoImpl") + private OtherStorageTicketDao otherStorageTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketDetailDaoImpl") + private OtherStorageTicketDetailDao otherStorageTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "OtherStorageTicketLogDaoImpl") + private OtherStorageTicketLogDao otherStorageTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") + private ProductStockDao productStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogDaoImpl") + private ProductStockLogDao productStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockChangeDaoImpl") + private ProductBatchStockChangeDao productBatchStockChangeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDaoImpl") + private ProductBatchNegativeStockDao productBatchNegativeStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SupplierDaoImpl") + private SupplierDao supplierDao; + + @Override + public BaseDao getBaseDao() { + return this.otherStorageTicketDao; + } + + @Override + public OtherStorageTicket saveTicket(String tenantId, OtherStorageTicket entity, List ticketDetailList, OtherStorageTicketLog ticketLog) throws Exception { + try { + entity = this.otherStorageTicketDao.save(tenantId, entity, true); + + for (OtherStorageTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.otherStorageTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.otherStorageTicketLogDao.save(tenantId, ticketLog, true); + + return entity; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Criteria criteria = null; + for (String ticketId : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.otherStorageTicketDetailDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.otherStorageTicketLogDao.delete(tenantId, criteria, true); + } + + return this.otherStorageTicketDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, OtherStorageTicket entity, List ticketDetailList, OtherStorageTicketLog ticketLog) throws Exception { + try { + int rows = this.otherStorageTicketDao.update(tenantId, entity, true); + + Criteria criteria = null; + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", entity.getId())); + this.otherStorageTicketDetailDao.delete(tenantId, criteria, true); + + for (OtherStorageTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.otherStorageTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.otherStorageTicketLogDao.save(tenantId, ticketLog, true); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStatus(String tenantId, OtherStorageTicket ticket, OtherStorageTicketLog ticketLog) throws Exception { + try { + int rows = this.otherStorageTicketDao.update(tenantId, ticket); + + ticketLog.setCreateUser(ticket.getCheckMan()); + ticketLog.setTenantId(tenantId); + ticketLog.setCreateDate(ticket.getCheckDate()); + this.otherStorageTicketLogDao.save(tenantId, ticketLog); + + OtherStorageTicket ticketInfo = this.otherStorageTicketDao.get(tenantId, ticket.getId()); + // 审核通过时,增加库存;反审核,减少库存 + if (ticketLog.getType() == 2) { + // 审核操作 + if (ticket.getStatus() == 2) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketInfo.getId())); + criteria.add(Restrictions.eq("ticketNo", ticketInfo.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List ticketDetailList = this.otherStorageTicketDetailDao.getList(tenantId, criteria); + String storageId = ticketInfo.getStorageId(); + String storageName = ticketInfo.getStorageName(); + + for (OtherStorageTicketDetail ticketDetail : ticketDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + // 4-其他入库; + Integer ticketType = 4; + String ticketNo = ticketInfo.getNo(); + // 产品入库 - 批次管理 + productStockDao.stockIn(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), ticketDetail.getSpecId(), + ticketDetail.getSpecName(), ticketDetail.getProductDescription(), null, null, ticketDetail.getDispatchUnitId(), ticketDetail.getPrice(), ticketDetail.getAmount(), + ticketDetail.getMoney(), null, null, ticket.getModifyUser(), ticketDetail.getBatchNo(), ticketType, ticketNo, ratio, productBatchNumberDao, productBatchStockDao, + productStockLogDao); + } + + } + } else if (ticketLog.getType() == 4) { + // 反审核,商品出库 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketInfo.getId())); + criteria.add(Restrictions.eq("ticketNo", ticketInfo.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List ticketDetailList = this.otherStorageTicketDetailDao.getList(tenantId, criteria); + String storageId = ticketInfo.getStorageId(); + String storageName = ticketInfo.getStorageName(); + + for (OtherStorageTicketDetail ticketDetail : ticketDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + // 4-其他入库; + Integer ticketType = 4; + String ticketNo = ticketInfo.getNo(); + + // 查询单据审核通过时入库的批次信息 + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketType", ticketType)); + criteria.add(Restrictions.eq("ticketNo", ticketNo)); + criteria.add(Restrictions.eq("storageId", storageId)); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + criteria.add(Restrictions.eq("specId", ticketDetail.getSpecId())); + criteria.add(Restrictions.eq("inventoryUnitId", ratio.getDispatchUnitId())); + List productBatchStockList = productBatchStockDao.getList(tenantId, criteria); + + boolean dataValid = false; + if (CollectionUtils.isNotEmpty(productBatchStockList) && productBatchStockList.size() == 1) { + ProductBatchStock productBatchStock = productBatchStockList.get(0); + if (MathUtil.eq(productBatchStock.getRemainQuantity(), ticketDetail.getAmount())) { + dataValid = true; + } + } + + if (!dataValid) { + throw new Exception("该单据所包含商品已产生出库记录,不允许执行反审核操作!"); + } + + // 批次冲减明细 + Map batches = new LinkedHashMap<>(); + batches.put(productBatchStockList.get(0), ticketDetail.getAmount()); + + // 产品出库 - 批次管理 + productStockDao.stockOut(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), ticketDetail.getSpecId(), + ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketDetail.getPrice(), ticketDetail.getAmount(), ticketDetail.getMoney(), ticket.getModifyUser(), + ticketType, ticketNo, null, ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao, + supplierDao); + + } + + } + + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PayModeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PayModeServiceImpl.java new file mode 100644 index 0000000..0cfd135 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PayModeServiceImpl.java @@ -0,0 +1,158 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PayModeDao; +import com.jwsaas.entity.food.PayMode; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.PayModeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PayModeServiceImpl") +public class PayModeServiceImpl extends BaseServiceImpl implements PayModeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PayModeDaoImpl") + private PayModeDao payModeDao; + + @Override + public BaseDao getBaseDao() { + return this.payModeDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.payModeDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveRelationStorePayMode(String tenantId, List storeIdList, List> payModeList) throws Exception { + try { + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + Assert.notEmpty(payModeList, "parameter 'payModeList' can't be null or empty!"); + + Criteria criteria = null; + for (String storeId : storeIdList) { + for (Map payMode : payModeList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("modeId", payMode.get("modeId"))); + // 先删除 + this.payModeDao.deleteRelationStorePayMode(tenantId, criteria); + // 保存门店做法信息 + this.payModeDao.saveRelationStorePayMode(tenantId, storeId, payMode); + } + } + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.payModeDao.getPagerByStoreId(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public void deleteRelationStorePayMode(String tenantId, String storeId, List payModeIdList) throws Exception { + try { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notEmpty(payModeIdList, "parameter 'payModeIdList' can't be null or empty!"); + + Criteria criteria = null; + for (String payModeId : payModeIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("modeId", payModeId)); + this.payModeDao.deleteRelationStorePayMode(tenantId, criteria); + } + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreId(String tenantId, String storeId) throws Exception { + try { + List storeSource = payModeDao.getListByStoreId(tenantId, storeId); + if (CollectionUtils.isEmpty(storeSource)) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("deleteFlag", 0)); + storeSource = payModeDao.getList(tenantId, criteria); + } + return storeSource; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getAllStorePayModeList(String tenantId) throws Exception { + try{ + return this.payModeDao.getAllStorePayModeList(tenantId); + }catch(Exception e){ + throw e; + } + } + + @Override + public List getListStorePayModePeriodDiscount(String tenantId, Criteria criteria) throws Exception { + try{ + return this.payModeDao.getListStorePayModePeriodDiscount(tenantId,criteria); + }catch(Exception e){ + throw e; + } + } + + @Override + public void saveRelationStorePayModeWithPeriodDiscount(String tenantId, List storeIdList, List> payModeList, Map map) throws Exception { + try { + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + Assert.notEmpty(payModeList, "parameter 'payModeList' can't be null or empty!"); + + Criteria criteria = null; + for (String storeId : storeIdList) { + for (Map payMode : payModeList) { + String key = storeId+"-"+payMode.get("modeId"); + if(map.containsKey(key)){ + payMode.put("periodDiscount",map.get(key)); + } + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("modeId", payMode.get("modeId"))); + // 先删除 + this.payModeDao.deleteRelationStorePayMode(tenantId, criteria); + // 保存门店做法信息 + this.payModeDao.saveRelationStorePayMode(tenantId, storeId, payMode); + } + } + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PayModeStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PayModeStoreServiceImpl.java new file mode 100644 index 0000000..81713a7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PayModeStoreServiceImpl.java @@ -0,0 +1,179 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PayModeStoreDao; +import com.jwsaas.entity.food.PayModeStore; +import com.jwsaas.service.food.PayModeStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PayModeStoreServiceImpl") +public class PayModeStoreServiceImpl extends BaseServiceImpl implements PayModeStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PayModeStoreDaoImpl") + private PayModeStoreDao payModeStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.payModeStoreDao; + } + + @Override + public Integer saveRelationStorePayMode(String tenantId, List storeIds, PayModeStore payMode, String userName) throws Exception { + Integer i = 0; + try{ + if(CollectionUtils.isNotEmpty(storeIds)){ + List list = new ArrayList<>(); + for(String storeId : storeIds){ + PayModeStore payModeStore = new PayModeStore(); + payModeStore.setTenantId(tenantId); + payModeStore.setStoreId(storeId); + payModeStore.setModeId(payMode.getModeId()); + payModeStore.setShortcut(payMode.getShortcut()); + payModeStore.setPointFlag(payMode.getPointFlag()); + payModeStore.setFrontFlag(payMode.getFrontFlag()); + payModeStore.setFixeAmount(payMode.getFixeAmount()); + payModeStore.setDiscount(payMode.getDiscount()); + payModeStore.setOtherRateType(2); + payModeStore.setOtherRateValue(null); + payModeStore.setPeriodDiscount(payMode.getPeriodDiscount()); + list.add(payModeStore); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",storeId)); + criteria.add(Restrictions.eq("modeId",payMode.getModeId())); + payModeStoreDao.delete(tenantId,criteria,true); + } + i = payModeStoreDao.save(tenantId,list); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.payModeStoreDao.getPagerByStoreId(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtends(String tenantId, Criteria criteria) throws Exception { + try { + return payModeStoreDao.getListExtends(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveCopyStorePayMode(String tenantId, String sourceStoreId, List targetStoreIds, String userName,boolean isCover) throws Exception { + Integer i = 0; + try{ + //查找源门店支付方式; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",sourceStoreId)); + List sourceStorePayModes = payModeStoreDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(sourceStorePayModes)){ + if(isCover){ + //覆盖保存; + criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",targetStoreIds)); + payModeStoreDao.delete(tenantId,criteria,true); + List payModeStoreList = new ArrayList<>(); + for(String targetStoreId : targetStoreIds){ + for(PayModeStore payMode : sourceStorePayModes){ + PayModeStore pms = new PayModeStore(); + pms.setTenantId(tenantId); + pms.setStoreId(targetStoreId); + pms.setModeId(payMode.getModeId()); + pms.setShortcut(payMode.getShortcut()); + pms.setPointFlag(payMode.getPointFlag()); + pms.setFrontFlag(payMode.getFrontFlag()); + pms.setFixeAmount(payMode.getFixeAmount()); + pms.setDiscount(payMode.getDiscount()); + pms.setPeriodDiscount(payMode.getPeriodDiscount()); + payModeStoreList.add(pms); + } + } + payModeStoreDao.save(tenantId,payModeStoreList); + }else{ + //增量保存; + List payModeStoreList = new ArrayList<>(); + for(String targetStoreId : targetStoreIds){ + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",targetStoreId)); + List targetStorePayModes = payModeStoreDao.getList(tenantId,criteria,true); + if(CollectionUtils.isEmpty(targetStorePayModes)){ + for(PayModeStore payMode : sourceStorePayModes){ + PayModeStore pms = new PayModeStore(); + pms.setTenantId(tenantId); + pms.setStoreId(targetStoreId); + pms.setModeId(payMode.getModeId()); + pms.setShortcut(payMode.getShortcut()); + pms.setPointFlag(payMode.getPointFlag()); + pms.setFrontFlag(payMode.getFrontFlag()); + pms.setFixeAmount(payMode.getFixeAmount()); + pms.setDiscount(payMode.getDiscount()); + pms.setPeriodDiscount(payMode.getPeriodDiscount()); + payModeStoreList.add(pms); + } + }else{ + Set payModeIdSet = new HashSet<>(); + for(PayModeStore payModeStore : targetStorePayModes){ + payModeIdSet.add(payModeStore.getModeId()); + } + for(PayModeStore payMode : sourceStorePayModes){ + if(!payModeIdSet.contains(payMode.getModeId())){ + PayModeStore pms = new PayModeStore(); + pms.setTenantId(tenantId); + pms.setStoreId(targetStoreId); + pms.setModeId(payMode.getModeId()); + pms.setShortcut(payMode.getShortcut()); + pms.setPointFlag(payMode.getPointFlag()); + pms.setFrontFlag(payMode.getFrontFlag()); + pms.setFixeAmount(payMode.getFixeAmount()); + pms.setDiscount(payMode.getDiscount()); + pms.setPeriodDiscount(payMode.getPeriodDiscount()); + payModeStoreList.add(pms); + } + } + } + } + payModeStoreDao.save(tenantId,payModeStoreList); + } + i = 1; + }else{ + i = 2;//源门店没有支付方式; + } + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PayTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PayTypeServiceImpl.java new file mode 100644 index 0000000..05205ba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PayTypeServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PayTypeDao; +import com.jwsaas.entity.food.PayType; +import com.jwsaas.service.food.PayTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PayTypeServiceImpl") +public class PayTypeServiceImpl extends BaseServiceImpl implements PayTypeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PayTypeDaoImpl") + private PayTypeDao payTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.payTypeDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PaymentParameterServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PaymentParameterServiceImpl.java new file mode 100644 index 0000000..288bd92 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PaymentParameterServiceImpl.java @@ -0,0 +1,135 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PaymentParameterDao; +import com.jwsaas.entity.food.PaymentParameter; +import com.jwsaas.service.food.PaymentParameterService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PaymentParameterServiceImpl") +public class PaymentParameterServiceImpl extends BaseServiceImpl implements PaymentParameterService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PaymentParameterDaoImpl") + private PaymentParameterDao paymentParameterDao; + + @Override + public BaseDao getBaseDao() { + return this.paymentParameterDao; + } + + @Override + public List getPaymentParameterByStoreId(String tenantId, String storeId) throws Exception { + try { + return this.paymentParameterDao.getPaymentParameterByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer savePaymentAndStoreId(String tenantId, PaymentParameter parameter, List storeIds) { + Integer i = 0; + if (parameter != null) { + PaymentParameter payment = paymentParameterDao.save(tenantId, parameter, true); + List list = new ArrayList<>(); + for (String id : storeIds) { + PaymentParameter paymentParameter = new PaymentParameter(); + paymentParameter.setStoreId(id); + paymentParameter.setId(payment.getId()); + paymentParameter.setTenantId(tenantId); + list.add(paymentParameter); + } + if (list.size() > 0) { + i = paymentParameterDao.savePaymentParameterStoreRelation(tenantId, list); + } + } + return i; + } + + @Override + public List getStoreIdsByPaymentId(String tenantId, String id) { + return paymentParameterDao.getStoreIdsByPaymentId(tenantId,id); + } + + @Override + public Integer updatePaymentParameterAndStore(String tenantId, String parameterId, PaymentParameter newparameter, List newstoreIds) { + Integer i = 0; + i = paymentParameterDao.update(tenantId,newparameter,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parameterId",parameterId)); + paymentParameterDao.deleteRelationByParameterIdBatch(tenantId,criteria); + List list = new ArrayList<>(); + for(String id : newstoreIds){ + PaymentParameter paymentParameter = new PaymentParameter(); + paymentParameter.setStoreId(id); + paymentParameter.setId(newparameter.getId()); + paymentParameter.setTenantId(tenantId); + list.add(paymentParameter); + } + if(list.size() > 0){ + paymentParameterDao.savePaymentParameterStoreRelation(tenantId,list); + } + return i; + } + + @Override + public Integer deletePaymentParameterAndStore(String tenantId, String id) { + Integer i = 0; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parameterId",id)); + criteria.add(Restrictions.eq("tenantId",tenantId)); + paymentParameterDao.deleteRelationByParameterId(tenantId,criteria); + i = paymentParameterDao.delete(tenantId,id); + return i; + } + + @Override + public Integer deletePaymentParameterAndStoreByParameterIds(String tenantId, List parameterIds) { + Integer i = 0; + for(String id : parameterIds){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parameterId",id)); + criteria.add(Restrictions.eq("tenantId",tenantId)); + paymentParameterDao.deleteRelationByParameterId(tenantId,criteria); + i = paymentParameterDao.delete(tenantId,id); + } + return i; + } + + @Override + public Integer saveRelations(String tenantId, List details) throws Exception { + try { + return paymentParameterDao.savePaymentParameterStoreRelation(tenantId, details); + }catch (Exception e){ + throw e; + } + } + + @Override + public Boolean isPaymentExist(String tenantId, String thirdNo) throws Exception { + try { + return this.paymentParameterDao.isPaymentExist(tenantId, thirdNo); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getAllPaymentParameterByStoreId(String tenantId, String storeId) throws Exception { + try { + return this.paymentParameterDao.getAllPaymentParameterByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PermissionsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PermissionsServiceImpl.java new file mode 100644 index 0000000..c657c21 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PermissionsServiceImpl.java @@ -0,0 +1,65 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PermissionsDao; +import com.jwsaas.entity.food.Permissions; +import com.jwsaas.service.food.PermissionsService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PermissionsServiceImpl") +public class PermissionsServiceImpl extends BaseServiceImpl implements PermissionsService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PermissionsDaoImpl") + private PermissionsDao permissionsDao; + + @Override + public BaseDao getBaseDao() { + return this.permissionsDao; + } + + @Override + public boolean saveRelationship(String tenantId, String roleId, List permissions) throws Exception { + try { + // 清除角色历史权限信息 + this.permissionsDao.deleteRelationship(tenantId, roleId); + // 保存权限数据 + if (CollectionUtils.isNotEmpty(permissions)) { + this.permissionsDao.save(tenantId, permissions); + } + return true; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getModuleIdByUserId(String tenantId, String userId) throws Exception { + return permissionsDao.getModuleIdByUserId(tenantId, userId); + } + + @Override + public List getPermissionsByUserId(String tenantId, String userId) throws Exception { + return permissionsDao.getPermissionsByUserId(tenantId, userId); + } + + @Override + public boolean saveInitRelationship(String tenantId, List permissions) throws Exception { + try { + // 保存权限数据 + if (CollectionUtils.isNotEmpty(permissions)) { + this.permissionsDao.save(tenantId, permissions); + } + return true; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosInfoServiceImpl.java new file mode 100644 index 0000000..2f529c8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosInfoServiceImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosInfoDao; +import com.jwsaas.entity.food.PosInfo; +import com.jwsaas.service.food.PosInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PosInfoServiceImpl") +public class PosInfoServiceImpl extends BaseServiceImpl implements PosInfoService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosInfoDaoImpl") + private PosInfoDao posInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.posInfoDao; + } + + @Override + public String getMaxNo(String tenantId) throws Exception { + return posInfoDao.getMaxNo(tenantId); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosPollcodeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosPollcodeServiceImpl.java new file mode 100644 index 0000000..6ed5bd2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosPollcodeServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosPollcodeDao; +import com.jwsaas.entity.food.PosPollcode; +import com.jwsaas.service.food.PosPollcodeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PosPollcodeServiceImpl") +public class PosPollcodeServiceImpl extends BaseServiceImpl implements PosPollcodeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosPollcodeDaoImpl") + private PosPollcodeDao posPollcodeDao; + + @Override + public BaseDao getBaseDao() { + return this.posPollcodeDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosRoleServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosRoleServiceImpl.java new file mode 100644 index 0000000..0bc380b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosRoleServiceImpl.java @@ -0,0 +1,156 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosRoleDao; +import com.jwsaas.entity.food.PosRole; +import com.jwsaas.entity.food.StoreWorker; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.PosRoleService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PosRoleServiceImpl") +public class PosRoleServiceImpl extends BaseServiceImpl implements PosRoleService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosRoleDaoImpl") + private PosRoleDao posRoleDao; + + @Override + public BaseDao getBaseDao() { + return this.posRoleDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.posRoleDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveRoleModule(String tenantId, String roleId, List moduleNoList) throws Exception { + try { + int result = 0; + this.posRoleDao.deleteRoleModule(tenantId, roleId); + if (CollectionUtils.isNotEmpty(moduleNoList)) { + result = this.posRoleDao.saveRoleModule(tenantId, roleId, moduleNoList); + } + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getModuleNoList(String tenantId, String roleId) throws Exception { + try { + return this.posRoleDao.getModuleNoList(tenantId, roleId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerForWorker(String tenantId, String roleId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.posRoleDao.getPagerForWorker(tenantId, roleId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerForWorkerNoRelation(String tenantId, String roleId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.posRoleDao.getPagerForWorkerNoRelation(tenantId, roleId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveWorkerRelation(String tenantId, String roleId, List workerIdList) throws Exception { + try { + return this.posRoleDao.saveWorkerRelation(tenantId, roleId, workerIdList); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteWorkerRelation(String tenantId, String roleId, List workerIdList) throws Exception { + try { + return this.posRoleDao.deleteWorkerRelation(tenantId, roleId, workerIdList); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getStoreWorkerPosRole(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.posRoleDao.getStoreWorkerPosRole(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getStoreWorkerPosModule(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.posRoleDao.getStoreWorkerPosModule(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getYgjModuleNoList(String tenantId, String workerId) throws Exception { + try { + return this.posRoleDao.getYgjModuleNoList(tenantId, workerId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getManagerModuleNoList(String tenantId, String workerId) throws Exception { + try { + return this.posRoleDao.getManagerModuleNoList(tenantId, workerId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanConfigServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanConfigServiceImpl.java new file mode 100644 index 0000000..2082730 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanConfigServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosSetPlanConfigDao; +import com.jwsaas.entity.food.PosSetPlanConfig; +import com.jwsaas.service.food.PosSetPlanConfigService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanConfigServiceImpl") +public class PosSetPlanConfigServiceImpl extends BaseServiceImpl implements PosSetPlanConfigService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanConfigDaoImpl") + private PosSetPlanConfigDao posSetPlanConfigDao; + + @Override + public BaseDao getBaseDao() { + return this.posSetPlanConfigDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanModuleServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanModuleServiceImpl.java new file mode 100644 index 0000000..f37e241 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanModuleServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosSetPlanModuleDao; +import com.jwsaas.entity.food.PosSetPlanModule; +import com.jwsaas.service.food.PosSetPlanModuleService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanModuleServiceImpl") +public class PosSetPlanModuleServiceImpl extends BaseServiceImpl implements PosSetPlanModuleService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanModuleDaoImpl") + private PosSetPlanModuleDao posSetPlanModuleDao; + + @Override + public BaseDao getBaseDao() { + return this.posSetPlanModuleDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanResourcesServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanResourcesServiceImpl.java new file mode 100644 index 0000000..adc7d4e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanResourcesServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosSetPlanResourcesDao; +import com.jwsaas.entity.food.PosSetPlanResources; +import com.jwsaas.service.food.PosSetPlanResourcesService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanResourcesServiceImpl") +public class PosSetPlanResourcesServiceImpl extends BaseServiceImpl implements PosSetPlanResourcesService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanResourcesDaoImpl") + private PosSetPlanResourcesDao posSetPlanResourcesDao; + + @Override + public BaseDao getBaseDao() { + return this.posSetPlanResourcesDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanServiceImpl.java new file mode 100644 index 0000000..5d39362 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanServiceImpl.java @@ -0,0 +1,160 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosSetPlanConfigDao; +import com.jwsaas.dao.food.PosSetPlanDao; +import com.jwsaas.dao.food.PosSetPlanModuleDao; +import com.jwsaas.dao.food.PosSetPlanResourcesDao; +import com.jwsaas.dao.food.PosSetPlanShortcutDao; +import com.jwsaas.entity.food.PosSetPlan; +import com.jwsaas.entity.food.PosSetPlanConfig; +import com.jwsaas.entity.food.PosSetPlanModule; +import com.jwsaas.entity.food.PosSetPlanResources; +import com.jwsaas.entity.food.PosSetPlanShortcut; +import com.jwsaas.service.food.PosSetPlanService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanServiceImpl") +public class PosSetPlanServiceImpl extends BaseServiceImpl implements PosSetPlanService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanDaoImpl") + private PosSetPlanDao posSetPlanDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanResourcesDaoImpl") + private PosSetPlanResourcesDao posSetPlanResourcesDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanShortcutDaoImpl") + private PosSetPlanShortcutDao posSetPlanShortcutDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanModuleDaoImpl") + private PosSetPlanModuleDao posSetPlanModuleDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PosSetPlanConfigDaoImpl") + private PosSetPlanConfigDao posSetPlanConfigDao; + + @Override + public BaseDao getBaseDao() { + return this.posSetPlanDao; + } + + @Override + public PosSetPlan savePlanAndStoreIds(String tenantId, PosSetPlan plan, List storeIds) throws Exception { + PosSetPlan psp = null; + try { + psp = posSetPlanDao.save(tenantId, plan); + if (CollectionUtils.isNotEmpty(storeIds)) { + for (String storeId : storeIds) { + PosSetPlan p = new PosSetPlan(); + p.setId(psp.getId()); + p.setTenantId(tenantId); + p.setStoreId(storeId); + posSetPlanDao.savePlanStoreId(tenantId, p); + } + } + } catch (Exception e) { + throw e; + } + return psp; + } + + @Override + public List getStoreIdsByPlanId(String tenantId, String planId) throws Exception { + try { + return posSetPlanDao.getStoreIdsByPlanId(tenantId, planId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updataPlanAndStoreIds(String tenantId, PosSetPlan plan, List storeIds) throws Exception { + Integer i = 0; + try { + posSetPlanDao.update(tenantId, plan); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("planId", plan.getId())); + posSetPlanDao.deletePlanStoreIdByCriteria(tenantId, criteria); + if (CollectionUtils.isNotEmpty(storeIds)) { + for (String storeId : storeIds) { + PosSetPlan p = new PosSetPlan(); + p.setId(plan.getId()); + p.setTenantId(tenantId); + p.setStoreId(storeId); + posSetPlanDao.savePlanStoreId(tenantId, p); + } + } + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer deletePlanAndStoreIdByPlanIds(String tenantId, List planIds) throws Exception { + Integer i = 0; + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("planId", planIds)); + posSetPlanDao.deletePlanStoreIdByCriteria(tenantId, criteria, true); + i = posSetPlanDao.delete(tenantId, planIds); + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public List getPlanIdsByStoreId(String tenantId, String storeId) throws Exception { + return posSetPlanDao.getPlanIdsByStoreId(tenantId, storeId); + } + + @Override + public void savePlanDetail(String tenantId, String planId, List resourcesList, List shortcutList, List moduleList, List configList) throws Exception { + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("planId", planId)); + criteria.add(Restrictions.eq("tenantId", tenantId)); + posSetPlanResourcesDao.delete(tenantId, criteria, true); + posSetPlanShortcutDao.delete(tenantId, criteria, true); + posSetPlanModuleDao.delete(tenantId, criteria, true); + posSetPlanConfigDao.delete(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(resourcesList)) { + posSetPlanResourcesDao.save(tenantId, resourcesList); + } + if (CollectionUtils.isNotEmpty(shortcutList)) { + posSetPlanShortcutDao.save(tenantId, shortcutList); + } + if (CollectionUtils.isNotEmpty(moduleList)) { + posSetPlanModuleDao.save(tenantId, moduleList); + } + if (CollectionUtils.isNotEmpty(configList)) { + posSetPlanConfigDao.save(tenantId, configList); + } + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deletePlanAndStoreId(String tenantId, String storeId, String planId) throws Exception { + Integer i = 0; + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("planId", planId)); + i = posSetPlanDao.deletePlanStoreIdByCriteria(tenantId, criteria, true); + } catch (Exception e) { + throw e; + } + return i; + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanShortcutServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanShortcutServiceImpl.java new file mode 100644 index 0000000..04f290e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PosSetPlanShortcutServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PosSetPlanShortcutDao; +import com.jwsaas.entity.food.PosSetPlanShortcut; +import com.jwsaas.service.food.PosSetPlanShortcutService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanShortcutServiceImpl") +public class PosSetPlanShortcutServiceImpl extends BaseServiceImpl implements PosSetPlanShortcutService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PosSetPlanShortcutDaoImpl") + private PosSetPlanShortcutDao posSetPlanShortcutDao; + + @Override + public BaseDao getBaseDao() { + return this.posSetPlanShortcutDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PrintImageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PrintImageServiceImpl.java new file mode 100644 index 0000000..2042e25 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PrintImageServiceImpl.java @@ -0,0 +1,122 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PrintImageDao; +import com.jwsaas.entity.food.PrintImage; +import com.jwsaas.entity.food.Store; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.PrintImageService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PrintImageServiceImpl") +public class PrintImageServiceImpl extends BaseServiceImpl implements PrintImageService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PrintImageDaoImpl") + private PrintImageDao printImageDao; + + @Override + public BaseDao getBaseDao() { + return this.printImageDao; + } + + @Override + public Pager getPager4RelatedStore(String tenantId, String imageId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.printImageDao.getPager4RelatedStore(tenantId, imageId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPager4UnRelatedStore(String tenantId, String imageId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.printImageDao.getPager4UnRelatedStore(tenantId, imageId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveStoreRelated(String tenantId, String imageId, Boolean isAll, List storeIdList, String currentUser) throws Exception { + try { + Assert.notNull(imageId, "parameter 'imageId' can't be null or empty!"); + + if (isAll) { + storeIdList = new ArrayList<>(); + Criteria criteria = new Criteria(); + List storeList = this.printImageDao.getAll4UnRelatedStore(tenantId, imageId, criteria, true); + for (Store store : storeList) { + storeIdList.add(store.getId()); + } + } + + this.printImageDao.saveStoreRelated(tenantId, imageId, storeIdList, currentUser); + } catch (Exception e) { + throw e; + } + } + + @Override + public void deleteStoreRelated(String tenantId, String imageId, Boolean isAll, List storeIdList, String currentUser) throws Exception { + try { + Assert.notNull(imageId, "parameter 'imageId' can't be null or empty!"); + + if (isAll) { + this.printImageDao.deleteStoreRelated(tenantId, imageId); + } else { + this.printImageDao.deleteStoreRelated(tenantId, imageId, storeIdList); + } + + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListBystoreId(String tenantId, String storeId) throws Exception { + try { + return this.printImageDao.getListBystoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteRelationByStoreId(String tenantId, String storeId, List imageIds) throws Exception { + Integer i = 0; + try { + for(String imageId : imageIds){ + List ids = new ArrayList<>(); + ids.add(storeId); + this.printImageDao.deleteStoreRelated(tenantId, imageId, ids); + i++; + } + } catch (Exception e) { + throw e; + } + return i; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNegativeStockDifferServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNegativeStockDifferServiceImpl.java new file mode 100644 index 0000000..43d2ae5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNegativeStockDifferServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductBatchNegativeStockDifferDao; +import com.jwsaas.entity.food.ProductBatchNegativeStockDiffer; +import com.jwsaas.service.food.ProductBatchNegativeStockDifferService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDifferServiceImpl") +public class ProductBatchNegativeStockDifferServiceImpl extends BaseServiceImpl implements ProductBatchNegativeStockDifferService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDifferDaoImpl") + private ProductBatchNegativeStockDifferDao productBatchNegativeStockDifferDao; + + @Override + public BaseDao getBaseDao() { + return this.productBatchNegativeStockDifferDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNegativeStockServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNegativeStockServiceImpl.java new file mode 100644 index 0000000..2422e74 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNegativeStockServiceImpl.java @@ -0,0 +1,198 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductBatchNegativeStockDao; +import com.jwsaas.dao.food.ProductBatchNegativeStockDifferDao; +import com.jwsaas.dao.food.ProductBatchNumberDao; +import com.jwsaas.dao.food.ProductBatchStockDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.entity.food.ProductBatchNegativeStock; +import com.jwsaas.entity.food.ProductBatchNegativeStockDiffer; +import com.jwsaas.entity.food.ProductBatchNumber; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.service.food.ProductBatchNegativeStockService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockServiceImpl") +public class ProductBatchNegativeStockServiceImpl extends BaseServiceImpl implements ProductBatchNegativeStockService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDaoImpl") + private ProductBatchNegativeStockDao productBatchNegativeStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDifferDaoImpl") + private ProductBatchNegativeStockDifferDao productBatchNegativeStockDifferDao; + + @Override + public BaseDao getBaseDao() { + return this.productBatchNegativeStockDao; + } + + @SuppressWarnings("unchecked") + @Override + public void saveOffset(String tenantId, String id) throws Exception { + try { + ProductBatchNegativeStock negativeStock = productBatchNegativeStockDao.get(tenantId, id); + if (negativeStock.getStatus() == 1) { + logger.warn("该记录已结清![id:" + id + "]"); + return; + } + + String operator = "auto"; + + String storageId = negativeStock.getStorageId(); + String productId = negativeStock.getProductId(); + String productNo = negativeStock.getProductNo(); + String productName = null; + String specId = negativeStock.getSpecId(); + String specName = null; + String productDescription = null; + + String batchNo = negativeStock.getBatchNo(); + double quantity = negativeStock.getQuantity(); + double price = negativeStock.getPrice(); + + // 出库商品自动分配批次,能分配多少分配多少,先进先出,不允许负库存出库 + Map allocateBatchesMap = productBatchStockDao.allocateBatches4NegativeStockOffset(tenantId, storageId, productId, productNo, productName, specId, specName, + productDescription, price, quantity, productBatchNumberDao, productRatioDao, productBatchStockDao); + // data-分配结果 + Map allocateData = (Map) allocateBatchesMap.get("data"); + // allocatedQuantity-已分配数量 + double allocatedQuantity = (double) allocateBatchesMap.get("allocatedQuantity"); + + if (MathUtil.eq(0D, allocatedQuantity)) { + return; + } + + // 批次抵消明细 - 批次剩余库存减少,原负库存出库批次剩余数量增加(负数增加至0),负库存数据抵消 + // 负库存剩余数量 + BigDecimal remainQuantity = new BigDecimal(quantity); + Criteria criteria = null; + // 产品批次库存,cy_product_batch_stock + for (ProductBatchStock batch : allocateData.keySet()) { + // 批次剩余库存减少 + ProductBatchStock updateBatch = new ProductBatchStock(); + updateBatch.setId(batch.getId()); + updateBatch.setRemainQuantity(MathUtil.subtract(new BigDecimal(batch.getRemainQuantity()), new BigDecimal(allocateData.get(batch))).doubleValue()); + updateBatch.setModifyUser(operator); + updateBatch.setModifyDate(new Date()); + productBatchStockDao.update(tenantId, updateBatch); + + // 该批次已被扣减完,则调整该批次状态为不可用 + if (MathUtil.gte(BigDecimal.ZERO, new BigDecimal(updateBatch.getRemainQuantity()))) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("batchNo", batch.getBatchNo())); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List batchNumberList = productBatchNumberDao.getList(tenantId, criteria); + ProductBatchNumber batchNumber = batchNumberList.get(0); + + ProductBatchNumber updateBatchNumber = new ProductBatchNumber(); + updateBatchNumber.setId(batchNumber.getId()); + updateBatchNumber.setStatus(0);// 状态(0-不可用;1-可用;) + updateBatchNumber.setModifyUser(operator); + updateBatchNumber.setModifyDate(new Date()); + productBatchNumberDao.update(tenantId, updateBatchNumber); + } + + // 原负库存出库批次剩余数量增加(负数增加至0) + criteria = new Criteria(); + criteria.add(Restrictions.eq("batchNo", negativeStock.getBatchNo())); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List batchStockList = productBatchStockDao.getList(tenantId, criteria); + ProductBatchStock originalBatch = batchStockList.get(0); + + ProductBatchStock updateOriginalBatch = new ProductBatchStock(); + updateOriginalBatch.setId(originalBatch.getId()); + updateOriginalBatch.setRemainQuantity(MathUtil.add(new BigDecimal(originalBatch.getRemainQuantity()), new BigDecimal(allocateData.get(batch))).doubleValue()); + updateOriginalBatch.setModifyUser(operator); + updateOriginalBatch.setModifyDate(new Date()); + productBatchStockDao.update(tenantId, updateOriginalBatch); + + ProductBatchNegativeStock tempNegativeStock = null; + // 负库存数据抵消 + if (MathUtil.eq(remainQuantity, new BigDecimal(allocateData.get(batch)))) { + ProductBatchNegativeStock updateNegativeStock = new ProductBatchNegativeStock(); + updateNegativeStock.setId(negativeStock.getId()); + updateNegativeStock.setOffsetBatchNo(batch.getBatchNo());// 抵消批次号 + updateNegativeStock.setOffsetPrice(batch.getPrice());// 抵消时的真实入库单价 + updateNegativeStock.setStatus(1);// 状态(0-未结清;1-已结清;) + updateNegativeStock.setModifyUser(operator); + updateNegativeStock.setModifyDate(new Date()); + productBatchNegativeStockDao.update(tenantId, updateNegativeStock); + tempNegativeStock = productBatchNegativeStockDao.get(tenantId, negativeStock.getId()); + } else { + // 分拆原负库存信息 + ProductBatchNegativeStock newNegativeStock = new ProductBatchNegativeStock(); + newNegativeStock.setBatchNo(batchNo);// 批次号 + newNegativeStock.setStorageId(storageId);// 仓库ID + newNegativeStock.setTicketType(negativeStock.getTicketType());// 单据类型 + newNegativeStock.setTicketNo(negativeStock.getTicketNo());// 单据编号 + newNegativeStock.setProductId(productId);// 原料ID + newNegativeStock.setProductNo(productNo);// 原料编号 + newNegativeStock.setSpecId(specId);// 规格ID + newNegativeStock.setInventoryUnitId(batch.getInventoryUnitId());// 库存单位 + newNegativeStock.setInventoryUnitName(batch.getInventoryUnitName());// 库存单位名称 + newNegativeStock.setPrice(negativeStock.getPrice());// 暂估单价/暂估的入库价格 + newNegativeStock.setQuantity(allocateData.get(batch));// 数量,负库存数量 + newNegativeStock.setOffsetBatchNo(batch.getBatchNo());// 抵消批次号 + newNegativeStock.setOffsetPrice(batch.getPrice());// 抵消时的真实入库单价 + newNegativeStock.setStatus(1);// 状态(0-未结清;1-已结清;) + newNegativeStock.setCreateUser(operator); + newNegativeStock = productBatchNegativeStockDao.save(tenantId, newNegativeStock); + tempNegativeStock = newNegativeStock; + + // 更新原负库存信息数量 + ProductBatchNegativeStock updateNegativeStock = new ProductBatchNegativeStock(); + updateNegativeStock.setId(negativeStock.getId()); + updateNegativeStock.setQuantity(MathUtil.subtract(remainQuantity, new BigDecimal(allocateData.get(batch))).doubleValue()); + updateNegativeStock.setModifyUser(operator); + updateNegativeStock.setModifyDate(new Date()); + productBatchNegativeStockDao.update(tenantId, updateNegativeStock); + } + remainQuantity = MathUtil.subtract(remainQuantity, new BigDecimal(batch.getRemainQuantity())); + + // 价格差异 + BigDecimal priceDiffer = MathUtil.subtract(new BigDecimal(tempNegativeStock.getPrice()), new BigDecimal(tempNegativeStock.getOffsetPrice())); + if (!MathUtil.eq(BigDecimal.ZERO, priceDiffer)) { + ProductBatchNegativeStockDiffer negativeStockDiffer = new ProductBatchNegativeStockDiffer(); + negativeStockDiffer.setBatchNo(tempNegativeStock.getBatchNo());// 批次号 + negativeStockDiffer.setStorageId(tempNegativeStock.getStorageId());// 仓库ID + negativeStockDiffer.setProductId(tempNegativeStock.getProductId());// 原料ID + negativeStockDiffer.setProductNo(tempNegativeStock.getProductNo());// 原料编号 + negativeStockDiffer.setSpecId(tempNegativeStock.getSpecId());// 规格ID + negativeStockDiffer.setInventoryUnitId(tempNegativeStock.getInventoryUnitId());// 库存单位 + negativeStockDiffer.setInventoryUnitName(tempNegativeStock.getInventoryUnitName());// 库存单位名称 + negativeStockDiffer.setOffsetBatchNo(tempNegativeStock.getOffsetBatchNo());// 抵消批次号 + negativeStockDiffer.setPrice(priceDiffer.doubleValue());// 差异单价 + negativeStockDiffer.setQuantity(tempNegativeStock.getQuantity());// 数量 + negativeStockDiffer.setAmount(MathUtil.multiply(new BigDecimal(tempNegativeStock.getQuantity()), priceDiffer).doubleValue());// 差异金额 + negativeStockDiffer.setCreateUser(operator); + negativeStockDiffer = productBatchNegativeStockDifferDao.save(tenantId, negativeStockDiffer); + } + + } + + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNumberServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNumberServiceImpl.java new file mode 100644 index 0000000..3beba33 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchNumberServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductBatchNumberDao; +import com.jwsaas.entity.food.ProductBatchNumber; +import com.jwsaas.service.food.ProductBatchNumberService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberServiceImpl") +public class ProductBatchNumberServiceImpl extends BaseServiceImpl implements ProductBatchNumberService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + + @Override + public BaseDao getBaseDao() { + return this.productBatchNumberDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchStockChangeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchStockChangeServiceImpl.java new file mode 100644 index 0000000..49cfcf5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchStockChangeServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductBatchStockChangeDao; +import com.jwsaas.entity.food.ProductBatchStockChange; +import com.jwsaas.service.food.ProductBatchStockChangeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockChangeServiceImpl") +public class ProductBatchStockChangeServiceImpl extends BaseServiceImpl implements ProductBatchStockChangeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockChangeDaoImpl") + private ProductBatchStockChangeDao productBatchStockChangeDao; + + @Override + public BaseDao getBaseDao() { + return this.productBatchStockChangeDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchStockServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchStockServiceImpl.java new file mode 100644 index 0000000..83ba65c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBatchStockServiceImpl.java @@ -0,0 +1,50 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductBatchStockDao; +import com.jwsaas.entity.food.ProductBatchStock; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductBatchStockService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockServiceImpl") +public class ProductBatchStockServiceImpl extends BaseServiceImpl implements ProductBatchStockService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + + @Override + public BaseDao getBaseDao() { + return this.productBatchStockDao; + } + + @Override + public Pager getExtendPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = productBatchStockDao.getExtendPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getExtendList(String tenantId, Criteria criteria) throws Exception { + try { + return productBatchStockDao.getExtendList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBurdenServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBurdenServiceImpl.java new file mode 100644 index 0000000..85f97e6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductBurdenServiceImpl.java @@ -0,0 +1,198 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductBurdenDao; +import com.jwsaas.entity.food.ProductBurden; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductBurdenService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductBurdenServiceImpl") +public class ProductBurdenServiceImpl extends BaseServiceImpl implements ProductBurdenService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBurdenDaoImpl") + private ProductBurdenDao productBurdenDao; + + @Override + public BaseDao getBaseDao() { + return this.productBurdenDao; + } + + @Override + public Pager getPager4ProductSpec(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productBurdenDao.getPager4ProductSpec(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria) throws Exception { + try { + return this.productBurdenDao.getListWithProduct(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteBySpecIds(String tenantId, List specIds) throws Exception { + try { + Assert.notEmpty(specIds, "parameter 'specIds' can't be null or empty!"); + int rows = 0; + for (String specId : specIds) { + rows += productBurdenDao.delete(tenantId, "specId", specId); + } + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer update(String tenantId, List entity) throws Exception { + try { + Assert.notEmpty(entity, "parameter 'entity' can't be null or empty!"); + + String productId = entity.get(0).getProductId(); + String specId = entity.get(0).getSpecId(); + String currentUser = entity.get(0).getCreateUser(); + Date currentDate = entity.get(0).getCreateDate() != null ? entity.get(0).getCreateDate() : new Date(); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", productId)); + criteria.add(Restrictions.eq("specId", specId)); + List oldList = this.productBurdenDao.getList(tenantId, criteria, true); + List oldIdList = new ArrayList<>(); + for (ProductBurden oldBurden : oldList) { + oldIdList.add(oldBurden.getId()); + } + + List addList = new ArrayList<>(); + List updateList = new ArrayList<>(); + List delIdList = new ArrayList<>(); + + List newIdList = new ArrayList<>(); + for (int i = 0; i < entity.size(); i++) { + ProductBurden burden = entity.get(i); + if (StringUtils.isBlank(burden.getId())) { + addList.add(burden); + } else { + if (oldIdList.contains(burden.getId())) { + burden.setCreateUser(null); + burden.setModifyUser(currentUser); + burden.setModifyDate(currentDate); + updateList.add(burden); + + newIdList.add(burden.getId()); + } else { + burden.setId(null); + addList.add(burden); + } + } + } + + for (String oldId : oldIdList) { + if (!newIdList.contains(oldId)) { + delIdList.add(oldId); + } + } + + if (delIdList.size() > 0) { + this.productBurdenDao.delete(tenantId, delIdList); + } + + if (addList.size() > 0) { + this.productBurdenDao.save(tenantId, addList); + } + + if (updateList.size() > 0) { + this.productBurdenDao.update(tenantId, updateList); + } + + return 1; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListNoBurden(String tenantId, Criteria criteria) throws Exception { + try { + return this.productBurdenDao.getListNoBurden(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerNoBurden(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productBurdenDao.getPagerNoBurden(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveProductBurdenByImpt(String tenantId, List burdenList, String userName) throws Exception { + Integer i = 0; + try{ + productBurdenDao.save(tenantId,burdenList); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public List getList4ProductSpec(String tenantId, Criteria criteria) throws Exception { + try { + return this.productBurdenDao.getList4ProductSpec(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productBurdenDao.getPagerByStoreId(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductImageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductImageServiceImpl.java new file mode 100644 index 0000000..c6d6baf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductImageServiceImpl.java @@ -0,0 +1,43 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductImageDao; +import com.jwsaas.entity.food.ProductImage; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductImageService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductImageServiceImpl") +public class ProductImageServiceImpl extends BaseServiceImpl implements ProductImageService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductImageDaoImpl") + private ProductImageDao productImageDao; + + @Override + public BaseDao getBaseDao() { + return this.productImageDao; + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productImageDao.getPagerByStoreId(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductKdsPlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductKdsPlanServiceImpl.java new file mode 100644 index 0000000..df17c66 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductKdsPlanServiceImpl.java @@ -0,0 +1,69 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductKdsPlanDao; +import com.jwsaas.entity.food.ProductKdsPlan; +import com.jwsaas.service.food.ProductKdsPlanService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductKdsPlanServiceImpl") +public class ProductKdsPlanServiceImpl extends BaseServiceImpl implements ProductKdsPlanService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductKdsPlanDaoImpl") + private ProductKdsPlanDao productKdsPlanDao; + + @Override + public BaseDao getBaseDao() { + return this.productKdsPlanDao; + } + + @Override + public Pager getStoreProductInfoPager(String tenantId, Criteria criteria, Pager pager) throws Exception{ + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productKdsPlanDao.getStoreProductInfoPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getProductIdsByStoreId(String tenantId, String storeId) { + return productKdsPlanDao.getProductIdsByStoreId(tenantId,storeId); + } + + @Override + public Integer updateProductKdsPlanByProductIdAndStoreId(String tenantId, List uplist) { + return productKdsPlanDao.updateProductKdsPlanByProductIdAndStoreId(tenantId,uplist); + } + + @Override + public Pager getProductInfoPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productKdsPlanDao.getProductInfoPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductKitPlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductKitPlanServiceImpl.java new file mode 100644 index 0000000..7133ca5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductKitPlanServiceImpl.java @@ -0,0 +1,91 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductKitPlanDao; +import com.jwsaas.entity.food.ProductKitPlan; +import com.jwsaas.service.food.ProductKitPlanService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductKitPlanServiceImpl") +public class ProductKitPlanServiceImpl extends BaseServiceImpl implements ProductKitPlanService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductKitPlanDaoImpl") + private ProductKitPlanDao productKitPlanDao; + + @Override + public BaseDao getBaseDao() { + return this.productKitPlanDao; + } + + @Override + public Pager getStoreProductInfoPager(String tenantId, Criteria criteria, Pager pager) throws Exception{ + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = productKitPlanDao.getStoreProductInfoPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getProductIdsByStoreId(String tenantId, String storeId) { + try{ + return productKitPlanDao.getProductIdsByStoreId(tenantId,storeId); + }catch(Exception e){ + throw e; + } + } + + @Override + public Integer updateProductKitPlanByProductIdAndStoreId(String tenantId, List list) throws Exception{ + try { + return productKitPlanDao.updateProductKitPlanByProductIdAndStoreId(tenantId, list); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getProductInfoPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = productKitPlanDao.getProductInfoPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getProductInfosPager(String tenantId, String storeId,Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = productKitPlanDao.getProductInfosPager(tenantId, storeId,criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeServiceImpl.java new file mode 100644 index 0000000..116b659 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductMakeDao; +import com.jwsaas.entity.food.ProductMake; +import com.jwsaas.service.food.ProductMakeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductMakeServiceImpl") +public class ProductMakeServiceImpl extends BaseServiceImpl implements ProductMakeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductMakeDaoImpl") + private ProductMakeDao productMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.productMakeDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeTemplateDetailServiceImpl.java new file mode 100644 index 0000000..667e7a5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeTemplateDetailServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductMakeTemplateDetailDao; +import com.jwsaas.entity.food.ProductMakeTemplateDetail; +import com.jwsaas.service.food.ProductMakeTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductMakeTemplateDetailServiceImpl") +public class ProductMakeTemplateDetailServiceImpl extends BaseServiceImpl implements ProductMakeTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductMakeTemplateDetailDaoImpl") + private ProductMakeTemplateDetailDao productMakeTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.productMakeTemplateDetailDao; + } + + @Override + public List getDetailsList(String tenantId, Criteria criteria) throws Exception{ + try { + return productMakeTemplateDetailDao.getDetailsList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeTemplateServiceImpl.java new file mode 100644 index 0000000..8832b80 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductMakeTemplateServiceImpl.java @@ -0,0 +1,154 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.MakeDetailDao; +import com.jwsaas.dao.food.ProductMakeTemplateDetailDao; +import com.jwsaas.entity.food.MakeDetail; +import com.jwsaas.entity.food.ProductMakeTemplateDetail; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductMakeTemplateDao; +import com.jwsaas.entity.food.ProductMakeTemplate; +import com.jwsaas.service.food.ProductMakeTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductMakeTemplateServiceImpl") +public class ProductMakeTemplateServiceImpl extends BaseServiceImpl implements ProductMakeTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductMakeTemplateDaoImpl") + private ProductMakeTemplateDao productMakeTemplateDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductMakeTemplateDetailDaoImpl") + private ProductMakeTemplateDetailDao productMakeTemplateDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"MakeDetailDaoImpl") + private MakeDetailDao makeDetailDao; + + + @Override + public BaseDao getBaseDao() { + return this.productMakeTemplateDao; + } + + @Override + public Integer saveTemplateAndDetails(String tenantId, ProductMakeTemplate template, String[] makeId, Double[] addPrice) throws Exception{ + Integer i = 0; + try{ + ProductMakeTemplate productMakeTemplate = productMakeTemplateDao.save(tenantId,template,true); + List detailList = new ArrayList<>(); + if(makeId != null && makeId.length > 0){ + for(int n = 0 ;n < makeId.length ; n++){ + ProductMakeTemplateDetail detail = new ProductMakeTemplateDetail(); + detail.setTenantId(tenantId); + detail.setCreateUser(productMakeTemplate.getCreateUser()); + detail.setTemplateId(productMakeTemplate.getId()); + detail.setMakeId(makeId[n]); + detail.setAddPrice(addPrice[n]); + detailList.add(detail); + } + } + if(detailList.size() > 0){ + productMakeTemplateDetailDao.save(tenantId,detailList); + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTemplateAndDetails(String tenantId, ProductMakeTemplate template, String[] makeId, Double[] addPrice) throws Exception { + Integer i = 0; + try{ + productMakeTemplateDao.update(tenantId,template,true); + ProductMakeTemplate t = productMakeTemplateDao.get(tenantId,template.getId(),true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",t.getId())); + productMakeTemplateDetailDao.delete(tenantId,criteria,true); + List detailList = new ArrayList<>(); + if(makeId != null && makeId.length > 0){ + for(int n = 0 ;n < makeId.length ; n++){ + ProductMakeTemplateDetail detail = new ProductMakeTemplateDetail(); + detail.setTenantId(tenantId); + detail.setCreateUser(t.getCreateUser()); + detail.setModifyUser(t.getModifyUser()); + detail.setModifyDate(new Date()); + detail.setTemplateId(t.getId()); + detail.setMakeId(makeId[n]); + detail.setAddPrice(addPrice[n]); + detailList.add(detail); + } + } + if(detailList.size() > 0){ + productMakeTemplateDetailDao.save(tenantId,detailList); + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveStoreMakes(String tenantId, String templateId, String storeIds, String userName) throws Exception{ + Integer i = 0; + try{ + if(StringUtils.isNotBlank(storeIds)){ + List storeIdList = Arrays.asList(storeIds.split(",")); + List details = productMakeTemplateDetailDao.findList(tenantId,"templateId",templateId); + if(details != null && details.size() > 0){ + for(String storeId :storeIdList){ + for(ProductMakeTemplateDetail detail : details){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",storeId)); + criteria.add(Restrictions.eq("makeId",detail.getMakeId())); + makeDetailDao.deleteRelationStoreMake(tenantId,criteria); + makeDetailDao.saveRelationStoreMake(tenantId,storeId,detail.getMakeId(),detail.getAddPrice()); + } + } + } + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveStoreMakesByCover(String tenantId, String templateId, String storeIds, String userName) throws Exception { + Integer i = 0; + try{ + if(StringUtils.isNotBlank(storeIds)){ + List storeIdList = Arrays.asList(storeIds.split(",")); + List details = productMakeTemplateDetailDao.findList(tenantId,"templateId",templateId); + if(details != null && details.size() > 0){ + for(String storeId :storeIdList){ + //删除门店下所有做法; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",storeId)); + makeDetailDao.deleteRelationStoreMake(tenantId,criteria); + for(ProductMakeTemplateDetail detail : details){ + makeDetailDao.saveRelationStoreMake(tenantId,storeId,detail.getMakeId(),detail.getAddPrice()); + } + } + } + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductRatioServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductRatioServiceImpl.java new file mode 100644 index 0000000..c83fd42 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductRatioServiceImpl.java @@ -0,0 +1,90 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductRatioService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductRatioServiceImpl") +public class ProductRatioServiceImpl extends BaseServiceImpl implements ProductRatioService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + + @Override + public BaseDao getBaseDao() { + return this.productRatioDao; + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productRatioDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productRatioDao.getPagerByStoreId(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getProductIdListHasRatio(String tenantId) throws Exception { + try { + return this.productRatioDao.getProductIdListHasRatio(tenantId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria,Boolean isBatch) throws Exception { + try { + return this.productRatioDao.getListWithProduct(tenantId, criteria,isBatch); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreIdProduct(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productRatioDao.getPagerByStoreIdProduct(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductServiceImpl.java new file mode 100644 index 0000000..54e3905 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductServiceImpl.java @@ -0,0 +1,1458 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductDao; +import com.jwsaas.dao.food.ProductKitPlanDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductSpecDao; +import com.jwsaas.dao.food.ProductStockDao; +import com.jwsaas.dao.food.ProductStoreStockDao; +import com.jwsaas.dao.food.ProductSuitDao; +import com.jwsaas.dao.food.ProductSuitDetailDao; +import com.jwsaas.dao.food.ProductTypeDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.StoreProductDao; +import com.jwsaas.entity.food.Product; +import com.jwsaas.entity.food.ProductKitPlan; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.entity.food.ProductStock; +import com.jwsaas.entity.food.ProductStoreStock; +import com.jwsaas.entity.food.ProductSuit; +import com.jwsaas.entity.food.ProductSuitDetail; +import com.jwsaas.entity.food.ProductType; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.entity.food.StoreProduct; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductServiceImpl") +public class ProductServiceImpl extends BaseServiceImpl implements ProductService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductDaoImpl") + private ProductDao productDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductTypeDaoImpl") + private ProductTypeDao productTypeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") + private ProductStockDao productStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") + private ProductStoreStockDao productStoreStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreProductDaoImpl") + private StoreProductDao storeProductDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductKitPlanDaoImpl") + private ProductKitPlanDao productKitPlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDaoImpl") + private ProductSuitDao productSuitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDetailDaoImpl") + private ProductSuitDetailDao productSuitDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.productDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.productDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Product saveWithSpec(String tenantId, Product product, List specList) throws Exception { + Assert.notEmpty(specList, "parameter 'specList' can't be null or empty!"); + + try { + if (StringUtils.isNotBlank(product.getTypeId())) { + ProductType productType = productTypeDao.get(tenantId, product.getTypeId(), true); + if (productType == null) { + product.setTypeId(null); + product.setTypePath(null); + } else { + product.setTypeId(productType.getId()); + product.setTypePath(productType.getPath()); + } + } + + product = this.productDao.save(tenantId, product, true); + + // 设置默认规格以及规格信息中增加商品ID + for (int i = 0; i < specList.size(); i++) { + ProductSpec spec = specList.get(i); + spec.setNo("" + i); + spec.setProductId(product.getId()); + if (i == 0) { + spec.setIsdefault(1); + product.setSpec(spec.getName()); + } + } + this.productSpecDao.save(tenantId, specList); + + // 根据默认规格信息,更新商品信息 + this.productDao.update(tenantId, product, true); + + // 启用库存管理的,添加默认商品库存系数 + if (product.getStockFlag() == 1) { + ProductRatio productRatio = new ProductRatio(); + productRatio.setProductId(product.getId()); + productRatio.setDispatchUnitId(product.getUnitId());// 配送单位(总部库存单位/门店库存单位) + productRatio.setPurchaseUnitId(product.getUnitId());// 采购单位 + productRatio.setPdScale(1D);// 换算比例(采购单位和配送单位) + productRatio.setPackUnitId(product.getUnitId());// 包装单位 + productRatio.setDpScale(1D);// 换算比例(配送单位和包装单位) + productRatio.setSalesUnitId(product.getUnitId());// 销售单位 + productRatio.setPsScale(1D);// 换算比例(包装单位和销售单位) + productRatio.setMinStock(0D);// 库存下限 + productRatio.setMaxStock(10000D);// 库存上限 + productRatio.setCreateUser(product.getCreateUser()); + productRatio.setTenantId(tenantId); + productRatioDao.save(tenantId, productRatio, true); + } + + return product; + } catch (Exception e) { + throw e; + } + } + + /** + * 先查询出已有规格信息,然后根据本次提交的规格信息ID,过滤出新增、修改以及删除的规格信息。
+ * 注意:默认规格对象为空时,证明本次提交的信息中没有启用规格,修改原数据的默认规格即可。不用删除之后,重新添加。 + */ + @Override + public Product updateWithSpec(String tenantId, Product product, List specList) throws Exception { + try { + Assert.notEmpty(specList, "parameter 'specList' can't be null or empty!"); + + if (StringUtils.isNotBlank(product.getTypeId())) { + ProductType productType = productTypeDao.get(tenantId, product.getTypeId(), true); + if (productType == null) { + product.setTypeId(null); + product.setTypePath(null); + } else { + product.setTypeId(productType.getId()); + product.setTypePath(productType.getPath()); + } + } + + this.productDao.update(tenantId, product, true); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", product.getId())); + List oldSpecList = this.productSpecDao.getList(tenantId, criteria, true); + List oldSpecIdList = new ArrayList<>(); + for (ProductSpec oldSpec : oldSpecList) { + oldSpecIdList.add(oldSpec.getId()); + } + + List addSpecList = new ArrayList<>(); + List updateSpecList = new ArrayList<>(); + List delSpecList = new ArrayList<>(); + + List newSpecIdList = new ArrayList<>(); + ProductSpec defaultSpec = null; + for (int i = 0; i < specList.size(); i++) { + ProductSpec spec = specList.get(i); + spec.setIsdefault(0); + spec.setNo("" + i); + if (StringUtils.isBlank(spec.getProductId())) { + spec.setProductId(product.getId()); + } + + if (StringUtils.isBlank(spec.getId())) { + addSpecList.add(spec); + } else { + if (oldSpecIdList.contains(spec.getId())) { + spec.setModifyUser(product.getModifyUser()); + spec.setModifyDate(product.getModifyDate() == null ? new Date() : product.getModifyDate()); + updateSpecList.add(spec); + } + newSpecIdList.add(spec.getId()); + } + + if (i == 0) { + defaultSpec = spec; + } + } + + for (String oldSpecId : oldSpecIdList) { + if (!newSpecIdList.contains(oldSpecId)) { + delSpecList.add(oldSpecId); + } + } + + if (delSpecList.size() > 0) { + // 物理删除 + // this.productSpecDao.delete(tenantId, delSpecList); + + // 逻辑删除 + this.productSpecDao.deleteLogical(tenantId, delSpecList, product.getModifyUser()); + } + + if (addSpecList.size() > 0) { + this.productSpecDao.save(tenantId, addSpecList); + } + + if (updateSpecList.size() > 0) { + this.productSpecDao.update(tenantId, updateSpecList); + } + + defaultSpec.setIsdefault(1); + this.productSpecDao.update(tenantId, defaultSpec, true); + + product.setSpec(defaultSpec.getName()); + this.productDao.update(tenantId, product, true); + + String productId = product.getId(); + // 启用库存管理的,添加默认商品库存系数 + if (product.getStockFlag() == 1) { + ProductRatio productRatio = productRatioDao.find(tenantId, "productId", productId, true); + if (productRatio == null) { + productRatio = new ProductRatio(); + productRatio.setProductId(product.getId()); + productRatio.setDispatchUnitId(product.getUnitId());// 配送单位(总部库存单位/门店库存单位) + productRatio.setPurchaseUnitId(product.getUnitId());// 采购单位 + productRatio.setPdScale(1D);// 换算比例(采购单位和配送单位) + productRatio.setPackUnitId(product.getUnitId());// 包装单位 + productRatio.setDpScale(1D);// 换算比例(配送单位和包装单位) + productRatio.setSalesUnitId(product.getUnitId());// 销售单位 + productRatio.setPsScale(1D);// 换算比例(包装单位和销售单位) + productRatio.setMinStock(0D);// 库存下限 + productRatio.setMaxStock(10000D);// 库存上限 + productRatio.setCreateUser(product.getModifyUser()); + productRatio.setTenantId(tenantId); + productRatioDao.save(tenantId, productRatio, true); + } else { + if (!StringUtils.equals(productRatio.getSalesUnitId(), product.getUnitId())) { + productRatio.setDispatchUnitId(product.getUnitId());// 配送单位(总部库存单位/门店库存单位) + productRatio.setPurchaseUnitId(product.getUnitId());// 采购单位 + productRatio.setPdScale(1D);// 换算比例(采购单位和配送单位) + productRatio.setPackUnitId(product.getUnitId());// 包装单位 + productRatio.setDpScale(1D);// 换算比例(配送单位和包装单位) + productRatio.setSalesUnitId(product.getUnitId());// 销售单位 + productRatio.setPsScale(1D);// 换算比例(包装单位和销售单位) + // productRatio.setMinStock(0D);// 库存下限 + // productRatio.setMaxStock(10000D);// 库存上限 + productRatio.setModifyUser(product.getModifyUser()); + productRatio.setTenantId(tenantId); + productRatioDao.update(tenantId, productRatio, true); + } + } + } + + return product; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productDao.getPagerByStoreId(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByTenantId(String tenantId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productDao.getPagerByTenantId(tenantId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + /*** + * 获取指定门店所有规格商品 + */ + @Override + public Pager getSpecGoodsPager(String tenantId, Criteria criteria, Pager pager) { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = this.productDao.getSpecGoodsPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + /*** + * 获取门店关联商品品类 + */ + @Override + public List> getProductType(String tenantId, Criteria criteria) throws Exception { + return this.productDao.getProductType(tenantId, criteria); + } + + /*** + * 获取门店关联商品品牌 + */ + @Override + public List> getProductBrand(String tenantId, Criteria criteria) throws Exception { + return this.productDao.getProductBrand(tenantId, criteria); + } + + @Override + public List getProductIdByCriteria(String tenantId, Criteria criteria) throws Exception { + try { + return this.productDao.getProductIdByCriteria(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListStockProductsHtmlOptions(String tenantId, Criteria criteria) throws Exception { + List list = new ArrayList<>(); + try { + List products = productDao.getList(tenantId, criteria); + if (CollectionUtils.isNotEmpty(products)) { + for (Product product : products) { + list.add(""); + } + } + } catch (Exception e) { + throw e; + } + return list; + } + + @Override + public List getStoresCommonProductByStoreIds(String tenantId, List storeIds, String productTypeId, String brandId, String unitId, String property, String keyword) { + try { + int size = storeIds.size(); + return productDao.getStoresCommonProductByStoreIds(tenantId, storeIds, size, productTypeId, brandId, unitId, property, keyword); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveByImpt(String tenantId, List productList, int productNoLength, List newUnitList, int productUnitNoLength, String currentUserName) throws Exception { + try { + int rows = 0; + // 先保存计量单位信息 + List saveUnitList = new ArrayList<>(); + ProductUnit productUnit = null; + String maxNo = productUnitDao.selectMaxValue(tenantId, "no", true); + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + long maxNoInt = Long.parseLong(maxNo); + for (String unitName : newUnitList) { + productUnit = new ProductUnit(); + productUnit.setNo(getNextNo("" + maxNoInt, productUnitNoLength)); + productUnit.setName(unitName); + productUnit.setDeleteFlag(0); + productUnit.setCreateUser(currentUserName); + productUnit.setTenantId(tenantId); + + saveUnitList.add(productUnit); + maxNoInt++; + } + if (saveUnitList.size() > 0) { + rows += productUnitDao.save(tenantId, saveUnitList); + } + productUnit = null; + + Criteria criteria = new Criteria(); + List unitList = productUnitDao.getList(tenantId, criteria, true); + Map unitMap = new HashMap<>(); + for (ProductUnit unit : unitList) { + unitMap.put(unit.getName(), unit); + } + + Map> dataMap = new LinkedHashMap<>(); + // 名称相同按同一个产品不同规格处理 + for (Product product : productList) { + // String tempKey = product.getName(); + String tempKey = product.getName(); + if (StringUtils.isNotBlank(product.getTypeId())) { + tempKey = product.getName() + product.getTypeId();// 不同类别,产品名称相同,应该算两个商品 + } + if (dataMap.get(tempKey) == null) { + dataMap.put(tempKey, new ArrayList<>()); + } + product.setUnitId(unitMap.get(product.getUnitId()).getId()); + + dataMap.get(tempKey).add(product); + } + + maxNo = productDao.selectMaxValue(tenantId, "no", true); + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + maxNoInt = Long.parseLong(maxNo); + // 保存产品信息 + for (String key : dataMap.keySet()) { + List list = dataMap.get(key); + + Product saveProduct = list.get(0); + saveProduct.setNo(getNextNo("" + maxNoInt, productNoLength)); + saveProduct.setCreateUser(currentUserName); + saveProduct.setTenantId(tenantId); + if (list.size() == 1 && StringUtils.isBlank(saveProduct.getDescription()) && StringUtils.isNotBlank(list.get(0).getSpec())) { + saveProduct.setDescription(saveProduct.getName() + "[" + list.get(0).getSpec() + "]"); + } + saveProduct = this.productDao.save(tenantId, saveProduct, true); + + // 套餐不能启用规格 + if (saveProduct.getSuitFlag() == 1) { + List tempList = new ArrayList<>(); + tempList.add(list.get(0)); + list = tempList; + } + + List specList = new ArrayList<>(); + for (int i = 0; i < list.size(); i++) { + Product temp = list.get(i); + ProductSpec productSpec = new ProductSpec(); + productSpec.setTenantId(tenantId); + productSpec.setProductId(saveProduct.getId()); + productSpec.setIsdefault(0); + productSpec.setNo("" + i); + productSpec.setName(list.size() == 1 ? temp.getSpec() : temp.getSpec());// productSpec.setName(list.size() + // == + // 1 + // ? + // "" + // : + // temp.getSpec()); + productSpec.setPrice(temp.getPrice()); + productSpec.setMemberPrice(temp.getMemberPrice()); + productSpec.setMinPrice(0D); + productSpec.setCostPrice(0D); + productSpec.setOtherPrice(0D); + productSpec.setPurchasePrice(0D); + productSpec.setDispatchPrice(0D); + productSpec.setMaterialRate(100D); + productSpec.setDeleteFlag(0); + productSpec.setCreateUser(currentUserName); + + specList.add(productSpec); + + if (i == 0) { + productSpec.setIsdefault(1); + saveProduct.setSpec(productSpec.getName()); + } + } + + rows += this.productSpecDao.save(tenantId, specList); + // 根据默认规格信息,更新商品信息 + this.productDao.update(tenantId, saveProduct, true); + maxNoInt++; + } + + return rows; + // return productList.size(); + } catch (Exception e) { + throw e; + } + } + + private String getNextNo(String maxNo, int noLength) { + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + long maxNoInt = 0L; + try { + maxNoInt = Long.parseLong(maxNo); + } catch (Exception e) { + logger.error("字符串" + maxNo + "转换成数值出错!"); + } + String nextNo = StringUtils.leftPad("" + (maxNoInt + 1), noLength, "0"); + return nextNo; + } + + private String getNextLongNo(String maxNo, int noLength) { + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + long maxNoLong = 0L; + try { + maxNoLong = Long.parseLong(maxNo); + } catch (Exception e) { + logger.error("字符串" + maxNo + "转换成数值出错!"); + } + String nextNo = StringUtils.leftPad("" + (maxNoLong + 1), noLength, "0"); + return nextNo; + } + + @Override + public Boolean isUsed4Inventory(String tenantId, String productId) throws Exception { + String info = "根据商品ID,判断该商品是否已产生库存业务单据."; + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", productId)); + List zbkcList = productStockDao.getList(tenantId, criteria);// 总部原料库存 + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", productId)); + List mdkcList = productStoreStockDao.getList(tenantId, criteria);// 门店原料库存 + + boolean result = CollectionUtils.isNotEmpty(zbkcList) || CollectionUtils.isNotEmpty(mdkcList); + logger.debug(info + "--->result:" + result); + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Product saveWithRatio(String tenantId, Product product, List specList, ProductRatio productRatio) throws Exception { + Assert.notEmpty(specList, "parameter 'specList' can't be null or empty!"); + + try { + if (StringUtils.isNotBlank(product.getTypeId())) { + ProductType productType = productTypeDao.get(tenantId, product.getTypeId(), true); + if (productType == null) { + product.setTypeId(null); + product.setTypePath(null); + } else { + product.setTypeId(productType.getId()); + product.setTypePath(productType.getPath()); + } + } + + product = this.productDao.save(tenantId, product, true); + + // 设置默认规格以及规格信息中增加商品ID + for (int i = 0; i < specList.size(); i++) { + ProductSpec spec = specList.get(i); + spec.setNo("" + i); + spec.setProductId(product.getId()); + if (i == 0) { + spec.setIsdefault(1); + product.setSpec(spec.getName()); + } + } + this.productSpecDao.save(tenantId, specList); + + // 根据默认规格信息,更新商品信息 + this.productDao.update(tenantId, product, true); + + // 启用库存管理的,添加默认商品库存系数 + productRatio.setProductId(product.getId()); + productRatio.setCreateUser(product.getCreateUser()); + productRatio.setTenantId(tenantId); + productRatioDao.save(tenantId, productRatio, true); + + return product; + } catch (Exception e) { + throw e; + } + } + + @Override + public Product updateWithRatio(String tenantId, Product product, List specList, ProductRatio productRatio) throws Exception { + try { + Assert.notEmpty(specList, "parameter 'specList' can't be null or empty!"); + + if (StringUtils.isNotBlank(product.getTypeId())) { + ProductType productType = productTypeDao.get(tenantId, product.getTypeId(), true); + if (productType == null) { + product.setTypeId(null); + product.setTypePath(null); + } else { + product.setTypeId(productType.getId()); + product.setTypePath(productType.getPath()); + } + } + + this.productDao.update(tenantId, product, true); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", product.getId())); + List oldSpecList = this.productSpecDao.getList(tenantId, criteria, true); + List oldSpecIdList = new ArrayList<>(); + for (ProductSpec oldSpec : oldSpecList) { + oldSpecIdList.add(oldSpec.getId()); + } + + List addSpecList = new ArrayList<>(); + List updateSpecList = new ArrayList<>(); + List delSpecList = new ArrayList<>(); + + List newSpecIdList = new ArrayList<>(); + ProductSpec defaultSpec = null; + for (int i = 0; i < specList.size(); i++) { + ProductSpec spec = specList.get(i); + spec.setIsdefault(0); + spec.setNo("" + i); + if (StringUtils.isBlank(spec.getProductId())) { + spec.setProductId(product.getId()); + } + + if (StringUtils.isBlank(spec.getId())) { + addSpecList.add(spec); + } else { + if (oldSpecIdList.contains(spec.getId())) { + spec.setModifyUser(product.getModifyUser()); + spec.setModifyDate(product.getModifyDate() == null ? new Date() : product.getModifyDate()); + updateSpecList.add(spec); + } + newSpecIdList.add(spec.getId()); + } + + if (i == 0) { + defaultSpec = spec; + } + } + + for (String oldSpecId : oldSpecIdList) { + if (!newSpecIdList.contains(oldSpecId)) { + delSpecList.add(oldSpecId); + } + } + + if (delSpecList.size() > 0) { + // 物理删除 + // this.productSpecDao.delete(tenantId, delSpecList); + + // 逻辑删除 + this.productSpecDao.deleteLogical(tenantId, delSpecList, product.getModifyUser()); + } + + if (addSpecList.size() > 0) { + this.productSpecDao.save(tenantId, addSpecList); + } + + if (updateSpecList.size() > 0) { + this.productSpecDao.update(tenantId, updateSpecList); + } + + defaultSpec.setIsdefault(1); + this.productSpecDao.update(tenantId, defaultSpec, true); + + product.setSpec(defaultSpec.getName()); + this.productDao.update(tenantId, product, true); + productRatio.setModifyUser(product.getModifyUser()); + productRatio.setModifyDate(new Date()); + productRatio.setTenantId(tenantId); + productRatioDao.update(tenantId, productRatio, true); + + return product; + } catch (Exception e) { + throw e; + } + } + + @Override + public String saveByMaterialImpt(String tenantId, List specList, int productNoLength, List newUnitList, int productUnitNoLength, String userName) throws Exception { + String i = "0"; + try { + // 先保存计量单位信息 + List saveUnitList = new ArrayList<>(); + ProductUnit productUnit = null; + String maxNo = productUnitDao.selectMaxValue(tenantId, "`no`+0", true); + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + int maxNoInt = Integer.parseInt(maxNo); + for (String unitName : newUnitList) { + productUnit = new ProductUnit(); + productUnit.setNo(getNextNo("" + maxNoInt, productUnitNoLength)); + productUnit.setName(unitName); + productUnit.setDeleteFlag(0); + productUnit.setCreateUser(userName); + productUnit.setTenantId(tenantId); + + saveUnitList.add(productUnit); + maxNoInt++; + } + if (saveUnitList.size() > 0) { + productUnitDao.save(tenantId, saveUnitList); + } + + Criteria criteria = new Criteria(); + List unitList = productUnitDao.getList(tenantId, criteria, true); + Map unitMap = new HashMap<>(); + for (ProductUnit unit : unitList) { + unitMap.put(unit.getName(), unit); + } + criteria = new Criteria(); + criteria.add(Restrictions.eq("deleteFlag",0)); + criteria.add(Restrictions.notEq("sign",1)); + List productTypeList = productTypeDao.getList(tenantId, new Criteria(), true); + Map productTypeMap = new HashMap<>(); + for (ProductType productType : productTypeList) { + productTypeMap.put(productType.getId(), productType); + } + + for (ProductType productType : productTypeList) { + productTypeMap.put(getFullName(productType, productTypeMap), productType); + } + + ProductType productType = null; + + maxNo = productDao.selectMaxValue(tenantId, "no", true); + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + maxNoInt = Integer.parseInt(maxNo); + + List ratios = new ArrayList<>(); + // 保存原料、原料规格; + for (ProductSpec temp : specList) { + Product product = new Product(); + if (StringUtils.isBlank(temp.getProductNo())) { + product.setNo(getNextNo("" + maxNoInt, productNoLength)); + product.setNoType(1);// 编号类型 + maxNoInt++; + } else { + product.setNo(temp.getProductNo()); + product.setNoType(2);// 编号类型 + } + product.setName(temp.getProductName()); + product.setSpec(temp.getName()); + product.setUnitId(temp.getSalesUnitId()); + + productType = productTypeMap.get(StringUtils.trim(temp.getTypeId())); + if (productType != null) { + product.setTypeId(productType.getId()); + product.setTypePath(productType.getPath()); + } else { + if (StringUtils.isNotBlank(temp.getTypeId())) { + return temp.getTypeId();// 没有找到对应类别; + } + product.setTypeId(null); + product.setTypePath(null); + } + + if (StringUtils.isBlank(temp.getTypeId())) { + product.setTypeId(null); + product.setTypePath(null); + } + + product.setShortName(temp.getProductName()); + product.setBrandId(null); + product.setSpell(temp.getSpell()); + + product.setUnitId(unitMap.get(temp.getSalesUnitId()).getId()); + product.setDescription(temp.getProductDescription()); + + product.setType(10);// 原料类型 + product.setStockFlag(1);// 是否管理库存 + product.setPurchaseTax(17D);// 进项税 + product.setSaleTax(0D);// 销项税 + product.setCommissionType(0);// 提成方式 + product.setCommissionValue(0D);// 提成值 + product.setPointType(0);// 积分类型 + product.setPointValue(0D);// 积分值 + product.setDiscountFlag(0);// 是否可折扣 + product.setCurrentFlag(0);// 是否可议价 + product.setTapleFlag(0);// 是否主食 + product.setWeighFlag(0);// 是否称重 + product.setLabelPrintFlag(0);// 打印标签 + product.setMebDiscountFlag(0);// 会员折上折 + product.setGiveFlag(0);// 允许赠送 + product.setPromotionFlag(0);// 允许促销 + product.setLyRate(0D);// 联营扣率 + product.setStopFlag(0);// 停用 + product.setDeleteFlag(0); + product.setSuitFlag(0);// 套餐 + product.setTenantId(tenantId); + product.setCreateUser(userName); + + product = productDao.save(tenantId, product, true); + + temp.setName(temp.getName()); + temp.setNo("0"); + temp.setProductId(product.getId()); + temp.setTenantId(tenantId); + temp.setCreateUser(userName); + temp.setDeleteFlag(0); + temp.setMaterialRate(100.00); + + ProductRatio ratio = new ProductRatio(); + ratio.setTenantId(tenantId); + ratio.setCreateUser(userName); + ratio.setProductId(product.getId()); + ratio.setDispatchUnitId(unitMap.get(temp.getDispatchUnitId()).getId()); + ratio.setPurchaseUnitId(unitMap.get(temp.getPurchaseUnitId()).getId()); + ratio.setPackUnitId(unitMap.get(temp.getPackUnitId()).getId()); + ratio.setSalesUnitId(unitMap.get(temp.getSalesUnitId()).getId()); + ratio.setPdScale(temp.getPdScale()); + ratio.setDpScale(temp.getDpScale()); + ratio.setPsScale(temp.getPsScale()); + ratios.add(ratio); + + } + productSpecDao.save(tenantId, specList); + if (CollectionUtils.isNotEmpty(ratios)) { + productRatioDao.save(tenantId, ratios); + } + i = "1"; + + } catch (Exception e) { + throw e; + } + return i; + } + + private String getFullName(ProductType productType, Map productTypeMap) { + StringBuffer fullName = new StringBuffer(); + String[] idArray = StringUtils.split(productType.getPath(), ","); + for (String id : idArray) { + fullName.append(productTypeMap.get(id) == null ? "" : productTypeMap.get(id).getName()).append("/"); + } + return fullName.substring(0, fullName.length() - 1).toString(); + } + + /** + * 获取门店商品信息 + */ + @Override + public Pager getPagerExtends(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productDao.getPagerExtends(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public String selectMaxNoSelf(String tenantId, String storeId) throws Exception { + try { + return this.productDao.selectMaxNoSelf(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Boolean saveSelfProduct(String tenantId, Product product, ProductSpec productSpec, StoreProduct storeProduct, ProductKitPlan productKitPlan, List suitList, List suitDetailList) throws Exception { + try { + // 创建商品 + product = productDao.save(tenantId, product); + // 创建规格 + productSpec.setProductId(product.getId()); + productSpec = productSpecDao.save(tenantId, productSpec); + // 创建商品门店关联 + storeProduct.setProductId(product.getId()); + storeProduct.setSpecId(productSpec.getId()); + storeProductDao.save(tenantId, storeProduct); + // 创建商品厨打方案 + if (productKitPlan != null) { + productKitPlan.setProductId(product.getId()); + productKitPlanDao.save(tenantId, productKitPlan); + } + if (suitList != null && suitList.size() > 0) { + int i = 0; + for (ProductSuit productSuit : suitList) { + productSuit.setProductId(product.getId()); + productSuit = productSuitDao.save(tenantId, productSuit); + ProductSuitDetail productSuitDetail = suitDetailList.get(i); + productSuitDetail.setSuitId(productSuit.getId()); + productSuitDetailDao.save(tenantId, productSuitDetail); + i++; + } + } + return true; + } catch (Exception e) { + throw e; + } + } + + @Override + public Boolean updateSelfProduct(String tenantId, Product product, ProductKitPlan productKitPlan) throws Exception { + try { + // 创建商品 + productDao.update(tenantId, product); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("productId", product.getId())); + // 修改商品规格 + List list0 = productSpecDao.getList(tenantId, criteria); + for (ProductSpec productSpec : list0) { + productSpec.setPrice(product.getPrice()); + productSpec.setMemberPrice(product.getMemberPrice()); + // 修改门店商品 + productSpecDao.update(tenantId, productSpec); + } + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", product.getStoreId())); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("productId", product.getId())); + List list = storeProductDao.getList(tenantId, criteria); + for (StoreProduct storeProduct : list) { + storeProduct.setTypeId(product.getTypeId()); + storeProduct.setTypePath(product.getTypePath()); + storeProduct.setProductUnitId(product.getUnitId()); + storeProduct.setPrice(product.getPrice()); + storeProduct.setMemberPrice(product.getMemberPrice()); + // 修改门店商品 + storeProductDao.update(tenantId, storeProduct); + } + // 创建商品厨打方案 + if (productKitPlan != null && productKitPlan.getId() == null) { + productKitPlan.setProductId(product.getId()); + productKitPlanDao.save(tenantId, productKitPlan); + } else if (productKitPlan != null && productKitPlan.getId() != null) { + productKitPlanDao.update(tenantId, productKitPlan); + } else if (productKitPlan == null) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", product.getStoreId())); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("productId", product.getId())); + productKitPlanDao.delete(tenantId, criteria); + } + return true; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveByImptWithProductNoRule(String tenantId, List productList, int productNoLength, List newUnitList, int productUnitNoLength, String userName) throws Exception { + try { + int rows = 0; + // 先保存计量单位信息 + List saveUnitList = new ArrayList<>(); + ProductUnit productUnit = null; + String maxNo = productUnitDao.selectMaxValue(tenantId, "no", true); + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + int maxNoInt = Integer.parseInt(maxNo); + for (String unitName : newUnitList) { + productUnit = new ProductUnit(); + productUnit.setNo(getNextNo("" + maxNoInt, productUnitNoLength)); + productUnit.setName(unitName); + productUnit.setDeleteFlag(0); + productUnit.setCreateUser(userName); + productUnit.setTenantId(tenantId); + + saveUnitList.add(productUnit); + maxNoInt++; + } + if (saveUnitList.size() > 0) { + rows += productUnitDao.save(tenantId, saveUnitList); + } + productUnit = null; + + Criteria criteria = new Criteria(); + List unitList = productUnitDao.getList(tenantId, criteria, true); + Map unitMap = new HashMap<>(); + for (ProductUnit unit : unitList) { + unitMap.put(unit.getName(), unit); + } + + Map> dataMap = new LinkedHashMap<>(); + // 名称相同按同一个产品不同规格处理 + for (Product product : productList) { + // String tempKey = product.getName(); + String tempKey = product.getName(); + if (StringUtils.isNotBlank(product.getTypeId())) { + tempKey = product.getName() + product.getTypeId();// 不同类别,产品名称相同,应该算两个商品 + } + if (dataMap.get(tempKey) == null) { + dataMap.put(tempKey, new ArrayList<>()); + } + product.setUnitId(unitMap.get(product.getUnitId()).getId()); + + dataMap.get(tempKey).add(product); + } + + // maxNo = productDao.selectMaxValue(tenantId, "no", true); + // if (StringUtils.isBlank(maxNo)) { + // maxNo = "0"; + // } + // maxNoInt = Integer.parseInt(maxNo); + Map productNoMap = new HashMap<>(); + + // 保存产品信息 + for (String key : dataMap.keySet()) { + List list = dataMap.get(key); + + Product saveProduct = list.get(0); + if (!productNoMap.containsKey(saveProduct.getTypeId())) { + String maxNos = productDao.selectMaxNoByTypeId(tenantId, saveProduct.getTypeId(), true); + if (StringUtils.isBlank(maxNos)) { + ProductType type = productTypeDao.get(tenantId, saveProduct.getTypeId(), true); + System.out.println("productTypeId >>>>> "+saveProduct.getTypeId()); + maxNo = type.getNo() + getNextNo("", productNoLength); + } else { + maxNo = getNextLongNo(maxNos, maxNos.length()); + } + } else { + maxNo = getNextLongNo(productNoMap.get(saveProduct.getTypeId()), productNoMap.get(saveProduct.getTypeId()).length()); + } + saveProduct.setNo(maxNo); + productNoMap.put(saveProduct.getTypeId(), maxNo); + saveProduct.setCreateUser(userName); + saveProduct.setTenantId(tenantId); + if (list.size() == 1 && StringUtils.isBlank(saveProduct.getDescription()) && StringUtils.isNotBlank(list.get(0).getSpec())) { + saveProduct.setDescription(saveProduct.getName() + "[" + list.get(0).getSpec() + "]"); + } + saveProduct = this.productDao.save(tenantId, saveProduct, true); + + // 套餐不能启用规格 + if (saveProduct.getSuitFlag() == 1) { + List tempList = new ArrayList<>(); + tempList.add(list.get(0)); + list = tempList; + } + + List specList = new ArrayList<>(); + for (int i = 0; i < list.size(); i++) { + Product temp = list.get(i); + ProductSpec productSpec = new ProductSpec(); + productSpec.setTenantId(tenantId); + productSpec.setProductId(saveProduct.getId()); + productSpec.setIsdefault(0); + productSpec.setNo("" + i); + productSpec.setName(list.size() == 1 ? temp.getSpec() : temp.getSpec());// productSpec.setName(list.size() + productSpec.setPrice(temp.getPrice()); + productSpec.setMemberPrice(temp.getMemberPrice()); + productSpec.setMinPrice(0D); + productSpec.setCostPrice(0D); + productSpec.setOtherPrice(0D); + productSpec.setPurchasePrice(0D); + productSpec.setDispatchPrice(0D); + productSpec.setMaterialRate(100D); + productSpec.setDeleteFlag(0); + productSpec.setCreateUser(userName); + + specList.add(productSpec); + + if (i == 0) { + productSpec.setIsdefault(1); + saveProduct.setSpec(productSpec.getName()); + } + } + + rows += this.productSpecDao.save(tenantId, specList); + // 根据默认规格信息,更新商品信息 + this.productDao.update(tenantId, saveProduct, true); + maxNoInt++; + } + + return rows; + // return productList.size(); + } catch (Exception e) { + throw e; + } + } + + @Override + public String selectMaxNoByTypeId(String tenantId, String typeId) throws Exception { + try { + return productDao.selectMaxNoByTypeId(tenantId, typeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public String saveByMaterialImptWithProductNoRule(String tenantId, List specList, int productNoLength, List newUnitList, int productUnitNoLength, String userName) throws Exception { + String i = "0"; + try { + // 先保存计量单位信息 + List saveUnitList = new ArrayList<>(); + ProductUnit productUnit = null; + String maxNo = productUnitDao.selectMaxValue(tenantId, "`no`+0", true); + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + int maxNoInt = Integer.parseInt(maxNo); + for (String unitName : newUnitList) { + productUnit = new ProductUnit(); + productUnit.setNo(getNextNo("" + maxNoInt, productUnitNoLength)); + productUnit.setName(unitName); + productUnit.setDeleteFlag(0); + productUnit.setCreateUser(userName); + productUnit.setTenantId(tenantId); + + saveUnitList.add(productUnit); + maxNoInt++; + } + if (saveUnitList.size() > 0) { + productUnitDao.save(tenantId, saveUnitList); + } + + Criteria criteria = new Criteria(); + List unitList = productUnitDao.getList(tenantId, criteria, true); + Map unitMap = new HashMap<>(); + for (ProductUnit unit : unitList) { + unitMap.put(unit.getName(), unit); + } + + List productTypeList = productTypeDao.getList(tenantId, new Criteria(), true); + Map productTypeMap = new HashMap<>(); + for (ProductType productType : productTypeList) { + productTypeMap.put(productType.getId(), productType); + } + + for (ProductType productType : productTypeList) { + productTypeMap.put(getFullName(productType, productTypeMap), productType); + } + + ProductType productType = null; + + // maxNo = productDao.selectMaxValue(tenantId, "no", true); + // if (StringUtils.isBlank(maxNo)) { + // maxNo = "0"; + // } + // maxNoInt = Integer.parseInt(maxNo); + + Map productNoMap = new HashMap<>(); + + List ratios = new ArrayList<>(); + // 保存原料、原料规格; + for (ProductSpec temp : specList) { + Product product = new Product(); + + product.setName(temp.getProductName()); + product.setSpec(temp.getName()); + product.setUnitId(temp.getSalesUnitId()); + + productType = productTypeMap.get(StringUtils.trim(temp.getTypeId())); + if (productType != null) { + product.setTypeId(productType.getId()); + product.setTypePath(productType.getPath()); + } else { + if (StringUtils.isNotBlank(temp.getTypeId())) { + return temp.getTypeId();// 没有找到对应类别; + } + product.setTypeId(null); + product.setTypePath(null); + } + + if (StringUtils.isBlank(temp.getProductNo())) { + + if (!productNoMap.containsKey(product.getTypeId())) { + String maxNos = productDao.selectMaxNoByTypeId(tenantId, product.getTypeId(), true); + if (StringUtils.isBlank(maxNos)) { + ProductType type = productTypeDao.get(tenantId, product.getTypeId(), true); + maxNo = type.getNo() + getNextNo("", productNoLength); + } else { + maxNo = getNextLongNo(maxNos, maxNos.length()); + } + } else { + maxNo = getNextLongNo(productNoMap.get(product.getTypeId()), productNoMap.get(product.getTypeId()).length()); + } + product.setNo(maxNo); + product.setNoType(1);// 编号类型 + productNoMap.put(product.getTypeId(), maxNo); + + } else { + product.setNo(temp.getProductNo()); + product.setNoType(2);// 编号类型 + } + + // if (StringUtils.isBlank(temp.getTypeId())) { + // product.setTypeId(null); + // product.setTypePath(null); + // } + + product.setShortName(temp.getProductName()); + product.setBrandId(null); + product.setSpell(temp.getSpell()); + + product.setUnitId(unitMap.get(temp.getSalesUnitId()).getId()); + product.setDescription(temp.getProductDescription()); + + product.setType(10);// 原料类型 + product.setStockFlag(1);// 是否管理库存 + product.setPurchaseTax(17D);// 进项税 + product.setSaleTax(0D);// 销项税 + product.setCommissionType(0);// 提成方式 + product.setCommissionValue(0D);// 提成值 + product.setPointType(0);// 积分类型 + product.setPointValue(0D);// 积分值 + product.setDiscountFlag(0);// 是否可折扣 + product.setCurrentFlag(0);// 是否可议价 + product.setTapleFlag(0);// 是否主食 + product.setWeighFlag(0);// 是否称重 + product.setLabelPrintFlag(0);// 打印标签 + product.setMebDiscountFlag(0);// 会员折上折 + product.setGiveFlag(0);// 允许赠送 + product.setPromotionFlag(0);// 允许促销 + product.setLyRate(0D);// 联营扣率 + product.setStopFlag(0);// 停用 + product.setDeleteFlag(0); + product.setSuitFlag(0);// 套餐 + product.setTenantId(tenantId); + product.setCreateUser(userName); + + product = productDao.save(tenantId, product, true); + + temp.setName(temp.getName()); + temp.setNo("0"); + temp.setProductId(product.getId()); + temp.setTenantId(tenantId); + temp.setCreateUser(userName); + temp.setDeleteFlag(0); + temp.setMaterialRate(100.00); + + ProductRatio ratio = new ProductRatio(); + ratio.setTenantId(tenantId); + ratio.setCreateUser(userName); + ratio.setProductId(product.getId()); + ratio.setDispatchUnitId(unitMap.get(temp.getDispatchUnitId()).getId()); + ratio.setPurchaseUnitId(unitMap.get(temp.getPurchaseUnitId()).getId()); + ratio.setPackUnitId(unitMap.get(temp.getPackUnitId()).getId()); + ratio.setSalesUnitId(unitMap.get(temp.getSalesUnitId()).getId()); + ratio.setPdScale(temp.getPdScale()); + ratio.setDpScale(temp.getDpScale()); + ratio.setPsScale(temp.getPsScale()); + ratios.add(ratio); + + } + productSpecDao.save(tenantId, specList); + if (CollectionUtils.isNotEmpty(ratios)) { + productRatioDao.save(tenantId, ratios); + } + i = "1"; + + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer updateProductBatch(String tenantId, List updateList, List updateSpecList, List updateRatioList, List saveList, List saveSpecList, List saveRatioList) { + try { + int result = 0; + if (updateList != null && updateList.size() > 0) { + result += productDao.update(tenantId, updateList); + } + if (updateSpecList != null && updateSpecList.size() > 0) { + result += productSpecDao.update(tenantId, updateSpecList); + } + if (updateRatioList != null && updateRatioList.size() > 0) { + result += productRatioDao.update(tenantId, updateRatioList); + } + // 第二部处理新增 + if (saveList != null && saveList.size() > 0) { + for (int i = 0; i < saveList.size(); i++) { + // 插入原料资料 + Product product = saveList.get(i); + product = productDao.save(tenantId, product, true); + // 插入原料规格 + ProductSpec productSpec = saveSpecList.get(i); + productSpec.setProductId(product.getId()); + productSpecDao.save(tenantId, productSpec, true); + // 插入库存系数 + ProductRatio productRatio = saveRatioList.get(i); + productRatio.setProductId(product.getId()); + productRatioDao.save(tenantId, productRatio, true); + } + } + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Boolean saveSelfProductSpecs(String tenantId, String storeId, Product product, List specs, ProductKitPlan productKitPlan) throws Exception { + try { + // 创建商品 + product = productDao.save(tenantId, product); + // 创建规格 + List list = new ArrayList<>(); + for (ProductSpec ps : specs) { + ps.setProductId(product.getId()); + ps = productSpecDao.save(tenantId, ps); + list.add(ps); + } + + for (ProductSpec spec : list) { + // 创建门店商品关联 + StoreProduct storeProduct = new StoreProduct(); + storeProduct.setTenantId(tenantId); + storeProduct.setProductId(product.getId()); + storeProduct.setSpecId(spec.getId()); + storeProduct.setStoreId(storeId); + storeProduct.setProductUnitId(product.getUnitId()); + storeProduct.setTypeId(product.getTypeId()); + storeProduct.setTypePath(product.getTypePath()); + storeProduct.setPrice(spec.getPrice()); + storeProduct.setMinPrice(0.00); + storeProduct.setMemberPrice(spec.getMemberPrice()); + storeProduct.setOtherPrice(0.00); + storeProduct.setCostPrice(0.00); + storeProduct.setPurchasePrice(0.00); + storeProduct.setDispatchPrice(0.00); + storeProduct.setCreateUser(product.getCreateUser()); + storeProduct.setCreateDate(new Date()); + storeProductDao.save(tenantId, storeProduct); + + } + + // 创建商品厨打方案 + if (productKitPlan != null) { + productKitPlan.setProductId(product.getId()); + productKitPlanDao.save(tenantId, productKitPlan); + } + + return true; + } catch (Exception e) { + throw e; + } + } + + @Override + public Boolean updateSelfProductSpec(String tenantId, Product product, List specs, ProductKitPlan productKitPlan) throws Exception { + try { + // 创建商品 + productDao.update(tenantId, product); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("productId", product.getId())); + List specList = productSpecDao.getList(tenantId, criteria); + List saveSpecs = new ArrayList<>(); + List specIds = new ArrayList<>(); + int index = specList.size(); + for (ProductSpec spec : specs) { + // 创建门店商品关联 + if (StringUtils.isNotBlank(spec.getId())) { + specIds.add(spec.getId()); + productSpecDao.update(tenantId, spec); + saveSpecs.add(spec); + } else { + spec.setNo(index + ""); + spec.setIsdefault(0); + ProductSpec productSpec = productSpecDao.save(tenantId, spec); + saveSpecs.add(productSpec); + index += 1; + } + + } + criteria = new Criteria(); + criteria.add(Restrictions.in("specId", specIds)); + criteria.add(Restrictions.eq("storeId", product.getStoreId())); + storeProductDao.delete(tenantId, criteria); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", product.getStoreId())); + criteria.add(Restrictions.eq("productId", product.getId())); + List storeProductList = storeProductDao.getList(tenantId, criteria); + if (CollectionUtils.isNotEmpty(storeProductList)) { + for (StoreProduct sp : storeProductList) { + sp.setProductUnitId(product.getUnitId()); + sp.setTypeId(product.getTypeId()); + sp.setTypePath(product.getTypePath()); + storeProductDao.update(tenantId, sp); + } + } + + for (ProductSpec spec : saveSpecs) { + StoreProduct storeProduct = new StoreProduct(); + storeProduct.setTenantId(tenantId); + storeProduct.setProductId(product.getId()); + storeProduct.setSpecId(spec.getId()); + storeProduct.setStoreId(product.getStoreId()); + storeProduct.setProductUnitId(product.getUnitId()); + storeProduct.setTypeId(product.getTypeId()); + storeProduct.setTypePath(product.getTypePath()); + storeProduct.setPrice(spec.getPrice()); + storeProduct.setMinPrice(0.00); + storeProduct.setMemberPrice(spec.getMemberPrice()); + storeProduct.setOtherPrice(0.00); + storeProduct.setCostPrice(0.00); + storeProduct.setPurchasePrice(0.00); + storeProduct.setDispatchPrice(0.00); + storeProduct.setCreateUser(product.getCreateUser()); + storeProduct.setCreateDate(new Date()); + storeProductDao.save(tenantId, storeProduct); + } + + // 创建商品厨打方案 + if (productKitPlan != null && productKitPlan.getId() == null) { + productKitPlan.setProductId(product.getId()); + productKitPlanDao.save(tenantId, productKitPlan); + } else if (productKitPlan != null && productKitPlan.getId() != null) { + productKitPlanDao.update(tenantId, productKitPlan); + } else if (productKitPlan == null) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", product.getStoreId())); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("productId", product.getId())); + productKitPlanDao.delete(tenantId, criteria); + } + return true; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreIdProduct(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productDao.getPagerByStoreIdProduct(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreIdMore(String tenantId, String storeId, String typeId, String keyword, Pager pager) { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productDao.getPagerByStoreIdMore(tenantId, storeId, typeId, keyword, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSpecServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSpecServiceImpl.java new file mode 100644 index 0000000..12104ef --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSpecServiceImpl.java @@ -0,0 +1,275 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreProductDao; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductSpecDao; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductSpecService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductSpecServiceImpl") +public class ProductSpecServiceImpl extends BaseServiceImpl implements ProductSpecService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreProductDaoImpl") + private StoreProductDao storeProductDao; + + @Override + public BaseDao getBaseDao() { + return this.productSpecDao; + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithProduct(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getListWithProduct(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerOffShelf(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerOffShelf(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerOffShelfBySteps(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + List specIds = storeProductDao.getSpecIdsList(tenantId,storeId); + if(CollectionUtils.isEmpty(specIds)){ + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerWithProduct(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + }else{ + Set specIdSet = new HashSet<>(specIds); + Integer i = 0; + Integer length = 30000; + criteria.add(Restrictions.limit(i+"",length+"")); + List list = productSpecDao.getListWithProduct(tenantId,criteria); + List productSpecList = new ArrayList<>(); + while(CollectionUtils.isNotEmpty(list)){ + for(ProductSpec ps : list){ + if(!specIdSet.contains(ps.getId())){ + productSpecList.add(ps); + } + } + if(list.size() < length){ + break; + } + criteria.add(Restrictions.limit((i+=length)+"",length+"")); + list = productSpecDao.getListWithProduct(tenantId,criteria); + } + if((pager.getPageNumber()-1)*pager.getPageSize() > productSpecList.size()){ + pager.setList(new ArrayList<>()); + }else if(pager.getPageNumber()*pager.getPageSize() < productSpecList.size()){ + pager.setList(productSpecList.subList((pager.getPageNumber()-1)*pager.getPageSize(),pager.getPageNumber()*pager.getPageSize())); + }else if(pager.getPageNumber()*pager.getPageSize() >= productSpecList.size() ){ + pager.setList(productSpecList.subList((pager.getPageNumber()-1)*pager.getPageSize(),productSpecList.size())); + } + pager.setTotalCount(productSpecList.size()); + return pager; + } + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerByStoreId(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreIds(String tenantId, List storeIdList, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getListByStoreIds(tenantId, storeIdList, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public ProductSpec getWithProduct(String tenantId, String id) throws Exception { + try { + return this.productSpecDao.getWithProduct(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtendWithRatio(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerExtendWithRatio(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtendWithRatio(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getListExtendWithRatio(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerWithProduct(String tenantId, Criteria criteria, Pager pager) throws Exception{ + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerWithProduct(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getAllSpecIds(String tenantId, Criteria criteria) throws Exception { + try { + return productSpecDao.getAllSpecIds(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getProductSpecByDishNoSpecName(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getProductSpecByDishNoSpecName(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getSpecIdByCriteria(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getSpecIdByCriteria(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithErpInfo(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getListWithErpInfo(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getUselevelInfoListByStoreIds(String tenantId, List storeIdList, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getUselevelInfoListByStoreIds(tenantId, storeIdList, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithProductByStoreId(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSpecDao.getListWithProductByStoreId(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreIdProduct(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerByStoreIdProduct(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreIdProduct(String tenantId, String storeId, String productId) throws Exception { + try { + return this.productSpecDao.getListByStoreIdProduct(tenantId, storeId, productId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreId(String tenantId, String storeId) throws Exception { + try { + return this.productSpecDao.getListByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStockLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStockLogServiceImpl.java new file mode 100644 index 0000000..017d37b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStockLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductStockLogDao; +import com.jwsaas.entity.food.ProductStockLog; +import com.jwsaas.service.food.ProductStockLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogServiceImpl") +public class ProductStockLogServiceImpl extends BaseServiceImpl implements ProductStockLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogDaoImpl") + private ProductStockLogDao productStockLogDao; + + @Override + public BaseDao getBaseDao() { + return this.productStockLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStockServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStockServiceImpl.java new file mode 100644 index 0000000..a4edf0a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStockServiceImpl.java @@ -0,0 +1,52 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductStockDao; +import com.jwsaas.entity.food.ProductStock; +import com.jwsaas.service.food.ProductStockService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductStockServiceImpl") +public class ProductStockServiceImpl extends BaseServiceImpl implements ProductStockService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") + private ProductStockDao productStockDao; + + @Override + public BaseDao getBaseDao() { + return this.productStockDao; + } + + @Override + public Pager getExtendsPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = productStockDao.getExtendsPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria) throws Exception { + try { + return productStockDao.getExtendsList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreOutCollectDayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreOutCollectDayServiceImpl.java new file mode 100644 index 0000000..03c2feb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreOutCollectDayServiceImpl.java @@ -0,0 +1,41 @@ +package com.jwsaas.service.food.impl; + + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductStoreOutCollectDayDao; +import com.jwsaas.entity.food.ProductStoreOutCollectDay; +import com.jwsaas.service.food.ProductStoreOutCollectDayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductStoreOutCollectDayServiceImpl") +public class ProductStoreOutCollectDayServiceImpl extends BaseServiceImpl implements ProductStoreOutCollectDayService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductStoreOutCollectDayDaoImpl") + private ProductStoreOutCollectDayDao productStoreOutCollectDayDao; + + @Override + public BaseDao getBaseDao() { + return this.productStoreOutCollectDayDao; + } + + @Override + public List getStoreOutgoingCollect(String tenantId, Criteria criteria) + throws Exception { + return productStoreOutCollectDayDao.getStoreOutgoingCollect(tenantId, criteria); + } + + @Override + public List> getExportList(String tenantId, Criteria fenzhidu) throws Exception { + return productStoreOutCollectDayDao.getExportList(tenantId, fenzhidu); + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreStockLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreStockLogServiceImpl.java new file mode 100644 index 0000000..7dfc819 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreStockLogServiceImpl.java @@ -0,0 +1,131 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductStoreOutCollectDayDao; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.entity.food.ProductStoreOutCollectDay; +import com.jwsaas.entity.food.ProductStoreStockLog; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductStoreStockLogService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.DateUtils; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogServiceImpl") +public class ProductStoreStockLogServiceImpl extends BaseServiceImpl implements ProductStoreStockLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") + private ProductStoreStockLogDao productStoreStockLogDao; + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductStoreOutCollectDayDaoImpl") + private ProductStoreOutCollectDayDao productStoreOutCollectDayDao; + + @Override + public BaseDao getBaseDao() { + return this.productStoreStockLogDao; + } + + /** + * 门店商品库存消耗(出库)汇总
+ * 门店原物料消耗汇总 + */ + @Override + public Pager getPager4OutSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + // orderType,单据类型,1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库; + List orderTypeList = new ArrayList<>(); + orderTypeList.add("4"); + orderTypeList.add("6"); + criteria.add(Restrictions.in("psl.orderType", orderTypeList)); + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = this.productStoreStockLogDao.getPager4OutSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getList4OutSummary(String tenantId, Criteria criteria) throws Exception { + try { + // orderType,单据类型,1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库; + List orderTypeList = new ArrayList<>(); + orderTypeList.add("4"); + orderTypeList.add("6"); + criteria.add(Restrictions.in("psl.orderType", orderTypeList)); + return this.productStoreStockLogDao.getList4OutSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerSumAmount(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List types = new ArrayList<>(); + types.add(1); + types.add(2); + types.add(5); + types.add(8); + types.add(11); + criteria.add(Restrictions.in("orderType",types)); + List list = productStoreStockLogDao.getPagerSumAmount(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListSumAmount(String tenantId, Criteria criteria) throws Exception { + try { + List types = new ArrayList<>(); + types.add(1); + types.add(2); + types.add(5); + types.add(8); + types.add(11); + criteria.add(Restrictions.in("orderType",types)); + return productStoreStockLogDao.getListSumAmount(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStoreOutgoingCollect(String tenantId, List storeOutgoingCollect) throws Exception { + Integer update=0; + try { + + if(CollectionUtils.isNotEmpty(storeOutgoingCollect)&&storeOutgoingCollect.size()>0){ + update = this.productStoreOutCollectDayDao.save(tenantId, storeOutgoingCollect); + }else{ + update=-1; + } + + } catch (Exception e) { + throw e; + } + return update; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreStockServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreStockServiceImpl.java new file mode 100644 index 0000000..822a7b8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductStoreStockServiceImpl.java @@ -0,0 +1,602 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; + +import javax.annotation.Resource; + +import com.jwsaas.utils.DateUtils; +import org.apache.commons.collections4.CollectionUtils; +import org.redisson.api.RLock; +import org.redisson.api.RedissonClient; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductSpecDao; +import com.jwsaas.dao.food.ProductStoreStockDao; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.StoreBusinessTicketDao; +import com.jwsaas.dao.food.StoreOrderProductDao; +import com.jwsaas.entity.food.MakeBurden; +import com.jwsaas.entity.food.Product; +import com.jwsaas.entity.food.ProductBurden; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.entity.food.ProductStoreStock; +import com.jwsaas.entity.food.ProductStoreStockLog; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.entity.food.StoreBusinessTicket; +import com.jwsaas.entity.food.StoreOrderProduct; +import com.jwsaas.entity.food.StoreOrderProductMake; +import com.jwsaas.entity.food.StoreStorage; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductStoreStockService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.util.JSONUtil; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockServiceImpl") +public class ProductStoreStockServiceImpl extends BaseServiceImpl implements ProductStoreStockService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") + private ProductStoreStockDao productStoreStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") + private ProductStoreStockLogDao productStoreStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketDaoImpl") + private StoreBusinessTicketDao storeBusinessTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductDaoImpl") + private StoreOrderProductDao storeOrderProductDao; + + @Resource + private com.jwsaas.cache.CacheService cacheService; + @Resource + private RedissonClient redissonClient; + + @Override + public BaseDao getBaseDao() { + return this.productStoreStockDao; + } + + @Override + public Pager getStockPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productStoreStockDao.getStockPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getStockPagerNoStorageId(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productStoreStockDao.getStockPagerNoStorageId(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public synchronized Map saveStockOutBySalesOrder(String tenantId, List stockProductList, StoreStorage storeStorage, StoreBusinessTicket ticket, List ticketItemList, List ticketItemMakeList, List productBurdenList, List makeBurdenList) throws Exception { + Map result = new HashMap<>(); + result.put("status", 0); + result.put("message", "操作失败"); + try { + logger.debug("门店销售订单自动耗料处理...Start..."); + // 门店销售订单,自动耗料(自动扣减库存) + // 门店销售单(单据状态,status,0-等待付款;1-已支付;2-已退单;3-已取消;4-已完成;) + String storeId = ticket.getStoreId(); + // String ticketId = ticket.getId(); + String ticketNo = ticket.getNo(); + + // 需要管理库存的产品ID + List stockProductIdList = new ArrayList<>(); + Map stockProductMap = new HashMap<>(); + stockProductList.forEach(stockProduct -> { + stockProductIdList.add(stockProduct.getId()); + stockProductMap.put(stockProduct.getId(), stockProduct); + }); + logger.debug("stockProductList:{}", stockProductList); + logger.debug("stockProductIdList:{}", stockProductIdList); + + // 获取规格商品的基础信息,主要是价格(成本价等) + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("productId", stockProductIdList)); + List stockSpecList = productSpecDao.getList(tenantId, criteria, true); + Map stockSpecMap = new HashMap<>(); + stockSpecList.forEach(stockSpec -> { + stockSpecMap.put(stockSpec.getId(), stockSpec); + }); + logger.debug("stockSpecMap:{}", stockSpecMap); + + // 产品配料 + logger.debug("productBurdenList:{}", productBurdenList); + Map> productBurdenMap = new HashMap<>(); + for (ProductBurden productBurden : productBurdenList) { + List burdenList = productBurdenMap.get(productBurden.getSpecId()); + if (burdenList == null) { + burdenList = new ArrayList<>(); + productBurdenMap.put(productBurden.getSpecId(), burdenList); + } + + if (stockProductIdList.contains(productBurden.getBurdenProductId())) { + burdenList.add(productBurden); + } + } + logger.debug("productBurdenMap:{}", productBurdenMap); + + // 做法配料 + logger.debug("makeBurdenList:{}", makeBurdenList); + Map> makeBurdenMap = new HashMap<>(); + for (MakeBurden makeBurden : makeBurdenList) { + List burdenList = makeBurdenMap.get(makeBurden.getMakeId()); + if (burdenList == null) { + burdenList = new ArrayList<>(); + makeBurdenMap.put(makeBurden.getMakeId(), burdenList); + } + + if (stockProductIdList.contains(makeBurden.getBurdenProductId())) { + burdenList.add(makeBurden); + } + } + logger.debug("makeBurdenMap:{}", makeBurdenMap); + + // 计算每个商品的销售数量 + Map> skuDataMap = new HashMap<>(); + // 销售订单明细 + for (StoreOrderProduct ticketItem : ticketItemList) { + logger.debug("ticketItem:{}", ticketItem); + if (stockProductIdList.contains(ticketItem.getProductId())) { + Map skuData = skuDataMap.get(ticketItem.getSpecId()); + if (skuData == null) { + skuData = new HashMap<>(); + skuData.put("productId", ticketItem.getProductId()); + skuData.put("quantity", BigDecimal.ZERO); + skuData.put("amount", BigDecimal.ZERO); + skuDataMap.put(ticketItem.getSpecId(), skuData); + } + BigDecimal quantity = MathUtil.add((BigDecimal) skuData.get("quantity"), MathUtil.subtract(new BigDecimal(ticketItem.getCount()), new BigDecimal(ticketItem.getRcount()))); + + // BigDecimal price = + // stockSpecMap.get(ticketItem.getSpecId()).getCostPrice() + // == null ? BigDecimal.ZERO : new + // BigDecimal(stockSpecMap.get(ticketItem.getSpecId()).getCostPrice()); + // BigDecimal amount = MathUtil.add((BigDecimal) + // skuData.get("amount"), MathUtil.multiply(quantity, price, + // 4, BigDecimal.ROUND_HALF_UP)); + BigDecimal amount = MathUtil.add((BigDecimal) skuData.get("amount"), new BigDecimal(ticketItem.getReceivableTotal())); + skuData.put("quantity", quantity); + skuData.put("amount", amount); + } + + // 产品配料 + List burdenList = productBurdenMap.get(ticketItem.getSpecId()); + if (burdenList != null) { + for (ProductBurden burden : burdenList) { + if (stockProductIdList.contains(burden.getBurdenProductId())) { + Map skuData = skuDataMap.get(burden.getBurdenSpecId()); + if (skuData == null) { + skuData = new HashMap<>(); + skuData.put("productId", burden.getBurdenProductId()); + skuData.put("quantity", BigDecimal.ZERO); + skuData.put("amount", BigDecimal.ZERO); + skuDataMap.put(burden.getBurdenSpecId(), skuData); + } + + BigDecimal quantity = MathUtil.add((BigDecimal) skuData.get("quantity"), MathUtil.multiply(new BigDecimal(burden.getSalesAmount()), MathUtil.subtract(new BigDecimal(ticketItem.getCount()), new BigDecimal(ticketItem.getRcount())))); + BigDecimal price = stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice() == null ? BigDecimal.ZERO : new BigDecimal(stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice()); + BigDecimal amount = MathUtil.add((BigDecimal) skuData.get("amount"), MathUtil.multiply(quantity, price, 4, BigDecimal.ROUND_HALF_UP)); + skuData.put("quantity", quantity); + skuData.put("amount", amount); + } + } + } + + } + + // 销售订单做法信息,做法配料 + for (StoreOrderProductMake itemMake : ticketItemMakeList) { + logger.debug("itemMake:{}", itemMake); + List burdenList = makeBurdenMap.get(itemMake.getMakeId()); + if (burdenList != null) { + for (MakeBurden burden : burdenList) { + if (stockProductIdList.contains(burden.getBurdenProductId())) { + Map skuData = skuDataMap.get(burden.getBurdenSpecId()); + if (skuData == null) { + skuData = new HashMap<>(); + skuData.put("productId", burden.getBurdenProductId()); + skuData.put("quantity", BigDecimal.ZERO); + skuData.put("amount", BigDecimal.ZERO); + skuDataMap.put(burden.getBurdenSpecId(), skuData); + } + + BigDecimal quantity = MathUtil.add((BigDecimal) skuData.get("quantity"), MathUtil.multiply(new BigDecimal(burden.getSalesAmount()), MathUtil.subtract(new BigDecimal(itemMake.getCount()), new BigDecimal(itemMake.getRcount())))); + BigDecimal price = stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice() == null ? BigDecimal.ZERO : new BigDecimal(stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice()); + BigDecimal amount = MathUtil.add((BigDecimal) skuData.get("amount"), MathUtil.multiply(quantity, price, 4, BigDecimal.ROUND_HALF_UP)); + skuData.put("quantity", quantity); + skuData.put("amount", amount); + } + } + } + } + + logger.debug("skuDataMap:{}", JSONUtil.toJSONString(skuDataMap)); + + // 商品单位 + criteria = new Criteria(); + List productUnitList = productUnitDao.getList(tenantId, criteria, true); + Map productUnitMap = new HashMap<>(); + for (ProductUnit productUnit : productUnitList) { + productUnitMap.put(productUnit.getId(), productUnit); + } + + // 销售订单,库存商品消耗量 + // 销售数量到实际出库数量的处理 + // 门店的库存单位是包装单位,总部的库存单位是配送单位 + // 1-采购入库;2-配送入库;3-转仓库;4-销售出库; + Integer ticketType = 4; + String ticketTypeName = "销售出库"; + String operator = "system"; + + Map skuData = null; + String productId = null; + BigDecimal quantity = null; + BigDecimal price = null; + BigDecimal money = null; + List productRatioList = null; + ProductRatio ratio = null; + Product product = null; + ProductSpec productSpec = null; + for (String specId : skuDataMap.keySet()) { + skuData = skuDataMap.get(specId); + productId = skuData.get("productId").toString(); + quantity = (BigDecimal) skuData.get("quantity"); + money = (BigDecimal) skuData.get("amount"); + price = MathUtil.divide(money, quantity, 4, BigDecimal.ROUND_HALF_UP); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", productId)); + productRatioList = productRatioDao.getList(tenantId, criteria, true); + ratio = productRatioList.get(0); + + product = stockProductMap.get(productId); + productSpec = stockSpecMap.get(specId); + String key = tenantId + ":" + storeId + ":" + specId; + RLock lock = redissonClient.getFairLock("lock:" + key); + boolean res = false; + try { + res = lock.tryLock(100, 20, TimeUnit.SECONDS); + logger.error("RLock:" + key + "======>" + res); + this.productStoreStockDao.stockOut(tenantId, storeId, storeStorage.getId(), storeStorage.getName(), productId, product.getNo(), product.getName(), specId, productSpec.getName(), productSpec.getProductDescription(), ticketType, ticketTypeName, ticketNo, ratio.getSalesUnitId(), productUnitMap.get(ratio.getSalesUnitId()) == null ? null : productUnitMap.get(ratio.getSalesUnitId()).getName(), ratio.getPackUnitId(), productUnitMap.get(ratio.getPackUnitId()) == null ? null : productUnitMap.get(ratio.getPackUnitId()).getName(), price, quantity, money, operator, ratio, ratio.getDispatchUnitId(), productUnitMap.get(ratio.getDispatchUnitId()) == null ? null : productUnitMap.get(ratio.getDispatchUnitId()).getName(), productStoreStockLogDao); + } catch (Exception e) { + logger.error(e.getMessage()); + } finally { + if (res) { + lock.unlock(); + } + } + } + + // 记录耗料标识 + StoreBusinessTicket updateTicket = new StoreBusinessTicket(); + updateTicket.setId(ticket.getId()); + updateTicket.setIsStockDeal(1); + updateTicket.setModifyDate(new Date()); + updateTicket.setModifyUser(operator); + storeBusinessTicketDao.update(tenantId, updateTicket, true); + + for (StoreOrderProduct ticketItem : ticketItemList) { + StoreOrderProduct updateItem = new StoreOrderProduct(); + updateItem.setId(ticketItem.getId()); + // 明细以TicketId分库,所以不允许修改 + // Sharding column can't be updated + // CY_STORE_ORDER_PRODUCT->TICKETID + updateItem.setTicketId(ticketItem.getTicketId());// TicketId是分库的依据,不能为空,也不可以被修改 + updateItem.setIsStockDeal(1); + updateItem.setModifyDate(new Date()); + updateItem.setModifyUser(operator); + storeOrderProductDao.update(tenantId, updateItem, true);// 注意MyBatis映射文件的调整 + } + + // 计算实际成本/实际出库成本 + + logger.debug("门店销售订单自动耗料处理...End..."); + result.put("status", 1); + result.put("message", "操作成功"); + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public synchronized Map saveStockOutBySalesOrder(String tenantId, List list) throws Exception { + Map result = new HashMap<>(); + result.put("status", 0); + result.put("message", "操作失败"); + try { + logger.debug("门店销售订单自动耗料处理...Start..."); + Date createDate = new Date(); + String createUser = "open-api"; + for (ProductStoreStockLog productStoreStockLog : list) { + String clientId = productStoreStockLog.getId(); + // 门店销售订单 + Object keyDate = cacheService.get(tenantId, "bardId:" + productStoreStockLog.getStoreId()+clientId); + if (keyDate == null) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", productStoreStockLog.getStoreId())); + criteria.add(Restrictions.eq("storageId", productStoreStockLog.getStorageId())); + criteria.add(Restrictions.eq("productId", productStoreStockLog.getProductId())); + criteria.add(Restrictions.eq("specId", productStoreStockLog.getSpecId())); + List productStockList = productStoreStockDao.getList(tenantId, criteria, true); + ProductStoreStock stock = null; + if (CollectionUtils.isNotEmpty(productStockList)) { + // 门店原料库存,仓库中有该商品则修改 + stock = productStockList.get(0); + // 组建修改对象 + stock.setStockAmount(MathUtil.subtract(new BigDecimal(stock.getStockAmount()), new BigDecimal(productStoreStockLog.getAmount())).doubleValue());// 库存量 + BigDecimal tempPrice = MathUtil.eq(new BigDecimal(stock.getStockAmount()), BigDecimal.ZERO) ? new BigDecimal(productStoreStockLog.getPrice()) : MathUtil.divide(new BigDecimal(stock.getStockCost()), new BigDecimal(stock.getStockAmount())); + if (MathUtil.lt(tempPrice, BigDecimal.ZERO)) { + tempPrice = MathUtil.subtract(BigDecimal.ZERO, tempPrice); + } + BigDecimal tempCost = MathUtil.multiply(tempPrice, new BigDecimal(productStoreStockLog.getAmount())); + + // 库存成本 + stock.setStockCost(MathUtil.subtract(new BigDecimal(stock.getStockCost()), tempCost).doubleValue());// 库存成本 + + stock.setModifyUser(createUser); + stock.setModifyDate(createDate); + productStoreStockDao.update(tenantId, stock, true); + } else { + // 门店原料库存,仓库中无该商品则新增 + stock = new ProductStoreStock(); + stock.setStoreId(productStoreStockLog.getStoreId());// 门店ID + stock.setStorageId(productStoreStockLog.getStorageId());// 仓库ID + stock.setStorageName(productStoreStockLog.getStorageName());// 仓库名称 + stock.setProductId(productStoreStockLog.getProductId());// 原料ID + stock.setProductNo(productStoreStockLog.getProductNo());// 原料编号 + stock.setProductName(productStoreStockLog.getProductName());// 原料名称 + stock.setSpecId(productStoreStockLog.getSpecId());// 规格ID + stock.setSpecName(productStoreStockLog.getSpecName());// 规格名称 + stock.setProductDescription(productStoreStockLog.getProductDescription());// 原料说明 + stock.setDispatchUnitId(productStoreStockLog.getDispatchUnitId());// 配送库存单位 + stock.setDispatchUnitName(productStoreStockLog.getDispatchUnitName());// 配送库存单位名称 + stock.setPackUnitId(productStoreStockLog.getPackUnitId());// 包装单位/门店库存单位 + stock.setPackUnitName(productStoreStockLog.getPackUnitName());// 包装单位名称/门店库存单位名称 + stock.setStockAmount(MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(productStoreStockLog.getAmount())).doubleValue());// 库存量 + stock.setStockCost(MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(productStoreStockLog.getMoney())).doubleValue());// 库存成本 + stock.setCreateUser(createUser); + stock.setCreateDate(createDate); + productStoreStockDao.save(tenantId, stock, true); + } + productStoreStockLog.setId(null); + productStoreStockLog.setAfterAmount(stock.getStockAmount());// 剩余库存数量 + productStoreStockLog.setPreAmount(MathUtil.add(new BigDecimal(productStoreStockLog.getAfterAmount()), new BigDecimal(productStoreStockLog.getAmount())).doubleValue());// 原库存数量 + productStoreStockLog.setCreateUser(createUser);// 创建人 + productStoreStockLog.setCreateDate(createDate);// 创建时间 + productStoreStockLogDao.save(tenantId, productStoreStockLog, true); + cacheService.set(tenantId, "bardId:" + productStoreStockLog.getStoreId()+clientId, productStoreStockLog.getId(), 172800); + } + } + logger.debug("门店销售订单自动耗料处理...End..."); + result.put("status", 1); + result.put("message", "操作成功"); + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getStockPagerWithOutOffShelf(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productStoreStockDao.getStockPagerWithOutOffShelf(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getStockPagerNoStorageIdWithOutOffShelf(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productStoreStockDao.getStockPagerNoStorageIdWithOutOffShelf(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveProductStoreStockImport(String tenantId, List stockList, String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.limit("0","50000")); + List list = productStoreStockDao.getList(tenantId,criteria,true); + Map map = new HashMap<>(); + if(CollectionUtils.isNotEmpty(list)){ + list.forEach( stock -> { + String key = stock.getStoreId() + "-"+stock.getStorageId() +"-"+stock.getSpecId(); + map.put(key,stock); + }); + } + List logs = new ArrayList<>(); + List saveList = new ArrayList<>(); + List updateList = new ArrayList<>(); + Map ratioMap = getRatioMap(tenantId); + Map unitMap = getUnitMap(tenantId); + + //生成导入库存单号; + //导入库存类型设为11; + String orderNo = "DR"+DateUtils.getCurrDatetime(); + int orderType = 11; + String orderTypeName = "库存导入"; + for(ProductStoreStock productStoreStock : stockList){ + String key = productStoreStock.getStoreId() + "-" + productStoreStock.getStorageId() + "-" + productStoreStock.getSpecId(); + ProductStoreStockLog log = null; + if(map.containsKey(key)){ + ProductStoreStock stock = map.get(key); + stock.setModifyUser(userName); + stock.setModifyDate(new Date()); + + //门店库存流水; + log = new ProductStoreStockLog(); + log.setTenantId(tenantId); + log.setStoreId(stock.getStoreId()); + log.setStorageId(stock.getStorageId()); + log.setStorageName(stock.getStorageName()); + log.setProductId(stock.getProductId()); + log.setProductNo(stock.getProductNo()); + log.setProductName(stock.getProductName()); + log.setSpecId(stock.getSpecId()); + log.setSpecName(stock.getSpecName()); + log.setProductDescription(stock.getProductDescription()); + log.setOrderNo(orderNo); + log.setOrderType(orderType); + log.setOrderTypeName(orderTypeName); + log.setDispatchUnitId(stock.getDispatchUnitId()); + log.setDispatchUnitName(stock.getDispatchUnitName()); + log.setPackUnitId(stock.getPackUnitId()); + log.setPackUnitName(stock.getPackUnitName()); + log.setPreAmount(stock.getStockAmount()); + log.setAmount(productStoreStock.getStockAmount()); + log.setAfterAmount(stock.getStockAmount()+productStoreStock.getStockAmount()); + log.setPrice(productStoreStock.getStockCost()); + log.setMoney(productStoreStock.getMoney()); + log.setCreateUser(userName); + log.setCreateDate(new Date()); + + stock.setStockAmount(stock.getStockAmount()+productStoreStock.getStockAmount()); + updateList.add(stock); + }else{ + ProductStoreStock stock = new ProductStoreStock(); + stock.setTenantId(tenantId); + stock.setStoreId(productStoreStock.getStoreId()); + stock.setStorageId(productStoreStock.getStorageId()); + stock.setStorageName(productStoreStock.getStorageName()); + stock.setProductId(productStoreStock.getProductId()); + stock.setProductNo(productStoreStock.getProductNo()); + stock.setProductName(productStoreStock.getProductName()); + stock.setSpecId(productStoreStock.getSpecId()); + stock.setSpecName(productStoreStock.getSpecName()); + stock.setProductDescription(productStoreStock.getProductDescription()); + stock.setDispatchUnitId(ratioMap.get(stock.getProductId()) == null ? null : ratioMap.get(stock.getProductId()).getDispatchUnitId()); + stock.setDispatchUnitName(unitMap.get(stock.getDispatchUnitId())); + stock.setPackUnitId(ratioMap.get(stock.getProductId()) == null ? null : ratioMap.get(stock.getProductId()).getPackUnitId()); + stock.setPackUnitName(unitMap.get(stock.getPackUnitId())); + stock.setStockAmount(productStoreStock.getStockAmount()); + stock.setStockCost(productStoreStock.getMoney()); + stock.setCreateDate(new Date()); + stock.setCreateUser(userName); + saveList.add(stock); + + //门店库存流水; + log = new ProductStoreStockLog(); + log.setTenantId(tenantId); + log.setStoreId(stock.getStoreId()); + log.setStorageId(stock.getStorageId()); + log.setStorageName(stock.getStorageName()); + log.setProductId(stock.getProductId()); + log.setProductNo(stock.getProductNo()); + log.setProductName(stock.getProductName()); + log.setSpecId(stock.getSpecId()); + log.setSpecName(stock.getSpecName()); + log.setProductDescription(stock.getProductDescription()); + log.setOrderNo(orderNo); + log.setOrderType(orderType); + log.setOrderTypeName(orderTypeName); + log.setDispatchUnitId(stock.getDispatchUnitId()); + log.setDispatchUnitName(stock.getDispatchUnitName()); + log.setPackUnitId(stock.getPackUnitId()); + log.setPackUnitName(stock.getPackUnitName()); + log.setPreAmount(0.0); + log.setAmount(stock.getStockAmount()); + log.setAfterAmount(stock.getStockAmount()); + log.setPrice(productStoreStock.getStockCost()); + log.setMoney(productStoreStock.getMoney()); + log.setCreateUser(userName); + log.setCreateDate(new Date()); + } + logs.add(log); + } + if(CollectionUtils.isNotEmpty(logs)){ + productStoreStockLogDao.save(tenantId,logs); + } + + if(CollectionUtils.isNotEmpty(updateList)){ + productStoreStockDao.update(tenantId,updateList); + } + if(CollectionUtils.isNotEmpty(saveList)){ + productStoreStockDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + + private Map getRatioMap(String tenantId) throws Exception{ + Map map = new HashMap<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.limit("0","10000")); + List ratioList = productRatioDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(ratioList)){ + ratioList.forEach(ratio -> { + map.put(ratio.getProductId(),ratio); + }); + } + return map; + } + + private Map getUnitMap(String tenantId) throws Exception{ + Map map = new HashMap<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("deleteFlag",0)); + criteria.add(Restrictions.limit("0","10000")); + List units = productUnitDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(units)){ + units.forEach(unit -> { + map.put(unit.getId(),unit.getName()); + }); + } + return map; + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSuitDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSuitDetailServiceImpl.java new file mode 100644 index 0000000..9a9625c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSuitDetailServiceImpl.java @@ -0,0 +1,115 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductSuitDetailDao; +import com.jwsaas.entity.food.ProductSuitDetail; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductSuitDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDetailServiceImpl") +public class ProductSuitDetailServiceImpl extends BaseServiceImpl implements ProductSuitDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDetailDaoImpl") + private ProductSuitDetailDao productSuitDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.productSuitDetailDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSuitDetailDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveAndUpdate(String tenantId, List suitDetailList, String currentUser) throws Exception { + try { + Assert.notEmpty(suitDetailList, "parameter 'suitDetailList' can't be null or empty!"); + + // 筛选出需要删除的道菜明细信息 + String suitId = suitDetailList.get(0).getSuitId();// 道菜ID + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("suitId", suitId)); + List oldSuitDetailList = productSuitDetailDao.getList(tenantId, criteria); + List oldSuitDetailIdList = new ArrayList<>(); + for (ProductSuitDetail oldSuitDetail : oldSuitDetailList) { + oldSuitDetailIdList.add(oldSuitDetail.getId()); + } + + List newSuitDetailIdList = new ArrayList<>(); + for (ProductSuitDetail suitDetail : suitDetailList) { + if (StringUtils.isNotBlank(suitDetail.getId())) { + newSuitDetailIdList.add(suitDetail.getId()); + } + } + + List delSuitDetailList = new ArrayList<>(); + for (String oldSuitDetailId : oldSuitDetailIdList) { + if (!newSuitDetailIdList.contains(oldSuitDetailId)) { + delSuitDetailList.add(oldSuitDetailId); + } + } + + for (String delSuitDetailId : delSuitDetailList) { + productSuitDetailDao.delete(tenantId, delSuitDetailId); + } + + for (ProductSuitDetail suitDetail : suitDetailList) { + if (StringUtils.isBlank(suitDetail.getId())) { + suitDetail.setCreateUser(currentUser); + productSuitDetailDao.save(tenantId, suitDetail); + } else { + suitDetail.setModifyUser(currentUser); + suitDetail.setModifyDate(new Date()); + productSuitDetailDao.update(tenantId, suitDetail); + } + } + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSuitDetailDao.getPagerByStoreId(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtendByStoreId(String tenantId, Criteria criteria) throws Exception { + try { + return this.productSuitDetailDao.getListExtendByStoreId(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSuitServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSuitServiceImpl.java new file mode 100644 index 0000000..d834334 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductSuitServiceImpl.java @@ -0,0 +1,76 @@ +package com.jwsaas.service.food.impl; + +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductSuitDao; +import com.jwsaas.dao.food.ProductSuitDetailDao; +import com.jwsaas.entity.food.ProductSuit; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ProductSuitService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductSuitServiceImpl") +public class ProductSuitServiceImpl extends BaseServiceImpl implements ProductSuitService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDaoImpl") + private ProductSuitDao productSuitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDetailDaoImpl") + private ProductSuitDetailDao productSuitDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.productSuitDao; + } + + @Override + public void saveAndUpdate(String tenantId, List suitList, String currentUser) throws Exception { + try { + for (ProductSuit suit : suitList) { + if (StringUtils.isBlank(suit.getId())) { + suit.setCreateUser(currentUser); + productSuitDao.save(tenantId, suit); + } else { + suit.setModifyUser(currentUser); + suit.setModifyDate(new Date()); + productSuitDao.update(tenantId, suit); + } + } + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer delete(String tenantId, String id) throws Exception { + try { + this.productSuitDetailDao.delete(tenantId, "suitId", id); + return this.productSuitDao.delete(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSuitDao.getPagerByStoreId(tenantId, storeId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTemplateDetailServiceImpl.java new file mode 100644 index 0000000..a9a5183 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTemplateDetailServiceImpl.java @@ -0,0 +1,164 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreProductDao; +import com.jwsaas.entity.food.StoreProduct; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductTemplateDetailDao; +import com.jwsaas.entity.food.ProductTemplateDetail; +import com.jwsaas.service.food.ProductTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductTemplateDetailServiceImpl") +public class ProductTemplateDetailServiceImpl extends BaseServiceImpl implements ProductTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductTemplateDetailDaoImpl") + private ProductTemplateDetailDao productTemplateDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreProductDaoImpl") + private StoreProductDao storeProductDao; + + @Override + public BaseDao getBaseDao() { + return this.productTemplateDetailDao; + } + + @Override + public List getDetailsList(String tenantId, Criteria criteria) throws Exception{ + try { + return productTemplateDetailDao.getDetailsList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveStoreProductsPrice(String tenantId, String templateId, String storeIds, String userName) throws Exception{ + Integer i = 0; + try{ + List storesId = Arrays.asList(storeIds.split(",")); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storesId)); + List updateList = new ArrayList<>(); + List saveList = new ArrayList<>(); + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("templateId",templateId)); + List details = productTemplateDetailDao.getDetailsList(tenantId,crit,true); + for(String storeId : storesId){ + Map msp = getSpecIdStoreProductMap(tenantId,storeId); + for(ProductTemplateDetail detail : details){ + if(msp != null && msp.get(detail.getSpecId()) != null){ + StoreProduct product = msp.get(detail.getSpecId()); + product.setPrice(detail.getPrice()); + product.setMinPrice(detail.getMinPrice()); + product.setMemberPrice(detail.getMemberPrice()); + product.setOtherPrice(detail.getOtherPrice()); + product.setModifyDate(new Date()); + product.setModifyUser(userName); + updateList.add(product); + }else { + StoreProduct sp = new StoreProduct(); + sp.setTenantId(tenantId); + sp.setStoreId(storeId); + sp.setProductId(detail.getProductId()); + sp.setSpecId(detail.getSpecId()); + sp.setTypeId(detail.getTypeId()); + sp.setTypePath(detail.getTypePath()); + sp.setProductUnitId(detail.getProductUnitId()); + sp.setPrice(detail.getPrice()); + sp.setMinPrice(detail.getMinPrice()); + sp.setMemberPrice(detail.getMemberPrice()); + sp.setOtherPrice(detail.getOtherPrice()); + sp.setCreateUser(userName); + sp.setCreateDate(new Date()); + saveList.add(sp); + } + } + } + if(saveList.size() > 0){ + storeProductDao.save(tenantId,saveList); + } + if(updateList.size() > 0){ + storeProductDao.update(tenantId,updateList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public List getSpecIdList(String tenantId, Criteria criteria) throws Exception { + try { + return productTemplateDetailDao.getSpecIdList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveStoreProductsPriceByCover(String tenantId, String templateId, String storeIds, String userName) throws Exception { + Integer i = 0; + try{ + //删除门店原有关联菜品; + List storesId = Arrays.asList(storeIds.split(",")); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storesId)); + storeProductDao.delete(tenantId,criteria,true); + //保存; + List saveList = new ArrayList<>(); + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("templateId",templateId)); + List details = productTemplateDetailDao.getDetailsList(tenantId,crit,true); + for(String storeId : storesId){ + for(ProductTemplateDetail detail : details){ + StoreProduct sp = new StoreProduct(); + sp.setTenantId(tenantId); + sp.setStoreId(storeId); + sp.setProductId(detail.getProductId()); + sp.setSpecId(detail.getSpecId()); + sp.setTypeId(detail.getTypeId()); + sp.setTypePath(detail.getTypePath()); + sp.setProductUnitId(detail.getProductUnitId()); + sp.setPrice(detail.getPrice()); + sp.setMinPrice(detail.getMinPrice()); + sp.setMemberPrice(detail.getMemberPrice()); + sp.setOtherPrice(detail.getOtherPrice()); + sp.setCreateUser(userName); + sp.setCreateDate(new Date()); + saveList.add(sp); + } + } + if(saveList.size() > 0){ + storeProductDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + + private Map getSpecIdStoreProductMap(String tenantId,String storeId) throws Exception{ + Map map = new HashMap<>(); + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("storeId",storeId)); + List details = storeProductDao.getList(tenantId,crit,true); + if(details != null && details.size() > 0){ + for(StoreProduct sp : details){ + map.put(sp.getSpecId(),sp); + } + } + return map; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTemplateServiceImpl.java new file mode 100644 index 0000000..4331a5d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTemplateServiceImpl.java @@ -0,0 +1,150 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProductTemplateDetailDao; +import com.jwsaas.entity.food.ProductTemplateDetail; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductTemplateDao; +import com.jwsaas.entity.food.ProductTemplate; +import com.jwsaas.service.food.ProductTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductTemplateServiceImpl") +public class ProductTemplateServiceImpl extends BaseServiceImpl implements ProductTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductTemplateDaoImpl") + private ProductTemplateDao productTemplateDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductTemplateDetailDaoImpl") + private ProductTemplateDetailDao productTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.productTemplateDao; + } + + @Override + public Integer saveTemplateAndDetails(String tenantId, ProductTemplate template, String[] specProductId, + Double[] price, Double[] minPrice, Double[] memberPrice, Double[] otherPrice) throws Exception { + Integer i = 0; + try{ + ProductTemplate dishTemplate = productTemplateDao.save(tenantId,template,true); + List templateDetailList = new ArrayList<>(); + int size = specProductId.length; + for(int n = 0 ; n 0){ + i = productTemplateDetailDao.save(tenantId,templateDetailList); + } + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTemplateAndDetails(String tenantId, ProductTemplate template, String[] specProductId, Double[] price, Double[] minPrice, Double[] memberPrice, Double[] otherPrice) throws Exception{ + Integer i = 0; + try{ + productTemplateDao.update(tenantId,template,true); + template = productTemplateDao.get(tenantId,template.getId(),true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",template.getId())); + productTemplateDetailDao.delete(tenantId,criteria,true); + List templateDetailList = new ArrayList<>(); + int size = specProductId.length; + for(int n = 0 ; n 0){ + i = productTemplateDetailDao.save(tenantId,templateDetailList); + } + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTemplateAndDetailsNewFunc(String tenantId, ProductTemplate template, List details) throws Exception { + Integer i = 0; + try{ + productTemplateDao.update(tenantId,template,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",template.getId())); + productTemplateDetailDao.delete(tenantId,criteria,true); + template = productTemplateDao.get(tenantId,template.getId(),true); + for(ProductTemplateDetail detail : details){ + detail.setTemplateId(template.getId()); + detail.setTenantId(tenantId); + detail.setCreateUser(template.getCreateUser()); + detail.setCreateDate(template.getCreateDate()); + detail.setModifyDate(template.getModifyDate()); + detail.setModifyUser(template.getModifyUser()); + } + if(details.size() > 0){ + i = productTemplateDetailDao.save(tenantId,details); + } + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveTemplateAndDetailsNewFunc(String tenantId, ProductTemplate template, List details) throws Exception{ + Integer i = 0; + try{ + template = productTemplateDao.save(tenantId,template,true); + for(ProductTemplateDetail detail : details){ + detail.setTemplateId(template.getId()); + detail.setTenantId(tenantId); + detail.setCreateUser(template.getCreateUser()); + detail.setCreateDate(template.getCreateDate()); + } + if(details.size() > 0){ + i = productTemplateDetailDao.save(tenantId,details); + } + }catch(Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTypeLabelInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTypeLabelInfoServiceImpl.java new file mode 100644 index 0000000..b61991e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTypeLabelInfoServiceImpl.java @@ -0,0 +1,94 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductTypeLabelInfoDao; +import com.jwsaas.entity.food.ProductTypeLabelInfo; +import com.jwsaas.service.food.ProductTypeLabelInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProductTypeLabelInfoServiceImpl") +public class ProductTypeLabelInfoServiceImpl extends BaseServiceImpl implements ProductTypeLabelInfoService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductTypeLabelInfoDaoImpl") + private ProductTypeLabelInfoDao productTypeLabelInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.productTypeLabelInfoDao; + } + + @Override + public ProductTypeLabelInfo saveLabelInfoWithRelation(String tenantId, ProductTypeLabelInfo label, List typeIds) throws Exception { + try{ + label = productTypeLabelInfoDao.save(tenantId,label,true); + if(CollectionUtils.isNotEmpty(typeIds)){ + List productTypeLabelInfoList = new ArrayList<>(); + for(String id : typeIds){ + ProductTypeLabelInfo info = new ProductTypeLabelInfo(); + info.setId(label.getId()); + info.setTypeId(id); + info.setTenantId(tenantId); + productTypeLabelInfoList.add(info); + } + productTypeLabelInfoDao.saveRelation(tenantId,productTypeLabelInfoList); + + } + }catch (Exception e){ + throw e; + } + return label; + } + + @Override + public Integer updateLabelInfosWithRelation(String tenantId, ProductTypeLabelInfo labelInfo, List typeIds) throws Exception { + Integer i = 0; + try{ + productTypeLabelInfoDao.update(tenantId,labelInfo,true); + productTypeLabelInfoDao.deleteRelationByLabelId(tenantId,labelInfo.getId(),true); + if(CollectionUtils.isNotEmpty(typeIds)){ + List productTypeLabelInfoList = new ArrayList<>(); + for(String id : typeIds){ + ProductTypeLabelInfo info = new ProductTypeLabelInfo(); + info.setId(labelInfo.getId()); + info.setTypeId(id); + info.setTenantId(tenantId); + productTypeLabelInfoList.add(info); + } + productTypeLabelInfoDao.saveRelation(tenantId,productTypeLabelInfoList); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public List getTypeIdsByLabelId(String tenantId, String labelId) throws Exception { + try{ + return productTypeLabelInfoDao.getTypeIdsByLabelId(tenantId, labelId); + }catch (Exception e){ + throw e; + } + + } + + @Override + public List getLabelInfos(String tenantId, Criteria criteria) throws Exception { + try { + return productTypeLabelInfoDao.getLabelInfos(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTypeServiceImpl.java new file mode 100644 index 0000000..bf6e329 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductTypeServiceImpl.java @@ -0,0 +1,414 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.function.Function; +import java.util.stream.Collectors; + +import javax.annotation.Resource; + +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.fasterxml.jackson.databind.JsonNode; +import com.google.common.collect.Lists; +import com.google.common.collect.Maps; +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductTypeDao; +import com.jwsaas.entity.food.ProductType; +import com.jwsaas.service.food.ProductTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.util.JSONUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductTypeServiceImpl") +public class ProductTypeServiceImpl extends BaseServiceImpl implements ProductTypeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductTypeDaoImpl") + private ProductTypeDao productTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.productTypeDao; + } + + @Override + public String selectMaxNo(String tenantId, String parentId) throws Exception { + try { + return this.productTypeDao.selectMaxNo(tenantId, parentId); + } catch (Exception e) { + throw e; + } + } + + @Override + public ProductType save(String tenantId, ProductType entity) throws Exception { + try { + ProductType type = this.productTypeDao.save(tenantId, entity); + + ProductType parent = null; + if (StringUtils.isNotBlank(entity.getParentId())) { + parent = this.productTypeDao.get(tenantId, entity.getParentId()); + } + + ProductType updateObj = new ProductType(); + updateObj.setId(type.getId()); + String path = type.getId(); + + if (parent != null) { + path = parent.getPath() + Constants.PATH_SEPARATOR + type.getId(); + } + updateObj.setPath(path); + this.productTypeDao.update(tenantId, updateObj); + + type.setPath(path); + return type; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveByImpt(String tenantId, String dataJSON, String productTypeNoRule, String currentUserName) + throws Exception { + try { + Integer rows = 0; + JsonNode data = JSONUtil.parseJsonNode(dataJSON); + saveForImpt(tenantId, data, null, productTypeNoRule, currentUserName, rows); + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveMaterialTypeByImpt(String tenantId, String dataJSON, String productTypeNoRule, + String currentUserName) throws Exception { + try { + Integer rows = 0; + JsonNode data = JSONUtil.parseJsonNode(dataJSON); + saveMaterialTypesForImpt(tenantId, data, null, productTypeNoRule, currentUserName, rows); + return rows; + } catch (Exception e) { + throw e; + } + } + + private int saveMaterialTypesForImpt(String tenantId, JsonNode data, ProductType parent, String productTypeNoRule, + String currentUserName, Integer rows) { + Iterator> iterator = data.fields(); + while (iterator.hasNext()) { + Entry level = iterator.next(); + ProductType type = new ProductType(); + type.setParentId(parent == null ? null : parent.getId()); + type.setNo(getNextNo(tenantId, productTypeNoRule, parent)); + type.setColor("#7bd148"); + type.setSign("3"); + type.setName(level.getKey()); + type.setCreateUser(currentUserName); + type = this.productTypeDao.save(tenantId, type); + type.setPath(parent == null ? type.getId() : parent.getPath() + Constants.PATH_SEPARATOR + type.getId()); + this.productTypeDao.update(tenantId, type); + rows++; + + if (StringUtils.isNotBlank(level.getKey())) { + saveMaterialTypesForImpt(tenantId, level.getValue(), type, productTypeNoRule, currentUserName, rows); + } + } + return rows; + } + + private int saveForImpt(String tenantId, JsonNode data, ProductType parent, String productTypeNoRule, + String currentUserName, Integer rows) { + Iterator> iterator = data.fields(); + while (iterator.hasNext()) { + Entry level = iterator.next(); + ProductType type = new ProductType(); + type.setParentId(parent == null ? null : parent.getId()); + type.setNo(getNextNo(tenantId, productTypeNoRule, parent)); + type.setColor("#7bd148"); + type.setName(level.getKey()); + type.setSign("1"); + type.setCreateUser(currentUserName); + type = this.productTypeDao.save(tenantId, type); + type.setPath(parent == null ? type.getId() : parent.getPath() + Constants.PATH_SEPARATOR + type.getId()); + this.productTypeDao.update(tenantId, type); + rows++; + + if (StringUtils.isNotBlank(level.getKey())) { + saveForImpt(tenantId, level.getValue(), type, productTypeNoRule, currentUserName, rows); + } + } + return rows; + } + + private String getNextNo(String tenantId, String productTypeNoRule, ProductType productType) { + String nextNo = "error"; + try { + String maxNo = this.productTypeDao.selectMaxNo(tenantId, productType != null ? productType.getId() : null); + int level = productType == null ? 0 + : StringUtils.split(productType.getPath(), Constants.PATH_SEPARATOR).length; + String[] preLevelArray = StringUtils.split(productTypeNoRule, "."); + int subStart = 0; + for (int i = 0; i < level; i++) { + subStart += preLevelArray[i].length(); + } + + int length = preLevelArray[level].length(); + + int maxNoInt = 0; + maxNoInt = StringUtils.isBlank(maxNo) ? 0 : Integer.parseInt(StringUtils.substring(maxNo, subStart)); + nextNo = StringUtils.leftPad("" + (maxNoInt + 1), length, "0"); + + if (nextNo.length() <= length) { + nextNo = (StringUtils.isBlank(maxNo) ? (productType == null ? "" : productType.getNo()) + : StringUtils.substring(maxNo, 0, subStart)) + nextNo; + } else { + nextNo = "error"; + } + } catch (Exception e) { + logger.error("获取最大编号时,发生异常", e); + } + + return nextNo; + } + + @Override + public Integer deleteByIdsLogical(String tenantId, List ids, String currentUser) throws Exception { + try { + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + + List delIdList = new ArrayList<>(); + + Criteria criteria = null; + List list = null; + for (String id : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.like("path", "%" + id + "%")); + list = this.productTypeDao.getList(tenantId, criteria, true); + for (ProductType type : list) { + if (!delIdList.contains(type.getId())) { + delIdList.add(type.getId()); + } + } + } + + return this.productTypeDao.deleteLogical(tenantId, delIdList, currentUser); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateProductTypeBatch(String tenantId, List updateList, List saveList) + throws Exception { + try { + int result = 0; + if (updateList != null && updateList.size() > 0) { + result += productTypeDao.update(tenantId, updateList); + } + if (saveList != null && saveList.size() > 0) { + for (ProductType entity : saveList) { + ProductType type = this.productTypeDao.save(tenantId, entity, true); + + ProductType parent = null; + if (StringUtils.isNotBlank(entity.getParentId())) { + parent = this.productTypeDao.get(tenantId, entity.getParentId(), true); + } + ProductType updateObj = new ProductType(); + updateObj.setId(type.getId()); + String path = type.getId(); + if (parent != null) { + path = parent.getPath() + Constants.PATH_SEPARATOR + type.getId(); + } + updateObj.setPath(path); + result += this.productTypeDao.update(tenantId, updateObj, true); + } + } + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveRelations(String tenantId, String ids, List brandIds) throws Exception { + Integer i = 0; + try { + String[] typeIdArray = ids.split(","); + for (String id : typeIdArray) { + // ProductType productType = productTypeDao.get(tenantId,id,true); + // 查找所有下级分类; + List typeIds = new ArrayList<>(); + typeIds = getAllChildrenTypeId(tenantId, id, typeIds); + typeIds.add(id); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("typeId", typeIds)); + productTypeDao.deleteRelationByCriteria(tenantId, criteria, true); + + if (CollectionUtils.isNotEmpty(brandIds)) { + List list = new ArrayList<>(); + for (String typeId : typeIds) { + for (String brandId : brandIds) { + ProductType type = new ProductType(); + type.setId(typeId); + type.setTenantId(tenantId); + type.setBrandId(brandId); + list.add(type); + } + } + i = productTypeDao.saveRelations(tenantId, list); + } + } + + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public List getListBrandIds(String tenantId, String id) throws Exception { + try { + return productTypeDao.getListBrandIds(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerWithBrandId(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = productTypeDao.getPagerWithBrandId(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public String selectMaxNoByNumberType(String tenantId, String id) throws Exception { + try { + return this.productTypeDao.selectMaxNoByNumberType(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + /** + * 获取此分类下所有下一级分类; + * + * @param tenantId + * @param typeId + * @return + */ + private List getAllChildrenTypeId(String tenantId, String typeId, List list) { + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parentId", typeId)); + List types = productTypeDao.getList(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(types)) { + for (ProductType type : types) { + list.add(type.getId()); + getAllChildrenTypeId(tenantId, type.getId(), list); + } + } + } catch (Exception e) { + throw e; + } + return list; + } + + @Override + public List getListLabelIds(String tenantId, String id) throws Exception { + try { + return productTypeDao.getListLabelIds(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListTypeIds(String tenantId, List labelIds) throws Exception { + try { + return productTypeDao.getListTypeIds(tenantId, labelIds); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListTypeOneIds(String tenantId, String storeId) throws Exception { + try { + return productTypeDao.getListTypeOneIds(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListTypeTwoIds(String tenantId, String storeId) throws Exception { + try { + return productTypeDao.getListTypeTwoIds(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Map exportProductType(String tenantId, Criteria criteria) throws Exception { + // TODO Auto-generated method stub + criteria.add(Restrictions.eq("sign", 1)); + criteria.add(Restrictions.eq("deleteFlag", 0)); + List listProductType = productTypeDao.getList(tenantId, criteria); + List> list = productTypeDao.getIdAndName(tenantId); + Map maps = Maps.newHashMap(); + List> listData=Lists.newArrayList(); + int flag = 1; + if (CollectionUtils.isNotEmpty(listProductType)) { + + for (int i = 0; i < listProductType.size(); i++) { + List elementData=Lists.newArrayList(); + if (listProductType.get(i).getPath().contains(",")) { + String[] arr = listProductType.get(i).getPath().split(","); + for(String str:arr) { + elementData.add(getNameById(str,list)); + } + if (arr.length > flag) + flag = arr.length; + } else { + elementData.add(getNameById(listProductType.get(i).getId(),list)); + } + listData.add(elementData); + } + } + maps.put("size",flag); + maps.put("content", listData); + return maps; + } + + public String getNameById(String id,List> list) { + String name=""; + for(Map cc:list) { + if(String.valueOf(cc.get("id")).equals(id)) { + name=cc.get("NAME"); + } + } + return name; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProductUnitServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductUnitServiceImpl.java new file mode 100644 index 0000000..8f5f4d2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProductUnitServiceImpl.java @@ -0,0 +1,51 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.service.food.ProductUnitService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProductUnitServiceImpl") +public class ProductUnitServiceImpl extends BaseServiceImpl implements ProductUnitService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + + @Override + public BaseDao getBaseDao() { + return this.productUnitDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.productUnitDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateProductUnitBatch(String tenantId, List updateList, List saveList) throws Exception { + try { + int result = 0; + if (updateList != null && updateList.size() > 0) { + result += productUnitDao.update(tenantId, updateList); + } + if (saveList != null && saveList.size() > 0) { + result += productUnitDao.save(tenantId, saveList); + } + return result; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdPictureServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdPictureServiceImpl.java new file mode 100644 index 0000000..a83040c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdPictureServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramAdPictureDao; +import com.jwsaas.entity.food.ProgramAdPicture; +import com.jwsaas.service.food.ProgramAdPictureService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramAdPictureServiceImpl") +public class ProgramAdPictureServiceImpl extends BaseServiceImpl implements ProgramAdPictureService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramAdPictureDaoImpl") + private ProgramAdPictureDao programAdPictureDao; + + @Override + public BaseDao getBaseDao() { + return this.programAdPictureDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceProductServiceImpl.java new file mode 100644 index 0000000..44ea32d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceProductServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramAdjustPriceProductDao; +import com.jwsaas.entity.food.ProgramAdjustPriceProduct; +import com.jwsaas.service.food.ProgramAdjustPriceProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceProductServiceImpl") +public class ProgramAdjustPriceProductServiceImpl extends BaseServiceImpl implements ProgramAdjustPriceProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceProductDaoImpl") + private ProgramAdjustPriceProductDao programAdjustPriceProductDao; + + @Override + public BaseDao getBaseDao() { + return this.programAdjustPriceProductDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return programAdjustPriceProductDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceStoreServiceImpl.java new file mode 100644 index 0000000..f437d45 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceStoreServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramAdjustPriceStoreDao; +import com.jwsaas.entity.food.ProgramAdjustPriceStore; +import com.jwsaas.service.food.ProgramAdjustPriceStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceStoreServiceImpl") +public class ProgramAdjustPriceStoreServiceImpl extends BaseServiceImpl implements ProgramAdjustPriceStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceStoreDaoImpl") + private ProgramAdjustPriceStoreDao programAdjustPriceStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.programAdjustPriceStoreDao; + } + + @Override + public List getListExtends(String tenantId, Criteria criteria) throws Exception { + try{ + return programAdjustPriceStoreDao.getListExtends(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceTicketServiceImpl.java new file mode 100644 index 0000000..abbda3d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramAdjustPriceTicketServiceImpl.java @@ -0,0 +1,157 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramAdjustPriceProductDao; +import com.jwsaas.dao.food.ProgramAdjustPriceStoreDao; +import com.jwsaas.dao.food.ProgramStoreProductDao; +import com.jwsaas.entity.food.ProgramAdjustPriceProduct; +import com.jwsaas.entity.food.ProgramAdjustPriceStore; +import com.jwsaas.entity.food.ProgramStoreProduct; +import com.jwsaas.service.food.ProgramStoreProductService; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramAdjustPriceTicketDao; +import com.jwsaas.entity.food.ProgramAdjustPriceTicket; +import com.jwsaas.service.food.ProgramAdjustPriceTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceTicketServiceImpl") +public class ProgramAdjustPriceTicketServiceImpl extends BaseServiceImpl implements ProgramAdjustPriceTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceTicketDaoImpl") + private ProgramAdjustPriceTicketDao programAdjustPriceTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceStoreDaoImpl") + private ProgramAdjustPriceStoreDao programAdjustPriceStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramAdjustPriceProductDaoImpl") + private ProgramAdjustPriceProductDao programAdjustPriceProductDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreProductDaoImpl") + private ProgramStoreProductDao programStoreProductDao; + + @Override + public BaseDao getBaseDao() { + return this.programAdjustPriceTicketDao; + } + + @Override + public ProgramAdjustPriceTicket saveTicket(String tenantId, ProgramAdjustPriceTicket ticket, + List storeList, List productList) throws Exception { + try{ + ticket = programAdjustPriceTicketDao.save(tenantId,ticket,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(ProgramAdjustPriceStore store:storeList){ + store.setTenantId(tenantId); + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateUser(ticket.getCreateUser()); + } + programAdjustPriceStoreDao.save(tenantId,storeList); + } + if(CollectionUtils.isNotEmpty(productList)){ + for(ProgramAdjustPriceProduct product:productList){ + product.setTenantId(tenantId); + product.setTicketId(ticket.getId()); + product.setTicketNo(ticket.getNo()); + product.setCreateUser(ticket.getCreateUser()); + } + programAdjustPriceProductDao.save(tenantId,productList); + } + }catch (Exception e){ + throw e; + } + return ticket; + } + + @Override + public Integer deleteTickets(String tenantId, List ticketIds) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ticketId",ticketIds)); + programAdjustPriceStoreDao.delete(tenantId,criteria,true); + programAdjustPriceProductDao.delete(tenantId,criteria,true); + i = programAdjustPriceTicketDao.delete(tenantId,ticketIds); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicket(String tenantId, ProgramAdjustPriceTicket ticket, List storeList, + List productList) { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + programAdjustPriceStoreDao.delete(tenantId,criteria,true); + programAdjustPriceProductDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(ProgramAdjustPriceStore store:storeList){ + store.setTenantId(tenantId); + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateUser(ticket.getCreateUser()); + store.setModifyUser(ticket.getModifyUser()); + store.setModifyDate(new Date()); + } + programAdjustPriceStoreDao.save(tenantId,storeList); + } + if(CollectionUtils.isNotEmpty(productList)){ + for(ProgramAdjustPriceProduct product:productList){ + product.setTenantId(tenantId); + product.setTicketId(ticket.getId()); + product.setTicketNo(ticket.getNo()); + product.setCreateUser(ticket.getCreateUser()); + product.setModifyUser(ticket.getModifyUser()); + product.setModifyDate(new Date()); + } + programAdjustPriceProductDao.save(tenantId,productList); + } + i = programAdjustPriceTicketDao.update(tenantId,ticket,true); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateAudit(String tenantId, ProgramAdjustPriceTicket ticket) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + List stores = programAdjustPriceStoreDao.getList(tenantId,criteria,true); + List products = programAdjustPriceProductDao.getList(tenantId,criteria,true); + List list = new ArrayList<>(); + for(ProgramAdjustPriceStore store : stores){ + for(ProgramAdjustPriceProduct product : products){ + ProgramStoreProduct psp = new ProgramStoreProduct(); + psp.setStoreId(store.getStoreId()); + psp.setSpecId(product.getSpecId()); + psp.setProductId(product.getProductId()); + psp.setWprice(product.getWprice()); + psp.setWmemberPrice(product.getWmemberPrice()); + list.add(psp); + } + } + if(CollectionUtils.isNotEmpty(list)){ + programStoreProductDao.updateBystoreIdAndProgramProductId(tenantId,list); + } + i = programAdjustPriceTicketDao.update(tenantId,ticket,true); + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramDeliverAddressServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramDeliverAddressServiceImpl.java new file mode 100644 index 0000000..c9bdd9d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramDeliverAddressServiceImpl.java @@ -0,0 +1,67 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.alibaba.dubbo.common.utils.CollectionUtils; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramDeliverAddressDao; +import com.jwsaas.entity.food.ProgramDeliverAddress; +import com.jwsaas.service.food.ProgramDeliverAddressService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProgramDeliverAddressServiceImpl") +public class ProgramDeliverAddressServiceImpl extends BaseServiceImpl implements ProgramDeliverAddressService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramDeliverAddressDaoImpl") + private ProgramDeliverAddressDao programDeliverAddressDao; + + @Override + public BaseDao getBaseDao() { + return this.programDeliverAddressDao; + } + + @Override + public ProgramDeliverAddress saveProgramDeliverAddress(String tenantId, ProgramDeliverAddress entity) throws Exception { + + if (entity.getDefaultFlag() == 1) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("openId", entity.getOpenId())); + criteria.add(Restrictions.eq("programId", entity.getProgramId())); + List list = this.programDeliverAddressDao.getList(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(list)) { + for (ProgramDeliverAddress programDeliverAddress : list) { + programDeliverAddress.setDefaultFlag(0); + this.programDeliverAddressDao.update(tenantId, programDeliverAddress, true); + } + } + } + entity = this.programDeliverAddressDao.save(tenantId, entity, true); + return entity; + } + + @Override + public ProgramDeliverAddress updateProgramDeliverAddress(String tenantId, ProgramDeliverAddress entity) throws Exception { + + if (entity.getDefaultFlag() == 1) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("openId", entity.getOpenId())); + criteria.add(Restrictions.eq("programId", entity.getProgramId())); + List list = this.programDeliverAddressDao.getList(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(list)) { + for (ProgramDeliverAddress programDeliverAddress : list) { + programDeliverAddress.setDefaultFlag(0); + this.programDeliverAddressDao.update(tenantId, programDeliverAddress, true); + } + } + } + Integer result = this.programDeliverAddressDao.update(tenantId, entity, true); + return entity; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramEvaluateImageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramEvaluateImageServiceImpl.java new file mode 100644 index 0000000..606bdbe --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramEvaluateImageServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramEvaluateImageDao; +import com.jwsaas.entity.food.ProgramEvaluateImage; +import com.jwsaas.service.food.ProgramEvaluateImageService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramEvaluateImageServiceImpl") +public class ProgramEvaluateImageServiceImpl extends BaseServiceImpl implements ProgramEvaluateImageService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramEvaluateImageDaoImpl") + private ProgramEvaluateImageDao programEvaluateImageDao; + + @Override + public BaseDao getBaseDao() { + return this.programEvaluateImageDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramEvaluateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramEvaluateServiceImpl.java new file mode 100644 index 0000000..f26380a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramEvaluateServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.VposProductEvaluate; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramEvaluateDao; +import com.jwsaas.entity.food.ProgramEvaluate; +import com.jwsaas.service.food.ProgramEvaluateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramEvaluateServiceImpl") +public class ProgramEvaluateServiceImpl extends BaseServiceImpl implements ProgramEvaluateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramEvaluateDaoImpl") + private ProgramEvaluateDao programEvaluateDao; + + @Override + public BaseDao getBaseDao() { + return this.programEvaluateDao; + } + + @Override + public Pager getPager4ApiDownload(String tenantId, String openId, Criteria criteria, Pager pager) throws Exception { + try{ + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = programEvaluateDao.getPager4ApiDownload(tenantId, openId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramIndexPictureServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramIndexPictureServiceImpl.java new file mode 100644 index 0000000..10eeb0f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramIndexPictureServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramIndexPictureDao; +import com.jwsaas.entity.food.ProgramIndexPicture; +import com.jwsaas.service.food.ProgramIndexPictureService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramIndexPictureServiceImpl") +public class ProgramIndexPictureServiceImpl extends BaseServiceImpl implements ProgramIndexPictureService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramIndexPictureDaoImpl") + private ProgramIndexPictureDao programIndexPictureDao; + + @Override + public BaseDao getBaseDao() { + return this.programIndexPictureDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPaymentParameterServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPaymentParameterServiceImpl.java new file mode 100644 index 0000000..9fd8531 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPaymentParameterServiceImpl.java @@ -0,0 +1,113 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.entity.food.ProgramStore; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPaymentParameterDao; +import com.jwsaas.entity.food.ProgramPaymentParameter; +import com.jwsaas.service.food.ProgramPaymentParameterService; +import com.jwsaas.service.impl.BaseServiceImpl; + + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPaymentParameterServiceImpl") +public class ProgramPaymentParameterServiceImpl extends BaseServiceImpl implements ProgramPaymentParameterService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPaymentParameterDaoImpl") + private ProgramPaymentParameterDao programPaymentParameterDao; + + @Override + public BaseDao getBaseDao() { + return this.programPaymentParameterDao; + } + + @Override + public ProgramPaymentParameter saveProgramStorePaymentRelation(String tenantId, ProgramPaymentParameter payment, List storeIds) throws Exception { + try{ + payment = programPaymentParameterDao.save(tenantId,payment); + if(CollectionUtils.isNotEmpty(storeIds)){ + for(String id : storeIds){ + ProgramPaymentParameter parameter = new ProgramPaymentParameter(); + parameter.setTenantId(tenantId); + parameter.setId(payment.getId()); + parameter.setStoreId(id); + parameter.setProgramId(payment.getProgramId()); + programPaymentParameterDao.saveRelation(tenantId,parameter); + + } + } + }catch (Exception e){ + throw e; + } + return payment; + } + + @Override + public List getStoreIdsByPaymentId(String tenantId, String id) throws Exception { + try{ + return programPaymentParameterDao.getStoreIdsByPaymentId(tenantId,id); + }catch (Exception e){ + throw e; + } + + } + + @Override + public Integer updateWxStorePaymentRelation(String tenantId, String id, ProgramPaymentParameter payment, List storeIds) throws Exception { + Integer i = 0; + try{ + i = programPaymentParameterDao.update(tenantId,payment); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parameterId",id)); + programPaymentParameterDao.deleteRelationsByCriteria(tenantId,criteria); + if(CollectionUtils.isNotEmpty(storeIds)){ + for(String storeId : storeIds){ + ProgramPaymentParameter parameter = new ProgramPaymentParameter(); + parameter.setTenantId(tenantId); + parameter.setId(payment.getId()); + parameter.setStoreId(storeId); + parameter.setProgramId(payment.getProgramId()); + programPaymentParameterDao.saveRelation(tenantId,parameter); + } + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deletePaymentAndStoreByParameterIds(String tenantId, List parameterIds) throws Exception { + Integer i = 0; + try{ + if(CollectionUtils.isNotEmpty(parameterIds)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("parameterId",parameterIds)); + programPaymentParameterDao.deleteRelationsByCriteria(tenantId,criteria,true); + i = programPaymentParameterDao.delete(tenantId,parameterIds); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public List getPaymentParameterByStoreId(String tenantId, String storeId) throws Exception { + try { + return this.programPaymentParameterDao.getPaymentParameterByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductCategoryServiceImpl.java new file mode 100644 index 0000000..c4422e3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductCategoryServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramProductCategoryDao; +import com.jwsaas.entity.food.ProgramProductCategory; +import com.jwsaas.service.food.ProgramProductCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramProductCategoryServiceImpl") +public class ProgramProductCategoryServiceImpl extends BaseServiceImpl implements ProgramProductCategoryService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductCategoryDaoImpl") + private ProgramProductCategoryDao programProductCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.programProductCategoryDao; + } + + @Override + public List getListWithTypeId(String tenantId, Criteria criteria) throws Exception { + try { + return programProductCategoryDao.getListWithTypeId(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListTypeIdsByCriteria(String tenantId, Criteria criteria) throws Exception { + try { + return programProductCategoryDao.getListTypeIdsByCriteria(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductMakeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductMakeServiceImpl.java new file mode 100644 index 0000000..8a4d303 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductMakeServiceImpl.java @@ -0,0 +1,38 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramProductMakeDao; +import com.jwsaas.entity.food.ProgramProductMake; +import com.jwsaas.service.food.ProgramProductMakeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramProductMakeServiceImpl") +public class ProgramProductMakeServiceImpl extends BaseServiceImpl implements ProgramProductMakeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductMakeDaoImpl") + private ProgramProductMakeDao programProductMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.programProductMakeDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try{ + return programProductMakeDao.getListExtend(tenantId,criteria); + }catch (Exception e){ + throw e; + } + + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductServiceImpl.java new file mode 100644 index 0000000..0622cb9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductServiceImpl.java @@ -0,0 +1,136 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductMakeDao; +import com.jwsaas.entity.food.ProgramProductMake; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramProductDao; +import com.jwsaas.entity.food.ProgramProduct; +import com.jwsaas.service.food.ProgramProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramProductServiceImpl") +public class ProgramProductServiceImpl extends BaseServiceImpl implements ProgramProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductDaoImpl") + private ProgramProductDao programProductDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductMakeDaoImpl") + private ProgramProductMakeDao programProductMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.programProductDao; + } + + @Override + public List getAllProductIdsByCriteria(String tenantId, Criteria criteria) throws Exception { + try { + return programProductDao.getAllProductIdsByCriteria(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveProductAndMakes(String tenantId, List products, List makeDetails) throws Exception { + Integer i = 0; + try{ + i = programProductDao.save(tenantId,products); + if(CollectionUtils.isNotEmpty(makeDetails)) { + programProductMakeDao.save(tenantId, makeDetails); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer upDateProductAndMakes(String tenantId, List products, List makeDetails) throws Exception { + Integer i = 0; + try{ + i = programProductDao.update(tenantId,products); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId",products.get(0).getProductId())); + programProductDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(makeDetails)) { + programProductMakeDao.save(tenantId, makeDetails); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteByLogical(String tenantId, List ids,String userName) throws Exception { + Integer i = 0; + try{ + i = programProductDao.deleteLogical(tenantId,ids,userName); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public List getStoreProductByCriteria(String tenantId, Criteria criteria) throws Exception { + try { + return programProductDao.getStoreProductByCriteria(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreIds(String tenantId, List storeIds, Criteria criteria) throws Exception { + try { + return programProductDao.getListByStoreIds(tenantId, storeIds,criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreIds(String tenantId, List storeIdList, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = programProductDao.getPagerByStoreIds(tenantId,storeIdList, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerCommonProductByStoreIds(String tenantId, List storeIdList, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = programProductDao.getPagerCommonProductByStoreIds(tenantId,storeIdList, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateDetailServiceImpl.java new file mode 100644 index 0000000..bdbb564 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateDetailServiceImpl.java @@ -0,0 +1,47 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramProductTemplateDetailDao; +import com.jwsaas.entity.food.ProgramProductTemplateDetail; +import com.jwsaas.service.food.ProgramProductTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateDetailServiceImpl") +public class ProgramProductTemplateDetailServiceImpl extends BaseServiceImpl implements ProgramProductTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateDetailDaoImpl") + private ProgramProductTemplateDetailDao programProductTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.programProductTemplateDetailDao; + } + + @Override + public List getProgramProdudctIdByTemplateId(String tenantId, String templateId) throws Exception { + try{ + return programProductTemplateDetailDao.getProgramProdudctIdByTemplateId(tenantId,templateId); + }catch (Exception e){ + throw e; + } + + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria) throws Exception { + try{ + return programProductTemplateDetailDao.getListWithExtend(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateServiceImpl.java new file mode 100644 index 0000000..50dd3db --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateServiceImpl.java @@ -0,0 +1,245 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductTemplateDetailDao; +import com.jwsaas.dao.food.ProgramProductTemplateStoreDao; +import com.jwsaas.dao.food.ProgramStoreProductDao; +import com.jwsaas.entity.food.ProgramProductTemplateDetail; +import com.jwsaas.entity.food.ProgramProductTemplateStore; +import com.jwsaas.entity.food.ProgramStoreProduct; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramProductTemplateDao; +import com.jwsaas.entity.food.ProgramProductTemplate; +import com.jwsaas.service.food.ProgramProductTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateServiceImpl") +public class ProgramProductTemplateServiceImpl extends BaseServiceImpl implements ProgramProductTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateDaoImpl") + private ProgramProductTemplateDao programProductTemplateDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateDetailDaoImpl") + private ProgramProductTemplateDetailDao programProductTemplateDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateStoreDaoImpl") + private ProgramProductTemplateStoreDao programProductTemplateStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreProductDaoImpl") + private ProgramStoreProductDao programStoreProductDao; + @Override + public BaseDao getBaseDao() { + return this.programProductTemplateDao; + } + + @Override + public ProgramProductTemplate saveTemplateDetailAndStores(String tenantId, ProgramProductTemplate template, List details, List stores) throws Exception { + + try{ + template = programProductTemplateDao.save(tenantId,template,true); + if(CollectionUtils.isNotEmpty(details)){ + for(ProgramProductTemplateDetail detail : details){ + detail.setTenantId(tenantId); + detail.setCreateDate(new Date()); + detail.setCreateUser(template.getCreateUser()); + detail.setTemplateId(template.getId()); + detail.setTemplateNo(template.getNo()); + } + programProductTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(stores)){ + for(ProgramProductTemplateStore store : stores){ + store.setTemplateId(template.getId()); + store.setTemplateNo(template.getNo()); + } + programProductTemplateStoreDao.save(tenantId,stores); + } + }catch (Exception e){ + throw e; + } + return template; + } + + @Override + public Integer updateTemplateDetailAndStores(String tenantId, ProgramProductTemplate template, List details, List stores) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",template.getId())); + programProductTemplateDetailDao.delete(tenantId,criteria,true); + programProductTemplateStoreDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(details)){ + for(ProgramProductTemplateDetail detail : details){ + detail.setTenantId(tenantId); + detail.setCreateDate(new Date()); + detail.setCreateUser(template.getModifyUser()); + detail.setModifyDate(new Date()); + detail.setModifyUser(template.getModifyUser()); + detail.setTemplateId(template.getId()); + detail.setTemplateNo(template.getNo()); + } + programProductTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(stores)){ + for(ProgramProductTemplateStore store : stores){ + store.setTemplateId(template.getId()); + store.setTemplateNo(template.getNo()); + } + programProductTemplateStoreDao.save(tenantId,stores); + } + i = programProductTemplateDao.update(tenantId,template,true); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteTemplateDetailsStores(String tenantId, List templateIds) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("templateId",templateIds)); + programProductTemplateDetailDao.delete(tenantId,criteria,true); + programProductTemplateStoreDao.delete(tenantId,criteria,true); + i = programProductTemplateDao.delete(tenantId,templateIds); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveProgramStoreProductPrice(String tenantId, String templateId, String storeIds, String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",templateId)); + List details = programProductTemplateDetailDao.getListWithExtend(tenantId,criteria,true); + List storeIdList = new ArrayList<>(); + Set existStoreProductIds = new HashSet<>(); + if(StringUtils.isNotEmpty(storeIds)){ + storeIdList = Arrays.asList(storeIds.split(",")); + }else{ + criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",templateId)); + List stores = programProductTemplateStoreDao.getList(tenantId,criteria,true); + for(ProgramProductTemplateStore store : stores){ + storeIdList.add(store.getStoreId()); + } + } + //判断门店商品是否已存在; + criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIdList)); + criteria.add(Restrictions.limit("0","10000")); + List programStoreProducts = programStoreProductDao.getList(tenantId,criteria,true); + for(ProgramStoreProduct psp : programStoreProducts){ + String key = psp.getStoreId() + "-"+psp.getSpecId(); + existStoreProductIds.add(key); + } + List updateList = new ArrayList<>(); + List saveList = new ArrayList<>(); + for(String storeId : storeIdList){ + for(ProgramProductTemplateDetail detail : details){ + String key = storeId + "-"+ detail.getSpecId(); + if(existStoreProductIds.contains(key)){ + ProgramStoreProduct psp = new ProgramStoreProduct(); + psp.setStoreId(storeId); + psp.setTenantId(tenantId); + psp.setWprice(detail.getWprice()); + psp.setWmemberPrice(detail.getWmemberPrice()); + psp.setModifyDate(new Date()); + psp.setModifyUser(userName); + updateList.add(psp); + }else{ + ProgramStoreProduct programStoreProduct = new ProgramStoreProduct(); + programStoreProduct.setTenantId(tenantId); + programStoreProduct.setProductId(detail.getProductId()); + programStoreProduct.setStoreId(storeId); + programStoreProduct.setProductUnitId(detail.getProductUnitId()); + programStoreProduct.setTypeId(detail.getTypeId()); + programStoreProduct.setTypePath(detail.getTypePath()); + programStoreProduct.setSpecId(detail.getSpecId()); + programStoreProduct.setWprice(detail.getWprice()); + programStoreProduct.setWmemberPrice(detail.getWmemberPrice()); + programStoreProduct.setProgramId(detail.getProgramId()); + programStoreProduct.setCreateUser(userName); + programStoreProduct.setCreateDate(new Date()); + saveList.add(programStoreProduct); + } + } + } + if(CollectionUtils.isNotEmpty(saveList)){ + programStoreProductDao.save(tenantId,saveList); + } + if(CollectionUtils.isNotEmpty(updateList)){ + programStoreProductDao.updateBystoreIdAndProgramProductId(tenantId,updateList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveProgramStoreProductPriceByCover(String tenantId, String templateId, String storeIds, String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",templateId)); + List details = programProductTemplateDetailDao.getListWithExtend(tenantId,criteria,true); + List storeIdList = new ArrayList<>(); + if(StringUtils.isNotEmpty(storeIds)){ + storeIdList = Arrays.asList(storeIds.split(",")); + }else{ + criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",templateId)); + List stores = programProductTemplateStoreDao.getList(tenantId,criteria,true); + for(ProgramProductTemplateStore store : stores){ + storeIdList.add(store.getStoreId()); + } + } + criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIdList)); + programStoreProductDao.delete(tenantId,criteria,true); + + List saveList = new ArrayList<>(); + for(String storeId : storeIdList){ + for(ProgramProductTemplateDetail detail : details){ + ProgramStoreProduct programStoreProduct = new ProgramStoreProduct(); + programStoreProduct.setTenantId(tenantId); + programStoreProduct.setProductId(detail.getProductId()); + programStoreProduct.setStoreId(storeId); + programStoreProduct.setSpecId(detail.getSpecId()); + programStoreProduct.setProductUnitId(detail.getProductUnitId()); +// programStoreProduct.setPrice(detail.getPrice()); +// programStoreProduct.setMemberPrice(detail.getMemberPrice()); + programStoreProduct.setTypeId(detail.getTypeId()); + programStoreProduct.setTypePath(detail.getTypePath()); + programStoreProduct.setWprice(detail.getWprice()); + programStoreProduct.setWmemberPrice(detail.getWmemberPrice()); + programStoreProduct.setProgramId(detail.getProgramId()); + programStoreProduct.setCreateUser(userName); + programStoreProduct.setCreateDate(new Date()); + saveList.add(programStoreProduct); + } + } + if(CollectionUtils.isNotEmpty(saveList)){ + programStoreProductDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateStoreServiceImpl.java new file mode 100644 index 0000000..5bcc05e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramProductTemplateStoreServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramProductTemplateStoreDao; +import com.jwsaas.entity.food.ProgramProductTemplateStore; +import com.jwsaas.service.food.ProgramProductTemplateStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateStoreServiceImpl") +public class ProgramProductTemplateStoreServiceImpl extends BaseServiceImpl implements ProgramProductTemplateStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductTemplateStoreDaoImpl") + private ProgramProductTemplateStoreDao programProductTemplateStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.programProductTemplateStoreDao; + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId) throws Exception { + try { + return programProductTemplateStoreDao.getStoreIdByTemplateId(tenantId,templateId); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return programProductTemplateStoreDao.getListExtend(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListGoodsServiceImpl.java new file mode 100644 index 0000000..2c6c9eb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListGoodsServiceImpl.java @@ -0,0 +1,38 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.food.PromotionBlackListGoods; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionBlackListGoodsDao; +import com.jwsaas.entity.food.ProgramPromotionBlackListGoods; +import com.jwsaas.service.food.ProgramPromotionBlackListGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListGoodsServiceImpl") +public class ProgramPromotionBlackListGoodsServiceImpl extends BaseServiceImpl implements ProgramPromotionBlackListGoodsService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListGoodsDaoImpl") + private ProgramPromotionBlackListGoodsDao programPromotionBlackListGoodsDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionBlackListGoodsDao; + } + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) throws Exception { + try { + return programPromotionBlackListGoodsDao.getListWithSpec(tenantId,criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreAreaServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreAreaServiceImpl.java new file mode 100644 index 0000000..bfc9c62 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreAreaServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionBlackListStoreAreaDao; +import com.jwsaas.entity.food.ProgramPromotionBlackListStoreArea; +import com.jwsaas.service.food.ProgramPromotionBlackListStoreAreaService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListStoreAreaServiceImpl") +public class ProgramPromotionBlackListStoreAreaServiceImpl extends BaseServiceImpl implements ProgramPromotionBlackListStoreAreaService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListStoreAreaDaoImpl") + private ProgramPromotionBlackListStoreAreaDao programPromotionBlackListStoreAreaDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionBlackListStoreAreaDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreServiceImpl.java new file mode 100644 index 0000000..adc4f0c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionBlackListStoreDao; +import com.jwsaas.entity.food.ProgramPromotionBlackListStore; +import com.jwsaas.service.food.ProgramPromotionBlackListStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListStoreServiceImpl") +public class ProgramPromotionBlackListStoreServiceImpl extends BaseServiceImpl implements ProgramPromotionBlackListStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListStoreDaoImpl") + private ProgramPromotionBlackListStoreDao programPromotionBlackListStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionBlackListStoreDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionCategoryServiceImpl.java new file mode 100644 index 0000000..8dcaa7c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionCategoryServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionCategoryDao; +import com.jwsaas.entity.food.ProgramPromotionCategory; +import com.jwsaas.service.food.ProgramPromotionCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionCategoryServiceImpl") +public class ProgramPromotionCategoryServiceImpl extends BaseServiceImpl implements ProgramPromotionCategoryService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionCategoryDaoImpl") + private ProgramPromotionCategoryDao programPromotionCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionCategoryDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionGoodsServiceImpl.java new file mode 100644 index 0000000..54a5c35 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionGoodsServiceImpl.java @@ -0,0 +1,38 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionGoodsDao; +import com.jwsaas.entity.food.ProgramPromotionGoods; +import com.jwsaas.service.food.ProgramPromotionGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionGoodsServiceImpl") +public class ProgramPromotionGoodsServiceImpl extends BaseServiceImpl implements ProgramPromotionGoodsService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionGoodsDaoImpl") + private ProgramPromotionGoodsDao programPromotionGoodsDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionGoodsDao; + } + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) throws Exception { + try{ + return programPromotionGoodsDao.getListWithSpec(tenantId,criteria); + }catch (Exception e){ + throw e; + } + + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionSchemeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionSchemeServiceImpl.java new file mode 100644 index 0000000..28017aa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionSchemeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionSchemeDao; +import com.jwsaas.entity.food.ProgramPromotionScheme; +import com.jwsaas.service.food.ProgramPromotionSchemeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionSchemeServiceImpl") +public class ProgramPromotionSchemeServiceImpl extends BaseServiceImpl implements ProgramPromotionSchemeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionSchemeDaoImpl") + private ProgramPromotionSchemeDao programPromotionSchemeDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionSchemeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionStoreAreaServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionStoreAreaServiceImpl.java new file mode 100644 index 0000000..44bb735 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionStoreAreaServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionStoreAreaDao; +import com.jwsaas.entity.food.ProgramPromotionStoreArea; +import com.jwsaas.service.food.ProgramPromotionStoreAreaService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionStoreAreaServiceImpl") +public class ProgramPromotionStoreAreaServiceImpl extends BaseServiceImpl implements ProgramPromotionStoreAreaService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionStoreAreaDaoImpl") + private ProgramPromotionStoreAreaDao programPromotionStoreAreaDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionStoreAreaDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionStoreServiceImpl.java new file mode 100644 index 0000000..fffe633 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionStoreServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramPromotionStoreDao; +import com.jwsaas.entity.food.ProgramPromotionStore; +import com.jwsaas.service.food.ProgramPromotionStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionStoreServiceImpl") +public class ProgramPromotionStoreServiceImpl extends BaseServiceImpl implements ProgramPromotionStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionStoreDaoImpl") + private ProgramPromotionStoreDao programPromotionStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionStoreDao; + } + + @Override + public List getStoreIdList(String tenantId, Criteria criteria) throws Exception { + try{ + return programPromotionStoreDao.getStoreIdList(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionTaskServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionTaskServiceImpl.java new file mode 100644 index 0000000..befdcd3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionTaskServiceImpl.java @@ -0,0 +1,923 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.utils.DateUtils; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.ProgramPromotionTaskService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.text.SimpleDateFormat; +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionTaskServiceImpl") +public class ProgramPromotionTaskServiceImpl extends BaseServiceImpl implements ProgramPromotionTaskService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionTaskDaoImpl") + private ProgramPromotionTaskDao programPromotionTaskDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionTicketDaoImpl") + private ProgramPromotionTicketDao programPromotionTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionSchemeDaoImpl") + private ProgramPromotionSchemeDao programPromotionSchemeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionStoreDaoImpl") + private ProgramPromotionStoreDao programPromotionStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListStoreDaoImpl") + private ProgramPromotionBlackListStoreDao programPromotionBlackListStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionGoodsDaoImpl") + private ProgramPromotionGoodsDao programPromotionGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListGoodsDaoImpl") + private ProgramPromotionBlackListGoodsDao programPromotionBlackListGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreDaoImpl") + private ProgramStoreDao programStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + + private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + + + @Override + public BaseDao getBaseDao() { + return this.programPromotionTaskDao; + } + + @Override + public Integer saveGoodsTask(String tenantId, String id, String no) throws Exception { + Integer i = 0; + try { + ProgramPromotionTicket ticket = programPromotionTicketDao.get(tenantId, id, true); + ProgramPromotionScheme scheme = programPromotionSchemeDao.find(tenantId, "promotionId", id, true); + String rule = ""; + String blackSpecIdsStr = ""; + + //查找不参与促销的商品; + Criteria c = new Criteria(); + c.add(Restrictions.eq("promotionFlag",0)); + c.add(Restrictions.eq("p.deleteFlag",0)); + c.add(Restrictions.eq("stopFlag",0)); + c.add(Restrictions.eq("selfFlag",0)); + c.add(Restrictions.limit("0","10000")); + List notPromotionSpecIds = productSpecDao.getSpecIdByCriteria(tenantId,c,true); + Set notPromotionSpecIdsSet = new HashSet<>(notPromotionSpecIds); + + if (ticket.getIsAll() == 1) { + //生成促销规格; + rule = "{\"discountType\":\"" + scheme.getType() + "\",\"discount\":\"" + scheme.getRule() + "\"}"; + //查找黑名单; + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("promotionId", id)); + List specIds = programPromotionBlackListGoodsDao.getSpecIds(tenantId, crit, true); + + + if(CollectionUtils.isNotEmpty(notPromotionSpecIds)){ + specIds.addAll(notPromotionSpecIds); + } + + if (specIds != null && specIds.size() > 0) { + String[] ids = new String[specIds.size()]; + specIds.toArray(ids); + blackSpecIdsStr = StringUtils.join(ids, ","); + } + } + + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("promotionId", id)); + List stores = programPromotionStoreDao.getList(tenantId, criteria, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = programPromotionGoodsDao.getList(tenantId, criteria, true); + if (ticket.getIsAll() == 0) { + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + } + //判断促销时间历经多少天; + Date startDate = ticket.getStartDate(); + + //判断审核时间是否晚于促销开始时间;晚于开始时间则促销开始时间按审核时间计算; + Date checkeDate = ticket.getConfirmDate(); + if (checkeDate.getTime() > startDate.getTime()) { + startDate = new SimpleDateFormat("yyyy-MM-dd").parse(new SimpleDateFormat("yyyy-MM-dd").format(checkeDate)); + } + + Date endDate = ticket.getEndDate(); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(startDate); + Long time1 = calendar.getTimeInMillis(); + calendar.setTime(endDate); + Long time2 = calendar.getTimeInMillis(); + Integer days = Integer.parseInt((time2 - time1) / (1000 * 60 * 60 * 24) + ""); + days = days + 1; + + //判断促销时间是否多于三天; + if (days > 3) { + days = 3; + } + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date now = sdf.parse(sdf.format(new Date())); + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + +// Map productTypeMap = null; +// if (ticket.getIsCategory() != null && ticket.getIsCategory() == 1) { +// productTypeMap = getProductTypePathMap(tenantId, true); +// } + List tasks = new ArrayList<>(); + boolean endFlag = false; + int nx = 0; + for (int x = 0; x < days; x++) { + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + cal.add(Calendar.DATE, x); + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + date = cal.getTime(); + + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + + if (date.getTime() >= end.getTime()) { + break; + } + + Date date2 = null; + if (overDay != 0) { + if (endFlag) { + break; + } + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + //判断最后一天; + if (date2.getTime() >= ticket.getEndDate().getTime()) { + ticket.setLastTaskDate(DateUtils.format(date, DateUtils.SHOW_DATE_FORMAT)); + endFlag = true; + } + } + + //判断星期,是否在星期可用范围; + if (!ticket.getValidWeek().contains(weekDay)) { + days += 1; + continue; + } + + + //判断日期,是否在每月频率可用范围; + if (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay)) { + days += 1; + continue; + } + + if (x == days - 1) { + if (overDay == 0) { + ticket.setLastTaskDate(DateUtils.format(date, DateUtils.SHOW_DATE_FORMAT)); + } else { + ticket.setLastTaskDate(DateUtils.format(date2, DateUtils.SHOW_DATE_FORMAT)); + } + } + + if (ticket.getIsAll() == 0) { + for (ProgramPromotionStore store : stores) { + for (ProgramPromotionGoods goods : goodses) { + if(notPromotionSpecIdsSet.contains(goods.getSpecId())){ + continue; + } + ProgramPromotionTask task = new ProgramPromotionTask(); + task.setTenantId(tenantId); + task.setProgramId(ticket.getProgramId()); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + task.setPromotionId(id); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + } else { + task.setEndDate(date2); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + String rules = "{\"discountType\":\"" + goods.getDiscountType() + "\",\"discount\":\"" + goods.getDiscount() + "\",\"salePrice\":\"" + goods.getSalePrice() + "\",\"specialPrice\":\"" + goods.getSpecialPrice() + "\"}"; + task.setRule(rules); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + tasks.add(task); + } + } + } else { + for (ProgramPromotionStore store : stores) { + ProgramPromotionTask task = new ProgramPromotionTask(); + task.setTenantId(tenantId); + task.setProgramId(ticket.getProgramId()); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + task.setPromotionId(id); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + } else { + task.setEndDate(date2); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(scheme.getType()); + task.setDiscountValue(Double.parseDouble(scheme.getRule())); + if (StringUtils.isNotEmpty(blackSpecIdsStr)) { + task.setGoodsBlackList(blackSpecIdsStr); + } + task.setRule(rule); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < startDate.getTime()) { + task.setStatus(0); + } else if (now.getTime() >= startDate.getTime() && now.getTime() <= ticket.getEndDate().getTime()) { + task.setStatus(1); + } else { + task.setStatus(3); + } + tasks.add(task); + } + } + + } + if (tasks.size() > 0) { + programPromotionTaskDao.save(tenantId, tasks); + ticket.setLastTaskNo(tasks.size() + ""); + programPromotionTicketDao.update(tenantId, ticket, true); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer saveTask(String tenantId, String id, String no) throws Exception { + Integer i = 0; + try { + ProgramPromotionTicket ticket = programPromotionTicketDao.get(tenantId, id, true); + ProgramPromotionScheme scheme = programPromotionSchemeDao.find(tenantId, "promotionId", id, true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("promotionId", id)); + List stores = programPromotionStoreDao.getList(tenantId, criteria, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = programPromotionGoodsDao.getList(tenantId, criteria, true); + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + + //查找不参与促销的商品; + Criteria c = new Criteria(); + c.add(Restrictions.eq("promotionFlag",0)); + c.add(Restrictions.eq("p.deleteFlag",0)); + c.add(Restrictions.eq("stopFlag",0)); + c.add(Restrictions.eq("selfFlag",0)); + c.add(Restrictions.limit("0","10000")); + List notPromotionSpecIds = productSpecDao.getSpecIdByCriteria(tenantId,c,true); + Set notPromotionSpecIdsSet = new HashSet<>(notPromotionSpecIds); + + //判断促销时间历经多少天; + Date startDate = ticket.getStartDate(); + //判断审核时间是否晚于促销开始时间;晚于开始时间则促销开始时间按审核时间计算; + Date checkeDate = ticket.getConfirmDate(); + if (checkeDate.getTime() > startDate.getTime()) { + startDate = new SimpleDateFormat("yyyy-MM-dd").parse(new SimpleDateFormat("yyyy-MM-dd").format(checkeDate)); + } + + Date endDate = ticket.getEndDate(); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(startDate); + Long time1 = calendar.getTimeInMillis(); + calendar.setTime(endDate); + Long time2 = calendar.getTimeInMillis(); + Integer days = Integer.parseInt((time2 - time1) / (1000 * 60 * 60 * 24) + ""); + days = days + 1; + + //判断促销时间是否多于三天; + if (days > 3) { + days = 3; + } + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date now = sdf.parse(sdf.format(new Date())); + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + + + List tasks = new ArrayList<>(); + boolean endFlag = false; + int nx = 0; + for (int x = 0; x < days; x++) { + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + cal.add(Calendar.DATE, x); + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + date = cal.getTime(); + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + + if (date.getTime() >= end.getTime()) { + break; + } + + Date date2 = null; + if (overDay != 0) { + if (endFlag) { + break; + } + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + //判断最后一天; + if (date2.getTime() >= ticket.getEndDate().getTime()) { + ticket.setLastTaskDate(DateUtils.format(date2, DateUtils.SHOW_DATE_FORMAT)); + endFlag = true; + } + } + //判断星期,是否在星期可用范围; + if (!ticket.getValidWeek().contains(weekDay)) { + days += 1; + continue; + } + //判断日期,是否在每月频率可用范围; + if (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay)) { + days += 1; + continue; + } + + if (x == days - 1) { + if (overDay == 0) { + ticket.setLastTaskDate(DateUtils.format(date, DateUtils.SHOW_DATE_FORMAT)); + } else { + ticket.setLastTaskDate(DateUtils.format(date2, DateUtils.SHOW_DATE_FORMAT)); + } + } + + for (ProgramPromotionStore store : stores) { + for (ProgramPromotionGoods goods : goodses) { + //如果此商品是不参与促销商品直接跳过; + if(notPromotionSpecIdsSet.contains(goods.getSpecId())){ + continue; + } + ProgramPromotionTask task = new ProgramPromotionTask(); + task.setTenantId(tenantId); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + task.setPromotionId(id); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + } else { + task.setEndDate(date2); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + task.setRule(scheme.getRule()); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + tasks.add(task); + } + } + } + if (tasks.size() > 0) { + programPromotionTaskDao.save(tenantId, tasks); + ticket.setLastTaskNo(tasks.size() + ""); + programPromotionTicketDao.update(tenantId, ticket, true); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer saveNextDayPromotionTask(String tenantId, String ticketId, String lastTaskEndDate, String lastTaskNo, String userName) throws Exception { + Integer i = 0; + try { + ProgramPromotionTicket ticket = programPromotionTicketDao.get(tenantId, ticketId, true); + ProgramPromotionScheme scheme = programPromotionSchemeDao.find(tenantId, "promotionId", ticketId, true); + //List ticketUpdateList = new ArrayList<>(); + + //查找不参与促销的商品; + Criteria c = new Criteria(); + c.add(Restrictions.eq("promotionFlag",0)); + c.add(Restrictions.eq("p.deleteFlag",0)); + c.add(Restrictions.eq("stopFlag",0)); + c.add(Restrictions.eq("selfFlag",0)); + List notPromotionSpecIds = productSpecDao.getSpecIdByCriteria(tenantId,c,true); + + List taskList = new ArrayList<>(); + if ("fullCut".equals(ticket.getType())) { + + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId", ticket.getId())); + List stores = programPromotionStoreDao.getList(tenantId, criterias, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = programPromotionGoodsDao.getList(tenantId, criterias, true); + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + //判断促销时间历经多少天; + //查看最后生成的日期; + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date startDate = sdf.parse(lastTaskEndDate); + Date now = sdf.parse(sdf.format(new Date())); + //判断当前时间于最后一天哪个时间靠后; + if (startDate.getTime() < now.getTime()) { + startDate = now; + } + + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + + int nx = Integer.parseInt(lastTaskNo); + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + //判断是否是跨天促销,如果是跨天促销,此处开始日期不用加一天; + if(overDay == 0){ + cal.add(Calendar.DATE, 1); + } + + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + //判断当前日期,是否在星期可用范围:在可用范围生成任务;不在范围日期加一天继续判断; + //判断日期,是否在每月频率可用范围; + while (!ticket.getValidWeek().contains(weekDay) || (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay))) { + cal.add(Calendar.DATE, 1); + weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + + monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + } + + date = cal.getTime(); + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + if (date.getTime() < end.getTime()) { + Date date2 = null; + if (overDay != 0) { + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + if(date.getTime() >= ticket.getEndDate().getTime()){ + return -3;//跨天促销任务已结束; + } + } + for (ProgramPromotionStore store : stores) { + for (ProgramPromotionGoods goods : goodses) { + if(notPromotionSpecIds.contains(goods.getSpecId())){ + continue; + } + ProgramPromotionTask task = new ProgramPromotionTask(); + task.setTenantId(tenantId); + task.setProgramId(ticket.getProgramId()); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + ticket.setLastTaskNo(nx + ""); + task.setPromotionId(ticket.getId()); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + ticket.setLastTaskDate(sdf.format(date)); + } else { + task.setEndDate(date2); + ticket.setLastTaskDate(sdf.format(date2)); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + task.setRule(scheme.getRule()); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime() && now.getTime() <= task.getEndDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + taskList.add(task); + } + } + } + } else if ("goods".equals(ticket.getType()) || "doubleSpecial".equals(ticket.getType())) { + String rule = ""; + String blackSpecIdsStr = ""; + if (ticket.getIsAll() == 1) { + //生成促销规格; + rule = "{\"discountType\":\"" + scheme.getType() + "\",\"discount\":\"" + scheme.getRule() + "\"}"; + //查找黑名单; + Criteria crits = new Criteria(); + crits.add(Restrictions.eq("promotionId", ticket.getId())); + List specIds = programPromotionBlackListGoodsDao.getSpecIds(tenantId, crits, true); + + if(CollectionUtils.isNotEmpty(notPromotionSpecIds)){ + specIds.addAll(notPromotionSpecIds); + } + + if (specIds != null && specIds.size() > 0) { + String[] ids = new String[specIds.size()]; + specIds.toArray(ids); + blackSpecIdsStr = StringUtils.join(ids, ","); + } + } + + + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId", ticket.getId())); + List stores = programPromotionStoreDao.getList(tenantId, criterias, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = programPromotionGoodsDao.getList(tenantId, criterias, true); + if (ticket.getIsAll() == 0) { + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + } + //判断促销时间历经多少天; + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date startDate = sdf.parse(lastTaskEndDate); + Date now = sdf.parse(sdf.format(new Date())); + //判断当前时间于最后一天哪个时间靠后; + if (startDate.getTime() < now.getTime()) { + startDate = now; + } + + + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + + int nx = Integer.parseInt(lastTaskNo); + + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + //判断是否是跨天促销,如果是跨天促销,此处开始日期不用加一天; + if(overDay == 0){ + cal.add(Calendar.DATE, 1); + } + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + //判断当前日期,是否在星期可用范围:在可用范围生成任务;不在范围日期加一天继续判断; + //判断日期,是否在每月频率可用范围; + while (!ticket.getValidWeek().contains(weekDay) || (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay))) { + cal.add(Calendar.DATE, 1); + weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + + monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + } + + date = cal.getTime(); + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + if (date.getTime() < end.getTime()) { + Date date2 = null; + if (overDay != 0) { + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + if(date.getTime() >= ticket.getEndDate().getTime()){ + return -3;//跨天促销任务已结束; + } + } + if (ticket.getIsAll() == 0) { + for (ProgramPromotionStore store : stores) { + for (ProgramPromotionGoods goods : goodses) { + if(notPromotionSpecIds.contains(goods.getSpecId())){ + continue; + } + ProgramPromotionTask task = new ProgramPromotionTask(); + task.setTenantId(tenantId); + task.setProgramId(ticket.getProgramId()); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + ticket.setLastTaskNo(nx + ""); + task.setPromotionId(ticket.getId()); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + ticket.setLastTaskDate(sdf.format(date)); + } else { + task.setEndDate(date2); + ticket.setLastTaskDate(sdf.format(date2)); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + String rules = "{\"discountType\":\"" + goods.getDiscountType() + "\",\"discount\":\"" + goods.getDiscount() + "\",\"salePrice\":\"" + goods.getSalePrice() + "\",\"specialPrice\":\"" + goods.getSpecialPrice() + "\"}"; + task.setRule(rules); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime() && now.getTime() <= ticket.getEndDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + taskList.add(task); + } + } + } else { + for (ProgramPromotionStore store : stores) { + ProgramPromotionTask task = new ProgramPromotionTask(); + task.setTenantId(tenantId); + task.setProgramId(ticket.getProgramId()); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + ticket.setLastTaskNo(nx + ""); + task.setPromotionId(ticket.getId()); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + ticket.setLastTaskDate(sdf.format(date)); + } else { + task.setEndDate(date2); + ticket.setLastTaskDate(sdf.format(date2)); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(scheme.getType()); + task.setDiscountValue(Double.parseDouble(scheme.getRule())); + if (StringUtils.isNotEmpty(blackSpecIdsStr)) { + task.setGoodsBlackList(blackSpecIdsStr); + } + task.setRule(rule); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime() && now.getTime() <= task.getEndDate().getTime()) { + task.setStatus(1); + } + taskList.add(task); + } + + } + } + } + if (taskList.size() > 0) { + programPromotionTaskDao.save(tenantId, taskList); + } + ticket.setModifyUser(userName); + ticket.setModifyDate(new Date()); + programPromotionTicketDao.update(tenantId, ticket, true); + + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer updateTaskToPause(String tenantId, List sids, String userName) throws Exception { + Integer i = 0; + try { + //查找预备、执行中的任务; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.or(Restrictions.eq("status", 0), Restrictions.eq("status", 1))); + criteria.add(Restrictions.in("id", sids)); + List tasks = programPromotionTaskDao.getList(tenantId, criteria, true); + List pauseList = new ArrayList<>(); + if (CollectionUtils.isNotEmpty(tasks)) { + for (ProgramPromotionTask task : tasks) { + ProgramPromotionTask ta = new ProgramPromotionTask(); + ta.setId(task.getId()); + ta.setStatus(2); + ta.setModifyUser(userName); + ta.setModifyDate(new Date()); + pauseList.add(ta); + } + } + if (pauseList.size() > 0) { + programPromotionTaskDao.update(tenantId, pauseList); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer updateTaskToReStart(String tenantId, List sids, String userName) throws Exception { + Integer i = 0; + try { + //查找已中止状态的任务; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("status", "2")); + criteria.add(Restrictions.in("id", sids)); + List tasks = programPromotionTaskDao.getList(tenantId, criteria, true); + List reStartList = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Long today = new Date().getTime(); + SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd"); + if (CollectionUtils.isNotEmpty(tasks)) { + for (ProgramPromotionTask task : tasks) { + ProgramPromotionTask ta = new ProgramPromotionTask(); + ta.setId(task.getId()); + Long endDay = sdf.parse(sd.format(task.getEndDate()) + " " + task.getEndTime()).getTime(); + Long startDay = task.getStartDate().getTime(); + if (today < endDay) { + if (today < startDay) { + ta.setStatus(0); + } else { + ta.setStatus(1); + } + } else { + ta.setStatus(3); + } + ta.setModifyUser(userName); + ta.setModifyDate(new Date()); + reStartList.add(ta); + } + } + if (reStartList.size() > 0) { + programPromotionTaskDao.update(tenantId, reStartList); + } + i = 1; + + } catch (Exception e) { + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionTicketServiceImpl.java new file mode 100644 index 0000000..b6f7aa8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramPromotionTicketServiceImpl.java @@ -0,0 +1,585 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.utils.DateUtils; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.ProgramPromotionTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.text.SimpleDateFormat; +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionTicketServiceImpl") +public class ProgramPromotionTicketServiceImpl extends BaseServiceImpl implements ProgramPromotionTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionTicketDaoImpl") + private ProgramPromotionTicketDao programPromotionTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionSchemeDaoImpl") + private ProgramPromotionSchemeDao programPromotionSchemeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionStoreDaoImpl") + private ProgramPromotionStoreDao programPromotionStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListStoreDaoImpl") + private ProgramPromotionBlackListStoreDao programPromotionBlackListStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionGoodsDaoImpl") + private ProgramPromotionGoodsDao programPromotionGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionBlackListGoodsDaoImpl") + private ProgramPromotionBlackListGoodsDao programPromotionBlackListGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreProductDaoImpl") + private ProgramStoreProductDao programStoreProductDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreDaoImpl") + private ProgramStoreDao programStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramPromotionTaskDaoImpl") + private ProgramPromotionTaskDao programPromotionTaskDao; + + @Override + public BaseDao getBaseDao() { + return this.programPromotionTicketDao; + } + + @Override + public Pager getPagerWithStores(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = programPromotionTicketDao.getPagerWithStores(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public ProgramPromotionTicket saveGoodsTicketScheme(String tenantId, ProgramPromotionTicket ticket, List storeIdList, + List specIdList, String[] price, String[] discountType, + String[] discount, String[] specialPrice, String[] limitNum, + String[] allLimitNum) throws Exception { + Integer i = 0; + try{ + ticket = programPromotionTicketDao.save(tenantId,ticket,true); + ProgramPromotionScheme scheme = new ProgramPromotionScheme(); + scheme.setTenantId(tenantId); + scheme.setProgramId(ticket.getProgramId()); + scheme.setCreateUser(ticket.getCreateUser()); + scheme.setCreateDate(new Date()); + scheme.setSn(DateUtils.getCurrDatetime()); + scheme.setPromotionId(ticket.getId()); + scheme.setPromotionSn(ticket.getSn()); + scheme.setMemo(ticket.getMemo()); + if(ticket.getIsAll() == 1) { + scheme.setType(Integer.parseInt(discountType[0])); + scheme.setRule(discount[0]); + } + programPromotionSchemeDao.save(tenantId,scheme,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + List blackListGoodses = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(storeIdList)){ + for(String storeId : storeIdList){ + ProgramPromotionStore ps = new ProgramPromotionStore(); + ps.setTenantId(tenantId); + ps.setProgramId(ticket.getProgramId()); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(storeId); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + Map discountTypeMap = new HashMap<>(); + Map discountMap = new HashMap<>(); + Map priceMap = null; + Map specialPriceMap = new HashMap<>(); + Map limitNumMap = new HashMap<>(); + Map allLimitNumMap = new HashMap<>(); + if(ticket.getIsAll()== 0){ + if(ArrayUtils.isNotEmpty(discountType)){ + for(String str : discountType){ + String[] specIdType = str.split("-"); + discountTypeMap.put(specIdType[0],Integer.parseInt(specIdType[1])); + } + } + + if(ArrayUtils.isNotEmpty(discount)){ + for(String str : discount){ + String[] specIdDiscount = str.split("_"); + discountMap.put(specIdDiscount[0],Double.parseDouble(specIdDiscount[1])); + } + } + if(storeIdList.size() == 1){ + priceMap = new HashMap<>(); + Criteria c = new Criteria(); + c.add(Restrictions.eq("storeId",storeIdList.get(0))); + List storeProducts = programStoreProductDao.getList(tenantId,c,true); + if(CollectionUtils.isNotEmpty(storeProducts)){ + for(ProgramStoreProduct sp : storeProducts){ + priceMap.put(sp.getSpecId(),sp.getWprice()); + } + } + } + + if(ArrayUtils.isNotEmpty(specialPrice)){ + for(String str : specialPrice){ + String[] specIdPrce = str.split("-"); + specialPriceMap.put(specIdPrce[0],Double.parseDouble(specIdPrce[1])); + } + } + + if(ArrayUtils.isNotEmpty(limitNum)){ + for(String str : limitNum){ + String[] specIdNum = str.split("-"); + limitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + if(ArrayUtils.isNotEmpty(allLimitNum)){ + for(String str : allLimitNum){ + String[] specIdNum = str.split("-"); + allLimitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + } + + + List specs = new ArrayList<>(); + Criteria criteria = new Criteria(); + if(CollectionUtils.isNotEmpty(specIdList)) { + //criteria.add(Restrictions.in("ps.id", specIdList)); + criteria.add(Restrictions.lt("p.type",10)); + criteria.add(Restrictions.eq("p.lineFlag",1)); + criteria.add(Restrictions.eq("p.deleteFlag",0)); + criteria.add(Restrictions.eq("p.selfFlag", 0)); + criteria.add(Restrictions.eq("p.stopFlag", 0)); + criteria.add(Restrictions.eq("p.promotionFlag", 1)); + criteria.add(Restrictions.eq("ps.deleteFlag",0)); + specs = productSpecDao.getListWithProduct(tenantId, criteria, true); + } + if(ticket.getIsAll() == 0){ + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + if(specIdList.contains(spec.getId())){ + ProgramPromotionGoods pg = new ProgramPromotionGoods(); + pg.setTenantId(tenantId); + pg.setProgramId(ticket.getProgramId()); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(priceMap != null ? priceMap.get(spec.getId()) : spec.getPrice()); + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setLimitNum(limitNumMap.get(spec.getId()) == null ? null : limitNumMap.get(spec.getId())); + pg.setAllLimitNum(allLimitNumMap.get(spec.getId()) == null ? null : allLimitNumMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + } + }else { + if(CollectionUtils.isNotEmpty(specs)) { + for (ProductSpec spec : specs) { + if(specIdList.contains(spec.getId())){ + ProgramPromotionBlackListGoods gd = new ProgramPromotionBlackListGoods(); + gd.setTenantId(tenantId); + gd.setProgramId(ticket.getProgramId()); + gd.setCreateUser(ticket.getCreateUser()); + gd.setCreateDate(new Date()); + gd.setPromotionId(ticket.getId()); + gd.setPromotionSn(ticket.getSn()); + gd.setProductId(spec.getProductId()); + gd.setSpecId(spec.getId()); + gd.setProductNo(spec.getProductNo()); + gd.setProductName(spec.getProductName()); + blackListGoodses.add(gd); + } + } + } + } + if(stores.size() > 0 ){ + programPromotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + programPromotionGoodsDao.save(tenantId,goodses); + } + if(blackListGoodses.size() > 0){ + programPromotionBlackListGoodsDao.save(tenantId,blackListGoodses); + } + + }catch(Exception e){ + throw e; + } + return ticket; + } + + @Override + public Integer updateGoodsTicketScheme(String tenantId, ProgramPromotionTicket ticket, String reduceType, + List storeIdList, List specIdList, String[] price, + String[] discountType, String[] discount, String[] specialPrice, + String[] limitNum, String[] allLimitNum) throws Exception { + + + Integer i = 0; + try{ + programPromotionTicketDao.update(tenantId,ticket,true); + ProgramPromotionScheme scheme = programPromotionSchemeDao.find(tenantId,"promotionId",ticket.getId(),true); + scheme.setModifyUser(ticket.getModifyUser()); + scheme.setModifyDate(new Date()); + scheme.setMemo(ticket.getMemo()); + if(ticket.getIsAll() == 1) { + scheme.setType(Integer.parseInt(discountType[0])); + scheme.setRule(discount[0]); + } + programPromotionSchemeDao.update(tenantId,scheme,true); + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId",ticket.getId())); + programPromotionStoreDao.delete(tenantId,criterias,true); + programPromotionGoodsDao.delete(tenantId,criterias,true); + programPromotionBlackListGoodsDao.delete(tenantId,criterias,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + List blackListGoodses = new ArrayList<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIdList)); + List storeList = programStoreDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(ProgramStore store : storeList){ + ProgramPromotionStore ps = new ProgramPromotionStore(); + ps.setTenantId(tenantId); + ps.setProgramId(ticket.getProgramId()); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getStoreId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + + Map discountTypeMap = new HashMap<>(); + Map discountMap = new HashMap<>(); + Map priceMap = null; + Map specialPriceMap = new HashMap<>(); + Map limitNumMap = new HashMap<>(); + Map allLimitNumMap = new HashMap<>(); + if(ticket.getIsAll()== 0){ + if(ArrayUtils.isNotEmpty(discountType)){ + for(String str : discountType){ + String[] specIdType = str.split("-"); + discountTypeMap.put(specIdType[0],Integer.parseInt(specIdType[1])); + } + } + + if(ArrayUtils.isNotEmpty(discount)){ + for(String str : discount){ + String[] specIdDiscount = str.split("_"); + discountMap.put(specIdDiscount[0],Double.parseDouble(specIdDiscount[1])); + } + } + + if(storeIdList.size() == 1){ + priceMap = new HashMap<>(); + Criteria c = new Criteria(); + c.add(Restrictions.eq("storeId",storeIdList.get(0))); + List storeProducts = programStoreProductDao.getList(tenantId,c,true); + if(CollectionUtils.isNotEmpty(storeProducts)){ + for(ProgramStoreProduct sp : storeProducts){ + priceMap.put(sp.getSpecId(),sp.getWprice()); + } + } + } + + if(ArrayUtils.isNotEmpty(specialPrice)){ + for(String str : specialPrice){ + String[] specIdPrce = str.split("-"); + specialPriceMap.put(specIdPrce[0],Double.parseDouble(specIdPrce[1])); + } + } + + if(ArrayUtils.isNotEmpty(limitNum)){ + for(String str : limitNum){ + String[] specIdNum = str.split("-"); + limitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + if(ArrayUtils.isNotEmpty(allLimitNum)){ + for(String str : allLimitNum){ + String[] specIdNum = str.split("-"); + allLimitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + } + + List specs = new ArrayList<>(); + criteria = new Criteria(); + if(CollectionUtils.isNotEmpty(specIdList)) { + criteria.add(Restrictions.in("ps.id", specIdList)); + specs = productSpecDao.getListWithProduct(tenantId, criteria, true); + } + if(ticket.getIsAll() == 0){ + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + ProgramPromotionGoods pg = new ProgramPromotionGoods(); + pg.setTenantId(tenantId); + pg.setProgramId(ticket.getProgramId()); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(priceMap != null ? priceMap.get(spec.getId()) : spec.getPrice()); + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setLimitNum(limitNumMap.get(spec.getId()) == null ? null : limitNumMap.get(spec.getId())); + pg.setAllLimitNum(allLimitNumMap.get(spec.getId()) == null ? null : allLimitNumMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else { + if(CollectionUtils.isNotEmpty(specs)) { + for (ProductSpec spec : specs) { + ProgramPromotionBlackListGoods gd = new ProgramPromotionBlackListGoods(); + gd.setTenantId(tenantId); + gd.setProgramId(ticket.getProgramId()); + gd.setCreateUser(ticket.getCreateUser()); + gd.setCreateDate(new Date()); + gd.setPromotionId(ticket.getId()); + gd.setPromotionSn(ticket.getSn()); + gd.setProductId(spec.getProductId()); + gd.setSpecId(spec.getId()); + gd.setProductNo(spec.getProductNo()); + gd.setProductName(spec.getProductName()); + blackListGoodses.add(gd); + } + } + } + + + if(stores.size() > 0 ){ + programPromotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + programPromotionGoodsDao.save(tenantId,goodses); + } + if(blackListGoodses.size() > 0){ + programPromotionBlackListGoodsDao.save(tenantId,blackListGoodses); + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteAllInfos(String tenantId, List ticketIds) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("promotionId",ticketIds)); + programPromotionGoodsDao.delete(tenantId,criteria,true); + programPromotionBlackListGoodsDao.delete(tenantId,criteria,true); + programPromotionStoreDao.delete(tenantId,criteria,true); + programPromotionBlackListStoreDao.delete(tenantId,criteria,true); + programPromotionSchemeDao.delete(tenantId,criteria,true); + programPromotionTicketDao.delete(tenantId,ticketIds); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateStatusToPause(String tenantId, String id, String userName) throws Exception { + Integer i = 0; + try{ + ProgramPromotionTicket ticket = programPromotionTicketDao.get(tenantId,id); + if(ticket.getConfirmStatus() == 1){ + if(ticket.getStatus() == 0 || ticket.getStatus() == 1){ + ticket.setStatus(2); + ticket.setModifyUser(userName); + ticket.setModifyDate(new Date()); + programPromotionTicketDao.update(tenantId,ticket); + //将此促销单下任务状态为0,1的都改为中止; + programPromotionTaskDao.updateStatusToPause(tenantId,id); + i = 1; + }else{ + i = 3;//此单据状态不能中止; + } + }else{ + i = 2;//审核通过单据状态才能中止; + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateStatusToReStart(String tenantId, String id, String userName) throws Exception { + Integer i = 0; + try{ + ProgramPromotionTicket ticket = programPromotionTicketDao.get(tenantId,id,true); + //判断此单据重启后的状态; + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + SimpleDateFormat sdfs = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date endTime = sdfs.parse(sdf.format(ticket.getEndDate())+" "+ ticket.getEndTime()); + Date now = sdf.parse(sdf.format(new Date())); + if(now.getTime() < ticket.getStartDate().getTime()){ + ticket.setStatus(0); + }else if(now.getTime() >= ticket.getStartDate().getTime() && now.getTime() <= endTime.getTime() ){ + ticket.setStatus(1); + }else{ + ticket.setStatus(3); + } + ticket.setModifyUser(userName); + ticket.setModifyDate(new Date()); + programPromotionTicketDao.update(tenantId,ticket,true); + //调整单据任务状态; + if(ticket.getStatus() == 0){ + programPromotionTaskDao.updatePauseStatusToRestart(tenantId,id,0,true); + }else if(ticket.getStatus() == 3){ + programPromotionTaskDao.updatePauseStatusToRestart(tenantId,id,3,true); + }else { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("status", 2)); + criteria.add(Restrictions.eq("promotionId", id)); + List tasks = programPromotionTaskDao.getList(tenantId, criteria, true); + if(CollectionUtils.isNotEmpty(tasks)){ + for(ProgramPromotionTask task : tasks){ + Date raskEndTime = sdfs.parse(sdf.format(task.getEndDate())+" "+ task.getEndTime()); + if(now.getTime() < task.getStartDate().getTime()){ + task.setStatus(0); + }else if(now.getTime() >= task.getStartDate().getTime() && now.getTime() <= raskEndTime.getTime() ){ + task.setStatus(1); + }else{ + task.setStatus(3); + } + task.setModifyUser(userName); + task.setModifyDate(new Date()); + } + programPromotionTaskDao.update(tenantId,tasks); + } + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicketStartByTask(String tenantId, String id, String userName) throws Exception { + Integer result = 0; + try { + //促销单状态更改; + ProgramPromotionTicket ticket = programPromotionTicketDao.get(tenantId,id); + if(ticket.getStatus() == 0){ + ticket.setStatus(1); + ticket.setModifyUser(userName); + ticket.setModifyDate(new Date()); + programPromotionTicketDao.update(tenantId,ticket); + result = 1; + } + } catch (Exception e) { + throw e; + } + return result; + } + + @Override + public Integer updateTicketFinishByTask(String tenantId, String id, String userName) throws Exception { + Integer result = 0; + try { + //促销单状态更改; + ProgramPromotionTicket ticket = programPromotionTicketDao.get(tenantId,id,true); + if(ticket.getStatus() == 1){ + ticket.setStatus(3); + ticket.setModifyUser(userName); + ticket.setModifyDate(new Date()); + programPromotionTicketDao.update(tenantId,ticket,true); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("promotionId",id)); + criteria.add(Restrictions.eq("status",1)); + List tasks = programPromotionTaskDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(tasks)){ + for(ProgramPromotionTask task : tasks){ + task.setStatus(3); + task.setModifyUser(userName); + task.setModifyDate(new Date()); + } + programPromotionTaskDao.update(tenantId,tasks); + } + + result = 1; + } + } catch (Exception e) { + throw e; + } + return result; + } + + @Override + public Integer updateStatusToExecuting(String tenantId, String tomorrow, String time) throws Exception { + try { + return programPromotionTaskDao.updateStatusToExecuting(tenantId,tomorrow,time); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicketStatusByTask(String tenantId, String userName) throws Exception { + Integer i = 0 ; + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + try{ + Date now = new Date(); + //Date today = sdf.parse(sdf.format(now)); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(now); + calendar.add(Calendar.DATE,-1); + String yesterDay =sdf.format(calendar.getTime()); + String time = new SimpleDateFormat("HH:mm:ss").format(now); + //将执行状态的任务改为结束状态; + programPromotionTaskDao.updateStatusToFinsh(tenantId,yesterDay,time); + }catch(Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramSettingServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramSettingServiceImpl.java new file mode 100644 index 0000000..526097b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramSettingServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramSettingDao; +import com.jwsaas.entity.food.ProgramSetting; +import com.jwsaas.service.food.ProgramSettingService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramSettingServiceImpl") +public class ProgramSettingServiceImpl extends BaseServiceImpl implements ProgramSettingService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramSettingDaoImpl") + private ProgramSettingDao programSettingDao; + + @Override + public BaseDao getBaseDao() { + return this.programSettingDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketDeliverServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketDeliverServiceImpl.java new file mode 100644 index 0000000..0b614d7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketDeliverServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStoreBusinessTicketDeliverDao; +import com.jwsaas.entity.food.ProgramStoreBusinessTicketDeliver; +import com.jwsaas.service.food.ProgramStoreBusinessTicketDeliverService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreBusinessTicketDeliverServiceImpl") +public class ProgramStoreBusinessTicketDeliverServiceImpl extends BaseServiceImpl implements ProgramStoreBusinessTicketDeliverService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreBusinessTicketDeliverDaoImpl") + private ProgramStoreBusinessTicketDeliverDao programStoreBusinessTicketDeliverDao; + + @Override + public BaseDao getBaseDao() { + return this.programStoreBusinessTicketDeliverDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketInfoServiceImpl.java new file mode 100644 index 0000000..9abac80 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketInfoServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStoreBusinessTicketInfoDao; +import com.jwsaas.entity.food.ProgramStoreBusinessTicketInfo; +import com.jwsaas.service.food.ProgramStoreBusinessTicketInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreBusinessTicketInfoServiceImpl") +public class ProgramStoreBusinessTicketInfoServiceImpl extends BaseServiceImpl implements ProgramStoreBusinessTicketInfoService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreBusinessTicketInfoDaoImpl") + private ProgramStoreBusinessTicketInfoDao programStoreBusinessTicketInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.programStoreBusinessTicketInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketServiceImpl.java new file mode 100644 index 0000000..94e8c49 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketServiceImpl.java @@ -0,0 +1,176 @@ +package com.jwsaas.service.food.impl; + +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.ProgramStoreBusinessTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreBusinessTicketServiceImpl") +public class ProgramStoreBusinessTicketServiceImpl extends BaseServiceImpl implements ProgramStoreBusinessTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreBusinessTicketDaoImpl") + private ProgramStoreBusinessTicketDao programStoreBusinessTicketDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreBusinessTicketDeliverDaoImpl") + private ProgramStoreBusinessTicketDeliverDao programStoreBusinessTicketDeliverDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreBusinessTicketInfoDaoImpl") + private ProgramStoreBusinessTicketInfoDao programStoreBusinessTicketInfoDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreOrderProductDaoImpl") + private ProgramStoreOrderProductDao programStoreOrderProductDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreOrderProductInfoDaoImpl") + private ProgramStoreOrderProductInfoDao programStoreOrderProductInfoDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramStoreOrderProductMakeDaoImpl") + private ProgramStoreOrderProductMakeDao programStoreOrderProductMakeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProgramStorePayDaoImpl") + private ProgramStorePayDao programStorePayDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SplitStorePayDaoImpl") + private SplitStorePayDao splitStorePayDao; + @Override + public BaseDao getBaseDao() { + return this.programStoreBusinessTicketDao; + } + + @Override + public StoreBusinessTicketCheck saveBusinessTicket(String tenantId, ProgramBusinessOrderUpload ticket) throws Exception { + try { + String ticketId = null; + ProgramStoreBusinessTicket bus = ticket.getTicket(); + ProgramStoreBusinessTicketDeliver ticketDeliver = ticket.getTicketDeliver(); + List ticketInfos = ticket.getTicketInfos(); + List products = ticket.getProducts(); + List productInfos = ticket.getProductInfos(); + List makes = ticket.getMakes(); + List pays = ticket.getPays(); + + double productCount = 0.00; + for (ProgramStoreOrderProduct product : products) { + productCount += (product.getCount() - product.getRcount()); + } + bus.setExt1(String.valueOf(productCount)); + // 未上传过 + bus = programStoreBusinessTicketDao.save(tenantId, bus, false); + ticketId = bus.getId(); + if (ticketDeliver != null) { + ticketDeliver.setTicketId(ticketId); + programStoreBusinessTicketDeliverDao.save(tenantId, ticketDeliver, false); + } + if (CollectionUtils.isNotEmpty(ticketInfos)) { + for (ProgramStoreBusinessTicketInfo ticketInfo : ticketInfos) { + ticketInfo.setTicketId(ticketId); + programStoreBusinessTicketInfoDao.save(tenantId, ticketInfo, false); + } + } + if (CollectionUtils.isNotEmpty(products)) { + for (ProgramStoreOrderProduct product : products) { + product.setTicketId(ticketId); + programStoreOrderProductDao.save(tenantId, product, false); + } + } + if (CollectionUtils.isNotEmpty(productInfos)) { + for (ProgramStoreOrderProductInfo info : productInfos) { + info.setTicketId(ticketId); + programStoreOrderProductInfoDao.save(tenantId, info, false); + } + } + if (CollectionUtils.isNotEmpty(makes)) { + for (ProgramStoreOrderProductMake make : makes) { + make.setTicketId(ticketId); + programStoreOrderProductMakeDao.save(tenantId, make, false); + } + } + if (CollectionUtils.isNotEmpty(pays)) { + for (ProgramStorePay pay : pays) { + pay.setTicketId(ticketId); + programStorePayDao.save(tenantId, pay, false); + } + } + + + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketId); + return ticketCheck; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + + @Override + public StoreBusinessTicketCheck updateBusinessTicket(String tenantId, ProgramStoreBusinessTicket ticket, List payList) throws Exception { + try { + programStoreBusinessTicketDao.update(tenantId, ticket, false); + if (CollectionUtils.isNotEmpty(payList)) { + for (ProgramStorePay pay : payList) { + pay.setTicketId(ticket.getId()); + programStorePayDao.save(tenantId, pay, false); + } + } + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticket.getId()); + return ticketCheck; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) throws Exception { + try { + return programStoreBusinessTicketDao.getListByExport(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public StoreBusinessTicketCheck updateBusinessTicketByNo(String tenantId, ProgramStoreBusinessTicket ticket, ProgramStoreBusinessTicketDeliver ticketDeliver, List products) throws Exception { + try { + programStoreBusinessTicketDao.update(tenantId, ticket, false); + if (ticketDeliver != null) { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", ticket.getStoreId())); + criteria.add(Restrictions.eq("programId", ticket.getProgramId())); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + programStoreBusinessTicketDeliverDao.delete(tenantId, criteria, false); + ticketDeliver.setTicketId(ticket.getId()); + programStoreBusinessTicketDeliverDao.save(tenantId, ticketDeliver, false); + } + if (CollectionUtils.isNotEmpty(products)) { + for (ProgramStoreOrderProduct product : products) { + programStoreOrderProductDao.update(tenantId, product, false); + } + } + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticket.getId()); + return ticketCheck; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductInfoServiceImpl.java new file mode 100644 index 0000000..99083ca --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductInfoServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStoreOrderProductInfoDao; +import com.jwsaas.entity.food.ProgramStoreOrderProductInfo; +import com.jwsaas.service.food.ProgramStoreOrderProductInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreOrderProductInfoServiceImpl") +public class ProgramStoreOrderProductInfoServiceImpl extends BaseServiceImpl implements ProgramStoreOrderProductInfoService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreOrderProductInfoDaoImpl") + private ProgramStoreOrderProductInfoDao programStoreOrderProductInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.programStoreOrderProductInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductMakeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductMakeServiceImpl.java new file mode 100644 index 0000000..c4e9df6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductMakeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStoreOrderProductMakeDao; +import com.jwsaas.entity.food.ProgramStoreOrderProductMake; +import com.jwsaas.service.food.ProgramStoreOrderProductMakeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreOrderProductMakeServiceImpl") +public class ProgramStoreOrderProductMakeServiceImpl extends BaseServiceImpl implements ProgramStoreOrderProductMakeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreOrderProductMakeDaoImpl") + private ProgramStoreOrderProductMakeDao programStoreOrderProductMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.programStoreOrderProductMakeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductServiceImpl.java new file mode 100644 index 0000000..24f8d93 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreOrderProductServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStoreOrderProductDao; +import com.jwsaas.entity.food.ProgramStoreOrderProduct; +import com.jwsaas.service.food.ProgramStoreOrderProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreOrderProductServiceImpl") +public class ProgramStoreOrderProductServiceImpl extends BaseServiceImpl implements ProgramStoreOrderProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreOrderProductDaoImpl") + private ProgramStoreOrderProductDao programStoreOrderProductDao; + + @Override + public BaseDao getBaseDao() { + return this.programStoreOrderProductDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStorePayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStorePayServiceImpl.java new file mode 100644 index 0000000..5762422 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStorePayServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStorePayDao; +import com.jwsaas.entity.food.ProgramStorePay; +import com.jwsaas.service.food.ProgramStorePayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStorePayServiceImpl") +public class ProgramStorePayServiceImpl extends BaseServiceImpl implements ProgramStorePayService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStorePayDaoImpl") + private ProgramStorePayDao programStorePayDao; + + @Override + public BaseDao getBaseDao() { + return this.programStorePayDao; + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) throws Exception { + try{ + return programStorePayDao.getListByExport(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreProductServiceImpl.java new file mode 100644 index 0000000..a29ffbb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreProductServiceImpl.java @@ -0,0 +1,150 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.ProgramProductDao; +import com.jwsaas.entity.food.ProgramProduct; +import com.jwsaas.entity.food.ProgramStoreOrderProduct; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStoreProductDao; +import com.jwsaas.entity.food.ProgramStoreProduct; + +import com.jwsaas.service.food.ProgramStoreProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreProductServiceImpl") +public class ProgramStoreProductServiceImpl extends BaseServiceImpl implements ProgramStoreProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreProductDaoImpl") + private ProgramStoreProductDao programStoreProductDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramProductDaoImpl") + private ProgramProductDao programProductDao; + @Resource + private com.jwsaas.cache.CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.programStoreProductDao; + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = programStoreProductDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveShelf(String tenantId, Boolean onShelves, List storeIdList, List programProductIdList, String userName) throws Exception { + Integer i = 0; + try{ + if(onShelves){ + //查找门店已上架小程序商品ID; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIdList)); + criteria.add(Restrictions.limit("0","50000")); + List existProgramProduct = programStoreProductDao.getList(tenantId,criteria,true); + + Set existProgramProductIdSet = new HashSet<>(); + for(ProgramStoreProduct psp : existProgramProduct){ + String key = psp.getStoreId()+"-"+psp.getSpecId(); + existProgramProductIdSet.add(key); + } + + List products = programProductDao.findListByIds(tenantId,programProductIdList,true); + List saveList = new ArrayList<>(); + for(String storeId : storeIdList){ + for(ProgramProduct product : products){ + String key = storeId +"-"+product.getId(); + if(existProgramProductIdSet.contains(key)){ + continue; + } + ProgramStoreProduct programStoreProduct = new ProgramStoreProduct(); + programStoreProduct.setTenantId(tenantId); + programStoreProduct.setProductId(product.getProductId()); + programStoreProduct.setStoreId(storeId); + programStoreProduct.setSpecId(product.getSpecId()); +// programStoreProduct.setProgramProductId(product.getId()); +// programStoreProduct.setPrice(product.getPrice()); +// programStoreProduct.setMemberPrice(product.getMemberPrice()); + programStoreProduct.setWprice(product.getWprice()); + programStoreProduct.setWmemberPrice(product.getWmemberPrice()); + programStoreProduct.setProgramId(product.getProgramId()); + programStoreProduct.setCreateUser(userName); + programStoreProduct.setCreateDate(new Date()); + saveList.add(programStoreProduct); + } + } + if(CollectionUtils.isNotEmpty(saveList)){ + i = programStoreProductDao.save(tenantId,saveList); + } + }else{ + for(String storeId:storeIdList){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",storeId)); + criteria.add(Restrictions.in("programProductId",programProductIdList)); + i = programStoreProductDao.delete(tenantId,criteria,true); + } + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public void updateStoreProductSaleStock(String tenantId, List orderProductList) { + try { + for (ProgramStoreOrderProduct storeProductSaleStock : orderProductList) { + // 更新缓存 + String productKey = "programKey:" + storeProductSaleStock.getStoreId() + ":" + storeProductSaleStock.getSpecId(); + Object productKeyValue = cacheService.get(tenantId, productKey); + if (productKeyValue != null) { + productKeyValue = Double.parseDouble(productKeyValue.toString()) - storeProductSaleStock.getCount(); + cacheService.set(tenantId, productKey, productKeyValue, 60 * 60 * 24); + } + this.programStoreProductDao.updateStoreProductSaleStock(tenantId, storeProductSaleStock.getStoreId(), storeProductSaleStock.getSpecId(), storeProductSaleStock.getCount()); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + @Override + public List getListByStoreIds(String tenantId, List storeIdList, Criteria criteria) throws Exception { + try { + return this.programStoreProductDao.getListByStoreIds(tenantId, storeIdList, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.programStoreProductDao.getListExtend(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreServiceImpl.java new file mode 100644 index 0000000..922a0fe --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ProgramStoreServiceImpl.java @@ -0,0 +1,43 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProgramStoreDao; +import com.jwsaas.entity.food.ProgramStore; +import com.jwsaas.service.food.ProgramStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreServiceImpl") +public class ProgramStoreServiceImpl extends BaseServiceImpl implements ProgramStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProgramStoreDaoImpl") + private ProgramStoreDao programStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.programStoreDao; + } + + @Override + public List getStoreIdList(String tenantId,String programId) throws Exception { + try{ + return programStoreDao.getStoreIdList(tenantId,programId); + }catch (Exception e){ + throw e; + } + + } + + @Override + public List getDistanceList(String tenantId, String longitude, String latitude, Criteria criteria) throws Exception { + return this.programStoreDao.getDistanceList(tenantId, longitude, latitude, criteria); + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListGoodsServiceImpl.java new file mode 100644 index 0000000..957bccd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListGoodsServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionBlackListGoodsDao; +import com.jwsaas.entity.food.PromotionBlackListGoods; +import com.jwsaas.service.food.PromotionBlackListGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListGoodsServiceImpl") +public class PromotionBlackListGoodsServiceImpl extends BaseServiceImpl implements PromotionBlackListGoodsService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListGoodsDaoImpl") + private PromotionBlackListGoodsDao promotionBlackListGoodsDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionBlackListGoodsDao; + } + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) throws Exception { + try { + return promotionBlackListGoodsDao.getListWithSpec(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListStoreAreaServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListStoreAreaServiceImpl.java new file mode 100644 index 0000000..c5e21c9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListStoreAreaServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionBlackListStoreAreaDao; +import com.jwsaas.entity.food.PromotionBlackListStoreArea; +import com.jwsaas.service.food.PromotionBlackListStoreAreaService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListStoreAreaServiceImpl") +public class PromotionBlackListStoreAreaServiceImpl extends BaseServiceImpl implements PromotionBlackListStoreAreaService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListStoreAreaDaoImpl") + private PromotionBlackListStoreAreaDao promotionBlackListStoreAreaDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionBlackListStoreAreaDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListStoreServiceImpl.java new file mode 100644 index 0000000..093c7bd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionBlackListStoreServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionBlackListStoreDao; +import com.jwsaas.entity.food.PromotionBlackListStore; +import com.jwsaas.service.food.PromotionBlackListStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListStoreServiceImpl") +public class PromotionBlackListStoreServiceImpl extends BaseServiceImpl implements PromotionBlackListStoreService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListStoreDaoImpl") + private PromotionBlackListStoreDao promotionBlackListStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionBlackListStoreDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionCategoryServiceImpl.java new file mode 100644 index 0000000..c0d17cb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionCategoryServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionCategoryDao; +import com.jwsaas.entity.food.PromotionCategory; +import com.jwsaas.service.food.PromotionCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PromotionCategoryServiceImpl") +public class PromotionCategoryServiceImpl extends BaseServiceImpl implements PromotionCategoryService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionCategoryDaoImpl") + private PromotionCategoryDao promotionCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionCategoryDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionGoodsServiceImpl.java new file mode 100644 index 0000000..943f688 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionGoodsServiceImpl.java @@ -0,0 +1,35 @@ +package com.jwsaas.service.food.impl; + + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionGoodsDao; +import com.jwsaas.entity.food.PromotionGoods; +import com.jwsaas.service.food.PromotionGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PromotionGoodsServiceImpl") +public class PromotionGoodsServiceImpl extends BaseServiceImpl implements PromotionGoodsService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionGoodsDaoImpl") + private PromotionGoodsDao promotionGoodsDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionGoodsDao; + } + + @Override + public List getListWithSpec(String tenantId, Criteria criteria) throws Exception { + try { + return promotionGoodsDao.getListWithSpec(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionScheduleServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionScheduleServiceImpl.java new file mode 100644 index 0000000..3803e9d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionScheduleServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionScheduleDao; +import com.jwsaas.entity.food.PromotionSchedule; +import com.jwsaas.service.food.PromotionScheduleService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PromotionScheduleServiceImpl") +public class PromotionScheduleServiceImpl extends BaseServiceImpl implements PromotionScheduleService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionScheduleDaoImpl") + private PromotionScheduleDao promotionScheduleDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionScheduleDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionSchemeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionSchemeServiceImpl.java new file mode 100644 index 0000000..3b2c07c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionSchemeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionSchemeDao; +import com.jwsaas.entity.food.PromotionScheme; +import com.jwsaas.service.food.PromotionSchemeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PromotionSchemeServiceImpl") +public class PromotionSchemeServiceImpl extends BaseServiceImpl implements PromotionSchemeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionSchemeDaoImpl") + private PromotionSchemeDao promotionSchemeDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionSchemeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionStoreAreaServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionStoreAreaServiceImpl.java new file mode 100644 index 0000000..0c662d5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionStoreAreaServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionStoreAreaDao; +import com.jwsaas.entity.food.PromotionStoreArea; +import com.jwsaas.service.food.PromotionStoreAreaService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PromotionStoreAreaServiceImpl") +public class PromotionStoreAreaServiceImpl extends BaseServiceImpl implements PromotionStoreAreaService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionStoreAreaDaoImpl") + private PromotionStoreAreaDao promotionStoreAreaDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionStoreAreaDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionStoreServiceImpl.java new file mode 100644 index 0000000..2f99e0c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionStoreServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PromotionStoreDao; +import com.jwsaas.entity.food.PromotionStore; +import com.jwsaas.service.food.PromotionStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PromotionStoreServiceImpl") +public class PromotionStoreServiceImpl extends BaseServiceImpl implements PromotionStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionStoreDaoImpl") + private PromotionStoreDao promotionStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.promotionStoreDao; + } + + @Override + public List getStoreIdList(String tenantId, Criteria criteria) throws Exception { + try { + return promotionStoreDao.getStoreIdList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionTaskServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionTaskServiceImpl.java new file mode 100644 index 0000000..493649c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionTaskServiceImpl.java @@ -0,0 +1,972 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.service.food.PromotionTaskService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.DateUtils; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.text.SimpleDateFormat; +import java.util.*; + + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PromotionTaskServiceImpl") +public class PromotionTaskServiceImpl extends BaseServiceImpl implements PromotionTaskService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionTaskDaoImpl") + private PromotionTaskDao promotionTaskDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionTicketDaoImpl") + private PromotionTicketDao promotionTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionStoreDaoImpl") + private PromotionStoreDao promotionStoreDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionGoodsDaoImpl") + private PromotionGoodsDao promotionGoodsDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionSchemeDaoImpl") + private PromotionSchemeDao promotionSchemeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductTypeDaoImpl") + private ProductTypeDao productTypeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PromotionBlackListGoodsDaoImpl") + private PromotionBlackListGoodsDao promotionBlackListGoodsDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + + private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + + @Override + public BaseDao getBaseDao() { + return this.promotionTaskDao; + } + + @Override + public Integer saveTask(String tenantId, String id, String no) throws Exception { + Integer i = 0; + try { + PromotionTicket ticket = promotionTicketDao.get(tenantId, id, true); + PromotionScheme scheme = promotionSchemeDao.find(tenantId, "promotionId", id, true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("promotionId", id)); + List stores = promotionStoreDao.getList(tenantId, criteria, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = promotionGoodsDao.getList(tenantId, criteria, true); + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + + //查找不参与促销的商品; + Criteria c = new Criteria(); + c.add(Restrictions.eq("promotionFlag",0)); + c.add(Restrictions.eq("p.deleteFlag",0)); + c.add(Restrictions.eq("stopFlag",0)); + c.add(Restrictions.eq("selfFlag",0)); + List notPromotionSpecIds = productSpecDao.getSpecIdByCriteria(tenantId,c,true); + + //判断促销时间历经多少天; + Date startDate = ticket.getStartDate(); + //判断审核时间是否晚于促销开始时间;晚于开始时间则促销开始时间按审核时间计算; + Date checkeDate = ticket.getConfirmDate(); + if (checkeDate.getTime() > startDate.getTime()) { + startDate = new SimpleDateFormat("yyyy-MM-dd").parse(new SimpleDateFormat("yyyy-MM-dd").format(checkeDate)); + } + + Date endDate = ticket.getEndDate(); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(startDate); + Long time1 = calendar.getTimeInMillis(); + calendar.setTime(endDate); + Long time2 = calendar.getTimeInMillis(); + Integer days = Integer.parseInt((time2 - time1) / (1000 * 60 * 60 * 24) + ""); + days = days + 1; + + //判断促销时间是否多于三天; + if (days > 3) { + days = 3; + } + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date now = sdf.parse(sdf.format(new Date())); + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + + Map productTypeMap = null; + if (ticket.getIsCategory() != null && ticket.getIsCategory() == 1) { + productTypeMap = getProductTypePathMap(tenantId, true); + } + + List tasks = new ArrayList<>(); + boolean endFlag = false; + int nx = 0; + for (int x = 0; x < days; x++) { + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + cal.add(Calendar.DATE, x); + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + date = cal.getTime(); + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + + if (date.getTime() >= end.getTime()) { + break; + } + + Date date2 = null; + if (overDay != 0) { + if (endFlag) { + break; + } + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + //判断最后一天; + if (date2.getTime() >= ticket.getEndDate().getTime()) { + ticket.setLastTaskDate(DateUtils.format(date2, DateUtils.SHOW_DATE_FORMAT)); + endFlag = true; + } + } + //判断星期,是否在星期可用范围; + if (!ticket.getValidWeek().contains(weekDay)) { + days += 1; + continue; + } + //判断日期,是否在每月频率可用范围; + if (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay)) { + days += 1; + continue; + } + + if (x == days - 1) { + if (overDay == 0) { + ticket.setLastTaskDate(DateUtils.format(date, DateUtils.SHOW_DATE_FORMAT)); + } else { + ticket.setLastTaskDate(DateUtils.format(date2, DateUtils.SHOW_DATE_FORMAT)); + } + } + + for (PromotionStore store : stores) { + for (PromotionGoods goods : goodses) { + //如果此商品是不参与促销商品直接跳过; + if(notPromotionSpecIds.contains(goods.getSpecId())){ + continue; + } + PromotionTask task = new PromotionTask(); + task.setTenantId(tenantId); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + task.setScheduleId(ticket.getScheduleId()); + task.setScheduleSn(ticket.getScheduleSn()); + task.setPromotionId(id); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + } else { + task.setEndDate(date2); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + task.setRule(scheme.getRule()); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + tasks.add(task); + } + } + } + if (tasks.size() > 0) { + promotionTaskDao.save(tenantId, tasks); + ticket.setLastTaskNo(tasks.size() + ""); + promotionTicketDao.update(tenantId, ticket, true); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer updateTaskToPause(String tenantId, List sids, String currentUserName) throws Exception { + Integer i = 0; + try { + //查找预备、执行中的任务; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.or(Restrictions.eq("status", 0), Restrictions.eq("status", 1))); + criteria.add(Restrictions.in("id", sids)); + List tasks = promotionTaskDao.getList(tenantId, criteria, true); + List pauseList = new ArrayList<>(); + if (CollectionUtils.isNotEmpty(tasks)) { + for (PromotionTask task : tasks) { + PromotionTask ta = new PromotionTask(); + ta.setId(task.getId()); + ta.setStatus(2); + ta.setModifyUser(currentUserName); + ta.setModifyDate(new Date()); + pauseList.add(ta); + } + } + if (pauseList.size() > 0) { + promotionTaskDao.update(tenantId, pauseList); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer saveGoodsTask(String tenantId, String id, String no) throws Exception { + Integer i = 0; + try { + PromotionTicket ticket = promotionTicketDao.get(tenantId, id, true); + PromotionScheme scheme = promotionSchemeDao.find(tenantId, "promotionId", id, true); + String rule = ""; + String blackSpecIdsStr = ""; + + //查找不参与促销的商品; + Criteria c = new Criteria(); + c.add(Restrictions.eq("promotionFlag",0)); + c.add(Restrictions.eq("p.deleteFlag",0)); + c.add(Restrictions.eq("stopFlag",0)); + c.add(Restrictions.eq("selfFlag",0)); + List notPromotionSpecIds = productSpecDao.getSpecIdByCriteria(tenantId,c,true); + + if (ticket.getIsAll() == 1) { + //生成促销规格; + rule = "{\"discountType\":\"" + scheme.getType() + "\",\"discount\":\"" + scheme.getRule() + "\"}"; + //查找黑名单; + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("promotionId", id)); + List specIds = promotionBlackListGoodsDao.getSpecIds(tenantId, crit, true); + + + if(CollectionUtils.isNotEmpty(notPromotionSpecIds)){ + specIds.addAll(notPromotionSpecIds); + } + + if (specIds != null && specIds.size() > 0) { + String[] ids = new String[specIds.size()]; + specIds.toArray(ids); + blackSpecIdsStr = StringUtils.join(ids, ","); + } + } + + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("promotionId", id)); + List stores = promotionStoreDao.getList(tenantId, criteria, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = promotionGoodsDao.getList(tenantId, criteria, true); + if (ticket.getIsAll() == 0) { + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + } + //判断促销时间历经多少天; + Date startDate = ticket.getStartDate(); + + //判断审核时间是否晚于促销开始时间;晚于开始时间则促销开始时间按审核时间计算; + Date checkeDate = ticket.getConfirmDate(); + if (checkeDate.getTime() > startDate.getTime()) { + startDate = new SimpleDateFormat("yyyy-MM-dd").parse(new SimpleDateFormat("yyyy-MM-dd").format(checkeDate)); + } + + Date endDate = ticket.getEndDate(); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(startDate); + Long time1 = calendar.getTimeInMillis(); + calendar.setTime(endDate); + Long time2 = calendar.getTimeInMillis(); + Integer days = Integer.parseInt((time2 - time1) / (1000 * 60 * 60 * 24) + ""); + days = days + 1; + + //判断促销时间是否多于三天; + if (days > 3) { + days = 3; + } + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date now = sdf.parse(sdf.format(new Date())); + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + + Map productTypeMap = null; + if (ticket.getIsCategory() != null && ticket.getIsCategory() == 1) { + productTypeMap = getProductTypePathMap(tenantId, true); + } + List tasks = new ArrayList<>(); + boolean endFlag = false; + int nx = 0; + for (int x = 0; x < days; x++) { + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + cal.add(Calendar.DATE, x); + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + date = cal.getTime(); + + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + + if (date.getTime() >= end.getTime()) { + break; + } + + Date date2 = null; + if (overDay != 0) { + if (endFlag) { + break; + } + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + //判断最后一天; + if (date2.getTime() >= ticket.getEndDate().getTime()) { + ticket.setLastTaskDate(DateUtils.format(date, DateUtils.SHOW_DATE_FORMAT)); + endFlag = true; + } + } + + //判断星期,是否在星期可用范围; + if (!ticket.getValidWeek().contains(weekDay)) { + days += 1; + continue; + } + + + //判断日期,是否在每月频率可用范围; + if (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay)) { + days += 1; + continue; + } + + if (x == days - 1) { + if (overDay == 0) { + ticket.setLastTaskDate(DateUtils.format(date, DateUtils.SHOW_DATE_FORMAT)); + } else { + ticket.setLastTaskDate(DateUtils.format(date2, DateUtils.SHOW_DATE_FORMAT)); + } + } + + if (ticket.getIsAll() == 0) { + for (PromotionStore store : stores) { + for (PromotionGoods goods : goodses) { + if(notPromotionSpecIds.contains(goods.getSpecId())){ + continue; + } + PromotionTask task = new PromotionTask(); + task.setTenantId(tenantId); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + task.setScheduleId(ticket.getScheduleId()); + task.setScheduleSn(ticket.getScheduleSn()); + task.setPromotionId(id); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + } else { + task.setEndDate(date2); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + String rules = "{\"discountType\":\"" + goods.getDiscountType() + "\",\"discount\":\"" + goods.getDiscount() + "\",\"salePrice\":\"" + goods.getSalePrice() + "\",\"specialPrice\":\"" + goods.getSpecialPrice() + "\"}"; + task.setRule(rules); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + tasks.add(task); + } + } + } else { + for (PromotionStore store : stores) { + PromotionTask task = new PromotionTask(); + task.setTenantId(tenantId); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + task.setScheduleId(ticket.getScheduleId()); + task.setScheduleSn(ticket.getScheduleSn()); + task.setPromotionId(id); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + } else { + task.setEndDate(date2); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(scheme.getType()); + task.setDiscountValue(Double.parseDouble(scheme.getRule())); + if (StringUtils.isNotEmpty(blackSpecIdsStr)) { + task.setGoodsBlackList(blackSpecIdsStr); + } + task.setRule(rule); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < startDate.getTime()) { + task.setStatus(0); + } else if (now.getTime() >= startDate.getTime() && now.getTime() <= ticket.getEndDate().getTime()) { + task.setStatus(1); + } else { + task.setStatus(3); + } + tasks.add(task); + } + } + + } + if (tasks.size() > 0) { + promotionTaskDao.save(tenantId, tasks); + ticket.setLastTaskNo(tasks.size() + ""); + promotionTicketDao.update(tenantId, ticket, true); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer updateTaskToReStart(String tenantId, List ids, String currentUserName) throws Exception { + Integer i = 0; + try { + //查找已中止状态的任务; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("status", "2")); + criteria.add(Restrictions.in("id", ids)); + List tasks = promotionTaskDao.getList(tenantId, criteria, true); + List reStartList = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Long today = new Date().getTime(); + SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd"); + if (CollectionUtils.isNotEmpty(tasks)) { + for (PromotionTask task : tasks) { + PromotionTask ta = new PromotionTask(); + ta.setId(task.getId()); + Long endDay = sdf.parse(sd.format(task.getEndDate()) + " " + task.getEndTime()).getTime(); + Long startDay = task.getStartDate().getTime(); + if (today < endDay) { + if (today < startDay) { + ta.setStatus(0); + } else { + ta.setStatus(1); + } + } else { + ta.setStatus(3); + } + ta.setModifyUser(currentUserName); + ta.setModifyDate(new Date()); + reStartList.add(ta); + } + } + if (reStartList.size() > 0) { + promotionTaskDao.update(tenantId, reStartList); + } + i = 1; + + } catch (Exception e) { + throw e; + } + return i; + } + + /** + * 根据促销单据最末任务日期,序号生成下一天的任务; + * + * @param tenantId + * @param ticketId + * @param lastTaskEndDate + * @param lastTaskNo + * @param currentUser + * @return + * @throws Exception + */ + @Override + public Integer saveNextDayPromotionTask(String tenantId, String ticketId, String lastTaskEndDate, String lastTaskNo, String currentUser) throws Exception { + Integer i = 0; + try { + PromotionTicket ticket = promotionTicketDao.get(tenantId, ticketId, true); + PromotionScheme scheme = promotionSchemeDao.find(tenantId, "promotionId", ticketId, true); + //List ticketUpdateList = new ArrayList<>(); + + //查找不参与促销的商品; + Criteria c = new Criteria(); + c.add(Restrictions.eq("promotionFlag",0)); + c.add(Restrictions.eq("p.deleteFlag",0)); + c.add(Restrictions.eq("stopFlag",0)); + c.add(Restrictions.eq("selfFlag",0)); + List notPromotionSpecIds = productSpecDao.getSpecIdByCriteria(tenantId,c,true); + + List taskList = new ArrayList<>(); + if ("fullCut".equals(ticket.getType())) { + + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId", ticket.getId())); + List stores = promotionStoreDao.getList(tenantId, criterias, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = promotionGoodsDao.getList(tenantId, criterias, true); + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + //判断促销时间历经多少天; + //查看最后生成的日期; + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date startDate = sdf.parse(lastTaskEndDate); + Date now = sdf.parse(sdf.format(new Date())); + //判断当前时间于最后一天哪个时间靠后; + if (startDate.getTime() < now.getTime()) { + startDate = now; + } + + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + +// Map productTypeMap = null; +// if (ticket.getIsCategory() != null && ticket.getIsCategory() == 1) { +// productTypeMap = getProductTypePathMap(tenantId, true); +// } + + int nx = Integer.parseInt(lastTaskNo); + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + //判断是否是跨天促销,如果是跨天促销,此处开始日期不用加一天; + if(overDay == 0){ + cal.add(Calendar.DATE, 1); + } + + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + //判断当前日期,是否在星期可用范围:在可用范围生成任务;不在范围日期加一天继续判断; + //判断日期,是否在每月频率可用范围; + while (!ticket.getValidWeek().contains(weekDay) || (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay))) { + cal.add(Calendar.DATE, 1); + weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + + monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + } + + + +// while (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay)) { +// cal.add(Calendar.DATE, 1); +// monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; +// monthDay = StringUtils.leftPad(monthDay,2,"0"); +// } + + date = cal.getTime(); + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + if (date.getTime() < end.getTime()) { + Date date2 = null; + if (overDay != 0) { + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + if(date.getTime() >= ticket.getEndDate().getTime()){ + return -3;//跨天促销任务已结束; + } + } + for (PromotionStore store : stores) { + for (PromotionGoods goods : goodses) { + if(notPromotionSpecIds.contains(goods.getSpecId())){ + continue; + } + PromotionTask task = new PromotionTask(); + task.setTenantId(tenantId); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + ticket.setLastTaskNo(nx + ""); + task.setScheduleId(ticket.getScheduleId()); + task.setScheduleSn(ticket.getScheduleSn()); + task.setPromotionId(ticket.getId()); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + ticket.setLastTaskDate(sdf.format(date)); + } else { + task.setEndDate(date2); + ticket.setLastTaskDate(sdf.format(date2)); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + task.setRule(scheme.getRule()); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime() && now.getTime() <= task.getEndDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + taskList.add(task); + } + } + } + } else if ("goods".equals(ticket.getType()) || "doubleSpecial".equals(ticket.getType())) { + String rule = ""; + String blackSpecIdsStr = ""; + if (ticket.getIsAll() == 1) { + //生成促销规格; + rule = "{\"discountType\":\"" + scheme.getType() + "\",\"discount\":\"" + scheme.getRule() + "\"}"; + //查找黑名单; + Criteria crits = new Criteria(); + crits.add(Restrictions.eq("promotionId", ticket.getId())); + List specIds = promotionBlackListGoodsDao.getSpecIds(tenantId, crits, true); + + if(CollectionUtils.isNotEmpty(notPromotionSpecIds)){ + specIds.addAll(notPromotionSpecIds); + } + + if (specIds != null && specIds.size() > 0) { + String[] ids = new String[specIds.size()]; + specIds.toArray(ids); + blackSpecIdsStr = StringUtils.join(ids, ","); + } + } + + + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId", ticket.getId())); + List stores = promotionStoreDao.getList(tenantId, criterias, true); + if (CollectionUtils.isEmpty(stores)) { + return -1; + } + List goodses = promotionGoodsDao.getList(tenantId, criterias, true); + if (ticket.getIsAll() == 0) { + if (CollectionUtils.isEmpty(goodses)) { + return -2; + } + } + //判断促销时间历经多少天; + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date startDate = sdf.parse(lastTaskEndDate); + Date now = sdf.parse(sdf.format(new Date())); + //判断当前时间于最后一天哪个时间靠后; + if (startDate.getTime() < now.getTime()) { + startDate = now; + } + + + //判断促销是否跨天; + SimpleDateFormat msdf = new SimpleDateFormat("HH:mm:ss"); + Date min1 = msdf.parse(ticket.getStartTime()); + Date min2 = msdf.parse(ticket.getEndTime()); + Integer overDay = (min1.getTime() >= min2.getTime()) ? 1 : 0; + +// Map productTypeMap = null; +// if (ticket.getIsCategory() != null && ticket.getIsCategory() == 1) { +// productTypeMap = getProductTypePathMap(tenantId, true); +// } + + int nx = Integer.parseInt(lastTaskNo); + + //计算促销期间每天的日期; + Date date = startDate; + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + //判断是否是跨天促销,如果是跨天促销,此处开始日期不用加一天; + if(overDay == 0){ + cal.add(Calendar.DATE, 1); + } + //判断当前日期是星期几; + String weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + //判断当前日期是当月几号; + String monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + + //判断当前日期,是否在星期可用范围:在可用范围生成任务;不在范围日期加一天继续判断; + //判断日期,是否在每月频率可用范围; + while (!ticket.getValidWeek().contains(weekDay) || (StringUtils.isNotBlank(ticket.getValidMonth()) && !ticket.getValidMonth().contains(monthDay))) { + cal.add(Calendar.DATE, 1); + weekDay = cal.get(Calendar.DAY_OF_WEEK) == 1 ? 7 + "" : (cal.get(Calendar.DAY_OF_WEEK) - 1) + ""; + + monthDay = cal.get(Calendar.DAY_OF_MONTH)+""; + monthDay = StringUtils.leftPad(monthDay,2,"0"); + } + + date = cal.getTime(); + //判断当前日期任务是否结束; + Date end = dateFormat.parse(sdf.format(ticket.getEndDate()) + " " + ticket.getEndTime()); + if (date.getTime() < end.getTime()) { + Date date2 = null; + if (overDay != 0) { + cal.setTime(date); + cal.add(Calendar.DATE, 1); + date2 = cal.getTime(); + if(date.getTime() >= ticket.getEndDate().getTime()){ + return -3;//跨天促销任务已结束; + } + } + if (ticket.getIsAll() == 0) { + for (PromotionStore store : stores) { + for (PromotionGoods goods : goodses) { + if(notPromotionSpecIds.contains(goods.getSpecId())){ + continue; + } + PromotionTask task = new PromotionTask(); + task.setTenantId(tenantId); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + ticket.setLastTaskNo(nx + ""); + task.setScheduleId(ticket.getScheduleId()); + task.setScheduleSn(ticket.getScheduleSn()); + task.setPromotionId(ticket.getId()); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + ticket.setLastTaskDate(sdf.format(date)); + } else { + task.setEndDate(date2); + ticket.setLastTaskDate(sdf.format(date2)); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(goods.getDiscountType()); + task.setDiscountValue(goods.getDiscount()); + String rules = "{\"discountType\":\"" + goods.getDiscountType() + "\",\"discount\":\"" + goods.getDiscount() + "\",\"salePrice\":\"" + goods.getSalePrice() + "\",\"specialPrice\":\"" + goods.getSpecialPrice() + "\"}"; + task.setRule(rules); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime() && now.getTime() <= ticket.getEndDate().getTime()) { + task.setStatus(1); + } + task.setValueType(ticket.getIsGoods() == 1 ? 1 : 2); + if (task.getValueType() == 1) { + task.setValueId(goods.getSpecId()); + task.setValueNo(goods.getProductNo()); + task.setValueName(goods.getProductName()); + task.setValueExt1(goods.getProductId()); + } else { + + } + taskList.add(task); + } + } + } else { + for (PromotionStore store : stores) { + PromotionTask task = new PromotionTask(); + task.setTenantId(tenantId); + task.setCreateUser(ticket.getConfirmUser()); + task.setCreateDate(new Date()); + //task.setSn(no); + task.setSn(ticket.getSn() + StringUtils.leftPad((++nx) + "", 10, "0")); + ticket.setLastTaskNo(nx + ""); + task.setScheduleId(ticket.getScheduleId()); + task.setScheduleSn(ticket.getScheduleSn()); + task.setPromotionId(ticket.getId()); + task.setPromotionSn(ticket.getSn()); + task.setPromotionType(ticket.getType()); + task.setStoreId(store.getStoreId()); + task.setSchemeId(scheme.getId()); + task.setSchemeSn(scheme.getSn()); + task.setStartDate(date); + if (overDay == 0) { + task.setEndDate(date); + ticket.setLastTaskDate(sdf.format(date)); + } else { + task.setEndDate(date2); + ticket.setLastTaskDate(sdf.format(date2)); + } + task.setStartTime(ticket.getStartTime()); + task.setEndTime(ticket.getEndTime()); + task.setValidWeek(ticket.getValidWeek()); + task.setValidMonth(ticket.getValidMonth()); + task.setIsRepeatDiscount(ticket.getIsRepeatDiscount()); + task.setIsOnlyMember(ticket.getIsOnlyMember()); + task.setIsAll(ticket.getIsAll()); + task.setDiscountType(scheme.getType()); + task.setDiscountValue(Double.parseDouble(scheme.getRule())); + if (StringUtils.isNotEmpty(blackSpecIdsStr)) { + task.setGoodsBlackList(blackSpecIdsStr); + } + task.setRule(rule); + task.setSetMan(ticket.getConfirmUser()); + task.setSetTime(new Date()); + if (now.getTime() < task.getStartDate().getTime()) { + task.setStatus(0); + } else if (now.getTime() >= task.getStartDate().getTime() && now.getTime() <= task.getEndDate().getTime()) { + task.setStatus(1); + } + taskList.add(task); + } + + } + } + } + if (taskList.size() > 0) { + promotionTaskDao.save(tenantId, taskList); + } + ticket.setModifyUser(currentUser); + ticket.setModifyDate(new Date()); + promotionTicketDao.update(tenantId, ticket, true); + + + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + + private Map getProductTypePathMap(String tenantId, boolean isBatch) { + Map map = new HashMap<>(); + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("deleteFlag", 0)); + List types = productTypeDao.getList(tenantId, criteria, isBatch); + if (CollectionUtils.isNotEmpty(types)) { + for (ProductType type : types) { + map.put(type.getId(), type.getPath()); + } + } + } catch (Exception e) { + throw e; + } + return map; + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionTicketServiceImpl.java new file mode 100644 index 0000000..a043eef --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PromotionTicketServiceImpl.java @@ -0,0 +1,1508 @@ +package com.jwsaas.service.food.impl; + + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.PromotionTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.DateUtils; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.text.SimpleDateFormat; +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PromotionTicketServiceImpl") +public class PromotionTicketServiceImpl extends BaseServiceImpl implements PromotionTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionTicketDaoImpl") + private PromotionTicketDao promotionTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionSchemeDaoImpl") + private PromotionSchemeDao promotionSchemeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionStoreDaoImpl") + private PromotionStoreDao promotionStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionGoodsDaoImpl") + private PromotionGoodsDao promotionGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreDaoImpl") + private StoreDao storeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionTaskDaoImpl") + private PromotionTaskDao promotionTaskDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PromotionBlackListGoodsDaoImpl") + private PromotionBlackListGoodsDao promotionBlackListGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreProductDaoImpl") + private StoreProductDao storeProductDao; + + + @Override + public BaseDao getBaseDao() { + return this.promotionTicketDao; + } + + @Override + public Integer saveTicketScheme(String tenantId, PromotionTicket ticket, String promotionType, String type, List areIdList, List storeIdList, List productTypeIdList, List specIdList,String[] amount,String[] discountType,String[] discount) throws Exception { + Integer i = 0; + try{ + ticket = promotionTicketDao.save(tenantId,ticket,true); + PromotionScheme scheme = new PromotionScheme(); + scheme.setTenantId(tenantId); + scheme.setCreateUser(ticket.getCreateUser()); + scheme.setCreateDate(new Date()); + scheme.setSn(DateUtils.getCurrDatetime()); + scheme.setPromotionId(ticket.getId()); + scheme.setPromotionSn(ticket.getSn()); + scheme.setMemo(ticket.getMemo()); + scheme.setType(Integer.parseInt(type)); + String jsonText = "{\"type\":\""+scheme.getType()+"\",\"values\":["; + String memo = ""; + if(scheme.getType() != 2) { + for (int n = 0; n < amount.length; n++) { + jsonText += "{\"amount\":\"" + amount[n] + "\",\"discountType\":\"" + discountType[n] + "\",\"discount\":\"" + discount[n] + "\"},"; + memo += scheme.getType() == 0?"":"每"; + memo += "满"+amount[n]+"元"; + if("0".equals(discountType[n])){ + memo += "折扣"+discount[n]; + }else{ + memo += "减"+discount[n]+"元"; + } + } + }else { + for (int n = 2; n < amount.length; n++) { + jsonText += "{\"amount\":\"" + amount[n] + "\",\"discountType\":\"" + discountType[n] + "\",\"discount\":\"" + discount[n] + "\"},"; + memo += "满"+amount[n]+"元"; + if("0".equals(discountType[n])){ + memo += "折扣"+discount[n]; + }else{ + memo += "减"+discount[n]+"元"; + } + if( n != amount.length-1) { + memo += ","; + } + } + } + jsonText = jsonText.substring(0,jsonText.length()-1); + jsonText += "],\"memo\":\""+memo+"\"}"; + scheme.setRule(jsonText); + + promotionSchemeDao.save(tenantId,scheme,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(areIdList)){ + Criteria criteria = new Criteria(); + if(ticket.getIsAreaBlack() == 1 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.notIn("areaId", areIdList)); + }else if(ticket.getIsAreaBlack() == 0 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.in("areaId", areIdList)); + } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + }else{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",storeIdList)); +// if(ticket.getIsAllStore() == 0 ){ +// criteria.add(Restrictions.in("id",storeIdList)); +// }else{ +// criteria.add(Restrictions.eq("deleteFlag",0)); +// criteria.add(Restrictions.notEq("no","000000")); +// } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + } + + if(CollectionUtils.isNotEmpty(productTypeIdList)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("p.typeId",productTypeIdList)); + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + pg.setSpecialPrice(spec.getPrice()); + if(scheme.getType() != 2) { + pg.setDiscountType(Integer.parseInt(discountType[0])); + pg.setDiscount(Double.parseDouble(discount[0])); + }else{ + pg.setDiscountType(Integer.parseInt(discountType[2])); + pg.setDiscount(Double.parseDouble(discount[2])); + } + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ps.id", specIdList)); +// if(ticket.getIsAll() == 0) { +// criteria.add(Restrictions.in("ps.id", specIdList)); +// }else{ +// criteria.add(Restrictions.eq("ps.deleteFlag", 0)); +// criteria.add(Restrictions.eq("p.deleteFlag", 0)); +// } + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + pg.setSpecialPrice(spec.getPrice()); + if(scheme.getType() != 2) { + pg.setDiscountType(Integer.parseInt(discountType[0])); + pg.setDiscount(Double.parseDouble(discount[0])); + }else{ + pg.setDiscountType(Integer.parseInt(discountType[2])); + pg.setDiscount(Double.parseDouble(discount[2])); + } + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + } + if(stores.size() > 0 ){ + promotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + promotionGoodsDao.save(tenantId,goodses); + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicketScheme(String tenantId, PromotionTicket ticket, String type,List areIdList, List storeIdList, List productTypeIdList, List specIdList, String[] amount, String[] discountType, String[] discount) { + Integer i = 0; + try{ + promotionTicketDao.update(tenantId,ticket,true); + PromotionScheme scheme = promotionSchemeDao.find(tenantId,"promotionId",ticket.getId(),true); + scheme.setModifyUser(ticket.getModifyUser()); + scheme.setModifyDate(new Date()); + scheme.setMemo(ticket.getMemo()); + scheme.setType(Integer.parseInt(type)); + + String jsonText = "{\"type\":\""+scheme.getType()+"\",\"values\":["; + String memo = ""; + if(scheme.getType() != 2) { + for (int n = 0; n < amount.length; n++) { + jsonText += "{\"amount\":\"" + amount[n] + "\",\"discountType\":\"" + discountType[n] + "\",\"discount\":\"" + discount[n] + "\"},"; + memo += scheme.getType() == 0?"":"每"; + memo += "满"+amount[n]+"元"; + if("0".equals(discountType[n])){ + memo += "折扣"+discount[n]; + }else{ + memo += "减"+discount[n]+"元"; + } + } + }else { + for (int n = 2; n < amount.length; n++) { + jsonText += "{\"amount\":\"" + amount[n] + "\",\"discountType\":\"" + discountType[n] + "\",\"discount\":\"" + discount[n] + "\"},"; + memo += "满"+amount[n]+"元"; + if("0".equals(discountType[n])){ + memo += "折扣"+discount[n]; + }else{ + memo += "减"+discount[n]+"元"; + } + if( n != amount.length-1) { + memo += ","; + } + } + } + jsonText = jsonText.substring(0,jsonText.length()-1); + jsonText += "],\"memo\":\""+memo+"\"}"; + scheme.setRule(jsonText); + + promotionSchemeDao.update(tenantId,scheme,true); + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId",ticket.getId())); + promotionStoreDao.delete(tenantId,criterias,true); + promotionGoodsDao.delete(tenantId,criterias,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(areIdList)){ + Criteria criteria = new Criteria(); + if(ticket.getIsAreaBlack() == 1 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.notIn("areaId", areIdList)); + }else if(ticket.getIsAreaBlack() == 0 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.in("areaId", areIdList)); + } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + }else{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",storeIdList)); +// if(ticket.getIsAllStore() == 0 ){ +// criteria.add(Restrictions.in("id",storeIdList)); +// }else{ +// criteria.add(Restrictions.eq("deleteFlag",0)); +// criteria.add(Restrictions.notEq("no","000000")); +// } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + } + + if(CollectionUtils.isNotEmpty(productTypeIdList)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("p.typeId",productTypeIdList)); + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + pg.setSpecialPrice(spec.getPrice()); + if(scheme.getType() != 2) { + pg.setDiscountType(Integer.parseInt(discountType[0])); + pg.setDiscount(Double.parseDouble(discount[0])); + }else{ + pg.setDiscountType(Integer.parseInt(discountType[2])); + pg.setDiscount(Double.parseDouble(discount[2])); + } + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ps.id", specIdList)); +// if(ticket.getIsAll() == 0) { +// criteria.add(Restrictions.in("ps.id", specIdList)); +// }else{ +// criteria.add(Restrictions.eq("ps.deleteFlag", 0)); +// criteria.add(Restrictions.eq("p.deleteFlag", 0)); +// } + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + pg.setSpecialPrice(spec.getPrice()); + if(scheme.getType() != 2) { + pg.setDiscountType(Integer.parseInt(discountType[0])); + pg.setDiscount(Double.parseDouble(discount[0])); + }else{ + pg.setDiscountType(Integer.parseInt(discountType[2])); + pg.setDiscount(Double.parseDouble(discount[2])); + } + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + } + if(stores.size() > 0 ){ + promotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + promotionGoodsDao.save(tenantId,goodses); + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteAllInfos(String tenantId, List sids) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("promotionId",sids)); + promotionGoodsDao.delete(tenantId,criteria,true); + promotionStoreDao.delete(tenantId,criteria,true); + promotionSchemeDao.delete(tenantId,criteria,true); + promotionTicketDao.delete(tenantId,sids); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicketStatusByTask(String tenantId, String currentUser) throws Exception { + Integer i = 0 ; + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + try{ + Date now = new Date(); + //Date today = sdf.parse(sdf.format(now)); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(now); + calendar.add(Calendar.DATE,-1); + String yesterDay =sdf.format(calendar.getTime()); + String time = new SimpleDateFormat("HH:mm:ss").format(now); + //将预备状态的任务改为执行状态; + //promotionTaskDao.updateStatusToExecuting(tenantId,today,time); + //将执行状态的任务改为结束状态; + promotionTaskDao.updateStatusToFinsh(tenantId,yesterDay,time); + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicketStatusByTasks(String tenantId, String currentUser) throws Exception { + Integer result = 0; + try { + // 查找状态为预备、执行中的,审核过的单据; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.or(Restrictions.eq("status",0),Restrictions.eq("status",1))); + criteria.add(Restrictions.eq("confirmStatus",1)); + List tickets = promotionTicketDao.getList(tenantId,criteria,true); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + Long now = new Date().getTime(); + Calendar calendar = Calendar.getInstance(); + calendar.set(Calendar.HOUR_OF_DAY,2); + Long nowStart = calendar.getTimeInMillis(); + List ticketList = new ArrayList<>(); + List tasks = new ArrayList<>(); + for(PromotionTicket ticket : tickets){ + //判断单据状态; + Long start = ticket.getStartDate().getTime(); + Long end = sdf.parse(df.format(ticket.getEndDate())+" "+ticket.getEndTime()).getTime(); + if(now >= start && now <= end){ + //促销执行中; + PromotionTicket ticketf = new PromotionTicket(); + ticketf.setId(ticket.getId()); + ticketf.setStatus(1); + ticketf.setModifyUser(currentUser); + ticketf.setModifyDate(new Date()); + ticketList.add(ticketf); + //判断此单据下的促销任务 + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("promotionId",ticket.getId())); + List taskList = promotionTaskDao.getList(tenantId,crit,true); + for(PromotionTask task : taskList){ + PromotionTask taskf = new PromotionTask(); + taskf.setId(task.getId()); + taskf.setStatus(1); + taskf.setModifyUser(currentUser); + taskf.setModifyDate(new Date()); + tasks.add(taskf); + } + + + }else if(now > end){ + //促销结束; + PromotionTicket ticketf = new PromotionTicket(); + ticketf.setId(ticket.getId()); + ticketf.setStatus(3); + ticketf.setModifyUser(currentUser); + ticketf.setModifyDate(new Date()); + ticketList.add(ticketf); + + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("promotionId",ticket.getId())); + List taskList = promotionTaskDao.getList(tenantId,crit,true); + for(PromotionTask task : taskList){ + PromotionTask taskf = new PromotionTask(); + taskf.setId(task.getId()); + taskf.setStatus(3); + taskf.setModifyUser(currentUser); + taskf.setModifyDate(new Date()); + tasks.add(taskf); + } + } + } + if(ticketList.size() > 0){ + promotionTicketDao.update(tenantId,ticketList); + if(tasks.size() > 0){ + promotionTaskDao.update(tenantId,tasks); + } + } + + result = 1; + } catch (Exception e) { + throw e; + } + return result; + } + + @Override + public Integer updateTicketFinishByTask(String tenantId, String ticketId, String currentUser) throws Exception { + Integer result = 0; + try { + //促销单状态更改; + PromotionTicket ticket = promotionTicketDao.get(tenantId,ticketId,true); + if(ticket.getStatus() == 1){ + ticket.setStatus(3); + ticket.setModifyUser(currentUser); + ticket.setModifyDate(new Date()); + promotionTicketDao.update(tenantId,ticket,true); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("promotionId",ticketId)); + criteria.add(Restrictions.eq("status",1)); + List tasks = promotionTaskDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(tasks)){ + for(PromotionTask task : tasks){ + task.setStatus(3); + task.setModifyUser(currentUser); + task.setModifyDate(new Date()); + } + promotionTaskDao.update(tenantId,tasks); + } + + result = 1; + } + } catch (Exception e) { + throw e; + } + return result; + } + + @Override + public Integer saveGoodsTicketScheme(String tenantId, PromotionTicket ticket, List areIdList, List storeIdList, List productTypeIdList, List specIdList, String[] price,String[] discountType,String[] discount, String[] specialPrice, String[] limitNum, String[] allLimitNum) throws Exception { + Integer i = 0; + try{ + ticket = promotionTicketDao.save(tenantId,ticket,true); + PromotionScheme scheme = new PromotionScheme(); + scheme.setTenantId(tenantId); + scheme.setCreateUser(ticket.getCreateUser()); + scheme.setCreateDate(new Date()); + scheme.setSn(DateUtils.getCurrDatetime()); + scheme.setPromotionId(ticket.getId()); + scheme.setPromotionSn(ticket.getSn()); + scheme.setMemo(ticket.getMemo()); + if(ticket.getIsAll() == 1) { + scheme.setType(Integer.parseInt(discountType[0])); + scheme.setRule(discount[0]); + } + promotionSchemeDao.save(tenantId,scheme,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + List blackListGoodses = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(areIdList)){ + Criteria criteria = new Criteria(); + if(ticket.getIsAreaBlack() == 1 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.notIn("areaId", areIdList)); + }else if(ticket.getIsAreaBlack() == 0 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.in("areaId", areIdList)); + } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + }else{ +// Criteria criteria = new Criteria(); +// criteria.add(Restrictions.in("id",storeIdList)); +// +// List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeIdList)){ + for(String storeId : storeIdList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(storeId); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + } + Map discountTypeMap = new HashMap<>(); + Map discountMap = new HashMap<>(); + Map priceMap = null; + Map specialPriceMap = new HashMap<>(); + Map limitNumMap = new HashMap<>(); + Map allLimitNumMap = new HashMap<>(); + if(ticket.getIsAll()== 0){ + if(ArrayUtils.isNotEmpty(discountType)){ + for(String str : discountType){ + String[] specIdType = str.split("-"); + discountTypeMap.put(specIdType[0],Integer.parseInt(specIdType[1])); + } + } + + if(ArrayUtils.isNotEmpty(discount)){ + for(String str : discount){ + String[] specIdDiscount = str.split("_"); + discountMap.put(specIdDiscount[0],Double.parseDouble(specIdDiscount[1])); + } + } + if(storeIdList.size() == 1){ + priceMap = new HashMap<>(); + Criteria c = new Criteria(); + c.add(Restrictions.eq("sp.storeId",storeIdList.get(0))); + c.add(Restrictions.lt("p.type",10)); + List storeProducts = storeProductDao.getListExtend(tenantId,c,true); + if(CollectionUtils.isNotEmpty(storeProducts)){ + for(StoreProduct sp : storeProducts){ + priceMap.put(sp.getSpecId(),sp.getPrice()); + } + } + } + + if(ArrayUtils.isNotEmpty(specialPrice)){ + for(String str : specialPrice){ + String[] specIdPrce = str.split("-"); + specialPriceMap.put(specIdPrce[0],Double.parseDouble(specIdPrce[1])); + } + } + + if(ArrayUtils.isNotEmpty(limitNum)){ + for(String str : limitNum){ + String[] specIdNum = str.split("-"); + limitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + if(ArrayUtils.isNotEmpty(allLimitNum)){ + for(String str : allLimitNum){ + String[] specIdNum = str.split("-"); + allLimitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + } + + + if(CollectionUtils.isNotEmpty(productTypeIdList)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("p.typeId",productTypeIdList)); + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setLimitNum(limitNumMap.get(spec.getId()) == null ? null : limitNumMap.get(spec.getId())); + pg.setAllLimitNum(allLimitNumMap.get(spec.getId()) == null ? null : allLimitNumMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else{ + List specs = new ArrayList<>(); + Criteria criteria = new Criteria(); + if(CollectionUtils.isNotEmpty(specIdList)) { + //criteria.add(Restrictions.in("ps.id", specIdList)); + criteria.add(Restrictions.lt("p.type",10)); + criteria.add(Restrictions.eq("p.deleteFlag",0)); + criteria.add(Restrictions.eq("ps.deleteFlag",0)); + specs = productSpecDao.getListWithProduct(tenantId, criteria, true); + } + if(ticket.getIsAll() == 0){ + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + if(!specIdList.contains(spec.getId())){ + continue; + } + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(priceMap != null ? priceMap.get(spec.getId()) : spec.getPrice()); + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setLimitNum(limitNumMap.get(spec.getId()) == null ? null : limitNumMap.get(spec.getId())); + pg.setAllLimitNum(allLimitNumMap.get(spec.getId()) == null ? null : allLimitNumMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else { + if(CollectionUtils.isNotEmpty(specs)) { + for (ProductSpec spec : specs) { + if(!specIdList.contains(spec.getId())){ + continue; + } + PromotionBlackListGoods gd = new PromotionBlackListGoods(); + gd.setTenantId(tenantId); + gd.setCreateUser(ticket.getCreateUser()); + gd.setCreateDate(new Date()); + gd.setPromotionId(ticket.getId()); + gd.setPromotionSn(ticket.getSn()); + gd.setProductId(spec.getProductId()); + gd.setSpecId(spec.getId()); + gd.setProductNo(spec.getProductNo()); + gd.setProductName(spec.getProductName()); + blackListGoodses.add(gd); + } + } + } + + } + if(stores.size() > 0 ){ + promotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + promotionGoodsDao.save(tenantId,goodses); + } + if(blackListGoodses.size() > 0){ + promotionBlackListGoodsDao.save(tenantId,blackListGoodses); + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateGoodsTicketScheme(String tenantId, PromotionTicket ticket, String reduceType, List areIdList, List storeIdList, List productTypeIdList, List specIdList, String[] price,String[] discountType,String[] discount, String[] specialPrice, String[] limitNum, String[] allLimitNum)throws Exception { + Integer i = 0; + try{ + promotionTicketDao.update(tenantId,ticket,true); + PromotionScheme scheme = promotionSchemeDao.find(tenantId,"promotionId",ticket.getId(),true); + scheme.setModifyUser(ticket.getModifyUser()); + scheme.setModifyDate(new Date()); + scheme.setMemo(ticket.getMemo()); + if(ticket.getIsAll() == 1) { + scheme.setType(Integer.parseInt(discountType[0])); + scheme.setRule(discount[0]); + } + promotionSchemeDao.update(tenantId,scheme,true); + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId",ticket.getId())); + promotionStoreDao.delete(tenantId,criterias,true); + promotionGoodsDao.delete(tenantId,criterias,true); + promotionBlackListGoodsDao.delete(tenantId,criterias,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + List blackListGoodses = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(areIdList)){ + Criteria criteria = new Criteria(); + if(ticket.getIsAreaBlack() == 1 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.notIn("areaId", areIdList)); + }else if(ticket.getIsAreaBlack() == 0 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.in("areaId", areIdList)); + } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + }else{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",storeIdList)); + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + } + + Map discountTypeMap = new HashMap<>(); + Map discountMap = new HashMap<>(); + Map priceMap = null; + Map specialPriceMap = new HashMap<>(); + Map limitNumMap = new HashMap<>(); + Map allLimitNumMap = new HashMap<>(); + if(ticket.getIsAll()== 0){ + if(ArrayUtils.isNotEmpty(discountType)){ + for(String str : discountType){ + String[] specIdType = str.split("-"); + discountTypeMap.put(specIdType[0],Integer.parseInt(specIdType[1])); + } + } + + if(ArrayUtils.isNotEmpty(discount)){ + for(String str : discount){ + String[] specIdDiscount = str.split("_"); + discountMap.put(specIdDiscount[0],Double.parseDouble(specIdDiscount[1])); + } + } + + if(storeIdList.size() == 1){ + priceMap = new HashMap<>(); + Criteria c = new Criteria(); + c.add(Restrictions.eq("sp.storeId",storeIdList.get(0))); + c.add(Restrictions.lt("p.type",10)); + List storeProducts = storeProductDao.getListExtend(tenantId,c,true); + if(CollectionUtils.isNotEmpty(storeProducts)){ + for(StoreProduct sp : storeProducts){ + priceMap.put(sp.getSpecId(),sp.getPrice()); + } + } + } + + if(ArrayUtils.isNotEmpty(specialPrice)){ + for(String str : specialPrice){ + String[] specIdPrce = str.split("-"); + specialPriceMap.put(specIdPrce[0],Double.parseDouble(specIdPrce[1])); + } + } + + if(ArrayUtils.isNotEmpty(limitNum)){ + for(String str : limitNum){ + String[] specIdNum = str.split("-"); + limitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + if(ArrayUtils.isNotEmpty(allLimitNum)){ + for(String str : allLimitNum){ + String[] specIdNum = str.split("-"); + allLimitNumMap.put(specIdNum[0],Double.parseDouble(specIdNum[1])); + } + } + + } + + if(CollectionUtils.isNotEmpty(productTypeIdList)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("p.typeId",productTypeIdList)); + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setLimitNum(limitNumMap.get(spec.getId()) == null ? null : limitNumMap.get(spec.getId())); + pg.setAllLimitNum(allLimitNumMap.get(spec.getId()) == null ? null : allLimitNumMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else{ + List specs = new ArrayList<>(); + Criteria criteria = new Criteria(); + if(CollectionUtils.isNotEmpty(specIdList)) { + criteria.add(Restrictions.in("ps.id", specIdList)); + specs = productSpecDao.getListWithProduct(tenantId, criteria, true); + } + if(ticket.getIsAll() == 0){ + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(priceMap != null ? priceMap.get(spec.getId()) : spec.getPrice()); + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setLimitNum(limitNumMap.get(spec.getId()) == null ? null : limitNumMap.get(spec.getId())); + pg.setAllLimitNum(allLimitNumMap.get(spec.getId()) == null ? null : allLimitNumMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else { + if(CollectionUtils.isNotEmpty(specs)) { + for (ProductSpec spec : specs) { + PromotionBlackListGoods gd = new PromotionBlackListGoods(); + gd.setTenantId(tenantId); + gd.setCreateUser(ticket.getCreateUser()); + gd.setCreateDate(new Date()); + gd.setPromotionId(ticket.getId()); + gd.setPromotionSn(ticket.getSn()); + gd.setProductId(spec.getProductId()); + gd.setSpecId(spec.getId()); + gd.setProductNo(spec.getProductNo()); + gd.setProductName(spec.getProductName()); + blackListGoodses.add(gd); + } + } + } + } + if(stores.size() > 0 ){ + promotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + promotionGoodsDao.save(tenantId,goodses); + } + if(blackListGoodses.size() > 0){ + promotionBlackListGoodsDao.save(tenantId,blackListGoodses); + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicketStartByTask(String tenantId, String ticketId, String currentUser) throws Exception{ + Integer result = 0; + try { + //促销单状态更改; + PromotionTicket ticket = promotionTicketDao.get(tenantId,ticketId); + if(ticket.getStatus() == 0){ + ticket.setStatus(1); + ticket.setModifyUser(currentUser); + ticket.setModifyDate(new Date()); + promotionTicketDao.update(tenantId,ticket); + result = 1; + } + } catch (Exception e) { + throw e; + } + return result; + } + + @Override + public Integer updateStatusToExecuting(String tenantId, String date, String time) throws Exception { + return promotionTaskDao.updateStatusToExecuting(tenantId,date,time); + } + + @Override + public Integer updateStatusToPause(String tenantId, String id, String operatorName) throws Exception { + Integer i = 0; + try{ + PromotionTicket ticket = promotionTicketDao.get(tenantId,id); + if(ticket.getConfirmStatus() == 1){ + if(ticket.getStatus() == 0 || ticket.getStatus() == 1){ + ticket.setStatus(2); + ticket.setModifyUser(operatorName); + ticket.setModifyDate(new Date()); + promotionTicketDao.update(tenantId,ticket); + //将此促销单下任务状态为0,1的都改为中止; + promotionTaskDao.updateStatusToPause(tenantId,id); + i = 1; + }else{ + i = 3;//此单据状态不能中止; + } + }else{ + i = 2;//审核通过单据状态才能中止; + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateStatusToReStart(String tenantId, String id, String currentUserName) throws Exception { + Integer i = 0; + try{ + PromotionTicket ticket = promotionTicketDao.get(tenantId,id,true); + //判断此单据重启后的状态; + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + SimpleDateFormat sdfs = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date endTime = sdfs.parse(sdf.format(ticket.getEndDate())+" "+ ticket.getEndTime()); + Date now = sdf.parse(sdf.format(new Date())); + if(now.getTime() < ticket.getStartDate().getTime()){ + ticket.setStatus(0); + }else if(now.getTime() >= ticket.getStartDate().getTime() && now.getTime() <= endTime.getTime() ){ + ticket.setStatus(1); + }else{ + ticket.setStatus(3); + } + ticket.setModifyUser(currentUserName); + ticket.setModifyDate(new Date()); + promotionTicketDao.update(tenantId,ticket,true); + //调整单据任务状态; + if(ticket.getStatus() == 0){ + promotionTaskDao.updatePauseStatusToRestart(tenantId,id,0,true); + }else if(ticket.getStatus() == 3){ + promotionTaskDao.updatePauseStatusToRestart(tenantId,id,3,true); + }else { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("status", 2)); + criteria.add(Restrictions.eq("promotionId", id)); + List tasks = promotionTaskDao.getList(tenantId, criteria, true); + if(CollectionUtils.isNotEmpty(tasks)){ + for(PromotionTask task : tasks){ + Date raskEndTime = sdfs.parse(sdf.format(task.getEndDate())+" "+ task.getEndTime()); + if(now.getTime() < task.getStartDate().getTime()){ + task.setStatus(0); + }else if(now.getTime() >= task.getStartDate().getTime() && now.getTime() <= raskEndTime.getTime() ){ + task.setStatus(1); + }else{ + task.setStatus(3); + } + task.setModifyUser(currentUserName); + task.setModifyDate(new Date()); + } + promotionTaskDao.update(tenantId,tasks); + } + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveDoubleSpecialTicketScheme(String tenantId, PromotionTicket ticket, List areIdList, List storeIdList, List productTypeIdList, List specIdList, String[] price, String[] discountType, String[] discount, String[] specialPrice, String[] sends) throws Exception { + Integer i = 0; + try{ + ticket = promotionTicketDao.save(tenantId,ticket,true); + PromotionScheme scheme = new PromotionScheme(); + scheme.setTenantId(tenantId); + scheme.setCreateUser(ticket.getCreateUser()); + scheme.setCreateDate(new Date()); + scheme.setSn(DateUtils.getCurrDatetime()); + scheme.setPromotionId(ticket.getId()); + scheme.setPromotionSn(ticket.getSn()); + scheme.setMemo(ticket.getMemo()); + if(ticket.getIsAll() == 1) { + scheme.setType(Integer.parseInt(discountType[0])); + scheme.setRule(discount[0]); + } + promotionSchemeDao.save(tenantId,scheme,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + List blackListGoodses = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(areIdList)){ + Criteria criteria = new Criteria(); + if(ticket.getIsAreaBlack() == 1 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.notIn("areaId", areIdList)); + }else if(ticket.getIsAreaBlack() == 0 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.in("areaId", areIdList)); + } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + }else{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",storeIdList)); + + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + } + Map discountTypeMap = new HashMap<>(); + Map discountMap = new HashMap<>(); + Map priceMap = null; + Map specialPriceMap = new HashMap<>(); + Map limitSendsMap = new HashMap<>(); + if(ticket.getIsAll()== 0){ + if(ArrayUtils.isNotEmpty(discountType)){ + for(String str : discountType){ + String[] specIdType = str.split("-"); + discountTypeMap.put(specIdType[0],Integer.parseInt(specIdType[1])); + } + } + + if(ArrayUtils.isNotEmpty(discount)){ + for(String str : discount){ + String[] specIdDiscount = str.split("_"); + discountMap.put(specIdDiscount[0],Double.parseDouble(specIdDiscount[1])); + } + } + if(storeIdList.size() == 1){ + priceMap = new HashMap<>(); + Criteria c = new Criteria(); + c.add(Restrictions.eq("sp.storeId",storeIdList.get(0))); + c.add(Restrictions.lt("p.type",10)); + List storeProducts = storeProductDao.getListExtend(tenantId,c,true); + if(CollectionUtils.isNotEmpty(storeProducts)){ + for(StoreProduct sp : storeProducts){ + priceMap.put(sp.getSpecId(),sp.getPrice()); + } + } + } + + if(ArrayUtils.isNotEmpty(specialPrice)){ + for(String str : specialPrice){ + String[] specIdPrce = str.split("-"); + specialPriceMap.put(specIdPrce[0],Double.parseDouble(specIdPrce[1])); + } + } + + if(ArrayUtils.isNotEmpty(sends)){ + for(String str : sends){ + String[] specIdSends = str.split("-"); + limitSendsMap.put(specIdSends[0],specIdSends[1]); + } + } + + + } + + + if(CollectionUtils.isNotEmpty(productTypeIdList)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("p.typeId",productTypeIdList)); + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + if(limitSendsMap.get(spec.getId()) == null || "0".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + }else if("1".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(0.00); + pg.setDiscountType(2); + pg.setDiscount(0.00); + } + + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else{ + List specs = new ArrayList<>(); + Criteria criteria = new Criteria(); + if(CollectionUtils.isNotEmpty(specIdList)) { + criteria.add(Restrictions.in("ps.id", specIdList)); + specs = productSpecDao.getListWithProduct(tenantId, criteria, true); + } + if(ticket.getIsAll() == 0){ + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(priceMap != null ? priceMap.get(spec.getId()) : spec.getPrice()); + if(limitSendsMap.get(spec.getId()) == null || "0".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + }else if("1".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(0.00); + pg.setDiscountType(2); + pg.setDiscount(0.00); + } + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else { + if(CollectionUtils.isNotEmpty(specs)) { + for (ProductSpec spec : specs) { + PromotionBlackListGoods gd = new PromotionBlackListGoods(); + gd.setTenantId(tenantId); + gd.setCreateUser(ticket.getCreateUser()); + gd.setCreateDate(new Date()); + gd.setPromotionId(ticket.getId()); + gd.setPromotionSn(ticket.getSn()); + gd.setProductId(spec.getProductId()); + gd.setSpecId(spec.getId()); + gd.setProductNo(spec.getProductNo()); + gd.setProductName(spec.getProductName()); + blackListGoodses.add(gd); + } + } + } + + } + if(stores.size() > 0 ){ + promotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + promotionGoodsDao.save(tenantId,goodses); + } + if(blackListGoodses.size() > 0){ + promotionBlackListGoodsDao.save(tenantId,blackListGoodses); + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateDoubleSpecialTicketScheme(String tenantId, PromotionTicket ticket, String reduceType, List areIdList, List storeIdList, List productTypeIdList, List specIdList, String[] price, String[] discountType, String[] discount, String[] specialPrice, String[] sends) throws Exception { + Integer i = 0; + try{ + promotionTicketDao.update(tenantId,ticket,true); + PromotionScheme scheme = promotionSchemeDao.find(tenantId,"promotionId",ticket.getId(),true); + scheme.setModifyUser(ticket.getModifyUser()); + scheme.setModifyDate(new Date()); + scheme.setMemo(ticket.getMemo()); + if(ticket.getIsAll() == 1) { + scheme.setType(Integer.parseInt(discountType[0])); + scheme.setRule(discount[0]); + } + promotionSchemeDao.update(tenantId,scheme,true); + Criteria criterias = new Criteria(); + criterias.add(Restrictions.eq("promotionId",ticket.getId())); + promotionStoreDao.delete(tenantId,criterias,true); + promotionGoodsDao.delete(tenantId,criterias,true); + promotionBlackListGoodsDao.delete(tenantId,criterias,true); + + List stores = new ArrayList<>(); + List goodses = new ArrayList<>(); + List blackListGoodses = new ArrayList<>(); + if(CollectionUtils.isNotEmpty(areIdList)){ + Criteria criteria = new Criteria(); + if(ticket.getIsAreaBlack() == 1 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.notIn("areaId", areIdList)); + }else if(ticket.getIsAreaBlack() == 0 && ticket.getIsStoreArea() == 1){ + criteria.add(Restrictions.in("areaId", areIdList)); + } + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + }else{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",storeIdList)); + List storeList = storeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(Store store : storeList){ + PromotionStore ps = new PromotionStore(); + ps.setTenantId(tenantId); + ps.setPromotionId(ticket.getId()); + ps.setPromotionSn(ticket.getSn()); + ps.setStoreId(store.getId()); + ps.setCreateUser(ticket.getCreateUser()); + ps.setCreateDate(new Date()); + stores.add(ps); + } + } + } + + Map discountTypeMap = new HashMap<>(); + Map discountMap = new HashMap<>(); + Map priceMap = null; + Map specialPriceMap = new HashMap<>(); + Map limitSendsMap = new HashMap<>(); + if(ticket.getIsAll()== 0){ + if(ArrayUtils.isNotEmpty(discountType)){ + for(String str : discountType){ + String[] specIdType = str.split("-"); + discountTypeMap.put(specIdType[0],Integer.parseInt(specIdType[1])); + } + } + + if(ArrayUtils.isNotEmpty(discount)){ + for(String str : discount){ + String[] specIdDiscount = str.split("_"); + discountMap.put(specIdDiscount[0],Double.parseDouble(specIdDiscount[1])); + } + } + + if(storeIdList.size() == 1){ + priceMap = new HashMap<>(); + Criteria c = new Criteria(); + c.add(Restrictions.eq("sp.storeId",storeIdList.get(0))); + c.add(Restrictions.lt("p.type",10)); + List storeProducts = storeProductDao.getListExtend(tenantId,c,true); + if(CollectionUtils.isNotEmpty(storeProducts)){ + for(StoreProduct sp : storeProducts){ + priceMap.put(sp.getSpecId(),sp.getPrice()); + } + } + } + + if(ArrayUtils.isNotEmpty(specialPrice)){ + for(String str : specialPrice){ + String[] specIdPrce = str.split("-"); + specialPriceMap.put(specIdPrce[0],Double.parseDouble(specIdPrce[1])); + } + } + + if(ArrayUtils.isNotEmpty(sends)){ + for(String str : sends){ + String[] specIdSends = str.split("-"); + limitSendsMap.put(specIdSends[0],specIdSends[1]); + } + } + + + } + + if(CollectionUtils.isNotEmpty(productTypeIdList)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("p.typeId",productTypeIdList)); + List specs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(spec.getPrice()); + if(limitSendsMap.get(spec.getId()) == null || "0".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + }else if("1".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(0.00); + pg.setDiscountType(2); + pg.setDiscount(0.00); + } + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else{ + List specs = new ArrayList<>(); + Criteria criteria = new Criteria(); + if(CollectionUtils.isNotEmpty(specIdList)) { + criteria.add(Restrictions.in("ps.id", specIdList)); + specs = productSpecDao.getListWithProduct(tenantId, criteria, true); + } + if(ticket.getIsAll() == 0){ + if(CollectionUtils.isNotEmpty(specs)){ + for(ProductSpec spec : specs) { + PromotionGoods pg = new PromotionGoods(); + pg.setTenantId(tenantId); + pg.setPromotionId(ticket.getId()); + pg.setPromotionSn(ticket.getSn()); + pg.setProductId(spec.getProductId()); + pg.setSpecId(spec.getId()); + pg.setProductNo(spec.getProductNo()); + pg.setProductName(spec.getProductName()); + pg.setSalePrice(priceMap != null ? priceMap.get(spec.getId()) : spec.getPrice()); + if(limitSendsMap.get(spec.getId()) == null || "0".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(specialPriceMap.get(spec.getId()) == null ? null : specialPriceMap.get(spec.getId())); + pg.setDiscountType(discountTypeMap.get(spec.getId()) == null ? null : discountTypeMap.get(spec.getId())); + pg.setDiscount(discountMap.get(spec.getId()) == null ? null : discountMap.get(spec.getId())); + }else if("1".equals(limitSendsMap.get(spec.getId()))){ + pg.setSpecialPrice(0.00); + pg.setDiscountType(2); + pg.setDiscount(0.00); + } + pg.setStatus(1); + pg.setCreateUser(ticket.getCreateUser()); + pg.setCreateDate(new Date()); + goodses.add(pg); + } + } + }else { + if(CollectionUtils.isNotEmpty(specs)) { + for (ProductSpec spec : specs) { + PromotionBlackListGoods gd = new PromotionBlackListGoods(); + gd.setTenantId(tenantId); + gd.setCreateUser(ticket.getCreateUser()); + gd.setCreateDate(new Date()); + gd.setPromotionId(ticket.getId()); + gd.setPromotionSn(ticket.getSn()); + gd.setProductId(spec.getProductId()); + gd.setSpecId(spec.getId()); + gd.setProductNo(spec.getProductNo()); + gd.setProductName(spec.getProductName()); + blackListGoodses.add(gd); + } + } + } + } + if(stores.size() > 0 ){ + promotionStoreDao.save(tenantId,stores); + } + if(goodses.size() > 0){ + promotionGoodsDao.save(tenantId,goodses); + } + if(blackListGoodses.size() > 0){ + promotionBlackListGoodsDao.save(tenantId,blackListGoodses); + } + + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Pager getPagerWithStores(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = promotionTicketDao.getPagerWithStores(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketDetailServiceImpl.java new file mode 100644 index 0000000..88569df --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketDetailServiceImpl.java @@ -0,0 +1,52 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchaseStorageTicketDetailDao; +import com.jwsaas.entity.food.PurchaseStorageTicketDetail; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.PurchaseStorageTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; +import java.util.Map; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketDetailServiceImpl") +public class PurchaseStorageTicketDetailServiceImpl extends BaseServiceImpl implements PurchaseStorageTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketDetailDaoImpl") + private PurchaseStorageTicketDetailDao purchaseStorageTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.purchaseStorageTicketDetailDao; + } + + @Override + public Pager getReprotData(String tenantId, String startTime, String endTime, List storageIdList, String supplierId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = this.purchaseStorageTicketDetailDao.getReprotData(tenantId, startTime, endTime, storageIdList, supplierId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListReprotData(String tenantId, String startTime, String endTime, List storageIdList, String supplierId, Criteria criteria) throws Exception { + try { + return purchaseStorageTicketDetailDao.getListReprotData(tenantId, startTime, endTime, storageIdList, supplierId, criteria); + }catch(Exception e){ + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketLogServiceImpl.java new file mode 100644 index 0000000..1e9c042 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchaseStorageTicketLogDao; +import com.jwsaas.entity.food.PurchaseStorageTicketLog; +import com.jwsaas.service.food.PurchaseStorageTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketLogServiceImpl") +public class PurchaseStorageTicketLogServiceImpl extends BaseServiceImpl implements PurchaseStorageTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketLogDaoImpl") + private PurchaseStorageTicketLogDao purchaseStorageTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.purchaseStorageTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketServiceImpl.java new file mode 100644 index 0000000..704eb24 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseStorageTicketServiceImpl.java @@ -0,0 +1,217 @@ +package com.jwsaas.service.food.impl; + +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.PurchaseStorageTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketServiceImpl") +public class PurchaseStorageTicketServiceImpl extends BaseServiceImpl implements PurchaseStorageTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketDaoImpl") + private PurchaseStorageTicketDao purchaseStorageTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketDetailDaoImpl") + private PurchaseStorageTicketDetailDao purchaseStorageTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseStorageTicketLogDaoImpl") + private PurchaseStorageTicketLogDao purchaseStorageTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") + private ProductStockDao productStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogDaoImpl") + private ProductStockLogDao productStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketDaoImpl") + private PurchaseTicketDao purchaseTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketLogDaoImpl") + private PurchaseTicketLogDao purchaseTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.purchaseStorageTicketDao; + } + + @Override + public PurchaseStorageTicket saveTicket(String tenantId, PurchaseStorageTicket entity, List ticketDetailList, PurchaseStorageTicketLog ticketLog) throws Exception { + try { + entity = this.purchaseStorageTicketDao.save(tenantId, entity, true); + + if (StringUtils.isNotBlank(entity.getPurchaseTicketId())) { + PurchaseTicket purchaseTicket = purchaseTicketDao.get(tenantId, entity.getPurchaseTicketId(), true); + PurchaseTicket updateObj = new PurchaseTicket(); + updateObj.setId(purchaseTicket.getId()); + updateObj.setIsUse(1); + purchaseTicketDao.update(tenantId, updateObj, true); + } + + for (PurchaseStorageTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.purchaseStorageTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.purchaseStorageTicketLogDao.save(tenantId, ticketLog, true); + + return entity; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Criteria criteria = null; + for (String ticketId : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.purchaseStorageTicketDetailDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.purchaseStorageTicketLogDao.delete(tenantId, criteria, true); + + PurchaseStorageTicket ticket = this.purchaseStorageTicketDao.get(tenantId, ticketId, true); + if (StringUtils.isNotBlank(ticket.getPurchaseTicketId())) { + PurchaseTicket purchaseTicket = purchaseTicketDao.get(tenantId, ticket.getPurchaseTicketId(), true); + PurchaseTicket updateObj = new PurchaseTicket(); + updateObj.setId(purchaseTicket.getId()); + updateObj.setIsUse(0); + purchaseTicketDao.update(tenantId, updateObj, true); + } + + } + + return this.purchaseStorageTicketDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, PurchaseStorageTicket entity, List ticketDetailList, PurchaseStorageTicketLog ticketLog) throws Exception { + try { + int rows = this.purchaseStorageTicketDao.update(tenantId, entity, true); + + Criteria criteria = null; + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", entity.getId())); + this.purchaseStorageTicketDetailDao.delete(tenantId, criteria, true); + + for (PurchaseStorageTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.purchaseStorageTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.purchaseStorageTicketLogDao.save(tenantId, ticketLog, true); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStatus(String tenantId, PurchaseStorageTicket ticket, PurchaseStorageTicketLog ticketLog) throws Exception { + try { + int rows = this.purchaseStorageTicketDao.update(tenantId, ticket); + + ticketLog.setCreateUser(ticket.getCheckMan()); + ticketLog.setTenantId(tenantId); + ticketLog.setCreateDate(ticket.getCheckDate()); + this.purchaseStorageTicketLogDao.save(tenantId, ticketLog); + + PurchaseStorageTicket ticketInfo = this.purchaseStorageTicketDao.get(tenantId, ticket.getId()); + // 审核通过时,商品入库,增加库存; + if (ticketLog.getType() == 2) { + // 审核操作 + if (ticket.getStatus() == 2) { + // 审核通过,商品入库,增加库存 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketInfo.getId())); + criteria.add(Restrictions.eq("ticketNo", ticketInfo.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List ticketDetailList = this.purchaseStorageTicketDetailDao.getList(tenantId, criteria); + String storageId = ticketInfo.getStorageId(); + String storageName = ticketInfo.getStorageName(); + + for (PurchaseStorageTicketDetail ticketDetail : ticketDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + // 1-采购入库; + Integer ticketType = 1; + String ticketNo = ticketInfo.getNo(); + // 产品入库 - 批次管理 + productStockDao.stockIn(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), ticketDetail.getSpecId(), + ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketInfo.getSupplierId(), ticketInfo.getSupplierNo(), ticketDetail.getPurchaseUnitId(), + ticketDetail.getPrice(), ticketDetail.getAmount(), ticketDetail.getMoney(), ticketDetail.getGiveUnitId(), ticketDetail.getGiveAmount(), ticket.getModifyUser(), null, + ticketType, ticketNo, ratio, productBatchNumberDao, productBatchStockDao, productStockLogDao); + } + //如果采购入库单由采购订单转来,采购订单状态变为已入库; + if (StringUtils.isNotBlank(ticketInfo.getPurchaseTicketId())) { + PurchaseTicket purchaseTicket = purchaseTicketDao.get(tenantId, ticketInfo.getPurchaseTicketId()); + PurchaseTicket updateObj = new PurchaseTicket(); + updateObj.setId(purchaseTicket.getId()); + updateObj.setStatus(5); + updateObj.setModifyDate(new Date()); + updateObj.setModifyUser(ticketInfo.getCheckMan()); + purchaseTicketDao.update(tenantId, updateObj); + + PurchaseTicketLog log = new PurchaseTicketLog(); + log.setTicketId(purchaseTicket.getId()); + log.setTicketNo(purchaseTicket.getNo()); + log.setStatus(purchaseTicket.getStatus()); + log.setType(5);// 5-入库 + log.setDescription("采购入库"); + log.setCreateUser(ticketInfo.getCheckMan()); + log.setCreateDate(new Date()); + log.setTenantId(tenantId); + purchaseTicketLogDao.save(tenantId,log); + } + + + + } + + } else if (ticketLog.getType() == 4) { + // 反审核,商品出库 + throw new Exception("该单据不支持反审核操作"); + } + + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTemplateDetailServiceImpl.java new file mode 100644 index 0000000..68d2615 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTemplateDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchaseTemplateDetailDao; +import com.jwsaas.entity.food.PurchaseTemplateDetail; +import com.jwsaas.service.food.PurchaseTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PurchaseTemplateDetailServiceImpl") +public class PurchaseTemplateDetailServiceImpl extends BaseServiceImpl implements PurchaseTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchaseTemplateDetailDaoImpl") + private PurchaseTemplateDetailDao purchaseTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.purchaseTemplateDetailDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTemplateServiceImpl.java new file mode 100644 index 0000000..27c9154 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTemplateServiceImpl.java @@ -0,0 +1,118 @@ +package com.jwsaas.service.food.impl; + + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchaseTemplateDao; +import com.jwsaas.dao.food.PurchaseTemplateDetailDao; +import com.jwsaas.entity.food.PurchaseTemplate; +import com.jwsaas.entity.food.PurchaseTemplateDetail; +import com.jwsaas.service.food.PurchaseTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PurchaseTemplateServiceImpl") +public class PurchaseTemplateServiceImpl extends BaseServiceImpl implements PurchaseTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchaseTemplateDaoImpl") + private PurchaseTemplateDao purchaseTemplateDao; + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchaseTemplateDetailDaoImpl") + private PurchaseTemplateDetailDao purchaseTemplateDetailDao; + + protected static Logger logger = LoggerFactory.getLogger(PurchaseTemplateServiceImpl.class); + + @Override + public BaseDao getBaseDao() { + return this.purchaseTemplateDao; + } + + @Override + public Map saveTemplateAndDetail(String tenantId, PurchaseTemplate ticket, + List ticketDetailList) throws Exception { + logger.info(this.getClass().getName()+".saveTemplateAndDetail >>> begin ticket {} ticketDetailList.size{} ",ticket,ticketDetailList.size()); + Map result =new HashMap<>(); + try { + ticket.setCreateDate(new Date()); + PurchaseTemplate purTem = purchaseTemplateDao.save(tenantId, ticket,true); + Date time=new Date(); + ticketDetailList.forEach(t ->{ + t.setTenantId(tenantId); + t.setTicketId(purTem.getId()); + t.setCreateDate(time); + t.setCreateUser(purTem.getCreateUser()); + this.purchaseTemplateDetailDao.save(tenantId, t,true); + + }); + result.put("status", "1"); + result.put("message", "保存成功"); + } catch (Exception e) { + result.put("status", "0"); + result.put("message", "保存失败"); + throw e; + + } + return result; + } + + @Override + public Map updateTemplateAndDetail(String tenantId, PurchaseTemplate ticket, + List ticketDetailList) throws Exception { + logger.info(this.getClass().getName()+".saveTemplateAndDetail >>> begin ticket {} ticketDetailList.size{} ",ticket,ticketDetailList.size()); + Map result =new HashMap<>(); + try { + this.purchaseTemplateDao.update(tenantId, ticket,true); + Date time=new Date(); + Criteria criteria=new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + this.purchaseTemplateDetailDao.delete(tenantId, criteria,true); + ticketDetailList.forEach(t ->{ + t.setTenantId(tenantId); + t.setTicketId(ticket.getId()); + t.setCreateDate(time); + t.setCreateUser(ticket.getCreateUser()); + this.purchaseTemplateDetailDao.save(tenantId, t,true); + + }); + result.put("status", "1"); + result.put("message", "修改成功"); + } catch (Exception e) { + result.put("status", "0"); + result.put("message", "修改失败"); + throw e; + + } + return result; + } + + @Override + public Integer deleteTemplateAndDetail(String tenantId, List sids) throws Exception { + Integer result=0; + try { + sids.forEach(s ->{ + Criteria criteria=new Criteria(); + criteria.add(Restrictions.eq("ticketId", s)); + this.purchaseTemplateDetailDao.delete(tenantId, criteria,true); + this.purchaseTemplateDao.delete(tenantId, s,true); + }); + result=1; + } catch (Exception e) { + result=-1; + throw e; + } + return result; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketDetailServiceImpl.java new file mode 100644 index 0000000..04992f8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketDetailServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchaseTicketDetailDao; +import com.jwsaas.entity.food.PurchaseTicketDetail; +import com.jwsaas.service.food.PurchaseTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketDetailServiceImpl") +public class PurchaseTicketDetailServiceImpl extends BaseServiceImpl implements PurchaseTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketDetailDaoImpl") + private PurchaseTicketDetailDao purchaseTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.purchaseTicketDetailDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketLogServiceImpl.java new file mode 100644 index 0000000..60c26bb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchaseTicketLogDao; +import com.jwsaas.entity.food.PurchaseTicketLog; +import com.jwsaas.service.food.PurchaseTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketLogServiceImpl") +public class PurchaseTicketLogServiceImpl extends BaseServiceImpl implements PurchaseTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketLogDaoImpl") + private PurchaseTicketLogDao purchaseTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.purchaseTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketServiceImpl.java new file mode 100644 index 0000000..4ba9eae --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchaseTicketServiceImpl.java @@ -0,0 +1,141 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchaseTicketDao; +import com.jwsaas.dao.food.PurchaseTicketDetailDao; +import com.jwsaas.dao.food.PurchaseTicketLogDao; +import com.jwsaas.entity.food.PurchaseTicket; +import com.jwsaas.entity.food.PurchaseTicketDetail; +import com.jwsaas.entity.food.PurchaseTicketLog; +import com.jwsaas.service.food.PurchaseTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketServiceImpl") +public class PurchaseTicketServiceImpl extends BaseServiceImpl implements PurchaseTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketDaoImpl") + private PurchaseTicketDao purchaseTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketDetailDaoImpl") + private PurchaseTicketDetailDao purchaseTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PurchaseTicketLogDaoImpl") + private PurchaseTicketLogDao purchaseTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.purchaseTicketDao; + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Criteria criteria = null; + for (String ticketId : ids) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.purchaseTicketDetailDao.delete(tenantId, criteria, true); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + this.purchaseTicketLogDao.delete(tenantId, criteria, true); + } + + return this.purchaseTicketDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public PurchaseTicket saveTicket(String tenantId, PurchaseTicket entity, List ticketDetailList, PurchaseTicketLog ticketLog) throws Exception { + try { + entity = this.purchaseTicketDao.save(tenantId, entity, true); + + for (PurchaseTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.purchaseTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.purchaseTicketLogDao.save(tenantId, ticketLog, true); + + return entity; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, PurchaseTicket entity, List ticketDetailList, PurchaseTicketLog ticketLog) throws Exception { + try { + int rows = this.purchaseTicketDao.update(tenantId, entity, true); + + Criteria criteria = null; + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", entity.getId())); + this.purchaseTicketDetailDao.delete(tenantId, criteria, true); + + for (PurchaseTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(entity.getId()); + ticketDetail.setTicketNo(entity.getNo()); + ticketDetail.setCreateUser(entity.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.purchaseTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(entity.getId()); + ticketLog.setTicketNo(entity.getNo()); + ticketLog.setCreateUser(entity.getSetMan()); + ticketLog.setTenantId(tenantId); + this.purchaseTicketLogDao.save(tenantId, ticketLog, true); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStatus(String tenantId, PurchaseTicket ticket, PurchaseTicketLog ticketLog) throws Exception { + try { + int rows = this.purchaseTicketDao.update(tenantId, ticket); + + ticketLog.setCreateUser(ticket.getCheckMan()); + ticketLog.setTenantId(tenantId); + ticketLog.setCreateDate(ticket.getCheckDate()); + this.purchaseTicketLogDao.save(tenantId, ticketLog); + + // PurchaseTicket ticketInfo = this.purchaseTicketDao.get(tenantId, ticket.getId()); + // 审核通过时, + if (ticketLog.getType() == 2) { + // 审核操作 + if (ticket.getStatus() == 2) { + // 审核通过 + + } + + } else if (ticketLog.getType() == 4) { + // 反审核,商品出库 + //throw new Exception("该单据不支持反审核操作"); + } + + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceServiceImpl.java new file mode 100644 index 0000000..cdba593 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchasepriceDao; +import com.jwsaas.entity.food.Purchaseprice; +import com.jwsaas.service.food.PurchasepriceService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceServiceImpl") +public class PurchasepriceServiceImpl extends BaseServiceImpl implements PurchasepriceService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceDaoImpl") + private PurchasepriceDao purchasepriceDao; + + @Override + public BaseDao getBaseDao() { + return this.purchasepriceDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceTicketMaterialServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceTicketMaterialServiceImpl.java new file mode 100644 index 0000000..ecedb8e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceTicketMaterialServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchasepriceTicketMaterialDao; +import com.jwsaas.entity.food.PurchasepriceTicketMaterial; +import com.jwsaas.service.food.PurchasepriceTicketMaterialService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceTicketMaterialServiceImpl") +public class PurchasepriceTicketMaterialServiceImpl extends BaseServiceImpl implements PurchasepriceTicketMaterialService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceTicketMaterialDaoImpl") + private PurchasepriceTicketMaterialDao purchasepriceTicketMaterialDao; + + @Override + public BaseDao getBaseDao() { + return this.purchasepriceTicketMaterialDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceTicketServiceImpl.java new file mode 100644 index 0000000..7315ee1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/PurchasepriceTicketServiceImpl.java @@ -0,0 +1,163 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.PurchasepriceDao; +import com.jwsaas.dao.food.PurchasepriceTicketMaterialDao; +import com.jwsaas.entity.food.Purchaseprice; +import com.jwsaas.entity.food.PurchasepriceTicketMaterial; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.PurchasepriceTicketDao; +import com.jwsaas.entity.food.PurchasepriceTicket; +import com.jwsaas.service.food.PurchasepriceTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceTicketServiceImpl") +public class PurchasepriceTicketServiceImpl extends BaseServiceImpl implements PurchasepriceTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceTicketDaoImpl") + private PurchasepriceTicketDao purchasepriceTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceTicketMaterialDaoImpl") + private PurchasepriceTicketMaterialDao purchasepriceTicketMaterialDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"PurchasepriceDaoImpl") + private PurchasepriceDao purchasepriceDao; + + @Override + public BaseDao getBaseDao() { + return this.purchasepriceTicketDao; + } + + @Override + public PurchasepriceTicket saveTicket(String tenantId, PurchasepriceTicket ticket, List details) throws Exception{ + try{ + ticket = purchasepriceTicketDao.save(tenantId,ticket,true); + for(PurchasepriceTicketMaterial material : details){ + material.setTicketId(tenantId); + material.setTicketId(ticket.getId()); + material.setCreateUser(ticket.getCreateUser()); + material.setCreateDate(new Date()); + } + purchasepriceTicketMaterialDao.save(tenantId,details); + }catch(Exception e){ + throw e; + } + return ticket; + } + + @Override + public Integer updateTicket(String tenantId, PurchasepriceTicket ticket, List details) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + purchasepriceTicketMaterialDao.delete(tenantId,criteria,true); + + for(PurchasepriceTicketMaterial material : details){ + material.setTenantId(tenantId); + material.setTicketId(ticket.getId()); + material.setCreateUser(ticket.getModifyUser()); + material.setCreateDate(new Date()); + } + purchasepriceTicketMaterialDao.save(tenantId,details); + purchasepriceTicketDao.update(tenantId,ticket,true); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateStatus(String tenantId, String id,String flag, String operator) throws Exception { + Integer i = 0; + try{ + PurchasepriceTicket ticket = purchasepriceTicketDao.get(tenantId,id,true); + if("1".equals(flag)){ + //审核单据; + List saveList = new ArrayList<>(); + List updateList = new ArrayList<>(); + List details = purchasepriceTicketMaterialDao.findList(tenantId,"ticketId",id,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("supplierId",details.get(0).getSupplierId())); + List list = purchasepriceDao.getList(tenantId,criteria,true); + Map map = new HashMap<>(); + if(list != null && list.size() > 0){ + for(Purchaseprice pp : list){ + map.put(pp.getSpecId()+"_"+pp.getSupplierId(),pp); + } + Set keySet = map.keySet(); + for(PurchasepriceTicketMaterial detail : details){ + String key = detail.getSpecId()+"_"+detail.getSupplierId(); + if(keySet.contains(key)){ + Purchaseprice purchaseprice = map.get(key); + purchaseprice.setPurchasePrice(detail.getPurchasePrice()); + purchaseprice.setModifyUser(operator); + purchaseprice.setModifyDate(new Date()); + updateList.add(purchaseprice); + }else{ + Purchaseprice pe = new Purchaseprice(); + pe.setTenantId(tenantId); + pe.setSupplierId(detail.getSupplierId()); + pe.setProductId(detail.getProductId()); + pe.setProductNo(detail.getProductNo()); + pe.setProductName(detail.getProductName()); + pe.setSpecId(detail.getSpecId()); + pe.setSpecName(detail.getSpecName()); + pe.setPurchasePrice(detail.getPurchasePrice()); + pe.setProductDescription(detail.getProductDescription()); + pe.setCreateUser(operator); + pe.setCreateDate(new Date()); + saveList.add(pe); + } + } + }else{ + for(PurchasepriceTicketMaterial detail : details){ + Purchaseprice pe = new Purchaseprice(); + pe.setTenantId(tenantId); + pe.setSupplierId(detail.getSupplierId()); + pe.setProductId(detail.getProductId()); + pe.setProductNo(detail.getProductNo()); + pe.setProductName(detail.getProductName()); + pe.setSpecId(detail.getSpecId()); + pe.setSpecName(detail.getSpecName()); + pe.setPurchasePrice(detail.getPurchasePrice()); + pe.setProductDescription(detail.getProductDescription()); + pe.setCreateUser(operator); + pe.setCreateDate(new Date()); + saveList.add(pe); + } + } + + ticket.setCheckUser(operator); + ticket.setCheckDate(new Date()); + ticket.setStatus(1); + purchasepriceTicketDao.update(tenantId,ticket,true); + if(updateList.size() > 0){ + purchasepriceDao.update(tenantId,updateList); + } + if(saveList.size() > 0){ + purchasepriceDao.save(tenantId,saveList); + } + i = 1; + }else if("2".equals(flag)){ + //作废单据; +// ticket.setCheckUser(operator); +// ticket.setCheckDate(new Date()); + ticket.setStatus(2); + purchasepriceTicketDao.update(tenantId,ticket,true); + i = 2; + } + }catch(Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceGoodsServiceImpl.java new file mode 100644 index 0000000..f3ac1b1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceGoodsServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiAdjustPriceGoodsDao; +import com.jwsaas.entity.food.QimaiAdjustPriceGoods; +import com.jwsaas.service.food.QimaiAdjustPriceGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceGoodsServiceImpl") +public class QimaiAdjustPriceGoodsServiceImpl extends BaseServiceImpl implements QimaiAdjustPriceGoodsService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceGoodsDaoImpl") + private QimaiAdjustPriceGoodsDao qimaiAdjustPriceGoodsDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiAdjustPriceGoodsDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.qimaiAdjustPriceGoodsDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceStoreServiceImpl.java new file mode 100644 index 0000000..be4ba79 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceStoreServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiAdjustPriceStoreDao; +import com.jwsaas.entity.food.QimaiAdjustPriceStore; +import com.jwsaas.service.food.QimaiAdjustPriceStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceStoreServiceImpl") +public class QimaiAdjustPriceStoreServiceImpl extends BaseServiceImpl implements QimaiAdjustPriceStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceStoreDaoImpl") + private QimaiAdjustPriceStoreDao qimaiAdjustPriceStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiAdjustPriceStoreDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.qimaiAdjustPriceStoreDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceTicketServiceImpl.java new file mode 100644 index 0000000..18d99c9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAdjustPriceTicketServiceImpl.java @@ -0,0 +1,170 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.QimaiAdjustPriceGoodsDao; +import com.jwsaas.dao.food.QimaiAdjustPriceStoreDao; +import com.jwsaas.dao.food.QimaiStoreProductDao; +import com.jwsaas.entity.food.QimaiAdjustPriceGoods; +import com.jwsaas.entity.food.QimaiAdjustPriceStore; +import com.jwsaas.entity.food.QimaiStoreProduct; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiAdjustPriceTicketDao; +import com.jwsaas.entity.food.QimaiAdjustPriceTicket; +import com.jwsaas.service.food.QimaiAdjustPriceTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceTicketServiceImpl") +public class QimaiAdjustPriceTicketServiceImpl extends BaseServiceImpl implements QimaiAdjustPriceTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceTicketDaoImpl") + private QimaiAdjustPriceTicketDao qimaiAdjustPriceTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceStoreDaoImpl") + private QimaiAdjustPriceStoreDao qimaiAdjustPriceStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiAdjustPriceGoodsDaoImpl") + private QimaiAdjustPriceGoodsDao qimaiAdjustPriceGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreProductDaoImpl") + private QimaiStoreProductDao qimaiStoreProductDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiAdjustPriceTicketDao; + } + + @Override + public QimaiAdjustPriceTicket saveTicket(String tenantId, QimaiAdjustPriceTicket ticket, List storeList, List productList) throws Exception { + try{ + ticket = qimaiAdjustPriceTicketDao.save(tenantId,ticket,true); + if(CollectionUtils.isNotEmpty(storeList)){ + for(QimaiAdjustPriceStore store : storeList){ + store.setTenantId(tenantId); + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateUser(ticket.getCreateUser()); + store.setCreateDate(new Date()); + } + qimaiAdjustPriceStoreDao.save(tenantId,storeList); + } + + if(CollectionUtils.isNotEmpty(productList)){ + for(QimaiAdjustPriceGoods goods : productList){ + goods.setTenantId(tenantId); + goods.setTicketId(ticket.getId()); + goods.setTicketNo(ticket.getNo()); + goods.setCreateUser(ticket.getCreateUser()); + goods.setCreateDate(new Date()); + } + qimaiAdjustPriceGoodsDao.save(tenantId,productList); + } + + }catch (Exception e){ + throw e; + } + return ticket; + } + + @Override + public Integer updateTicket(String tenantId, QimaiAdjustPriceTicket ticket, List storeList, List productList) throws Exception { + Integer i = 0; + try{ + qimaiAdjustPriceTicketDao.update(tenantId,ticket,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + qimaiAdjustPriceStoreDao.delete(tenantId,criteria,true); + qimaiAdjustPriceGoodsDao.delete(tenantId,criteria,true); + + if(CollectionUtils.isNotEmpty(storeList)){ + for(QimaiAdjustPriceStore store : storeList){ + store.setTenantId(tenantId); + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + store.setCreateUser(ticket.getModifyUser()); + store.setCreateDate(new Date()); + store.setModifyUser(ticket.getModifyUser()); + store.setModifyDate(new Date()); + } + qimaiAdjustPriceStoreDao.save(tenantId,storeList); + } + + if(CollectionUtils.isNotEmpty(productList)){ + for(QimaiAdjustPriceGoods goods : productList){ + goods.setTenantId(tenantId); + goods.setTicketId(ticket.getId()); + goods.setTicketNo(ticket.getNo()); + goods.setCreateUser(ticket.getModifyUser()); + goods.setCreateDate(new Date()); + goods.setModifyUser(ticket.getModifyUser()); + goods.setModifyDate(new Date()); + } + qimaiAdjustPriceGoodsDao.save(tenantId,productList); + } + + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateAudit(String tenantId, QimaiAdjustPriceTicket ticket) throws Exception { + Integer i = 0; + try{ + qimaiAdjustPriceTicketDao.update(tenantId,ticket,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + List goodses = qimaiAdjustPriceGoodsDao.getList(tenantId,criteria,true); + List stores = qimaiAdjustPriceStoreDao.getList(tenantId,criteria,true); + List list = new ArrayList<>(); + for(QimaiAdjustPriceStore store : stores){ + for(QimaiAdjustPriceGoods goods : goodses){ + QimaiStoreProduct qimaiStoreProduct = new QimaiStoreProduct(); + qimaiStoreProduct.setTenantId(tenantId); + qimaiStoreProduct.setStoreId(store.getStoreId()); + qimaiStoreProduct.setProductId(goods.getProductId()); + qimaiStoreProduct.setSpecId(goods.getSpecId()); + qimaiStoreProduct.setWmPrice(goods.getMemberPrice()); + qimaiStoreProduct.setTsPrice(goods.getPrice()); + qimaiStoreProduct.setModifyDate(new Date()); + qimaiStoreProduct.setModifyUser(ticket.getModifyUser()); + list.add(qimaiStoreProduct); + } + } + if(CollectionUtils.isNotEmpty(list)){ + qimaiStoreProductDao.updateListByStoreIdAndSpecId(tenantId,list); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteTickets(String tenantId, List ticketIds) throws Exception { + Integer i = 0; + try{ + if(CollectionUtils.isNotEmpty(ticketIds)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ticketId",ticketIds)); + qimaiAdjustPriceStoreDao.delete(tenantId,criteria,true); + qimaiAdjustPriceGoodsDao.delete(tenantId,criteria,true); + qimaiAdjustPriceTicketDao.delete(tenantId,ticketIds); + } + }catch (Exception e){ + throw e; + } + return i; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAttributeCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAttributeCategoryServiceImpl.java new file mode 100644 index 0000000..56b6861 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAttributeCategoryServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiAttributeCategoryDao; +import com.jwsaas.entity.food.QimaiAttributeCategory; +import com.jwsaas.service.food.QimaiAttributeCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiAttributeCategoryServiceImpl") +public class QimaiAttributeCategoryServiceImpl extends BaseServiceImpl implements QimaiAttributeCategoryService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiAttributeCategoryDaoImpl") + private QimaiAttributeCategoryDao qimaiAttributeCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiAttributeCategoryDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAttributeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAttributeServiceImpl.java new file mode 100644 index 0000000..f7afbe3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiAttributeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiAttributeDao; +import com.jwsaas.entity.food.QimaiAttribute; +import com.jwsaas.service.food.QimaiAttributeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiAttributeServiceImpl") +public class QimaiAttributeServiceImpl extends BaseServiceImpl implements QimaiAttributeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiAttributeDaoImpl") + private QimaiAttributeDao qimaiAttributeDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiAttributeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiChargeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiChargeServiceImpl.java new file mode 100644 index 0000000..0cd4ec2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiChargeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiChargeDao; +import com.jwsaas.entity.food.QimaiCharge; +import com.jwsaas.service.food.QimaiChargeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiChargeServiceImpl") +public class QimaiChargeServiceImpl extends BaseServiceImpl implements QimaiChargeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiChargeDaoImpl") + private QimaiChargeDao qimaiChargeDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiChargeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderItemServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderItemServiceImpl.java new file mode 100644 index 0000000..1c8fb08 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderItemServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiOrderItemDao; +import com.jwsaas.entity.food.QimaiOrderItem; +import com.jwsaas.service.food.QimaiOrderItemService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiOrderItemServiceImpl") +public class QimaiOrderItemServiceImpl extends BaseServiceImpl implements QimaiOrderItemService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiOrderItemDaoImpl") + private QimaiOrderItemDao qimaiOrderItemDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiOrderItemDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderPayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderPayServiceImpl.java new file mode 100644 index 0000000..3406145 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderPayServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiOrderPayDao; +import com.jwsaas.entity.food.QimaiOrderPay; +import com.jwsaas.service.food.QimaiOrderPayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiOrderPayServiceImpl") +public class QimaiOrderPayServiceImpl extends BaseServiceImpl implements QimaiOrderPayService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiOrderPayDaoImpl") + private QimaiOrderPayDao qimaiOrderPayDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiOrderPayDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderServiceImpl.java new file mode 100644 index 0000000..300b87a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiOrderServiceImpl.java @@ -0,0 +1,91 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.cache.CacheService; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiOrderDao; +import com.jwsaas.dao.food.QimaiOrderItemDao; +import com.jwsaas.dao.food.QimaiOrderPayDao; +import com.jwsaas.entity.food.QimaiOrder; +import com.jwsaas.entity.food.QimaiOrderItem; +import com.jwsaas.entity.food.QimaiOrderPay; +import com.jwsaas.service.food.QimaiOrderService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "QimaiOrderServiceImpl") +public class QimaiOrderServiceImpl extends BaseServiceImpl implements QimaiOrderService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "QimaiOrderDaoImpl") + private QimaiOrderDao qimaiOrderDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiOrderDao; + } + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "QimaiOrderItemDaoImpl") + private QimaiOrderItemDao qimaiOrderItemDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "QimaiOrderPayDaoImpl") + private QimaiOrderPayDao qimaiOrderPayDao; + + @Resource + private CacheService cacheService; + + @Override + public Integer saveOrder(String tenantId, QimaiOrder entity, List itemList, List payList) throws Exception { + try { + Object noValue = cacheService.get(tenantId, entity.getStoreId() + entity.getOrderId()); + if (noValue == null || "".equals(noValue)) { + cacheService.set(tenantId, entity.getStoreId() + entity.getOrderId(), entity.getOrderId(), 172800); + qimaiOrderDao.save(tenantId, entity, true); + if (!CollectionUtils.isEmpty(itemList)) { + qimaiOrderItemDao.save(tenantId, itemList); + } + if (!CollectionUtils.isEmpty(payList)) { + qimaiOrderPayDao.save(tenantId, payList); + } + } + + } catch (Exception e) { + try { + cacheService.del(tenantId, entity.getStoreId() + entity.getOrderId()); + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + return 0; + } + + @Override + public Integer updateOrder(String tenantId, QimaiOrder entity, List itemList, List payList) throws Exception { + try { + // 修改订单明细 + qimaiOrderDao.update(tenantId, entity, true); + // 删除订单明细 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("orderId", entity.getOrderId())); + qimaiOrderItemDao.delete(tenantId, criteria, true); + qimaiOrderPayDao.delete(tenantId, criteria, true); + if (!CollectionUtils.isEmpty(itemList)) { + qimaiOrderItemDao.save(tenantId, itemList); + } + if (!CollectionUtils.isEmpty(payList)) { + qimaiOrderPayDao.save(tenantId, payList); + } + } catch (Exception e) { + throw e; + } + return 0; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductAttributeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductAttributeServiceImpl.java new file mode 100644 index 0000000..7fa87ad --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductAttributeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiProductAttributeDao; +import com.jwsaas.entity.food.QimaiProductAttribute; +import com.jwsaas.service.food.QimaiProductAttributeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductAttributeServiceImpl") +public class QimaiProductAttributeServiceImpl extends BaseServiceImpl implements QimaiProductAttributeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductAttributeDaoImpl") + private QimaiProductAttributeDao qimaiProductAttributeDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductAttributeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductCategoryServiceImpl.java new file mode 100644 index 0000000..99a74ca --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductCategoryServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiProductCategoryDao; +import com.jwsaas.entity.food.QimaiProductCategory; +import com.jwsaas.service.food.QimaiProductCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductCategoryServiceImpl") +public class QimaiProductCategoryServiceImpl extends BaseServiceImpl implements QimaiProductCategoryService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductCategoryDaoImpl") + private QimaiProductCategoryDao qimaiProductCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductCategoryDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductChargeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductChargeServiceImpl.java new file mode 100644 index 0000000..0844407 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductChargeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiProductChargeDao; +import com.jwsaas.entity.food.QimaiProductCharge; +import com.jwsaas.service.food.QimaiProductChargeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductChargeServiceImpl") +public class QimaiProductChargeServiceImpl extends BaseServiceImpl implements QimaiProductChargeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductChargeDaoImpl") + private QimaiProductChargeDao qimaiProductChargeDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductChargeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductServiceImpl.java new file mode 100644 index 0000000..949c39a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductServiceImpl.java @@ -0,0 +1,293 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.QimaiProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductServiceImpl") +public class QimaiProductServiceImpl extends BaseServiceImpl implements QimaiProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductDaoImpl") + private QimaiProductDao qimaiProductDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductSpecDaoImpl") + private QimaiProductSpecDao qimaiProductSpecDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductAttributeDaoImpl") + private QimaiProductAttributeDao qimaiProductAttributeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiSuitDetailDaoImpl") + private QimaiSuitDetailDao qimaiSuitDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiChargeDaoImpl") + private QimaiChargeDao qimaiChargeDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductChargeDaoImpl") + private QimaiProductChargeDao qimaiProductChargeDao; + + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductDao; + } + + @Override + public List getAllProductIdsByCriteria(String tenantId,Criteria criteria) throws Exception { + try{ + return qimaiProductDao.getAllProductIdsByCriteria(tenantId,criteria); + }catch (Exception e){ + throw e; + } + + } + + @Override + public QimaiProduct saveWithSpecAndAttribut(String tenantId, QimaiProduct product, List specList, List attributeList,List goodsIds,List chargeIds) throws Exception { + try{ + product = qimaiProductDao.save(tenantId,product,true); + for(QimaiProductSpec spec : specList){ + spec.setProductId(product.getId()); + } + qimaiProductSpecDao.save(tenantId,specList); + if(CollectionUtils.isNotEmpty(attributeList)){ + for(QimaiProductAttribute attribute : attributeList){ + attribute.setProductId(product.getId()); + } + qimaiProductAttributeDao.save(tenantId,attributeList); + } + if(CollectionUtils.isNotEmpty(goodsIds)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",goodsIds)); + List qimaiProducts = qimaiProductDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(qimaiProducts)){ + List details = new ArrayList<>(); + for(QimaiProduct qimaiProduct:qimaiProducts){ + QimaiSuitDetail detail = new QimaiSuitDetail(); + detail.setTenantId(tenantId); + detail.setSetId(product.getSetId()); + detail.setSuitId(product.getId()); + detail.setQimaiProductId(qimaiProduct.getId()); + detail.setProductId(qimaiProduct.getProductId()); + detail.setProductNo(qimaiProduct.getProductNo()); + detail.setName(qimaiProduct.getName()); + detail.setMultiId(qimaiProduct.getMultiId()); + detail.setCreateUser(product.getCreateUser()); + details.add(detail); + } + qimaiSuitDetailDao.save(tenantId,details); + } + } + + if(CollectionUtils.isNotEmpty(chargeIds)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id",chargeIds)); + List chargeList = qimaiChargeDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(chargeList)){ + List charges = new ArrayList<>(); + for(QimaiCharge charge:chargeList){ + QimaiProductCharge detail = new QimaiProductCharge(); + detail.setTenantId(tenantId); + detail.setSetId(product.getSetId()); + detail.setProductId(product.getProductId()); + detail.setQimaiProductId(product.getId()); + detail.setMultiId(product.getMultiId()); + detail.setChargeId(charge.getId()); + detail.setChargeMultiId(charge.getMultiId()); + detail.setChargeName(charge.getName()); + detail.setMakeDetailId(charge.getMakeDetailId()); + detail.setCreateUser(product.getCreateUser()); + charges.add(detail); + } + qimaiProductChargeDao.save(tenantId,charges); + } + } + }catch (Exception e){ + throw e; + } + return product; + } + + @Override + public Integer upDateWithSpecAndAttribut(String tenantId, QimaiProduct product, List specList, List attributeList,List goodsIds,List chargeIds,String userName) throws Exception { + Integer i = 0; + try{ + i = qimaiProductDao.update(tenantId,product,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId",product.getId())); + qimaiProductSpecDao.delete(tenantId,criteria,true); + qimaiProductAttributeDao.delete(tenantId,criteria,true); + criteria = new Criteria(); + criteria.add(Restrictions.eq("suitId",product.getId())); + qimaiSuitDetailDao.delete(tenantId,criteria,true); + criteria = new Criteria(); + criteria.add(Restrictions.eq("qimaiProductId",product.getId())); + qimaiProductChargeDao.delete(tenantId,criteria,true); + qimaiProductSpecDao.save(tenantId,specList); + if(CollectionUtils.isNotEmpty(attributeList)){ + qimaiProductAttributeDao.save(tenantId,attributeList); + } + if(CollectionUtils.isNotEmpty(goodsIds)){ + Criteria criter = new Criteria(); + criter.add(Restrictions.in("id",goodsIds)); + List qimaiProducts = qimaiProductDao.getList(tenantId,criter,true); + if(CollectionUtils.isNotEmpty(qimaiProducts)){ + List details = new ArrayList<>(); + for(QimaiProduct qimaiProduct:qimaiProducts){ + QimaiSuitDetail detail = new QimaiSuitDetail(); + detail.setTenantId(tenantId); + detail.setSetId(product.getSetId()); + detail.setSuitId(product.getId()); + detail.setQimaiProductId(qimaiProduct.getId()); + detail.setProductId(qimaiProduct.getProductId()); + detail.setProductNo(qimaiProduct.getProductNo()); + detail.setName(qimaiProduct.getName()); + detail.setMultiId(qimaiProduct.getMultiId()); + detail.setCreateUser(userName); + details.add(detail); + } + qimaiSuitDetailDao.save(tenantId,details); + } + } + if(CollectionUtils.isNotEmpty(chargeIds)){ + Criteria crits = new Criteria(); + crits.add(Restrictions.in("id",chargeIds)); + List chargeList = qimaiChargeDao.getList(tenantId,crits,true); + if(CollectionUtils.isNotEmpty(chargeList)){ + List charges = new ArrayList<>(); + for(QimaiCharge charge:chargeList){ + QimaiProductCharge detail = new QimaiProductCharge(); + detail.setTenantId(tenantId); + detail.setSetId(product.getSetId()); + detail.setProductId(product.getProductId()); + detail.setQimaiProductId(product.getId()); + detail.setMultiId(product.getMultiId()); + detail.setChargeId(charge.getId()); + detail.setChargeMultiId(charge.getMultiId()); + detail.setChargeName(charge.getName()); + detail.setMakeDetailId(charge.getMakeDetailId()); + detail.setCreateUser(userName); + charges.add(detail); + } + qimaiProductChargeDao.save(tenantId,charges); + } + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Pager getQimaiProductWithStoreProduct(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = qimaiProductDao.getQimaiProductWithStoreProduct(tenantId, storeId,criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtends(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = qimaiProductDao.getPagerExtends(tenantId,criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteAllInfosByIds(String tenantId, List qimaiProductIds) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("productId",qimaiProductIds)); + qimaiProductAttributeDao.delete(tenantId,criteria,true); + qimaiProductSpecDao.delete(tenantId,criteria,true); + criteria = new Criteria(); + criteria.add(Restrictions.in("suitId",qimaiProductIds)); + qimaiSuitDetailDao.delete(tenantId,criteria,true); + qimaiProductDao.delete(tenantId,qimaiProductIds); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public List getListByQimaiStoreIds(String tenantId, List storeIdList, Criteria criteria) throws Exception { + try{ + return qimaiProductDao.getListByQimaiStoreIds(tenantId,storeIdList,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListWithSpecInfos(String tenantId, Criteria criteria) throws Exception { + try{ + return qimaiProductDao.getListWithSpecInfos(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public Pager getPagerWithSpecInfos(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = qimaiProductDao.getPagerWithSpecInfos(tenantId,criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerWithQimaiSpec(String tenantId, Criteria criteria, Pager pager) throws Exception { + try{ + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = qimaiProductDao.getPagerWithQimaiSpec(tenantId,criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + }catch (Exception e){ + throw e; + } + + } + + @Override + public List getListWithQimaiSpec(String tenantId, Criteria criteria) throws Exception { + try{ + return qimaiProductDao.getListWithQimaiSpec(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductSpecServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductSpecServiceImpl.java new file mode 100644 index 0000000..ab1b5cf --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductSpecServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiProductSpecDao; +import com.jwsaas.entity.food.QimaiProductSpec; +import com.jwsaas.service.food.QimaiProductSpecService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductSpecServiceImpl") +public class QimaiProductSpecServiceImpl extends BaseServiceImpl implements QimaiProductSpecService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductSpecDaoImpl") + private QimaiProductSpecDao qimaiProductSpecDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductSpecDao; + } + + @Override + public List getSpecIds(String tenantId) throws Exception { + try { + return qimaiProductSpecDao.getSpecIds(tenantId); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateDetailServiceImpl.java new file mode 100644 index 0000000..3aa06e6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateDetailServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiProductTemplateDetailDao; +import com.jwsaas.entity.food.QimaiProductTemplateDetail; +import com.jwsaas.service.food.QimaiProductTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateDetailServiceImpl") +public class QimaiProductTemplateDetailServiceImpl extends BaseServiceImpl implements QimaiProductTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateDetailDaoImpl") + private QimaiProductTemplateDetailDao qimaiProductTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductTemplateDetailDao; + } + + @Override + public List getQimaiProductIdByTemplateId(String tenantId, String templateId) throws Exception { + try{ + return this.qimaiProductTemplateDetailDao.getQimaiProductIdByTemplateId(tenantId,templateId); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateServiceImpl.java new file mode 100644 index 0000000..e676809 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateServiceImpl.java @@ -0,0 +1,256 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; +import javax.security.auth.login.CredentialException; + +import com.alibaba.dubbo.common.utils.StringUtils; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.QimaiProductTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateServiceImpl") +public class QimaiProductTemplateServiceImpl extends BaseServiceImpl implements QimaiProductTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateDaoImpl") + private QimaiProductTemplateDao qimaiProductTemplateDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateDetailDaoImpl") + private QimaiProductTemplateDetailDao qimaiProductTemplateDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateStoreDaoImpl") + private QimaiProductTemplateStoreDao qimaiProductTemplateStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreProductDaoImpl") + private QimaiStoreProductDao qimaiStoreProductDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreDaoImpl") + private QimaiStoreDao qimaiStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductTemplateDao; + } + + @Override + public QimaiProductTemplate saveTemplateDetailAndStores(String tenantId, QimaiProductTemplate template, List details, List stores) throws Exception { + QimaiProductTemplate qimaiProductTemplate = null; + try{ + qimaiProductTemplate = qimaiProductTemplateDao.save(tenantId,template,true); + if(CollectionUtils.isNotEmpty(details)){ + for(QimaiProductTemplateDetail detail : details){ + detail.setSetId(qimaiProductTemplate.getSetId()); + detail.setTemplateId(qimaiProductTemplate.getId()); + detail.setTemplateNo(qimaiProductTemplate.getNo()); + detail.setCreateDate(new Date()); + detail.setCreateUser(qimaiProductTemplate.getCreateUser()); + } + qimaiProductTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(stores)){ + for(QimaiProductTemplateStore store : stores){ + store.setTemplateId(qimaiProductTemplate.getId()); + } + qimaiProductTemplateStoreDao.save(tenantId,stores); + } + }catch (Exception e){ + throw e; + } + + return qimaiProductTemplate; + } + + @Override + public Integer updateTemplateDetailAndStores(String tenantId, QimaiProductTemplate qimaiProductTemplate, List details, List stores,String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",qimaiProductTemplate.getId())); + qimaiProductTemplateDetailDao.delete(tenantId,criteria,true); + qimaiProductTemplateStoreDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(details)){ + for(QimaiProductTemplateDetail detail : details){ + detail.setSetId(qimaiProductTemplate.getSetId()); + detail.setTemplateId(qimaiProductTemplate.getId()); + detail.setTemplateNo(qimaiProductTemplate.getNo()); + detail.setCreateDate(new Date()); + detail.setCreateUser(userName); + } + qimaiProductTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(stores)){ + for(QimaiProductTemplateStore store : stores){ + store.setTemplateId(qimaiProductTemplate.getId()); + } + qimaiProductTemplateStoreDao.save(tenantId,stores); + } + qimaiProductTemplateDao.update(tenantId,qimaiProductTemplate,true); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteTemplateDetailsStores(String tenantId, List sids) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("templateId",sids)); + qimaiProductTemplateDetailDao.delete(tenantId,criteria,true); + qimaiProductTemplateStoreDao.delete(tenantId,criteria,true); + qimaiProductTemplateDao.delete(tenantId,sids); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveQimaiStoreProductPrice(String tenantId, String templateId, List storeIds, String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",templateId)); + List details = qimaiProductTemplateDetailDao.getList(tenantId,criteria,true); + + criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIds)); + List qimaiStoreProducts = qimaiStoreProductDao.getList(tenantId,criteria,true); + //判断门店是否已上架; + Map storeProductMap = new HashMap<>(); + for(QimaiStoreProduct qsp : qimaiStoreProducts){ + String key = qsp.getStoreId()+"-"+qsp.getSpecId(); + storeProductMap.put(key,qsp); + } + List updateList = new ArrayList<>(); + List saveList = new ArrayList<>(); + + criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIds)); + List qimaiStores = qimaiStoreDao.getList(tenantId,criteria,true); + Map qimaiStoreMap = new HashMap<>(); + for(QimaiStore store : qimaiStores){ + qimaiStoreMap.put(store.getStoreId(),store); + } + + for(String storeId : storeIds){ + for(QimaiProductTemplateDetail detail : details){ + String key = storeId + "-" + detail.getSpecId(); + if(storeProductMap.containsKey(key)){ + //更新; + QimaiStoreProduct product = storeProductMap.get(key); + product.setTsPrice(detail.getPrice()); + product.setWmPrice(detail.getMemberPrice()); + product.setModifyDate(new Date()); + product.setModifyUser(userName); + updateList.add(product); + }else{ + QimaiStore qimaiStore = qimaiStoreMap.get(storeId); + //新增 + QimaiStoreProduct product = new QimaiStoreProduct(); + product.setTenantId(tenantId); + product.setSetId(detail.getSetId()); + product.setStoreId(storeId); + product.setStoreNo(qimaiStore.getStoreNo()); + product.setStoreName(qimaiStore.getStoreName()); + product.setStoreMultiId(qimaiStore.getMultiId()); + product.setQimaiStoreId(qimaiStore.getId()); + product.setProductId(detail.getProductId()); + product.setProductName(detail.getProductName()); + product.setProductNo(detail.getProductNo()); + product.setProductMultiId(detail.getProductMultiId()); + product.setQimaiProductId(detail.getQimaiProductId()); + product.setQimaiSpecId(detail.getQimaiSpecId()); + product.setSpecId(detail.getSpecId()); + product.setSpecName(detail.getSpecName()); + product.setTsPrice(detail.getPrice()); + product.setWmPrice(detail.getMemberPrice()); + product.setCreateDate(new Date()); + product.setCreateUser(userName); + saveList.add(product); + } + } + } + if(CollectionUtils.isNotEmpty(saveList)){ + qimaiStoreProductDao.save(tenantId,saveList); + } + if(CollectionUtils.isNotEmpty(updateList)){ + qimaiStoreProductDao.update(tenantId,updateList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveQimaiStoreProductPriceByCover(String tenantId, String templateId, List storeIds, String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",templateId)); + List details = qimaiProductTemplateDetailDao.getList(tenantId,criteria,true); + + //删除门店下商品; + criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIds)); + qimaiStoreProductDao.delete(tenantId,criteria,true); + + + List saveList = new ArrayList<>(); + + criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIds)); + List qimaiStores = qimaiStoreDao.getList(tenantId,criteria,true); + Map qimaiStoreMap = new HashMap<>(); + for(QimaiStore store : qimaiStores){ + qimaiStoreMap.put(store.getStoreId(),store); + } + + for(String storeId : storeIds){ + for(QimaiProductTemplateDetail detail : details){ + QimaiStore qimaiStore = qimaiStoreMap.get(storeId); + //新增 + QimaiStoreProduct product = new QimaiStoreProduct(); + product.setTenantId(tenantId); + product.setSetId(detail.getSetId()); + product.setStoreId(storeId); + product.setStoreNo(qimaiStore.getStoreNo()); + product.setStoreName(qimaiStore.getStoreName()); + product.setStoreMultiId(qimaiStore.getMultiId()); + product.setQimaiStoreId(qimaiStore.getId()); + product.setProductId(detail.getProductId()); + product.setProductName(detail.getProductName()); + product.setProductNo(detail.getProductNo()); + product.setProductMultiId(detail.getProductMultiId()); + product.setQimaiProductId(detail.getQimaiProductId()); + product.setQimaiSpecId(detail.getQimaiSpecId()); + product.setSpecId(detail.getSpecId()); + product.setSpecName(detail.getSpecName()); + product.setTsPrice(detail.getPrice()); + product.setWmPrice(detail.getMemberPrice()); + product.setCreateDate(new Date()); + product.setCreateUser(userName); + saveList.add(product); + } + } + if(CollectionUtils.isNotEmpty(saveList)){ + qimaiStoreProductDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateStoreServiceImpl.java new file mode 100644 index 0000000..4fc0853 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiProductTemplateStoreServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiProductTemplateStoreDao; +import com.jwsaas.entity.food.QimaiProductTemplateStore; +import com.jwsaas.service.food.QimaiProductTemplateStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateStoreServiceImpl") +public class QimaiProductTemplateStoreServiceImpl extends BaseServiceImpl implements QimaiProductTemplateStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiProductTemplateStoreDaoImpl") + private QimaiProductTemplateStoreDao qimaiProductTemplateStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiProductTemplateStoreDao; + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId) throws Exception { + try { + return qimaiProductTemplateStoreDao.getStoreIdByTemplateId(tenantId,templateId); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return qimaiProductTemplateStoreDao.getListExtend(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreLableServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreLableServiceImpl.java new file mode 100644 index 0000000..32d4c4f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreLableServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiStoreLableDao; +import com.jwsaas.entity.food.QimaiStoreLable; +import com.jwsaas.service.food.QimaiStoreLableService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreLableServiceImpl") +public class QimaiStoreLableServiceImpl extends BaseServiceImpl implements QimaiStoreLableService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreLableDaoImpl") + private QimaiStoreLableDao qimaiStoreLableDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiStoreLableDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreProductServiceImpl.java new file mode 100644 index 0000000..5714461 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreProductServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiStoreProductDao; +import com.jwsaas.entity.food.QimaiStoreProduct; +import com.jwsaas.service.food.QimaiStoreProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreProductServiceImpl") +public class QimaiStoreProductServiceImpl extends BaseServiceImpl implements QimaiStoreProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreProductDaoImpl") + private QimaiStoreProductDao qimaiStoreProductDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiStoreProductDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreServiceImpl.java new file mode 100644 index 0000000..f8676e6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiStoreServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiStoreDao; +import com.jwsaas.entity.food.QimaiStore; +import com.jwsaas.service.food.QimaiStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreServiceImpl") +public class QimaiStoreServiceImpl extends BaseServiceImpl implements QimaiStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiStoreDaoImpl") + private QimaiStoreDao qimaiStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiStoreDao; + } + + @Override + public List getStoreIdList(String tenantId) throws Exception { + try{ + return qimaiStoreDao.getStoreIdList(tenantId); + }catch (Exception e){ + throw e; + } + + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiSuitDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiSuitDetailServiceImpl.java new file mode 100644 index 0000000..fbd21ae --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/QimaiSuitDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.QimaiSuitDetailDao; +import com.jwsaas.entity.food.QimaiSuitDetail; +import com.jwsaas.service.food.QimaiSuitDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"QimaiSuitDetailServiceImpl") +public class QimaiSuitDetailServiceImpl extends BaseServiceImpl implements QimaiSuitDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"QimaiSuitDetailDaoImpl") + private QimaiSuitDetailDao qimaiSuitDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.qimaiSuitDetailDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceDetailServiceImpl.java new file mode 100644 index 0000000..5fecbfc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceDetailServiceImpl.java @@ -0,0 +1,89 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ReceiveDifferenceDetailDao; +import com.jwsaas.entity.food.ReceiveDifferenceDetail; +import com.jwsaas.service.food.ReceiveDifferenceDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceDetailServiceImpl") +public class ReceiveDifferenceDetailServiceImpl extends BaseServiceImpl implements ReceiveDifferenceDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceDetailDaoImpl") + private ReceiveDifferenceDetailDao receiveDifferenceDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.receiveDifferenceDetailDao; + } + + /*** + * 验收差异单详情金额,数量汇总 + */ + @Override + public List> getSumData(String tenantId, Criteria criteria, Boolean isBatch) { + try { + return this.receiveDifferenceDetailDao.getSumData(tenantId, criteria, isBatch); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getExtendsPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = receiveDifferenceDetailDao.getExtendsPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getExtendsList(String tenantId, Criteria criteria) throws Exception { + try { + return receiveDifferenceDetailDao.getExtendsList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListBySummary(String tenantId, Criteria criteria) throws Exception { + try { + return receiveDifferenceDetailDao.getListBySummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerBySummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = receiveDifferenceDetailDao.getPagerBySummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketLogServiceImpl.java new file mode 100644 index 0000000..2cbe56e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ReceiveDifferenceTicketLogDao; +import com.jwsaas.entity.food.ReceiveDifferenceTicketLog; +import com.jwsaas.service.food.ReceiveDifferenceTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketLogServiceImpl") +public class ReceiveDifferenceTicketLogServiceImpl extends BaseServiceImpl implements ReceiveDifferenceTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketLogDaoImpl") + private ReceiveDifferenceTicketLogDao receiveDifferenceTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.receiveDifferenceTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketPayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketPayServiceImpl.java new file mode 100644 index 0000000..a9f7188 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketPayServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ReceiveDifferenceTicketPayDao; +import com.jwsaas.entity.food.ReceiveDifferenceTicketPay; +import com.jwsaas.service.food.ReceiveDifferenceTicketPayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketPayServiceImpl") +public class ReceiveDifferenceTicketPayServiceImpl extends BaseServiceImpl implements ReceiveDifferenceTicketPayService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketPayDaoImpl") + private ReceiveDifferenceTicketPayDao receiveDifferenceTicketPayDao; + + @Override + public BaseDao getBaseDao() { + return this.receiveDifferenceTicketPayDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketServiceImpl.java new file mode 100644 index 0000000..b2dcefa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveDifferenceTicketServiceImpl.java @@ -0,0 +1,186 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.service.food.ReceiveDifferenceTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; +import java.util.Map; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketServiceImpl") +public class ReceiveDifferenceTicketServiceImpl extends BaseServiceImpl implements ReceiveDifferenceTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketDaoImpl") + private ReceiveDifferenceTicketDao receiveDifferenceTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceDetailDaoImpl") + private ReceiveDifferenceDetailDao receiveDifferenceDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketLogDaoImpl") + private ReceiveDifferenceTicketLogDao receiveDifferenceTicketLogDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockDaoImpl") + private ProductBatchStockDao productBatchStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockDaoImpl") + private ProductStockDao productStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNumberDaoImpl") + private ProductBatchNumberDao productBatchNumberDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchStockChangeDaoImpl") + private ProductBatchStockChangeDao productBatchStockChangeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStockLogDaoImpl") + private ProductStockLogDao productStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductBatchNegativeStockDaoImpl") + private ProductBatchNegativeStockDao productBatchNegativeStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") + private StoreDao storeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SupplierDaoImpl") + private SupplierDao supplierDao; + + + + @Override + public BaseDao getBaseDao() { + return this.receiveDifferenceTicketDao; + } + + @Override + public Integer updateReceiveDifferenceTicketStatus(String tenantId, ReceiveDifferenceTicket ticket, ReceiveDifferenceTicketLog ticketLog) throws Exception { + Integer i = 0; + try { + receiveDifferenceTicketDao.update(tenantId, ticket); + receiveDifferenceTicketLogDao.save(tenantId, ticketLog); + return i; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateAuditStatus(String tenantId, ReceiveDifferenceTicket updateTicket, List details, ReceiveDifferenceTicketLog ticketLog) throws Exception { + Integer i = 0; + try { + receiveDifferenceTicketDao.update(tenantId, updateTicket); + receiveDifferenceTicketLogDao.save(tenantId, ticketLog); + // 审核通过时,商品出库,减少库存; + if (ticketLog.getType() == 2) { + // 审核 + if (updateTicket.getStatus() == 1) { + // 审核通过,商品出库,减少库存 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", updateTicket.getId())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + + + Store store = storeDao.get(tenantId,updateTicket.getStoreId()); + + for (ReceiveDifferenceDetail ticketDetail : details) { + receiveDifferenceDetailDao.update(tenantId, ticketDetail); + + String storageId = ticketDetail.getStorageId(); + String storageName = ticketDetail.getStorageName(); + Integer type = ticketDetail.getType(); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria); + ProductRatio ratio = productRatioList.get(0); + + if (type == 1) {// 出库; + // 2-配送出库; + Integer ticketType = 2;// 4-其他入库(配送收货差异入库); + String ticketNo = updateTicket.getNo(); + + // 出库商品自动分配批次,先进先出,允许负库存 + Map allocateBatchesMap = productBatchStockDao.allocateBatches(tenantId, storageId, ticketDetail.getProductId(), ticketDetail.getProductNo(), + ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketDetail.getPrice(), + ticketDetail.getDifferenceAmount(), true, productBatchNumberDao, productRatioDao, productBatchStockDao); + + boolean allocateResult = (Boolean) allocateBatchesMap.get("status"); + Map allocateData = (Map) allocateBatchesMap.get("data"); + if (!allocateResult) { + throw new Exception(ticketDetail.getProductName() + (StringUtils.isNotBlank(ticketDetail.getSpecName()) ? "[" + ticketDetail.getSpecName() + "]" : "") + "库存分配失败"); + } + double allocatedQuantity = (Double) allocateBatchesMap.get("allocatedQuantity");// 已分配数量 + boolean negativeStock = (Boolean) allocateBatchesMap.get("negativeStock");// 是否负库存 + double negativeStockQuantity = (Double) allocateBatchesMap.get("negativeStockQuantity");// 负库存数量 + + logger.debug("allocatedQuantity:" + allocatedQuantity); + logger.debug("negativeStock:" + negativeStock); + logger.debug("negativeStockQuantity:" + negativeStockQuantity); + + // 批次冲减明细 + Map batches = allocateData; + + // 产品出库信息 + Double quantity = ticketDetail.getDifferenceAmount();// 出库数量 + Double price = ticketDetail.getPrice();// 出库单价 + Double totalAmount = ticketDetail.getDifferencePrice() < 0 ? 0-ticketDetail.getDifferencePrice() : ticketDetail.getDifferencePrice();// 出库总金额 + productStockDao.stockOut(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), + ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), price, quantity, totalAmount, updateTicket.getModifyUser(), ticketType, + ticketNo, store,ratio, batches, productBatchNumberDao, productBatchStockDao, productBatchStockChangeDao, productStockLogDao, productBatchNegativeStockDao,supplierDao); + + } else if (type == 0) {// 入库; + // 1-采购入库; + Integer ticketType = 4; + String ticketNo = updateTicket.getNo(); + Double quantity = ticketDetail.getDifferenceAmount() < 0 ? 0-ticketDetail.getDifferenceAmount() : ticketDetail.getDifferenceAmount();// 出库数量 + Double totalAmount = ticketDetail.getDifferencePrice() < 0 ? 0-ticketDetail.getDifferencePrice() : ticketDetail.getDifferencePrice(); + // 产品入库 - 批次管理 + productStockDao.stockIn(tenantId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), ticketDetail.getSpecId(), + ticketDetail.getSpecName(), ticketDetail.getProductDescription(), null, null, ticketDetail.getDispatchUnitId(), ticketDetail.getPrice(), + quantity, totalAmount, null, null, updateTicket.getModifyUser(), null, ticketType, ticketNo, ratio, productBatchNumberDao, + productBatchStockDao, productStockLogDao); + } else if (type == 2) { + // 报损处理,不做库存流水记录,不做出入库管理; +// ProductStockLog stockLog = new ProductStockLog(); +// stockLog.setTenantId(tenantId); +// stockLog.setStorageId(ticketDetail.getStorageId()); +// stockLog.setStorageName(ticketDetail.getStorageName()); +// stockLog.setProductId(ticketDetail.getProductId()); +// stockLog.setProductNo(ticketDetail.getProductNo()); +// stockLog.setProductName(ticketDetail.getProductName()); +// stockLog.setSpecId(ticketDetail.getSpecId()); +// stockLog.setSpecName(ticketDetail.getSpecName()); +// stockLog.setProductDescription(ticketDetail.getProductDescription()); +// stockLog.setOperationType(2);// 2-报损出库? +// stockLog.setOrderNo(updateTicket.getNo()); +// stockLog.setOrderType(2); +// stockLog.setOrderTypeName("配送收货差异单-报损"); +// stockLog.setDispatchUnitId(ticketDetail.getDispatchUnitId()); +// stockLog.setDispatchUnitName(ticketDetail.getDispatchUnitName()); +// stockLog.setPurchaseUnitId(ratio.getPurchaseUnitId()); +// stockLog.setPurchaseUnitName(productUnitDao.get(tenantId, ratio.getPurchaseUnitId()).getName()); +// stockLog.setAmount(ticketDetail.getDifferenceAmount()); +// stockLog.setPrice(ticketDetail.getPrice()); +// stockLog.setMoney(ticketDetail.getMoney()); +// stockLog.setCreateDate(new Date()); +// stockLog.setCreateUser(updateTicket.getModifyUser()); +// productStockLogDao.save(tenantId, stockLog); + + } + + } + } + } + + return i; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getTicketIdsList(String tenantId, Criteria criteria) throws Exception { + return receiveDifferenceTicketDao.getTicketIdsList(tenantId, criteria); + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveGoodsDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveGoodsDetailServiceImpl.java new file mode 100644 index 0000000..83c5ff0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveGoodsDetailServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ReceiveGoodsDetailDao; +import com.jwsaas.entity.food.ReceiveGoodsDetail; +import com.jwsaas.service.food.ReceiveGoodsDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsDetailServiceImpl") +public class ReceiveGoodsDetailServiceImpl extends BaseServiceImpl implements ReceiveGoodsDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsDetailDaoImpl") + private ReceiveGoodsDetailDao receiveGoodsDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.receiveGoodsDetailDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveGoodsTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveGoodsTicketServiceImpl.java new file mode 100644 index 0000000..f6a9e7d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ReceiveGoodsTicketServiceImpl.java @@ -0,0 +1,313 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.AskGoodsTicketDao; +import com.jwsaas.dao.food.AskGoodsTicketLogDao; +import com.jwsaas.dao.food.DispatchTicketDao; +import com.jwsaas.dao.food.DispatchTicketDetailDao; +import com.jwsaas.dao.food.DispatchTicketLogDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductStoreStockDao; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.ReceiveDifferenceDetailDao; +import com.jwsaas.dao.food.ReceiveDifferenceTicketDao; +import com.jwsaas.dao.food.ReceiveDifferenceTicketLogDao; +import com.jwsaas.dao.food.ReceiveGoodsDetailDao; +import com.jwsaas.dao.food.ReceiveGoodsTicketDao; +import com.jwsaas.dao.food.StoreDao; +import com.jwsaas.dao.food.StoreStorageDao; +import com.jwsaas.entity.food.AskGoodsTicket; +import com.jwsaas.entity.food.AskGoodsTicketLog; +import com.jwsaas.entity.food.DispatchTicket; +import com.jwsaas.entity.food.DispatchTicketDetail; +import com.jwsaas.entity.food.DispatchTicketLog; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.entity.food.ReceiveDifferenceDetail; +import com.jwsaas.entity.food.ReceiveDifferenceTicket; +import com.jwsaas.entity.food.ReceiveDifferenceTicketLog; +import com.jwsaas.entity.food.ReceiveGoodsDetail; +import com.jwsaas.entity.food.ReceiveGoodsTicket; +import com.jwsaas.entity.food.Store; +import com.jwsaas.entity.food.StoreStorage; +import com.jwsaas.service.food.ReceiveGoodsTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsTicketServiceImpl") +public class ReceiveGoodsTicketServiceImpl extends BaseServiceImpl implements ReceiveGoodsTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsTicketDaoImpl") + private ReceiveGoodsTicketDao receiveGoodsTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveGoodsDetailDaoImpl") + private ReceiveGoodsDetailDao receiveGoodsDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDaoImpl") + private DispatchTicketDao dispatchTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDetailDaoImpl") + private DispatchTicketDetailDao dispatchTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketLogDaoImpl") + private DispatchTicketLogDao dispatchTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketDaoImpl") + private ReceiveDifferenceTicketDao receiveDifferenceTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceDetailDaoImpl") + private ReceiveDifferenceDetailDao receiveDifferenceDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketLogDaoImpl") + private ReceiveDifferenceTicketLogDao receiveDifferenceTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketDaoImpl") + private AskGoodsTicketDao askGoodsTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketLogDaoImpl") + private AskGoodsTicketLogDao askGoodsTicketLogDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") + private ProductStoreStockDao productStoreStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") + private ProductStoreStockLogDao productStoreStockLogDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageDaoImpl") + private StoreStorageDao storeStorageDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") + private StoreDao storeDao; + + @Override + public BaseDao getBaseDao() { + return this.receiveGoodsTicketDao; + } + + @Override + public ReceiveGoodsTicket saveWithDetailList(String tenantId, ReceiveGoodsTicket ticket, List detailList) throws Exception { + try { + // 商品单位 + Criteria criteria = new Criteria(); + List productUnitList = productUnitDao.getList(tenantId, criteria, true); + Map productUnitMap = new HashMap<>(); + for (ProductUnit productUnit : productUnitList) { + productUnitMap.put(productUnit.getId(), productUnit); + } + + // 配送单 + DispatchTicket dispatchTicket = dispatchTicketDao.get(tenantId, ticket.getDispatchId(), true); + // 配送单明细 + criteria = new Criteria(); + criteria.add(Restrictions.eq("dispatchId", ticket.getDispatchId())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List dispatchTicketDetailList = dispatchTicketDetailDao.getList(tenantId, criteria, true); + Map dispatchTicketDetailMap = new HashMap<>(); + for (DispatchTicketDetail dispatchTicketDetail : dispatchTicketDetailList) { + dispatchTicketDetailMap.put(dispatchTicketDetail.getSpecId(), dispatchTicketDetail); + } + + // 门店信息 + Store store = storeDao.get(tenantId, ticket.getStoreId(), true); + + // 仓库信息 + Map storageMap = new HashMap<>(); + criteria = new Criteria(); + List storeStorageList = storeStorageDao.getList(tenantId, criteria, true); + for (StoreStorage storeStorage : storeStorageList) { + storageMap.put(storeStorage.getId(), storeStorage); + } + + // 要货单 + AskGoodsTicket askGoodsTicket = null; + if (StringUtils.isNotBlank(dispatchTicket.getAskgoodsId())) { + askGoodsTicket = askGoodsTicketDao.get(tenantId, dispatchTicket.getAskgoodsId(), true); + } + + // ============数据准本结束,开始处理业务============ + Date currentDate = new Date(); + ticket = receiveGoodsTicketDao.save(tenantId, ticket, true); + // 差异信息列表 + List receiveDifferenceDetailList = new ArrayList<>(); + List dispatchTicketDetailList4Update = new ArrayList<>(); + // 收货单明细 + for (ReceiveGoodsDetail receiveGoodsDetail : detailList) { + receiveGoodsDetail.setTicketId(ticket.getId()); + receiveGoodsDetail.setStorageId(ticket.getStorageId()); + receiveGoodsDetail.setCreateUser(ticket.getCreateUser()); + + DispatchTicketDetail dispatchTicketDetail = dispatchTicketDetailMap.get(receiveGoodsDetail.getSpecId()); + DispatchTicketDetail dispatchTicketDetail4Update = new DispatchTicketDetail(); + if (!MathUtil.eq(0D, receiveGoodsDetail.getDifferenceAmount())) { + ReceiveDifferenceDetail receiveDifferenceDetail = new ReceiveDifferenceDetail(); + // receiveDifferenceDetail.setTicketId();// 收货差异单ID + receiveDifferenceDetail.setStorageId(dispatchTicketDetail.getStorageId());// 出库库位ID + receiveDifferenceDetail.setStorageName(dispatchTicketDetail.getStorageName());// 出库库位名 + receiveDifferenceDetail.setProductId(receiveGoodsDetail.getProductId());// 原料ID + receiveDifferenceDetail.setProductNo(receiveGoodsDetail.getProductNo());// 原料编码 + receiveDifferenceDetail.setProductName(receiveGoodsDetail.getProductName());// 原料名称 + receiveDifferenceDetail.setSpecId(receiveGoodsDetail.getSpecId());// 规格ID + receiveDifferenceDetail.setSpecName(receiveGoodsDetail.getSpecName());// 规格名称 + receiveDifferenceDetail.setProductDescription(receiveGoodsDetail.getProductDescription());// 原料说明 + receiveDifferenceDetail.setAskgoodsAmount(receiveGoodsDetail.getAskgoodsAmount());// 要货数量 + receiveDifferenceDetail.setDispatchAmount(receiveGoodsDetail.getDispatchAmount());// 配送数量 + receiveDifferenceDetail.setDispatchUnitId(receiveGoodsDetail.getDispatchUnitId());// 配送单位 + receiveDifferenceDetail.setDispatchUnitName(receiveGoodsDetail.getDispatchUnitName());// 配送单位名称 + receiveDifferenceDetail.setPrice(receiveGoodsDetail.getDispatchPrice());// 配送价 + receiveDifferenceDetail.setMoney(dispatchTicketDetail.getMoney());// 配送金额 + receiveDifferenceDetail.setSubtotalPrice(receiveGoodsDetail.getSubtotalPrice());// 小计金额 + receiveDifferenceDetail.setReceivegoodsAmount(receiveGoodsDetail.getReceiveAmount());// 收货数量 + receiveDifferenceDetail.setDifferenceAmount(receiveGoodsDetail.getDifferenceAmount());// 差异数量 + receiveDifferenceDetail.setDifferencePrice(receiveGoodsDetail.getDifferencePrice());// 差异金额 + receiveDifferenceDetail.setType(null);// 处理方式 + receiveDifferenceDetail.setDescription(null);// 差异原因 + + receiveDifferenceDetailList.add(receiveDifferenceDetail); + dispatchTicketDetail4Update.setDifferenceAmount(receiveGoodsDetail.getDifferenceAmount());// 差异数量 + dispatchTicketDetail4Update.setDifferenceMoney(receiveGoodsDetail.getDifferencePrice());// 差异金额 + + } + dispatchTicketDetail4Update.setId(dispatchTicketDetail.getId()); + dispatchTicketDetail4Update.setReceiveAmount(receiveGoodsDetail.getReceiveAmount());// 收货数量 + dispatchTicketDetail4Update.setModifyUser("system"); + dispatchTicketDetail4Update.setModifyDate(currentDate); + dispatchTicketDetailList4Update.add(dispatchTicketDetail4Update); + + } + receiveGoodsDetailDao.save(tenantId, detailList); + + // 更改配送单状态 + DispatchTicket updateDispatchTicket = new DispatchTicket(); + updateDispatchTicket.setId(dispatchTicket.getId()); + updateDispatchTicket.setStatus(5);// 1-驳回,2-审核通过,3-作废,4-已发货,5-已收货 + updateDispatchTicket.setArrivalDate(new Date());// 验收日期 + updateDispatchTicket.setModifyUser("system"); + updateDispatchTicket.setModifyDate(currentDate); + dispatchTicketDao.update(tenantId, updateDispatchTicket, true); + + // 配送单明细中记录差异 + if (dispatchTicketDetailList4Update.size() > 0) { + dispatchTicketDetailDao.update(tenantId, dispatchTicketDetailList4Update); + } + + DispatchTicketLog dispatchTicketLog = new DispatchTicketLog(); + dispatchTicketLog.setDispatchId(ticket.getDispatchId()); + dispatchTicketLog.setDispatchNo(ticket.getDispatchNo()); + dispatchTicketLog.setStatus(updateDispatchTicket.getStatus()); + dispatchTicketLog.setType(5);// 0-新建,1-驳回,2-审核,3-作废,4-反审核,5-收货 + dispatchTicketLog.setDescription("已收货[" + ticket.getSetMan() + "]"); + dispatchTicketLog.setCreateUser(ticket.getCreateUser()); + dispatchTicketLog.setCreateDate(ticket.getCreateDate()); + dispatchTicketLog.setTenantId(tenantId); + dispatchTicketLogDao.save(tenantId, dispatchTicketLog, true); + + // 生成差异,记录差异 + if (receiveDifferenceDetailList.size() > 0) { + ReceiveDifferenceTicket receiveDifferenceTicket = new ReceiveDifferenceTicket(); + receiveDifferenceTicket.setNo(dispatchTicket.getNo() + "-1");// 单据编号 + receiveDifferenceTicket.setDispatchId(ticket.getDispatchId());// 配送单ID + receiveDifferenceTicket.setDispatchNo(ticket.getDispatchNo());// 配送单号 + receiveDifferenceTicket.setStoreId(ticket.getStoreId());// 门店ID + receiveDifferenceTicket.setStoreNo(store.getNo());// 门店编号 + receiveDifferenceTicket.setStoreName(store.getName());// 门店名称 + receiveDifferenceTicket.setStatus(0);// 状态(0-未处理;1-已审核;3-已作废;) + receiveDifferenceTicket.setDescription("验收差异");// 备注信息 + receiveDifferenceTicket.setOperator(null);// 经办人 + receiveDifferenceTicket.setSetMan("system");// 制单人 + receiveDifferenceTicket.setSetDate(new Date());// 制单日期 + receiveDifferenceTicket.setCheckMan(null);// 审核人 + receiveDifferenceTicket.setCheckDate(null);// 审核日期 + receiveDifferenceTicket.setCreateUser("system"); + receiveDifferenceTicket = receiveDifferenceTicketDao.save(tenantId, receiveDifferenceTicket, true); + for (ReceiveDifferenceDetail receiveDifferenceDetail : receiveDifferenceDetailList) { + receiveDifferenceDetail.setTicketId(receiveDifferenceTicket.getId());// 收货差异单ID + receiveDifferenceDetail.setCreateUser(receiveDifferenceTicket.getCreateUser()); + } + receiveDifferenceDetailDao.save(tenantId, receiveDifferenceDetailList); + + ReceiveDifferenceTicketLog receiveDifferenceTicketLog = new ReceiveDifferenceTicketLog(); + receiveDifferenceTicketLog.setTicketId(receiveDifferenceTicket.getId());// 配送差异单ID + receiveDifferenceTicketLog.setTicketNo(receiveDifferenceTicket.getNo());// 配送差异单编号 + receiveDifferenceTicketLog.setStatus(receiveDifferenceTicket.getStatus()); + receiveDifferenceTicketLog.setType(0);// 0-新建 + receiveDifferenceTicketLog.setDescription("新建单据"); + receiveDifferenceTicketLog.setCreateUser(receiveDifferenceTicket.getCreateUser()); + receiveDifferenceTicketLogDao.save(tenantId, receiveDifferenceTicketLog, true); + + } + + // 1-采购入库;2-配送入库;3-转仓库;4-销售出库; + Integer ticketType = 2; + String ticketTypeName = "配送入库"; + String ticketNo = ticket.getNo(); + + // 门店库存处理 + for (ReceiveGoodsDetail receiveGoodsDetail : detailList) { + if (MathUtil.lte(new BigDecimal(receiveGoodsDetail.getReceiveAmount()), BigDecimal.ZERO)) { + continue; + } + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", receiveGoodsDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria, true); + ProductRatio ratio = productRatioList.get(0); + + // 收货金额 + Double money = MathUtil.multiply(receiveGoodsDetail.getDispatchPrice(), receiveGoodsDetail.getReceiveAmount()); + + productStoreStockDao.stockIn(tenantId, ticket.getStoreId(), receiveGoodsDetail.getStorageId(), + storageMap.get(receiveGoodsDetail.getStorageId()) == null ? null : storageMap.get(receiveGoodsDetail.getStorageId()).getName(), receiveGoodsDetail.getProductId(), + receiveGoodsDetail.getProductNo(), receiveGoodsDetail.getProductName(), receiveGoodsDetail.getSpecId(), receiveGoodsDetail.getSpecName(), + receiveGoodsDetail.getProductDescription(), ticketType, ticketTypeName, ticketNo, receiveGoodsDetail.getDispatchUnitId(), receiveGoodsDetail.getDispatchUnitName(), + ratio.getPackUnitId(), productUnitMap.get(ratio.getPackUnitId()) == null ? null : productUnitMap.get(ratio.getPackUnitId()).getName(), receiveGoodsDetail.getDispatchPrice(), + receiveGoodsDetail.getReceiveAmount(), money, ticket.getCreateUser(), ratio, productStoreStockLogDao); + } + + if (askGoodsTicket != null) { + // 更改要货单状态 + AskGoodsTicket updateAskGoodsTicket = new AskGoodsTicket(); + updateAskGoodsTicket.setId(askGoodsTicket.getId()); + updateAskGoodsTicket.setStatus(5);// 0-新建;1-驳回;2-审核通过;3-作废;4-已发货;5-已收货; + updateAskGoodsTicket.setModifyUser("system"); + updateAskGoodsTicket.setModifyDate(currentDate); + askGoodsTicketDao.update(tenantId, updateAskGoodsTicket, true); + + AskGoodsTicketLog askGoodsTicketLog = new AskGoodsTicketLog(); + askGoodsTicketLog.setTicketId(askGoodsTicket.getId()); + askGoodsTicketLog.setTicketNo(askGoodsTicket.getNo()); + askGoodsTicketLog.setType(5);// 0-新建,1-驳回,2-审核,3-作废,4-反审核,5-收货 + askGoodsTicketLog.setStatus(updateAskGoodsTicket.getStatus()); + askGoodsTicketLog.setPayStatus(askGoodsTicket.getPayStatus()); + askGoodsTicketLog.setDescription("已收货[" + ticket.getSetMan() + "]"); + askGoodsTicketLog.setCreateUser(ticket.getCreateUser()); + askGoodsTicketLog.setCreateDate(ticket.getCreateDate()); + askGoodsTicketLog.setTenantId(tenantId); + askGoodsTicketLogDao.save(tenantId, askGoodsTicketLog, true); + } + + // 更改收货单状态 + ReceiveGoodsTicket updateReceiveGoodsTicket = new ReceiveGoodsTicket(); + updateReceiveGoodsTicket.setId(ticket.getId()); + updateReceiveGoodsTicket.setStatus(1);// 0-新建;1-审核;2-废弃;3-反审核; + updateReceiveGoodsTicket.setCheckMan(ticket.getCreateUser()); + updateReceiveGoodsTicket.setCheckDate(new Date()); + updateReceiveGoodsTicket.setModifyUser("system"); + updateReceiveGoodsTicket.setModifyDate(currentDate); + receiveGoodsTicketDao.update(tenantId, updateReceiveGoodsTicket, true); + + return ticket; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/RechargeParameterServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/RechargeParameterServiceImpl.java new file mode 100644 index 0000000..0b819e2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/RechargeParameterServiceImpl.java @@ -0,0 +1,99 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.RechargeParameterDao; +import com.jwsaas.entity.food.RechargeParameter; +import com.jwsaas.service.food.RechargeParameterService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"RechargeParameterServiceImpl") +public class RechargeParameterServiceImpl extends BaseServiceImpl implements RechargeParameterService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"RechargeParameterDaoImpl") + private RechargeParameterDao rechargeParameterDao; + + @Override + public BaseDao getBaseDao() { + return this.rechargeParameterDao; + } + + @Override + public Integer saveRechargeAndStoreId(String tenantId, RechargeParameter recharge, List storeIds) throws Exception { + Integer i = 0; + if (recharge != null) { + RechargeParameter payment = rechargeParameterDao.save(tenantId, recharge, true); + List list = new ArrayList<>(); + for (String id : storeIds) { + RechargeParameter paymentParameter = new RechargeParameter(); + paymentParameter.setStoreId(id); + paymentParameter.setId(payment.getId()); + paymentParameter.setTenantId(tenantId); + list.add(paymentParameter); + } + if (list.size() > 0) { + i = rechargeParameterDao.saveRechargeParameterStoreRelation(tenantId, list); + } + } + return i; + } + + @Override + public List getStoreIdsByRechargeId(String tenantId, String id) throws Exception { + return rechargeParameterDao.getStoreIdsByRechargeId(tenantId,id); + } + + @Override + public Integer updateRechargeParameterAndStore(String tenantId, String id, RechargeParameter recharge, List storeIds) throws Exception { + Integer i = 0; + i = rechargeParameterDao.update(tenantId,recharge,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parameterId",id)); + rechargeParameterDao.deleteRelationByParameterIdBatch(tenantId,criteria); + List list = new ArrayList<>(); + for(String storeId : storeIds){ + RechargeParameter paymentParameter = new RechargeParameter(); + paymentParameter.setStoreId(storeId); + paymentParameter.setId(id); + paymentParameter.setTenantId(tenantId); + list.add(paymentParameter); + } + if(list.size() > 0){ + rechargeParameterDao.saveRechargeParameterStoreRelation(tenantId,list); + } + return i; + } + + @Override + public Integer deleteRechargeParameterAndStoreByParameterIds(String tenantId, List parameterIds) throws Exception { + Integer i = 0; + for(String id : parameterIds){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parameterId",id)); + criteria.add(Restrictions.eq("tenantId",tenantId)); + rechargeParameterDao.deleteRelationByParameterId(tenantId,criteria); + i = rechargeParameterDao.delete(tenantId,id); + } + return i; + } + + @Override + public List getListByStoreId(String tenantId, String storeId, Criteria criteria) throws Exception { + try { + return this.rechargeParameterDao.getListByStoreId(tenantId, storeId, criteria); + } catch (Exception e) { + throw e; + } + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/RoleServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/RoleServiceImpl.java new file mode 100644 index 0000000..572f0f2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/RoleServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.RoleDao; +import com.jwsaas.entity.food.Role; +import com.jwsaas.service.food.RoleService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "RoleServiceImpl") +public class RoleServiceImpl extends BaseServiceImpl implements RoleService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "RoleDaoImpl") + private RoleDao roleDao; + + @Override + public BaseDao getBaseDao() { + return this.roleDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SaleClearServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SaleClearServiceImpl.java new file mode 100644 index 0000000..836b8dc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SaleClearServiceImpl.java @@ -0,0 +1,35 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SaleClearDao; +import com.jwsaas.entity.food.SaleClear; +import com.jwsaas.service.food.SaleClearService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"SaleClearServiceImpl") +public class SaleClearServiceImpl extends BaseServiceImpl implements SaleClearService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SaleClearDaoImpl") + private SaleClearDao saleClearDao; + + @Override + public BaseDao getBaseDao() { + return this.saleClearDao; + } + + @Override + public Integer updateSaleClear(String tenantId, SaleClear saleClear) throws Exception { + return saleClearDao.updateSaleClear(tenantId,saleClear); + } + + @Override + public Integer deleteSaleClearByEndTime(String tenantId, SaleClear saleClear) throws Exception { + return saleClearDao.deleteSaleClearByEndTime(tenantId,saleClear); + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ServerDataVersionServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ServerDataVersionServiceImpl.java new file mode 100644 index 0000000..d10fad2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ServerDataVersionServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ServerDataVersionDao; +import com.jwsaas.entity.food.ServerDataVersion; +import com.jwsaas.service.food.ServerDataVersionService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ServerDataVersionServiceImpl") +public class ServerDataVersionServiceImpl extends BaseServiceImpl implements ServerDataVersionService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ServerDataVersionDaoImpl") + private ServerDataVersionDao serverDataVersionDao; + + @Override + public BaseDao getBaseDao() { + return this.serverDataVersionDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderExtraServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderExtraServiceImpl.java new file mode 100644 index 0000000..643dfb8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderExtraServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ShopMeituanOrderExtraDao; +import com.jwsaas.entity.food.ShopMeituanOrderExtra; +import com.jwsaas.service.food.ShopMeituanOrderExtraService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ShopMeituanOrderExtraServiceImpl") +public class ShopMeituanOrderExtraServiceImpl extends BaseServiceImpl implements ShopMeituanOrderExtraService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ShopMeituanOrderExtraDaoImpl") + private ShopMeituanOrderExtraDao shopMeituanOrderExtraDao; + + @Override + public BaseDao getBaseDao() { + return this.shopMeituanOrderExtraDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderItemServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderItemServiceImpl.java new file mode 100644 index 0000000..15f089e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderItemServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ShopMeituanOrderItemDao; +import com.jwsaas.entity.food.ShopMeituanOrderItem; +import com.jwsaas.service.food.ShopMeituanOrderItemService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ShopMeituanOrderItemServiceImpl") +public class ShopMeituanOrderItemServiceImpl extends BaseServiceImpl implements ShopMeituanOrderItemService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ShopMeituanOrderItemDaoImpl") + private ShopMeituanOrderItemDao shopMeituanOrderItemDao; + + @Override + public BaseDao getBaseDao() { + return this.shopMeituanOrderItemDao; + } + + @Override + public Pager getPagerSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = shopMeituanOrderItemDao.getPagerSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListSummary(String tenantId, Criteria criteria) throws Exception { + try { + return shopMeituanOrderItemDao.getListSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderServiceImpl.java new file mode 100644 index 0000000..3732a4e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ShopMeituanOrderServiceImpl.java @@ -0,0 +1,101 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.cache.CacheService; +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ShopMeituanOrderDao; +import com.jwsaas.dao.food.ShopMeituanOrderExtraDao; +import com.jwsaas.dao.food.ShopMeituanOrderItemDao; +import com.jwsaas.entity.food.ShopMeituanOrder; +import com.jwsaas.entity.food.ShopMeituanOrderExtra; +import com.jwsaas.entity.food.ShopMeituanOrderItem; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.ShopMeituanOrderService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "ShopMeituanOrderServiceImpl") +public class ShopMeituanOrderServiceImpl extends BaseServiceImpl implements ShopMeituanOrderService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ShopMeituanOrderDaoImpl") + private ShopMeituanOrderDao shopMeituanOrderDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ShopMeituanOrderItemDaoImpl") + private ShopMeituanOrderItemDao shopMeituanOrderItemDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ShopMeituanOrderExtraDaoImpl") + private ShopMeituanOrderExtraDao shopMeituanOrderExtraDao; + + @Resource + private CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.shopMeituanOrderDao; + } + + @Override + public Pager getPagerSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = shopMeituanOrderDao.getPagerSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getSummaryList(String tenantId, Criteria criteria) throws Exception { + try { + return shopMeituanOrderDao.getSummaryList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveOrder(String tenantId, ShopMeituanOrder entity, List itemList, List extraList) throws Exception { + try { + Object noValue = cacheService.get(tenantId, entity.getStoreId() + entity.getOrderId()); + if (noValue == null || "".equals(noValue)) { + cacheService.set(tenantId, entity.getStoreId() + entity.getOrderId(), entity.getOrderId(), 172800); + shopMeituanOrderDao.save(tenantId, entity, true); + if (!CollectionUtils.isEmpty(itemList)) { + shopMeituanOrderItemDao.save(tenantId, itemList); + } + if (!CollectionUtils.isEmpty(extraList)) { + shopMeituanOrderExtraDao.save(tenantId, extraList); + } + } + } catch (Exception e) { + try { + cacheService.del(tenantId, entity.getStoreId() + entity.getOrderId()); + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + return 0; + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) throws Exception { + try { + return shopMeituanOrderDao.getListReportDataSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SplitFoodAccountServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitFoodAccountServiceImpl.java new file mode 100644 index 0000000..2bcbee1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitFoodAccountServiceImpl.java @@ -0,0 +1,47 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.split.SplitProductEntity; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SplitFoodAccountDao; +import com.jwsaas.entity.food.SplitFoodAccount; +import com.jwsaas.service.food.SplitFoodAccountService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"SplitFoodAccountServiceImpl") +public class SplitFoodAccountServiceImpl extends BaseServiceImpl implements SplitFoodAccountService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SplitFoodAccountDaoImpl") + private SplitFoodAccountDao splitFoodAccountDao; + + @Override + public BaseDao getBaseDao() { + return this.splitFoodAccountDao; + } + + @Override + public Pager getSplitProductPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.splitFoodAccountDao.getSplitProductPager(tenantId, criteria, pageBounds); + + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SplitPayLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitPayLogServiceImpl.java new file mode 100644 index 0000000..073fe89 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitPayLogServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SplitPayLogDao; +import com.jwsaas.entity.food.SplitPayLog; +import com.jwsaas.service.food.SplitPayLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"SplitPayLogServiceImpl") +public class SplitPayLogServiceImpl extends BaseServiceImpl implements SplitPayLogService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SplitPayLogDaoImpl") + private SplitPayLogDao splitPayLogDao; + + @Override + public BaseDao getBaseDao() { + return this.splitPayLogDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SplitPayResultServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitPayResultServiceImpl.java new file mode 100644 index 0000000..6efe2c7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitPayResultServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SplitPayResultDao; +import com.jwsaas.entity.food.SplitPayResult; +import com.jwsaas.service.food.SplitPayResultService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"SplitPayResultServiceImpl") +public class SplitPayResultServiceImpl extends BaseServiceImpl implements SplitPayResultService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SplitPayResultDaoImpl") + private SplitPayResultDao splitPayResultDao; + + @Override + public BaseDao getBaseDao() { + return this.splitPayResultDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SplitShopAccountServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitShopAccountServiceImpl.java new file mode 100644 index 0000000..98f514e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitShopAccountServiceImpl.java @@ -0,0 +1,45 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SplitShopAccountDao; +import com.jwsaas.entity.food.SplitShopAccount; +import com.jwsaas.service.food.SplitShopAccountService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"SplitShopAccountServiceImpl") +public class SplitShopAccountServiceImpl extends BaseServiceImpl implements SplitShopAccountService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SplitShopAccountDaoImpl") + private SplitShopAccountDao splitShopAccountDao; + + @Override + public BaseDao getBaseDao() { + return this.splitShopAccountDao; + } + + @Override + public Pager getSplitShopPager(String tenantId,Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.splitShopAccountDao.getSplitShopPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SplitShopWithdrawalServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitShopWithdrawalServiceImpl.java new file mode 100644 index 0000000..e3d345d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitShopWithdrawalServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SplitShopWithdrawalDao; +import com.jwsaas.entity.food.SplitShopWithdrawal; +import com.jwsaas.service.food.SplitShopWithdrawalService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"SplitShopWithdrawalServiceImpl") +public class SplitShopWithdrawalServiceImpl extends BaseServiceImpl implements SplitShopWithdrawalService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SplitShopWithdrawalDaoImpl") + private SplitShopWithdrawalDao splitShopWithdrawalDao; + + @Override + public BaseDao getBaseDao() { + return this.splitShopWithdrawalDao; + } + + + @Override + public Pager getSplitWithdrawalPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.splitShopWithdrawalDao.getSplitWithdrawalPager(tenantId,criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SplitStorePayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitStorePayServiceImpl.java new file mode 100644 index 0000000..7ef463c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SplitStorePayServiceImpl.java @@ -0,0 +1,51 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.entity.split.SplitOrderEntity; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SplitStorePayDao; +import com.jwsaas.entity.food.SplitStorePay; +import com.jwsaas.service.food.SplitStorePayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"SplitStorePayServiceImpl") +public class SplitStorePayServiceImpl extends BaseServiceImpl implements SplitStorePayService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"SplitStorePayDaoImpl") + private SplitStorePayDao splitStorePayDao; + + @Override + public BaseDao getBaseDao() { + return this.splitStorePayDao; + } + + @Override + public Pager getSplitOrderPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.splitStorePayDao.getSplitOrderPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getSplitStorePayList(Criteria criteria) { + return splitStorePayDao.getSplitStorePayList(criteria); + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StorageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StorageServiceImpl.java new file mode 100644 index 0000000..daf045e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StorageServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StorageDao; +import com.jwsaas.entity.food.Storage; +import com.jwsaas.service.food.StorageService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StorageServiceImpl") +public class StorageServiceImpl extends BaseServiceImpl implements StorageService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StorageDaoImpl") + private StorageDao storageDao; + + @Override + public BaseDao getBaseDao() { + return this.storageDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storageDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StorageTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StorageTypeServiceImpl.java new file mode 100644 index 0000000..4014281 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StorageTypeServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StorageDao; +import com.jwsaas.dao.food.StorageTypeDao; +import com.jwsaas.entity.food.StorageType; +import com.jwsaas.service.food.StorageTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StorageTypeServiceImpl") +public class StorageTypeServiceImpl extends BaseServiceImpl implements StorageTypeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StorageTypeDaoImpl") + private StorageTypeDao storageTypeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StorageDaoImpl") + private StorageDao storageDao; + + @Override + public BaseDao getBaseDao() { + return this.storageTypeDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storageTypeDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + + for (String typeId : ids) { + this.storageDao.updateTypeToNull(tenantId, typeId, true); + } + + return this.storageTypeDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountDetailServiceImpl.java new file mode 100644 index 0000000..6f440f0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountDetailServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreAccountDetailDao; +import com.jwsaas.entity.food.StoreAccountDetail; +import com.jwsaas.service.food.StoreAccountDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDetailServiceImpl") +public class StoreAccountDetailServiceImpl extends BaseServiceImpl implements StoreAccountDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDetailDaoImpl") + private StoreAccountDetailDao storeAccountDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeAccountDetailDao; + } + + @Override + public List getListGroup(String tenantId, Criteria criteria) throws Exception { + try { + return this.storeAccountDetailDao.getListGroup(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountRechargeParameterServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountRechargeParameterServiceImpl.java new file mode 100644 index 0000000..e26a7da --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountRechargeParameterServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreAccountRechargeParameterDao; +import com.jwsaas.entity.food.StoreAccountRechargeParameter; +import com.jwsaas.service.food.StoreAccountRechargeParameterService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountRechargeParameterServiceImpl") +public class StoreAccountRechargeParameterServiceImpl extends BaseServiceImpl implements StoreAccountRechargeParameterService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAccountRechargeParameterDaoImpl") + private StoreAccountRechargeParameterDao storeAccountRechargeParameterDao; + + @Override + public BaseDao getBaseDao() { + return this.storeAccountRechargeParameterDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountRechargeRecordServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountRechargeRecordServiceImpl.java new file mode 100644 index 0000000..d65701f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountRechargeRecordServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreAccountRechargeRecordDao; +import com.jwsaas.entity.food.StoreAccountRechargeRecord; +import com.jwsaas.service.food.StoreAccountRechargeRecordService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountRechargeRecordServiceImpl") +public class StoreAccountRechargeRecordServiceImpl extends BaseServiceImpl implements StoreAccountRechargeRecordService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAccountRechargeRecordDaoImpl") + private StoreAccountRechargeRecordDao storeAccountRechargeRecordDao; + + @Override + public BaseDao getBaseDao() { + return this.storeAccountRechargeRecordDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountServiceImpl.java new file mode 100644 index 0000000..0931b1a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAccountServiceImpl.java @@ -0,0 +1,858 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.StoreAccountService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreAccountServiceImpl") +public class StoreAccountServiceImpl extends BaseServiceImpl implements StoreAccountService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDaoImpl") + private StoreAccountDao storeAccountDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDetailDaoImpl") + private StoreAccountDetailDao storeAccountDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchTicketDaoImpl") + private DispatchTicketDao dispatchTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketDaoImpl") + private AskGoodsTicketDao askGoodsTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "DispatchSettlePlanDaoImpl") + private DispatchSettlePlanDao dispatchSettlePlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceTicketDaoImpl") + private ReceiveDifferenceTicketDao receiveDifferenceTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ReceiveDifferenceDetailDaoImpl") + private ReceiveDifferenceDetailDao receiveDifferenceDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") + private StoreDao storeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "AskGoodsTicketPayDaoImpl") + private AskGoodsTicketPayDao askGoodsTicketPayDao; + + + + + @Override + public BaseDao getBaseDao() { + return this.storeAccountDao; + } + + @Override + public StoreAccount save4Recharge(String tenantId, String storeId, String accountId, StoreAccountDetail detail) throws Exception { + try { + StoreAccount storeAccount = this.storeAccountDao.get(tenantId, accountId); + if (storeAccount == null) { + throw new Exception("门店余额账户不能为空"); + } + + if (!StringUtils.equals(storeAccount.getStoreId(), storeId)) { + throw new Exception("信息不一致"); + } + + storeAccountDetailDao.save(tenantId, detail); + + StoreAccount updateAccount = new StoreAccount(); + updateAccount.setId(storeAccount.getId()); + updateAccount.setAmount(MathUtil.add(new BigDecimal(storeAccount.getAmount()), new BigDecimal(detail.getAmount())).doubleValue()); + updateAccount.setModifyUser(detail.getWorkerNo()); + updateAccount.setModifyDate(new Date()); + storeAccountDao.update(tenantId, updateAccount); + + storeAccount = this.storeAccountDao.get(tenantId, accountId); + return storeAccount; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getStoreIdList(String tenantId) throws Exception { + try { + return storeAccountDao.getStoreIdList(tenantId); + } catch (Exception e) { + throw e; + } + } + + + @Override + public Integer saveCutPayment(String tenantId, String ticketId, String ticketType, String currentUserName) throws Exception { + Integer i = 0; + try{ + if("dispatchTicket".equals(ticketType)){ + //根据配送单查找门店; + DispatchTicket ticket = dispatchTicketDao.get(tenantId,ticketId); + + List plans = dispatchSettlePlanDao.getListByStoreId(tenantId,ticket.getStoreId(),new Criteria()); + if(CollectionUtils.isNotEmpty(plans)){ + StoreAccount account = storeAccountDao.find(tenantId,"storeId",ticket.getStoreId()); + if(account == null){ + Store store = storeDao.get(tenantId,ticket.getStoreId()); + StoreAccount storeAccount = new StoreAccount(); + storeAccount.setNo(tenantId+store.getNo()); + storeAccount.setStoreId(store.getId()); + storeAccount.setStoreNo(store.getNo()); + storeAccount.setStatus(1); + storeAccount.setPayPwd(null); + storeAccount.setDescription(null); + storeAccount.setAmount(0D); + storeAccount.setFreezeAmount(0D); + storeAccount.setCreateDate(new Date()); + storeAccount.setCreateUser(currentUserName); + storeAccount.setTenantId(tenantId); + account = storeAccountDao.save(tenantId,storeAccount); + } + if(account.getStatus() == 1){ + DispatchSettlePlan plan = plans.get(0); + if(plan.getBalanceMode() == 2){ + BigDecimal money =new BigDecimal(ticket.getMoney()); + //查看配送单是否是要货单转成,扣款金额取要货单金额,否则是配送单金额; + AskGoodsTicket askGoodsTicket = null; + if(StringUtils.isNotEmpty(ticket.getAskgoodsId())){ + askGoodsTicket = askGoodsTicketDao.get(tenantId,ticket.getAskgoodsId()); + if(askGoodsTicket.getPayStatus() == 2 ){ + return 1; + } + //南宁需求,门店要货,门店审核后要货款冻结; + if(StringUtils.startsWith(tenantId,"77") && 6 == askGoodsTicket.getPayStatus()){ + account.setFreezeAmount(account.getFreezeAmount() - askGoodsTicket.getTotalMoney()); + } + //money = new BigDecimal(askGoodsTicket.getTotalMoney()); + } + BigDecimal afterMoney = new BigDecimal(account.getAmount()).subtract(money); + + if(!"771126".equals(tenantId)){ + if(plan.getCreditType() == 0){//不允许赊账 + BigDecimal finalMoney = afterMoney.subtract(new BigDecimal(account.getFreezeAmount() == null ? 0.00 : account.getFreezeAmount())).subtract(new BigDecimal(plan.getAdvanceValue() == null ? 0.00 : plan.getAdvanceValue())); + if(!MathUtil.gte(finalMoney,BigDecimal.ZERO)){ + i = 6; + return i; + } + } + } + + account.setAmount(afterMoney.doubleValue()); + account.setModifyUser(currentUserName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + if(StringUtils.isNotEmpty(ticket.getAskgoodsId())){ + askGoodsTicket.setPayStatus(2); + askGoodsTicket.setModifyDate(new Date()); + askGoodsTicket.setModifyUser(currentUserName); + askGoodsTicketDao.update(tenantId,askGoodsTicket); + + AskGoodsTicketPay pay = new AskGoodsTicketPay(); + pay.setTenantId(tenantId); + pay.setTicketId(ticket.getAskgoodsId()); + pay.setTicketNo(askGoodsTicket.getNo()); + pay.setStoreId(askGoodsTicket.getStoreId()); + pay.setStoreNo(askGoodsTicket.getStoreNo()); + pay.setStoreName(askGoodsTicket.getStoreName()); + pay.setDescription("要货单扣款"); + pay.setType(2);//0未支付1部分支付2已支付3部分退款4全额退款5已结算 + pay.setMoney(ticket.getMoney()); + pay.setCreateDate(new Date()); + pay.setCreateUser(currentUserName); + askGoodsTicketPayDao.save(tenantId,pay); + } + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(4);//要货扣款; + detail.setBusNo(ticket.getNo()); + detail.setPayType("3"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(money.doubleValue()); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(currentUserName); + detail.setDescription("配送发货扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(currentUserName); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + }else{ + i = 1; + } + }else{ + i = 4;//门店余额为冻结状态; + } + + }else{ + i = 1;//没有结算方案; + } + }else if("askGoodsTicket".equals(ticketType)){ + //根据要货单查找门店; + AskGoodsTicket ticket = askGoodsTicketDao.get(tenantId,ticketId); + if(ticket.getPayStatus() == 2 ){ + return 1; + } + List plans = dispatchSettlePlanDao.getListByStoreId(tenantId,ticket.getStoreId(),new Criteria()); + if(CollectionUtils.isNotEmpty(plans)){ + StoreAccount account = storeAccountDao.find(tenantId,"storeId",ticket.getStoreId()); + if(account == null){ + Store store = storeDao.get(tenantId,ticket.getStoreId()); + StoreAccount storeAccount = new StoreAccount(); + storeAccount.setNo(tenantId+store.getNo()); + storeAccount.setStoreId(store.getId()); + storeAccount.setStoreNo(store.getNo()); + storeAccount.setStatus(1); + storeAccount.setPayPwd(null); + storeAccount.setDescription(null); + storeAccount.setAmount(0D); + storeAccount.setFreezeAmount(0D); + storeAccount.setCreateDate(new Date()); + storeAccount.setCreateUser(currentUserName); + storeAccount.setTenantId(tenantId); + account = storeAccountDao.save(tenantId,storeAccount); + } + if(account.getStatus() == 1){ + DispatchSettlePlan plan = plans.get(0); + if(plan.getBalanceMode() == 1){ + BigDecimal money = null; + //扣款金额取要货单金额; + money = new BigDecimal(ticket.getTotalMoney()); + BigDecimal afterMoney = new BigDecimal(account.getAmount()).subtract(money); + account.setAmount(afterMoney.doubleValue()); + account.setModifyUser(currentUserName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + + ticket.setPayStatus(2); + ticket.setModifyDate(new Date()); + ticket.setModifyUser(currentUserName); + askGoodsTicketDao.update(tenantId,ticket); + + AskGoodsTicketPay pay = new AskGoodsTicketPay(); + pay.setTenantId(tenantId); + pay.setTicketId(ticket.getId()); + pay.setStoreId(ticket.getStoreId()); + pay.setStoreNo(ticket.getStoreNo()); + pay.setStoreName(ticket.getStoreName()); + pay.setDescription("要货单扣款"); + pay.setType(2);//0未支付1部分支付2已支付3部分退款4全额退款5已结算 + pay.setMoney(ticket.getTotalMoney()); + pay.setCreateDate(new Date()); + pay.setCreateUser(currentUserName); + askGoodsTicketPayDao.save(tenantId,pay); + + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(4);//要货扣款; + detail.setBusNo(ticket.getNo()); + detail.setPayType("3"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(money.doubleValue()); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(currentUserName); + detail.setDescription("总部审核要货单扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(currentUserName); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + }else{ + i = 1; + } + }else{ + i = 4;//门店余额为冻结状态; + } + }else{ + i = 1;//没有结算方案; + } + }else if("receiveDifferenceTicket".equals(ticketType)){ + //根据配送验收差异单查找门店; + ReceiveDifferenceTicket ticket = receiveDifferenceTicketDao.get(tenantId,ticketId); + List plans = dispatchSettlePlanDao.getListByStoreId(tenantId,ticket.getStoreId(),new Criteria()); + if(CollectionUtils.isNotEmpty(plans)){ + StoreAccount account = storeAccountDao.find(tenantId,"storeId",ticket.getStoreId()); + if(account == null){ + Store store = storeDao.get(tenantId,ticket.getStoreId()); + StoreAccount storeAccount = new StoreAccount(); + storeAccount.setNo(tenantId+store.getNo()); + storeAccount.setStoreId(store.getId()); + storeAccount.setStoreNo(store.getNo()); + storeAccount.setStatus(1); + storeAccount.setPayPwd(null); + storeAccount.setDescription(null); + storeAccount.setAmount(0D); + storeAccount.setFreezeAmount(0D); + storeAccount.setCreateDate(new Date()); + storeAccount.setCreateUser(currentUserName); + storeAccount.setTenantId(tenantId); + account = storeAccountDao.save(tenantId,storeAccount); + } + if(account.getStatus() == 1){ + Double moneys = 0.00; + //根据明细差异,计算差异金额; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticketId)); + List details = receiveDifferenceDetailDao.getList(tenantId,criteria); + if(CollectionUtils.isNotEmpty(details)){ + for(ReceiveDifferenceDetail detail : details){ + moneys += detail.getDifferencePrice(); + } + } + if(moneys > 0){ + BigDecimal afterMoney = new BigDecimal(account.getAmount()).add(new BigDecimal(moneys)); + account.setAmount(afterMoney.doubleValue()); + account.setModifyUser(currentUserName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(1); + detail.setBusType(5);//退款; + detail.setBusNo(ticket.getNo()); + detail.setPayType("4"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(moneys); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(currentUserName); + detail.setDescription("配送验收差异退款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(currentUserName); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + }else{ + BigDecimal afterMoney = new BigDecimal(account.getAmount()).subtract(new BigDecimal(moneys).abs()); + account.setAmount(afterMoney.doubleValue()); + account.setModifyUser(currentUserName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(4);//要货扣款; + detail.setBusNo(ticket.getNo()); + detail.setPayType("3"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(moneys); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(currentUserName); + detail.setDescription("配送验收差异扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(currentUserName); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + } + }else{ + i = 4;//门店余额为冻结状态; + } + }else{ + i = 1; + } + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveCharge(String tenantId, StoreAccount account, StoreAccountDetail detail)throws Exception { + Integer i = 0; + try{ + storeAccountDao.update(tenantId,account); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveCutPaymentByAskGoodsTicket(String tenantId, String askgoodsId, Double totalMoney, String userName) throws Exception { + Integer i = 0; + try{ + //根据要货单查找门店; + AskGoodsTicket ticket = askGoodsTicketDao.get(tenantId,askgoodsId); + if(ticket.getPayStatus() == 2 ){ + return 1; + } + List plans = dispatchSettlePlanDao.getListByStoreId(tenantId,ticket.getStoreId(),new Criteria()); + StoreAccount account = storeAccountDao.find(tenantId,"storeId",ticket.getStoreId()); + if(StringUtils.startsWith(tenantId,"77") && ticket.getPayStatus() == 6){ + if(CollectionUtils.isEmpty(plans)){ + return 1; + } + if(plans.get(0).getBalanceMode() == 0){ + return 1; + } + + if(account.getStatus() == 1){ + DispatchSettlePlan plan = plans.get(0); + if(plan.getBalanceMode() == 1){ + Double askGoodsMoney = ticket.getTotalMoney(); + Double preAmount = account.getFreezeAmount() - askGoodsMoney; + account.setFreezeAmount(preAmount); + + BigDecimal money = null; + //扣款金额取要配送单金额; + money = new BigDecimal(totalMoney); + BigDecimal afterMoney = new BigDecimal(account.getAmount()).subtract(money); + if(!"771126".equals(tenantId)){ + if(plan.getCreditType() == 0){//不允许赊账 + BigDecimal finalMoney = afterMoney.subtract(new BigDecimal(account.getFreezeAmount() == null ? 0.00 : account.getFreezeAmount())).subtract(new BigDecimal(plan.getAdvanceValue() == null ? 0.00 : plan.getAdvanceValue())); + if(!MathUtil.gte(finalMoney,BigDecimal.ZERO)){ + i = 6; + return i; + } + } + } + + account.setAmount(afterMoney.doubleValue()); + account.setModifyUser(userName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + + ticket.setPayStatus(2); + ticket.setModifyDate(new Date()); + ticket.setModifyUser(userName); + askGoodsTicketDao.update(tenantId,ticket); + + AskGoodsTicketPay pay = new AskGoodsTicketPay(); + pay.setTenantId(tenantId); + pay.setTicketId(ticket.getId()); + pay.setTicketNo(ticket.getNo()); + pay.setStoreId(ticket.getStoreId()); + pay.setStoreNo(ticket.getStoreNo()); + pay.setStoreName(ticket.getStoreName()); + pay.setDescription("要货单扣款"); + pay.setType(2);//0未支付1部分支付2已支付3部分退款4全额退款5已结算 + pay.setMoney(ticket.getTotalMoney()); + pay.setCreateDate(new Date()); + pay.setCreateUser(userName); + askGoodsTicketPayDao.save(tenantId,pay); + + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(4);//要货扣款; + detail.setBusNo(ticket.getNo()); + detail.setPayType("3"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(money.doubleValue()); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(userName); + detail.setDescription("总部审核要货单扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(userName); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + }else{ + i = 1; + } + }else{ + i = 4;//门店余额为冻结状态; + } + }else{ + if(CollectionUtils.isNotEmpty(plans)){ + if(account == null){ + Store store = storeDao.get(tenantId,ticket.getStoreId()); + StoreAccount storeAccount = new StoreAccount(); + storeAccount.setNo(tenantId+store.getNo()); + storeAccount.setStoreId(store.getId()); + storeAccount.setStoreNo(store.getNo()); + storeAccount.setStatus(1); + storeAccount.setPayPwd(null); + storeAccount.setDescription(null); + storeAccount.setAmount(0D); + storeAccount.setFreezeAmount(0D); + storeAccount.setCreateDate(new Date()); + storeAccount.setCreateUser(userName); + storeAccount.setTenantId(tenantId); + account = storeAccountDao.save(tenantId,storeAccount); + } + if(account.getStatus() == 1){ + DispatchSettlePlan plan = plans.get(0); + if(plan.getBalanceMode() == 1){ + BigDecimal money = null; + //扣款金额取要配送单金额; + money = new BigDecimal(totalMoney); + BigDecimal afterMoney = new BigDecimal(account.getAmount()).subtract(money); + if(!"771126".equals(tenantId)){ + if(plan.getCreditType() == 0){//不允许赊账 + BigDecimal finalMoney = afterMoney.subtract(new BigDecimal(account.getFreezeAmount() == null ? 0.00 : account.getFreezeAmount())).subtract(new BigDecimal(plan.getAdvanceValue() == null ? 0.00 : plan.getAdvanceValue())); + if(!MathUtil.gte(finalMoney,BigDecimal.ZERO)){ + i = 6; + return i; + } + } + } + + account.setAmount(afterMoney.doubleValue()); + account.setModifyUser(userName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + + ticket.setPayStatus(2); + ticket.setModifyDate(new Date()); + ticket.setModifyUser(userName); + askGoodsTicketDao.update(tenantId,ticket); + + AskGoodsTicketPay pay = new AskGoodsTicketPay(); + pay.setTenantId(tenantId); + pay.setTicketId(ticket.getId()); + pay.setTicketNo(ticket.getNo()); + pay.setStoreId(ticket.getStoreId()); + pay.setStoreNo(ticket.getStoreNo()); + pay.setStoreName(ticket.getStoreName()); + pay.setDescription("要货单扣款"); + pay.setType(2);//0未支付1部分支付2已支付3部分退款4全额退款5已结算 + pay.setMoney(ticket.getTotalMoney()); + pay.setCreateDate(new Date()); + pay.setCreateUser(userName); + askGoodsTicketPayDao.save(tenantId,pay); + + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(4);//要货扣款; + detail.setBusNo(ticket.getNo()); + detail.setPayType("3"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(money.doubleValue()); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(userName); + detail.setDescription("总部审核要货单扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(userName); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + }else{ + i = 1; + } + }else{ + i = 4;//门店余额为冻结状态; + } + }else{ + i = 1;//没有结算方案; + } + } + + + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveCutPaymentByDispatchTicketAudit(String tenantId, String ticketId, String currentUserName) throws Exception { + Integer i = 0; + try{ + //根据配送单查找门店; + DispatchTicket ticket = dispatchTicketDao.get(tenantId,ticketId); + + List plans = dispatchSettlePlanDao.getListByStoreId(tenantId,ticket.getStoreId(),new Criteria()); + if(CollectionUtils.isNotEmpty(plans)){ + StoreAccount account = storeAccountDao.find(tenantId,"storeId",ticket.getStoreId()); + if(account == null){ + Store store = storeDao.get(tenantId,ticket.getStoreId()); + StoreAccount storeAccount = new StoreAccount(); + storeAccount.setNo(tenantId+store.getNo()); + storeAccount.setStoreId(store.getId()); + storeAccount.setStoreNo(store.getNo()); + storeAccount.setStatus(1); + storeAccount.setPayPwd(null); + storeAccount.setDescription(null); + storeAccount.setAmount(0D); + storeAccount.setFreezeAmount(0D); + storeAccount.setCreateDate(new Date()); + storeAccount.setCreateUser(currentUserName); + storeAccount.setTenantId(tenantId); + account = storeAccountDao.save(tenantId,storeAccount); + } + if(account.getStatus() == 1){ + DispatchSettlePlan plan = plans.get(0); + if(plan.getBalanceMode() == 1){ + BigDecimal money =new BigDecimal(ticket.getMoney()); + //查看配送单是否是要货单转成,扣款金额取要货单金额,否则是配送单金额; + AskGoodsTicket askGoodsTicket = null; + if(StringUtils.isNotEmpty(ticket.getAskgoodsId())){ + askGoodsTicket = askGoodsTicketDao.get(tenantId,ticket.getAskgoodsId()); + if(askGoodsTicket.getPayStatus() == 2 ){ + return 1; + } + //南宁需求,门店要货,门店审核后要货款冻结; + if(StringUtils.startsWith(tenantId,"77") && 6 == askGoodsTicket.getPayStatus()){ + account.setFreezeAmount(account.getFreezeAmount() - askGoodsTicket.getTotalMoney()); + } + //money = new BigDecimal(askGoodsTicket.getTotalMoney()); + } + BigDecimal afterMoney = new BigDecimal(account.getAmount()).subtract(money); + if(!"771126".equals(tenantId)){ + if(plan.getCreditType() == 0){//不允许赊账 + BigDecimal finalMoney = afterMoney.subtract(new BigDecimal(account.getFreezeAmount() == null ? 0.00 : account.getFreezeAmount())).subtract(new BigDecimal(plan.getAdvanceValue() == null ? 0.00 : plan.getAdvanceValue())); + if(!MathUtil.gte(finalMoney,BigDecimal.ZERO)){ + i = 6; + return i; + } + } + } + + account.setAmount(afterMoney.doubleValue()); + account.setModifyUser(currentUserName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + if(askGoodsTicket != null){ + askGoodsTicket.setPayStatus(2); + askGoodsTicket.setModifyDate(new Date()); + askGoodsTicket.setModifyUser(currentUserName); + askGoodsTicketDao.update(tenantId,askGoodsTicket); + + AskGoodsTicketPay pay = new AskGoodsTicketPay(); + pay.setTenantId(tenantId); + pay.setTicketId(askGoodsTicket.getId()); + pay.setTicketNo(askGoodsTicket.getNo()); + pay.setStoreId(askGoodsTicket.getStoreId()); + pay.setStoreNo(askGoodsTicket.getStoreNo()); + pay.setStoreName(askGoodsTicket.getStoreName()); + pay.setDescription("要货单扣款"); + pay.setType(2);//0未支付1部分支付2已支付3部分退款4全额退款5已结算 + pay.setMoney(ticket.getMoney()); + pay.setCreateDate(new Date()); + pay.setCreateUser(currentUserName); + askGoodsTicketPayDao.save(tenantId,pay); + + } + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(4);//要货扣款; + detail.setBusNo(ticket.getNo()); + detail.setPayType("3"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(money.doubleValue()); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(currentUserName); + detail.setDescription("总部审核配送单扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(currentUserName); + storeAccountDetailDao.save(tenantId,detail); + i = 1; + }else{ + i = 1; + } + }else{ + i = 4;//门店余额为冻结状态; + } + + }else{ + i = 1;//没有结算方案; + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveFreezeAskGoodsTicketMoney(String tenantId, String askGoodTicketId) throws Exception { + Integer i = 0; + try{ + AskGoodsTicket ticket = askGoodsTicketDao.get(tenantId,askGoodTicketId); + List plans = dispatchSettlePlanDao.getListByStoreId(tenantId,ticket.getStoreId(),new Criteria()); + if(CollectionUtils.isEmpty(plans)){ + return 1; + } + if(plans.get(0).getBalanceMode() == 0){ + return 1; + } + + + if(ticket.getPayStatus() == 0){ + ticket.setPayStatus(6); + + AskGoodsTicketPay pay = new AskGoodsTicketPay(); + pay.setTenantId(tenantId); + pay.setTicketId(ticket.getId()); + pay.setTicketNo(ticket.getNo()); + pay.setStoreId(ticket.getStoreId()); + pay.setStoreNo(ticket.getStoreNo()); + pay.setStoreName(ticket.getStoreName()); + pay.setDescription("要货单总金额冻结"); + pay.setType(6);//0未支付1部分支付2已支付3部分退款4全额退款5已结算6冻结要货款 + pay.setMoney(ticket.getTotalMoney()); + pay.setCreateDate(new Date()); + pay.setCreateUser(ticket.getCheckMan()); + + StoreAccount account = storeAccountDao.find(tenantId,"storeId",ticket.getStoreId()); + if(account == null){ + Store store = storeDao.get(tenantId,ticket.getStoreId()); + StoreAccount storeAccount = new StoreAccount(); + storeAccount.setNo(tenantId+store.getNo()); + storeAccount.setStoreId(store.getId()); + storeAccount.setStoreNo(store.getNo()); + storeAccount.setStatus(1); + storeAccount.setPayPwd(null); + storeAccount.setDescription(null); + storeAccount.setAmount(0D); + storeAccount.setFreezeAmount(0D); + storeAccount.setCreateDate(new Date()); + storeAccount.setCreateUser(ticket.getCheckMan()); + storeAccount.setTenantId(tenantId); + account = storeAccountDao.save(tenantId,storeAccount); + } + if(account.getStatus() != 1){ + i = 3; //账户冻结; + return i; + } + Double money = ticket.getTotalMoney(); + account.setFreezeAmount(money+account.getFreezeAmount()); + account.setModifyDate(new Date()); + account.setModifyUser(ticket.getCheckMan()); + + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(10);//冻结要货款;StoreAccountBusType.FREEZEASKGOODSMONEY.getSign(); + detail.setBusNo(ticket.getNo()); + detail.setPayType("3"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(money); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(ticket.getCheckMan()); + detail.setDescription("门店审核要货单后,冻结要货款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(ticket.getCheckMan()); + + storeAccountDetailDao.save(tenantId,detail); + storeAccountDao.update(tenantId,account); + askGoodsTicketDao.update(tenantId,ticket); + askGoodsTicketPayDao.save(tenantId,pay); + i = 1; + }else{ + i = 2;//只有未支付单据,才能冻结货款; + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveFreezeAskGoodsTicketMoneyByAntiAudit(String tenantId, String askGoodTicketId,String operator) throws Exception { + Integer i = 0; + try{ + AskGoodsTicket ticket = askGoodsTicketDao.get(tenantId,askGoodTicketId); + List plans = dispatchSettlePlanDao.getListByStoreId(tenantId,ticket.getStoreId(),new Criteria()); + if(CollectionUtils.isEmpty(plans)){ + return 1; + } + if(plans.get(0).getBalanceMode() == 0){ + return 1; + } + if(ticket.getPayStatus() == 6){ + ticket.setPayStatus(0); + + AskGoodsTicketPay pay = new AskGoodsTicketPay(); + pay.setTenantId(tenantId); + pay.setTicketId(ticket.getId()); + pay.setTicketNo(ticket.getNo()); + pay.setStoreId(ticket.getStoreId()); + pay.setStoreNo(ticket.getStoreNo()); + pay.setStoreName(ticket.getStoreName()); + pay.setDescription("门店反审核,要货单总金额解冻"); + pay.setType(7);//0未支付1部分支付2已支付3部分退款4全额退款5已结算6冻结要货款7解冻要货款 + pay.setMoney(ticket.getTotalMoney()); + pay.setCreateDate(new Date()); + pay.setCreateUser(operator); + + StoreAccount account = storeAccountDao.find(tenantId,"storeId",ticket.getStoreId()); + if(account.getStatus() != 1){ + i = 3; //账户冻结; + return i; + } + Double money = ticket.getTotalMoney(); + account.setFreezeAmount(account.getFreezeAmount()-money); + account.setModifyDate(new Date()); + account.setModifyUser(operator); + + //增加明细; + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(1); + detail.setBusType(11);//冻结要货款;StoreAccountBusType.UNFREEZEASKGOODSMONEY.getSign(); + detail.setBusNo(ticket.getNo()); + detail.setPayType("4"); + detail.setBusTime(new Date()); + detail.setStatus(1); + detail.setAmount(money); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(ticket.getCheckMan()); + detail.setDescription("门店反审核,要货单总金额解冻"); + detail.setCreateDate(new Date()); + detail.setCreateUser(operator); + + storeAccountDetailDao.save(tenantId,detail); + storeAccountDao.update(tenantId,account); + askGoodsTicketPayDao.save(tenantId,pay); + askGoodsTicketDao.update(tenantId,ticket); + i = 1; + }else{ + i = 2;//只有要货款冻结单据,才能解冻; + } + }catch (Exception e){ + throw e; + } + return i; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAreaServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAreaServiceImpl.java new file mode 100644 index 0000000..48345fe --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreAreaServiceImpl.java @@ -0,0 +1,62 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreAreaDao; +import com.jwsaas.entity.food.StoreArea; +import com.jwsaas.service.food.StoreAreaService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreAreaServiceImpl") +public class StoreAreaServiceImpl extends BaseServiceImpl implements StoreAreaService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAreaDaoImpl") + private StoreAreaDao storeAreaDao; + + @Override + public BaseDao getBaseDao() { + return this.storeAreaDao; + } + + @Override + public StoreArea save(String tenantId, StoreArea entity) throws Exception { + try { + StoreArea storeArea = this.storeAreaDao.save(tenantId, entity); + + StoreArea parent = null; + if (StringUtils.isNotBlank(entity.getParentId())) { + parent = this.storeAreaDao.get(tenantId, entity.getParentId()); + } + + StoreArea updateObj = new StoreArea(); + updateObj.setId(storeArea.getId()); + String path = storeArea.getId(); + + if (parent != null) { + path = parent.getPath() + Constants.PATH_SEPARATOR + storeArea.getId(); + } + updateObj.setPath(path); + this.storeAreaDao.update(tenantId, updateObj); + + storeArea.setPath(path); + return storeArea; + } catch (Exception e) { + throw e; + } + } + + @Override + public String selectMaxNo(String tenantId, String parentId) throws Exception { + try { + return this.storeAreaDao.selectMaxNo(tenantId, parentId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketCheckServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketCheckServiceImpl.java new file mode 100644 index 0000000..73e8b96 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketCheckServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreBusinessTicketCheckDao; +import com.jwsaas.entity.food.StoreBusinessTicketCheck; +import com.jwsaas.service.food.StoreBusinessTicketCheckService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreBusinessTicketCheckServiceImpl") +public class StoreBusinessTicketCheckServiceImpl extends BaseServiceImpl implements StoreBusinessTicketCheckService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreBusinessTicketCheckDaoImpl") + private StoreBusinessTicketCheckDao storeBusinessTicketCheckDao; + + @Override + public BaseDao getBaseDao() { + return this.storeBusinessTicketCheckDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketDeliveryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketDeliveryServiceImpl.java new file mode 100644 index 0000000..3c0b968 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketDeliveryServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreBusinessTicketDeliveryDao; +import com.jwsaas.entity.food.StoreBusinessTicketDelivery; +import com.jwsaas.service.food.StoreBusinessTicketDeliveryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketDeliveryServiceImpl") +public class StoreBusinessTicketDeliveryServiceImpl extends BaseServiceImpl implements StoreBusinessTicketDeliveryService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketDeliveryDaoImpl") + private StoreBusinessTicketDeliveryDao storeBusinessTicketDeliveryDao; + + @Override + public BaseDao getBaseDao() { + return this.storeBusinessTicketDeliveryDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketInfoServiceImpl.java new file mode 100644 index 0000000..749d071 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketInfoServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreBusinessTicketInfoDao; +import com.jwsaas.entity.food.StoreBusinessTicketInfo; +import com.jwsaas.service.food.StoreBusinessTicketInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreBusinessTicketInfoServiceImpl") +public class StoreBusinessTicketInfoServiceImpl extends BaseServiceImpl implements StoreBusinessTicketInfoService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreBusinessTicketInfoDaoImpl") + private StoreBusinessTicketInfoDao storeBusinessTicketInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.storeBusinessTicketInfoDao; + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storeBusinessTicketInfoDao.getListReportDataSummary(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketServiceImpl.java new file mode 100644 index 0000000..453bd7e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketServiceImpl.java @@ -0,0 +1,1332 @@ +package com.jwsaas.service.food.impl; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.codec.binary.StringUtils; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.dao.DuplicateKeyException; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; + +import com.jwsaas.dao.food.StoreBusinessTicketCheckDao; +import com.jwsaas.dao.food.StoreBusinessTicketDao; +import com.jwsaas.dao.food.StoreBusinessTicketDeliveryDao; +import com.jwsaas.dao.food.StoreBusinessTicketInfoDao; +import com.jwsaas.dao.food.StoreBusinessTicketTableDao; +import com.jwsaas.dao.food.StoreDeliveryOrderDao; +import com.jwsaas.dao.food.StoreDeliveryOrderItemDao; +import com.jwsaas.dao.food.StoreOrderProductDao; +import com.jwsaas.dao.food.StoreOrderProductInfoDao; +import com.jwsaas.dao.food.StoreOrderProductMakeDao; +import com.jwsaas.dao.food.StorePayDao; +import com.jwsaas.entity.food.BusinessOrderUpload; +import com.jwsaas.entity.food.StoreBusinessTicket; +import com.jwsaas.entity.food.StoreBusinessTicketCheck; +import com.jwsaas.entity.food.StoreBusinessTicketDelivery; +import com.jwsaas.entity.food.StoreBusinessTicketInfo; +import com.jwsaas.entity.food.StoreBusinessTicketTable; +import com.jwsaas.entity.food.StoreDeliveryOrder; +import com.jwsaas.entity.food.StoreOrderProduct; +import com.jwsaas.entity.food.StoreOrderProductInfo; +import com.jwsaas.entity.food.StoreOrderProductMake; +import com.jwsaas.entity.food.StorePay; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoreBusinessTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.util.JSONUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketServiceImpl") +public class StoreBusinessTicketServiceImpl extends BaseServiceImpl implements StoreBusinessTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketDaoImpl") + private StoreBusinessTicketDao storeBusinessTicketDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketInfoDaoImpl") + private StoreBusinessTicketInfoDao storeBusinessTicketInfoDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductDaoImpl") + private StoreOrderProductDao storeOrderProductDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductInfoDaoImpl") + private StoreOrderProductInfoDao storeOrderProductInfoDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductMakeDaoImpl") + private StoreOrderProductMakeDao storeOrderProductMakeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StorePayDaoImpl") + private StorePayDao storePayDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketDeliveryDaoImpl") + private StoreBusinessTicketDeliveryDao storeBusinessTicketDeliveryDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketCheckDaoImpl") + private StoreBusinessTicketCheckDao storeBusinessTicketCheckDao; + + @Resource + private com.jwsaas.cache.CacheService cacheService; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderDaoImpl") + private StoreDeliveryOrderDao storeDeliveryOrderDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderItemDaoImpl") + private StoreDeliveryOrderItemDao storeDeliveryOrderItemDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketTableDaoImpl") + private StoreBusinessTicketTableDao storeBusinessTicketTableDao; + + + @Override + public BaseDao getBaseDao() { + return this.storeBusinessTicketDao; + } + + /** + * 构建电话外卖缓存Key + */ + private String buildCacheKey4dhwm(String tenantId, String storeId, String ticketNo) { + return "busNo4dhwm:" + storeId + ticketNo; + } + + /** + * 获取电话外卖缓存数据 + */ + private Map getCache4dhwm(String tenantId, String storeId, String ticketNo) throws Exception { + Map cacheData = (Map) cacheService.get(tenantId, buildCacheKey4dhwm(tenantId, storeId, ticketNo)); + return cacheData; + } + + /** + * 设置电话外卖缓存数据 + */ + private void setCache4dhwm(String tenantId, String storeId, String ticketNo, Map dataMap) throws Exception { + cacheService.set(tenantId, buildCacheKey4dhwm(tenantId, storeId, ticketNo), dataMap, 172800);// 2天 + } + + @Override + public synchronized String saveBusinessTicket(String tenantId, BusinessOrderUpload ticket, Map extData) throws Exception { + try { + String ticketId = null; + StoreBusinessTicket bus = ticket.getTicket(); + List ticketInfos = ticket.getTicketInfos(); + List products = ticket.getProducts(); + List productInfos = ticket.getProductInfos(); + List makes = ticket.getMakes(); + List pays = ticket.getPays(); + List deliveryInfos = ticket.getDeliveryInfos(); + + Criteria criteria = null; + StoreDeliveryOrder deliveryOrder = null; + // 门店外送单 + // 营业模式,busMode,0 柜台-1 外带-2 电话外卖 3-餐桌4-美团外卖5-饿了么6-百度外卖7-微信点餐 + // 单据状态,status,0等待付款1已支付2已退单3已取消4已完成 + if (bus.getBusMode() == 2) { + Map cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + if (cacheData == null) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", bus.getStoreId())); + criteria.add(Restrictions.eq("no", bus.getNo())); + List deliveryOrderList = storeDeliveryOrderDao.getList(tenantId, criteria); + if (CollectionUtils.isNotEmpty(deliveryOrderList)) { + deliveryOrder = deliveryOrderList.get(0); + ticketId = deliveryOrder.getId(); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder.getNo()); + tempData.put("status", "" + deliveryOrder.getStatus()); + setCache4dhwm(tenantId, bus.getStoreId(), bus.getNo(), tempData); + } + // 再次获取缓存数据 + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + } + + // 第二次获取cacheData + if (cacheData == null) { + deliveryOrder = storeDeliveryOrderDao.saveExtend(tenantId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + ticketId = deliveryOrder.getId(); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder == null ? bus.getStoreId() : deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder == null ? bus.getNo() : deliveryOrder.getNo()); + tempData.put("status", deliveryOrder == null ? "" + bus.getStatus() : "" + deliveryOrder.getStatus()); + setCache4dhwm(tenantId, bus.getStoreId(), bus.getNo(), tempData); + } else { + ticketId = cacheData.get("ticketId"); + logger.debug("ticketId:" + ticketId); + logger.debug("equals:" + (StringUtils.equals(cacheData.get("status"), "" + bus.getStatus()))); + if (StringUtils.equals(cacheData.get("status"), "" + bus.getStatus())) { + return cacheData.get("ticketId"); + } else { + deliveryOrder = storeDeliveryOrderDao.updateExtend(tenantId, ticketId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + logger.debug("deliveryOrder:" + JSONUtil.toJSONString(deliveryOrder)); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder == null ? bus.getStoreId() : deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder == null ? bus.getNo() : deliveryOrder.getNo()); + tempData.put("status", deliveryOrder == null ? "" + bus.getStatus() : "" + deliveryOrder.getStatus()); + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + } + } + + // 第三次获取cacheData + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + + // 已交单的电话外卖单转成销售订单 + // 单据状态,status,0-等待付款;1-已支付;2-已退单;3-已取消;4-已完成; + if (bus.getStatus() == 0) { + return cacheData.get("ticketId"); + } else { + List ticketIdList = (List) extData.get("ticketIdList"); + if (CollectionUtils.isNotEmpty(ticketIdList)) { + for (String tempTicketId : ticketIdList) { + // 修改原单据信息为失效,一直执行失败.2017-12-25,确认是MyCat的问题,暂时没有找到解决办法,考虑在其它地方做处理 + /** + * ------ + * 由于ticketId是分库分表(分片)的依据,所以同一个事务中不能执行多个下面的update操作 + * ------ + **/ + // logger.debug("updateTicketToInvalid + // tempTicketId:" + tempTicketId); + // storeBusinessTicketDao.updateTicketToInvalid(tenantId, + // bus.getStoreId(), tempTicketId, bus.getNo(), + // false); + } + // 删除销售订单的缓存Key + cacheService.del(tenantId, "busNo:" + bus.getStoreId() + bus.getNo()); + } + } + } + + // 门店销售订单 + Object busTicketId = cacheService.get(tenantId, "busNo:" + bus.getStoreId() + bus.getNo()); + if (busTicketId == null) { + double productCount = 0.00; + for (StoreOrderProduct product : products) { + productCount += (product.getCount() - product.getRcount()); + } + bus.setExt1(String.valueOf(productCount)); + // 未上传过 + bus = storeBusinessTicketDao.save(tenantId, bus, false); + ticketId = bus.getId(); + + if (CollectionUtils.isNotEmpty(ticketInfos)) { + for (StoreBusinessTicketInfo ticketInfo : ticketInfos) { + ticketInfo.setTicketId(ticketId); + storeBusinessTicketInfoDao.save(tenantId, ticketInfo, false); + } + } + if (CollectionUtils.isNotEmpty(products)) { + for (StoreOrderProduct product : products) { + product.setTicketId(ticketId); + storeOrderProductDao.save(tenantId, product, false); + } + } + if (CollectionUtils.isNotEmpty(productInfos)) { + for (StoreOrderProductInfo info : productInfos) { + info.setTicketId(ticketId); + storeOrderProductInfoDao.save(tenantId, info, false); + } + } + if (CollectionUtils.isNotEmpty(makes)) { + for (StoreOrderProductMake make : makes) { + make.setTicketId(ticketId); + storeOrderProductMakeDao.save(tenantId, make, false); + } + } + if (CollectionUtils.isNotEmpty(pays)) { + for (StorePay pay : pays) { + pay.setTicketId(ticketId); + storePayDao.save(tenantId, pay, false); + } + } + /** ------2017-12-23 外送信息------ **/ + if (CollectionUtils.isNotEmpty(deliveryInfos)) { + for (StoreBusinessTicketDelivery delivery : deliveryInfos) { + delivery.setTicketId(ticketId); + storeBusinessTicketDeliveryDao.save(tenantId, delivery, false); + } + } +// /** +// * 处理耗料问题 +// */ +// boolean enableZdhl = validEnableZdhl(tenantId); +// StockReduce(enableZdhl, tenantId, bus, products, makes); + + cacheService.set(tenantId, "busNo:" + bus.getStoreId() + bus.getNo(), ticketId, 172800); + return ticketId; + } else { + return busTicketId.toString(); + } + } catch (Exception e) { + try { + StoreBusinessTicket bus = ticket.getTicket(); + cacheService.del(tenantId, "busNo:" + bus.getStoreId() + bus.getNo()); + cacheService.del(tenantId, buildCacheKey4dhwm(tenantId, bus.getStoreId(), bus.getNo()));// 电话外卖的缓存 + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + } + +// /** +// * 验证是否启用自动耗料 +// */ +// private boolean validEnableZdhl(String tenantId) { +// String info = "验证[" + tenantId + "]是否启用自动耗料"; +// logger.debug(">>>>>>>" + info + "。。。"); +// boolean result = false; +// try { +// // 可引入缓存,验证结果放入缓存10分钟后失效 +// Criteria criteria = new Criteria(); +// criteria.add(Restrictions.eq("ticketSign", "storeStock")); +// List settinglist = ticketPrintSettingDao.getList(tenantId, criteria,false); +// Map settingMap = new HashMap<>(); +// for (TicketPrintSetting setting : settinglist) { +// settingMap.put(setting.getKey(), setting); +// } +// result = settingMap.get("zdhl") != null && "1".equals(settingMap.get("zdhl").getValue()); +// } catch (Exception ex) { +// logger.error(info + "时,发生异常", ex); +// } +// logger.debug(">>>>>>>" + info + "。。。result:" + result); +// return result; +// } +// +// private void StockReduce(boolean enableZdhl,String tenantId ,StoreBusinessTicket ticket,List ticketItemList,List ticketItemMakeList){ +// +// if (!enableZdhl) { +// logger.debug("未启用自动耗料:[" + tenantId + "]"); +// return; +// } +// logger.debug("自动耗料[" + tenantId + "," + ticket.getId() + "] Start..."); +// // 查询订单信息,合并商品信息,做法信息 +// // 查询门店仓库 +// String storeId = ticket.getStoreId(); +// List storeStorageList = storeStorageDao.getListByStoreId(tenantId, storeId); +// if (CollectionUtils.isEmpty(storeStorageList)) { +// logger.debug("销售订单所属门店没有仓库信息:[" + tenantId + "," + ticket.getId() + "," + storeId + "]"); +// return; +// } +// // 出库仓库 +// StoreStorage storeStorage = storeStorageList.get(0); +// logger.debug("ticketItemList:{}", ticketItemList); +// logger.debug("ticketItemMakeList:{}", ticketItemMakeList); +// // 合并商品信息 +// logger.debug("自动耗料[" + tenantId + "," + ticket.getId() + "] 合并商品信息..."); +// List productIdList = new ArrayList(); +// List specIdList = new ArrayList(); +// for (StoreOrderProduct ticketItem : ticketItemList) { +// if (!productIdList.contains(ticketItem.getProductId())) { +// productIdList.add(ticketItem.getProductId()); +// } +// +// if (!specIdList.contains(ticketItem.getSpecId())) { +// specIdList.add(ticketItem.getSpecId()); +// } +// } +// logger.debug("productIdList:{}", productIdList); +// logger.debug("specIdList:{}", specIdList); +// +// // 合并做法信息 +// logger.debug("自动耗料[" + tenantId + "," + ticket.getId() + "] 合并做法信息..."); +// List makeIdList = new ArrayList(); +// for (StoreOrderProductMake itemMake : ticketItemMakeList) { +// if (!makeIdList.contains(itemMake.getMakeId())) { +// makeIdList.add(itemMake.getMakeId()); +// } +// } +// logger.debug("makeIdList:{}", makeIdList); +// +// // 查询产品配料 +// List productBurdenList = new ArrayList<>(); +// if (CollectionUtils.isNotEmpty(specIdList)) { +// Criteria criteria = new Criteria(); +// criteria.add(Restrictions.in("specId", specIdList)); +// productBurdenList = productBurdenDao.getList(tenantId, criteria); +// } +// logger.debug("productBurdenList:{}", productBurdenList); +// +// // 查询做法配料 +// List makeBurdenList = new ArrayList<>(); +// if (CollectionUtils.isNotEmpty(makeIdList)) { +// Criteria criteria = new Criteria(); +// criteria.add(Restrictions.in("makeId", makeIdList)); +// makeBurdenList = makeBurdenDao.getList(tenantId, criteria); +// } +// logger.debug("makeBurdenList:{}", makeBurdenList); +// +// // 合并所有ProductId并查找出所有需要管理库存的产品 +// List allProductIdList = new ArrayList<>(); +// allProductIdList.addAll(productIdList); +// +// // 产品配料 +// for (ProductBurden productBurden : productBurdenList) { +// if (!allProductIdList.contains(productBurden.getBurdenProductId())) { +// allProductIdList.add(productBurden.getBurdenProductId()); +// } +// } +// +// // 做法配料 +// for (MakeBurden makeBurden : makeBurdenList) { +// if (!allProductIdList.contains(makeBurden.getBurdenProductId())) { +// allProductIdList.add(makeBurden.getBurdenProductId()); +// } +// } +// +// // 查询出所有需要管理库存的产品 +// List stockProductList = new ArrayList<>(); +// if (CollectionUtils.isNotEmpty(allProductIdList)) { +// Criteria criteria = new Criteria(); +// criteria.add(Restrictions.in("id", allProductIdList)); +// criteria.add(Restrictions.eq("stockFlag", 1));// 管理库存,stockFlag,0-否;1-是; +// stockProductList = productDao.getList(tenantId, criteria); +// } +// logger.debug("stockProductList:{}", stockProductList); +// +// List stockProductIdList = new ArrayList<>(); +// for(Product stockProduct : stockProductList){ +// stockProductIdList.add(stockProduct.getId()); +// } +// logger.debug("stockProductIdList:{}", stockProductIdList); +// +// if (CollectionUtils.isEmpty(stockProductIdList)) { +// logger.debug("销售订单中没有需要管理库存的商品:[" + tenantId + "," + ticket.getId() + "]"); +// return; +// } +// +// // 扣减库存 +// logger.debug("自动耗料[" + tenantId + "," + ticket.getId() + "] 扣减库存..."); +// try { +// logger.debug("门店销售订单自动耗料处理...Start..."); +// // 门店销售订单,自动耗料(自动扣减库存) +// // 门店销售单(单据状态,status,0-等待付款;1-已支付;2-已退单;3-已取消;4-已完成;) +// storeId = ticket.getStoreId(); +// // String ticketId = ticket.getId(); +// String ticketNo = ticket.getNo(); +// +// // 需要管理库存的产品ID +// stockProductIdList = new ArrayList<>(); +// Map stockProductMap = new HashMap<>(); +// +// for(Product stockProduct : stockProductList){ +// stockProductIdList.add(stockProduct.getId()); +// stockProductMap.put(stockProduct.getId(), stockProduct); +// } +// +// logger.debug("stockProductList:{}", stockProductList); +// logger.debug("stockProductIdList:{}", stockProductIdList); +// +// // 获取规格商品的基础信息,主要是价格(成本价等) +// Criteria criteria = new Criteria(); +// criteria.add(Restrictions.in("productId", stockProductIdList)); +// List stockSpecList = productSpecDao.getList(tenantId, criteria, false); +// Map stockSpecMap = new HashMap<>(); +// stockSpecList.forEach(stockSpec -> { +// stockSpecMap.put(stockSpec.getId(), stockSpec); +// }); +// logger.debug("stockSpecMap:{}", stockSpecMap); +// +// // 产品配料 +// logger.debug("productBurdenList:{}", productBurdenList); +// Map> productBurdenMap = new HashMap<>(); +// for (ProductBurden productBurden : productBurdenList) { +// List burdenList = productBurdenMap.get(productBurden.getSpecId()); +// if (burdenList == null) { +// burdenList = new ArrayList<>(); +// productBurdenMap.put(productBurden.getSpecId(), burdenList); +// } +// +// if (stockProductIdList.contains(productBurden.getBurdenProductId())) { +// burdenList.add(productBurden); +// } +// } +// logger.debug("productBurdenMap:{}", productBurdenMap); +// +// // 做法配料 +// logger.debug("makeBurdenList:{}", makeBurdenList); +// Map> makeBurdenMap = new HashMap<>(); +// for (MakeBurden makeBurden : makeBurdenList) { +// List burdenList = makeBurdenMap.get(makeBurden.getMakeId()); +// if (burdenList == null) { +// burdenList = new ArrayList<>(); +// makeBurdenMap.put(makeBurden.getMakeId(), burdenList); +// } +// +// if (stockProductIdList.contains(makeBurden.getBurdenProductId())) { +// burdenList.add(makeBurden); +// } +// } +// logger.debug("makeBurdenMap:{}", makeBurdenMap); +// +// // 计算每个商品的销售数量 +// Map> skuDataMap = new HashMap<>(); +// // 销售订单明细 +// for (StoreOrderProduct ticketItem : ticketItemList) { +// logger.debug("ticketItem:{}", ticketItem); +// if (stockProductIdList.contains(ticketItem.getProductId())) { +// Map skuData = skuDataMap.get(ticketItem.getSpecId()); +// if (skuData == null) { +// skuData = new HashMap<>(); +// skuData.put("productId", ticketItem.getProductId()); +// skuData.put("quantity", BigDecimal.ZERO); +// skuData.put("amount", BigDecimal.ZERO); +// skuDataMap.put(ticketItem.getSpecId(), skuData); +// } +// BigDecimal quantity = MathUtil.add((BigDecimal) skuData.get("quantity"), MathUtil.subtract(new BigDecimal(ticketItem.getCount()), new BigDecimal(ticketItem.getRcount()))); +// +// // BigDecimal price = +// // stockSpecMap.get(ticketItem.getSpecId()).getCostPrice() +// // == null ? BigDecimal.ZERO : new +// // BigDecimal(stockSpecMap.get(ticketItem.getSpecId()).getCostPrice()); +// // BigDecimal amount = MathUtil.add((BigDecimal) +// // skuData.get("amount"), MathUtil.multiply(quantity, price, +// // 4, BigDecimal.ROUND_HALF_UP)); +// BigDecimal amount = MathUtil.add((BigDecimal) skuData.get("amount"), new BigDecimal(ticketItem.getReceivableTotal())); +// skuData.put("quantity", quantity); +// skuData.put("amount", amount); +// } +// +// // 产品配料 +// List burdenList = productBurdenMap.get(ticketItem.getSpecId()); +// if (burdenList != null) { +// for (ProductBurden burden : burdenList) { +// if (stockProductIdList.contains(burden.getBurdenProductId())) { +// Map skuData = skuDataMap.get(burden.getBurdenSpecId()); +// if (skuData == null) { +// skuData = new HashMap<>(); +// skuData.put("productId", burden.getBurdenProductId()); +// skuData.put("quantity", BigDecimal.ZERO); +// skuData.put("amount", BigDecimal.ZERO); +// skuDataMap.put(burden.getBurdenSpecId(), skuData); +// } +// +// BigDecimal quantity = MathUtil.add((BigDecimal) skuData.get("quantity"), MathUtil.multiply(new BigDecimal(burden.getSalesAmount()), MathUtil.subtract(new BigDecimal(ticketItem.getCount()), new BigDecimal(ticketItem.getRcount())))); +// BigDecimal price = stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice() == null ? BigDecimal.ZERO : new BigDecimal(stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice()); +// BigDecimal amount = MathUtil.add((BigDecimal) skuData.get("amount"), MathUtil.multiply(quantity, price, 4, BigDecimal.ROUND_HALF_UP)); +// skuData.put("quantity", quantity); +// skuData.put("amount", amount); +// } +// } +// } +// +// } +// +// // 销售订单做法信息,做法配料 +// for (StoreOrderProductMake itemMake : ticketItemMakeList) { +// logger.debug("itemMake:{}", itemMake); +// List burdenList = makeBurdenMap.get(itemMake.getMakeId()); +// if (burdenList != null) { +// for (MakeBurden burden : burdenList) { +// if (stockProductIdList.contains(burden.getBurdenProductId())) { +// Map skuData = skuDataMap.get(burden.getBurdenSpecId()); +// if (skuData == null) { +// skuData = new HashMap<>(); +// skuData.put("productId", burden.getBurdenProductId()); +// skuData.put("quantity", BigDecimal.ZERO); +// skuData.put("amount", BigDecimal.ZERO); +// skuDataMap.put(burden.getBurdenSpecId(), skuData); +// } +// +// BigDecimal quantity = MathUtil.add((BigDecimal) skuData.get("quantity"), MathUtil.multiply(new BigDecimal(burden.getSalesAmount()), MathUtil.subtract(new BigDecimal(itemMake.getCount()), new BigDecimal(itemMake.getRcount())))); +// BigDecimal price = stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice() == null ? BigDecimal.ZERO : new BigDecimal(stockSpecMap.get(burden.getBurdenSpecId()).getCostPrice()); +// BigDecimal amount = MathUtil.add((BigDecimal) skuData.get("amount"), MathUtil.multiply(quantity, price, 4, BigDecimal.ROUND_HALF_UP)); +// skuData.put("quantity", quantity); +// skuData.put("amount", amount); +// } +// } +// } +// } +// +// logger.debug("skuDataMap:{}", JSONUtil.toJSONString(skuDataMap)); +// +// // 商品单位 +// criteria = new Criteria(); +// List productUnitList = productUnitDao.getList(tenantId, criteria, false); +// Map productUnitMap = new HashMap<>(); +// for (ProductUnit productUnit : productUnitList) { +// productUnitMap.put(productUnit.getId(), productUnit); +// } +// +// // 销售订单,库存商品消耗量 +// // 销售数量到实际出库数量的处理 +// // 门店的库存单位是包装单位,总部的库存单位是配送单位 +// // 1-采购入库;2-配送入库;3-转仓库;4-销售出库; +// Integer ticketType = 4; +// String ticketTypeName = "销售出库"; +// String operator = "system"; +// +// Map skuData = null; +// String productId = null; +// BigDecimal quantity = null; +// BigDecimal price = null; +// BigDecimal money = null; +// List productRatioList = null; +// ProductRatio ratio = null; +// Product product = null; +// ProductSpec productSpec = null; +// for (String specId : skuDataMap.keySet()) { +// skuData = skuDataMap.get(specId); +// productId = skuData.get("productId").toString(); +// quantity = (BigDecimal) skuData.get("quantity"); +// money = (BigDecimal) skuData.get("amount"); +// price = MathUtil.divide(money, quantity, 4, BigDecimal.ROUND_HALF_UP); +// +// criteria = new Criteria(); +// criteria.add(Restrictions.eq("productId", productId)); +// productRatioList = productRatioDao.getList(tenantId, criteria, false); +// ratio = productRatioList.get(0); +// +// product = stockProductMap.get(productId); +// productSpec = stockSpecMap.get(specId); +// String key = tenantId + ":" + storeId + ":" + specId; +// RLock lock = redissonClient.getFairLock("lock:" + key); +// boolean res = false ; +// try { +// res = lock.tryLock(100, 20, TimeUnit.SECONDS); +// logger.error("RLock:"+key+"======>" + res); +// this.productStoreStockDao.stockOutUnBatch(tenantId, storeId, storeStorage.getId(), storeStorage.getName(), productId, product.getNo(), product.getName(), specId, productSpec.getName(), productSpec.getProductDescription(), ticketType, ticketTypeName, ticketNo, ratio.getSalesUnitId(), productUnitMap.get(ratio.getSalesUnitId()) == null ? null : productUnitMap.get(ratio.getSalesUnitId()).getName(), ratio.getPackUnitId(), productUnitMap.get(ratio.getPackUnitId()) == null ? null : productUnitMap.get(ratio.getPackUnitId()).getName(), price, quantity, money, operator, ratio, ratio.getDispatchUnitId(), productUnitMap.get(ratio.getDispatchUnitId()) == null ? null : productUnitMap.get(ratio.getDispatchUnitId()).getName(), productStoreStockLogDao); +// } catch (Exception e) { +// logger.error(e.getMessage()); +// } finally { +// if(res){ +// lock.unlock(); +// } +// } +// } +// +// // 记录耗料标识 +// StoreBusinessTicket updateTicket = new StoreBusinessTicket(); +// updateTicket.setId(ticket.getId()); +// updateTicket.setIsStockDeal(1); +// updateTicket.setModifyDate(new Date()); +// updateTicket.setModifyUser(operator); +// storeBusinessTicketDao.update(tenantId, updateTicket, false); +// for (StoreOrderProduct ticketItem : ticketItemList) { +// StoreOrderProduct updateItem = new StoreOrderProduct(); +// updateItem.setId(ticketItem.getId()); +// // 明细以TicketId分库,所以不允许修改 +// // Sharding column can't be updated +// // CY_STORE_ORDER_PRODUCT->TICKETID +// updateItem.setTicketId(ticketItem.getTicketId());// TicketId是分库的依据,不能为空,也不可以被修改 +// updateItem.setIsStockDeal(1); +// updateItem.setModifyDate(new Date()); +// updateItem.setModifyUser(operator); +// storeOrderProductDao.update(tenantId, updateItem, false);// 注意MyBatis映射文件的调整 +// } +// +// } catch (Exception e) { +// logger.error(e.getMessage()); +// } +// // End +// logger.debug("自动耗料[" + tenantId + "," + ticket.getId() + "] End..."); +// } + + @Override + public Integer updateTicketToInvalid(String tenantId, String storeId, String ticketId, String ticketNo) throws Exception { + try { + return storeBusinessTicketDao.updateTicketToInvalid(tenantId, storeId, ticketId, ticketNo); + } catch (Exception e) { + throw e; + } + } + + @Override + public synchronized String saveBusinessTicketExtend(String tenantId, BusinessOrderUpload ticket, Map extData) throws Exception { + try { + String ticketId = null; + StoreBusinessTicket bus = ticket.getTicket(); + List ticketInfos = ticket.getTicketInfos(); + List products = ticket.getProducts(); + List productInfos = ticket.getProductInfos(); + List makes = ticket.getMakes(); + List pays = ticket.getPays(); + List deliveryInfos = ticket.getDeliveryInfos(); + List tables = ticket.getTables(); + + Criteria criteria = null; + StoreDeliveryOrder deliveryOrder = null; + // 门店外送单 + // 营业模式,busMode,0 柜台-1 外带-2 电话外卖 3-餐桌4-美团外卖5-饿了么6-百度外卖7-微信点餐 + // 单据状态,status,0等待付款1已支付2已退单3已取消4已完成 + if (bus.getBusMode() == 2) { + Map cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + if (cacheData == null) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", bus.getStoreId())); + criteria.add(Restrictions.eq("no", bus.getNo())); + List deliveryOrderList = storeDeliveryOrderDao.getList(tenantId, criteria); + if (CollectionUtils.isNotEmpty(deliveryOrderList)) { + deliveryOrder = deliveryOrderList.get(0); + ticketId = deliveryOrder.getId(); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder.getNo()); + tempData.put("status", "" + deliveryOrder.getStatus()); + setCache4dhwm(tenantId, bus.getStoreId(), bus.getNo(), tempData); + } + // 再次获取缓存数据 + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + } + + // 第二次获取cacheData + if (cacheData == null) { + deliveryOrder = storeDeliveryOrderDao.saveExtend(tenantId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + ticketId = deliveryOrder.getId(); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder == null ? bus.getStoreId() : deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder == null ? bus.getNo() : deliveryOrder.getNo()); + tempData.put("status", deliveryOrder == null ? "" + bus.getStatus() : "" + deliveryOrder.getStatus()); + setCache4dhwm(tenantId, bus.getStoreId(), bus.getNo(), tempData); + } else { + ticketId = cacheData.get("ticketId"); + logger.debug("ticketId:" + ticketId); + logger.debug("equals:" + (StringUtils.equals(cacheData.get("status"), "" + bus.getStatus()))); + if (StringUtils.equals(cacheData.get("status"), "" + bus.getStatus())) { + return cacheData.get("ticketId"); + } else { + deliveryOrder = storeDeliveryOrderDao.updateExtend(tenantId, ticketId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + logger.debug("deliveryOrder:" + JSONUtil.toJSONString(deliveryOrder)); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder == null ? bus.getStoreId() : deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder == null ? bus.getNo() : deliveryOrder.getNo()); + tempData.put("status", deliveryOrder == null ? "" + bus.getStatus() : "" + deliveryOrder.getStatus()); + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + } + } + + // 第三次获取cacheData + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + + // 已交单的电话外卖单转成销售订单 + // 单据状态,status,0-等待付款;1-已支付;2-已退单;3-已取消;4-已完成; + if (bus.getStatus() == 0) { + return cacheData.get("ticketId"); + } else { + List ticketIdList = (List) extData.get("ticketIdList"); + if (CollectionUtils.isNotEmpty(ticketIdList)) { + for (String tempTicketId : ticketIdList) { + // 修改原单据信息为失效,一直执行失败.2017-12-25,确认是MyCat的问题,暂时没有找到解决办法,考虑在其它地方做处理 + /** + * ------ + * 由于ticketId是分库分表(分片)的依据,所以同一个事务中不能执行多个下面的update操作 + * ------ + **/ + // logger.debug("updateTicketToInvalid + // tempTicketId:" + tempTicketId); + // storeBusinessTicketDao.updateTicketToInvalid(tenantId, + // bus.getStoreId(), tempTicketId, bus.getNo(), + // false); + } + // 删除销售订单的缓存Key + cacheService.del(tenantId, "busNo:" + bus.getStoreId() + bus.getNo()); + } + } + } + + // 门店销售订单 + Object busTicketId = cacheService.get(tenantId, "busNo:" + bus.getStoreId() + bus.getNo()); + if (busTicketId == null) { + double productCount = 0.00; + for (StoreOrderProduct product : products) { + productCount += (product.getCount() - product.getRcount()); + } + bus.setExt1(String.valueOf(productCount)); + // 未上传过 + bus = storeBusinessTicketDao.save(tenantId, bus, false); + ticketId = bus.getId(); + + if (CollectionUtils.isNotEmpty(ticketInfos)) { + for (StoreBusinessTicketInfo ticketInfo : ticketInfos) { + ticketInfo.setTicketId(ticketId); + storeBusinessTicketInfoDao.save(tenantId, ticketInfo, false); + } + } + if (CollectionUtils.isNotEmpty(products)) { + for (StoreOrderProduct product : products) { + product.setTicketId(ticketId); + storeOrderProductDao.save(tenantId, product, false); + } + } + if (CollectionUtils.isNotEmpty(productInfos)) { + for (StoreOrderProductInfo info : productInfos) { + info.setTicketId(ticketId); + storeOrderProductInfoDao.save(tenantId, info, false); + } + } + if (CollectionUtils.isNotEmpty(makes)) { + for (StoreOrderProductMake make : makes) { + make.setTicketId(ticketId); + storeOrderProductMakeDao.save(tenantId, make, false); + } + } + if (CollectionUtils.isNotEmpty(pays)) { + for (StorePay pay : pays) { + pay.setTicketId(ticketId); + storePayDao.save(tenantId, pay, false); + } + } + /** ------2017-12-23 外送信息------ **/ + if (CollectionUtils.isNotEmpty(deliveryInfos)) { + for (StoreBusinessTicketDelivery delivery : deliveryInfos) { + delivery.setTicketId(ticketId); + storeBusinessTicketDeliveryDao.save(tenantId, delivery, false); + } + } + + /** ------2018-04-17 桌台信息------ **/ + if (CollectionUtils.isNotEmpty(tables)) { + for (StoreBusinessTicketTable table : tables) { + table.setTicketId(ticketId); + storeBusinessTicketTableDao.save(tenantId, table, false); + } + } + + /** + * 2018-10-08 处理耗料问题 + */ +// boolean enableZdhl = validEnableZdhl(tenantId); +// StockReduce(enableZdhl, tenantId, bus, products, makes); + + cacheService.set(tenantId, "busNo:" + bus.getStoreId() + bus.getNo(), ticketId, 172800); + return ticketId; + } else { + return busTicketId.toString(); + } + } catch (Exception e) { + try { + StoreBusinessTicket bus = ticket.getTicket(); + cacheService.del(tenantId, "busNo:" + bus.getStoreId() + bus.getNo()); + cacheService.del(tenantId, buildCacheKey4dhwm(tenantId, bus.getStoreId(), bus.getNo()));// 电话外卖的缓存 + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + } + + @Override + public List> getListBusinessMode(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListBusinessMode(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListSumByHour(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListSumByHour(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + /** + * 存储门店销售数据(加强版-不带锁)俩份中间件,synchronized作用有限,影响效率,去掉 + * 2019-11-11 12:29 + */ + @Override + //public synchronized StoreBusinessTicketCheck saveBusinessTicketPlus(String tenantId, BusinessOrderUpload ticket, Map extData) throws Exception { + public StoreBusinessTicketCheck saveBusinessTicketPlus(String tenantId, BusinessOrderUpload ticket, Map extData) throws Exception { + try { + String ticketId = null; + StoreBusinessTicket bus = ticket.getTicket(); + bus.setCreateDate(null); + List ticketInfos = ticket.getTicketInfos(); + List products = ticket.getProducts(); + List productInfos = ticket.getProductInfos(); + List makes = ticket.getMakes(); + List pays = ticket.getPays(); + List deliveryInfos = ticket.getDeliveryInfos(); + + Criteria criteria = null; + StoreDeliveryOrder deliveryOrder = null; + // 门店外送单 + // 营业模式,busMode,0 柜台-1 外带-2 电话外卖 3-餐桌4-美团外卖5-饿了么6-百度外卖7-微信点餐 + // 单据状态,status,0等待付款1已支付2已退单3已取消4已完成 + if (bus.getBusMode() == 2) { + Map cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + if (cacheData == null) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", bus.getStoreId())); + criteria.add(Restrictions.eq("no", bus.getNo())); + List deliveryOrderList = storeDeliveryOrderDao.getList(tenantId, criteria); + if (CollectionUtils.isNotEmpty(deliveryOrderList)) { + deliveryOrder = deliveryOrderList.get(0); + ticketId = deliveryOrder.getId(); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder.getNo()); + tempData.put("status", "" + deliveryOrder.getStatus()); + setCache4dhwm(tenantId, bus.getStoreId(), bus.getNo(), tempData); + } + // 再次获取缓存数据 + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + } + + // 第二次获取cacheData + if (cacheData == null) { + deliveryOrder = storeDeliveryOrderDao.saveExtend(tenantId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + ticketId = deliveryOrder.getId(); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder == null ? bus.getStoreId() : deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder == null ? bus.getNo() : deliveryOrder.getNo()); + tempData.put("status", deliveryOrder == null ? "" + bus.getStatus() : "" + deliveryOrder.getStatus()); + setCache4dhwm(tenantId, bus.getStoreId(), bus.getNo(), tempData); + } else { + ticketId = cacheData.get("ticketId"); + logger.debug("ticketId:" + ticketId); + logger.debug("equals:" + (StringUtils.equals(cacheData.get("status"), "" + bus.getStatus()))); + if (StringUtils.equals(cacheData.get("status"), "" + bus.getStatus())) { + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(cacheData.get("ticketId")); + return ticketCheck; + } else { + deliveryOrder = storeDeliveryOrderDao.updateExtend(tenantId, ticketId, bus, products, deliveryInfos, storeDeliveryOrderItemDao, false); + logger.debug("deliveryOrder:" + JSONUtil.toJSONString(deliveryOrder)); + Map tempData = new HashMap<>(); + tempData.put("ticketId", ticketId); + tempData.put("storeId", deliveryOrder == null ? bus.getStoreId() : deliveryOrder.getStoreId()); + tempData.put("no", deliveryOrder == null ? bus.getNo() : deliveryOrder.getNo()); + tempData.put("status", deliveryOrder == null ? "" + bus.getStatus() : "" + deliveryOrder.getStatus()); + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + } + } + + // 第三次获取cacheData + cacheData = getCache4dhwm(tenantId, bus.getStoreId(), bus.getNo()); + + // 已交单的电话外卖单转成销售订单 + // 单据状态,status,0-等待付款;1-已支付;2-已退单;3-已取消;4-已完成; + if (bus.getStatus() == 0) { + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(cacheData.get("ticketId")); + return ticketCheck; + } else { + List ticketIdList = (List) extData.get("ticketIdList"); + if (CollectionUtils.isNotEmpty(ticketIdList)) { + //for (String tempTicketId : ticketIdList) { + // 修改原单据信息为失效,一直执行失败.2017-12-25,确认是MyCat的问题,暂时没有找到解决办法,考虑在其它地方做处理 + /** + * ------ + * 由于ticketId是分库分表(分片)的依据,所以同一个事务中不能执行多个下面的update操作 + * ------ + **/ + // logger.debug("updateTicketToInvalid + // tempTicketId:" + tempTicketId); + // storeBusinessTicketDao.updateTicketToInvalid(tenantId, + // bus.getStoreId(), tempTicketId, bus.getNo(), + // false); + //} + // 删除销售订单的缓存Key + cacheService.del(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo()); + } + } + // 营业模式为2时候,缓存数据删掉,再次上传 + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", bus.getStoreId())); + criteria.add(Restrictions.eq("busNo", bus.getNo())); + storeBusinessTicketCheckDao.delete(tenantId, criteria, false); + } + // 门店销售订单 + Object keyDate = cacheService.get(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo()); + if (keyDate == null) { + // 如果key为空,第一步先记录缓存中 + Map busMap = new HashMap<>(); + busMap.put("status", "1"); + busMap.put("date", String.valueOf(new Date().getTime())); + busMap.put("ticketId", ""); + cacheService.set(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo(), busMap, 172800); + // 执行插入操作 + StoreBusinessTicketCheck storeBusinessTicketCheck = new StoreBusinessTicketCheck(); + storeBusinessTicketCheck.setTenantId(tenantId); + storeBusinessTicketCheck.setStoreId(bus.getStoreId()); + storeBusinessTicketCheck.setBusNo(bus.getNo()); + storeBusinessTicketCheck.setCreateUser(bus.getCreateUser()); + try{ + storeBusinessTicketCheckDao.save(tenantId, storeBusinessTicketCheck); + }catch (DuplicateKeyException exception){ + logger.error("saveBusinessTicketExtend 订单上传时,storeBusinessTicketCheckDao.save,发生异常", exception); + //2020-40-26 11:00 高峰时段可能查询时间过长,占用资源,改为只判断主单信息是否存在; +// Criteria criter = new Criteria(); +// criter.add(Restrictions.eq("storeId", bus.getStoreId())); +// criter.add(Restrictions.eq("busNo", bus.getNo())); +// List checkList = storeBusinessTicketCheckDao.getList(tenantId, criter, false); + + Criteria criter = new Criteria(); + criter.add(Restrictions.eq("storeId", bus.getStoreId())); + criter.add(Restrictions.eq("no", bus.getNo())); + List tickets = storeBusinessTicketDao.getList(tenantId, criter, false); + + if ( CollectionUtils.isNotEmpty(tickets)) { + // 已经上传过了 + busMap = new HashMap<>(); + busMap.put("status", "2"); + busMap.put("date", String.valueOf(new Date().getTime())); + busMap.put("ticketId", ticketId); + cacheService.set(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo(), busMap, 172800); + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketId); + return ticketCheck; + } + } + double productCount = 0.00; + for (StoreOrderProduct product : products) { + productCount += (product.getCount() - product.getRcount()); + } + bus.setExt1(String.valueOf(productCount)); + // 未上传过 + bus = storeBusinessTicketDao.save(tenantId, bus, false); + ticketId = bus.getId(); + + if (CollectionUtils.isNotEmpty(ticketInfos)) { + for (StoreBusinessTicketInfo ticketInfo : ticketInfos) { + ticketInfo.setTicketId(ticketId); + storeBusinessTicketInfoDao.save(tenantId, ticketInfo, false); + } + } + if (CollectionUtils.isNotEmpty(products)) { + for (StoreOrderProduct product : products) { + product.setTicketId(ticketId); + storeOrderProductDao.save(tenantId, product, false); + } + } + if (CollectionUtils.isNotEmpty(productInfos)) { + for (StoreOrderProductInfo info : productInfos) { + info.setTicketId(ticketId); + storeOrderProductInfoDao.save(tenantId, info, false); + } + } + if (CollectionUtils.isNotEmpty(makes)) { + for (StoreOrderProductMake make : makes) { + make.setTicketId(ticketId); + storeOrderProductMakeDao.save(tenantId, make, false); + } + } + if (CollectionUtils.isNotEmpty(pays)) { + for (StorePay pay : pays) { + pay.setTicketId(ticketId); + storePayDao.save(tenantId, pay, false); + } + } + if (CollectionUtils.isNotEmpty(deliveryInfos)) { + for (StoreBusinessTicketDelivery delivery : deliveryInfos) { + delivery.setTicketId(ticketId); + storeBusinessTicketDeliveryDao.save(tenantId, delivery, false); + } + } + busMap = new HashMap<>(); + busMap.put("status", "2"); + busMap.put("date", String.valueOf(new Date().getTime())); + busMap.put("ticketId", ticketId); + + /** + * 2018-10-08 处理耗料问题 + */ +// boolean enableZdhl = validEnableZdhl(tenantId); +// StockReduce(enableZdhl, tenantId, bus, products, makes); + + cacheService.set(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo(), busMap, 172800); + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketId); + return ticketCheck; + } else { + Map busMap = (Map) keyDate; + String statusKey = ""; + if(busMap.containsKey("status")&&busMap.get("status")!=null){ + statusKey = busMap.get("status").toString(); + }else{ + statusKey="3"; + } + String dateKey = ""; + if(busMap.containsKey("date")&&busMap.get("date")!=null){ + dateKey = busMap.get("date").toString(); + }else{ + dateKey=String.valueOf(new Date().getTime()); + } + String ticketIdKey = ""; + if(busMap.containsKey("ticketId")&&busMap.get("ticketId")!=null){ + ticketIdKey = busMap.get("ticketId").toString(); + }else{ + ticketIdKey=""; + } + if (busMap.containsKey("status") && "2".equals(statusKey)) { + // 已上传成功 + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketIdKey); + return ticketCheck; + } else if (busMap.containsKey("status") && "1".equals(statusKey) && (System.currentTimeMillis() - Long.parseLong(dateKey) < 5 * 60 * 1000)) { + // 等待入库状态小于5分钟,直接滤掉 + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("0"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(""); + return ticketCheck; + } else { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", bus.getStoreId())); + criteria.add(Restrictions.eq("busNo", bus.getNo())); + List checkList = storeBusinessTicketCheckDao.getList(tenantId, criteria, false); + if (checkList != null && checkList.size() > 0) { + // 已经上传过了 + busMap = new HashMap<>(); + busMap.put("status", "2"); + busMap.put("date", String.valueOf(new Date().getTime())); + busMap.put("ticketId", ticketId); + cacheService.set(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo(), busMap, 172800); + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketId); + return ticketCheck; + } else { + busMap = new HashMap<>(); + busMap.put("status", "1"); + busMap.put("date", String.valueOf(new Date().getTime())); + busMap.put("ticketId", ""); + cacheService.set(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo(), busMap, 172800); + // 执行插入操作 + StoreBusinessTicketCheck storeBusinessTicketCheck = new StoreBusinessTicketCheck(); + storeBusinessTicketCheck.setTenantId(tenantId); + storeBusinessTicketCheck.setStoreId(bus.getStoreId()); + storeBusinessTicketCheck.setBusNo(bus.getNo()); + storeBusinessTicketCheck.setCreateUser(bus.getCreateUser()); + storeBusinessTicketCheckDao.save(tenantId, storeBusinessTicketCheck); + double productCount = 0.00; + for (StoreOrderProduct product : products) { + productCount += (product.getCount() - product.getRcount()); + } + bus.setExt1(String.valueOf(productCount)); + // 未上传过 + bus = storeBusinessTicketDao.save(tenantId, bus, false); + ticketId = bus.getId(); + + if (CollectionUtils.isNotEmpty(ticketInfos)) { + for (StoreBusinessTicketInfo ticketInfo : ticketInfos) { + ticketInfo.setTicketId(ticketId); + storeBusinessTicketInfoDao.save(tenantId, ticketInfo, false); + } + } + if (CollectionUtils.isNotEmpty(products)) { + for (StoreOrderProduct product : products) { + product.setTicketId(ticketId); + storeOrderProductDao.save(tenantId, product, false); + } + } + if (CollectionUtils.isNotEmpty(productInfos)) { + for (StoreOrderProductInfo info : productInfos) { + info.setTicketId(ticketId); + storeOrderProductInfoDao.save(tenantId, info, false); + } + } + if (CollectionUtils.isNotEmpty(makes)) { + for (StoreOrderProductMake make : makes) { + make.setTicketId(ticketId); + storeOrderProductMakeDao.save(tenantId, make, false); + } + } + if (CollectionUtils.isNotEmpty(pays)) { + for (StorePay pay : pays) { + pay.setTicketId(ticketId); + storePayDao.save(tenantId, pay, false); + } + } + if (CollectionUtils.isNotEmpty(deliveryInfos)) { + for (StoreBusinessTicketDelivery delivery : deliveryInfos) { + delivery.setTicketId(ticketId); + storeBusinessTicketDeliveryDao.save(tenantId, delivery, false); + } + } + busMap = new HashMap<>(); + busMap.put("status", "2"); + busMap.put("date", String.valueOf(new Date().getTime())); + busMap.put("ticketId", ticketId); + /** + * 2018-10-08 处理耗料问题 + */ +// boolean enableZdhl = validEnableZdhl(tenantId); +// StockReduce(enableZdhl, tenantId, bus, products, makes); + + cacheService.set(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo(), busMap, 172800); + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketId); + return ticketCheck; + } + } + } + } catch (Exception e) { + logger.error("saveBusinessTicketExtend 订单上传时,发生异常", e); + try { + // 订单处理异常,直接更新上传状态为异常 + StoreBusinessTicket bus = ticket.getTicket(); + Map busMap = new HashMap<>(); + busMap.put("status", "3"); + busMap.put("date", String.valueOf(new Date().getTime())); + busMap.put("ticketId", ""); + cacheService.set(tenantId, "busNoPlus:" + bus.getStoreId() + bus.getNo(), busMap, 172800); + // 电话外卖的缓存 + cacheService.del(tenantId, buildCacheKey4dhwm(tenantId, bus.getStoreId(), bus.getNo())); + } catch (Exception ex) { + logger.error("saveBusinessTicketExtend 订单处理异常,直接更新上传状态为异常", e); + } + throw e; + } + } + + + @Override + public List getListByStoreGrossProfit(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListByStoreGrossProfit(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerByStoreGrossProfit(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storeBusinessTicketDao.getPagerByStoreGrossProfit(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListByExport(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerWithTicketRefused(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = storeBusinessTicketDao.getPagerWithTicketRefused(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListWithTicketRefused(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListWithTicketRefused(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithDiscountTotal(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListWithDiscountTotal(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByChargeBackSummary(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListByChargeBackSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListBySumChargeBack(String tenantId, Criteria criteria) throws Exception { + try { + return storeBusinessTicketDao.getListBySumChargeBack(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByAccountingSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storeBusinessTicketDao.getListByAccountingSummary(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListDataSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storeBusinessTicketDao.getListDataSummary(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListReportModeDataSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storeBusinessTicketDao.getListReportModeDataSummary(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListCashDataSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storeBusinessTicketDao.getListCashDataSummary(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListRankDataSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storeBusinessTicketDao.getListRankDataSummary(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketTableServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketTableServiceImpl.java new file mode 100644 index 0000000..22f898d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreBusinessTicketTableServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreBusinessTicketTableDao; +import com.jwsaas.entity.food.StoreBusinessTicketTable; +import com.jwsaas.service.food.StoreBusinessTicketTableService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketTableServiceImpl") +public class StoreBusinessTicketTableServiceImpl extends BaseServiceImpl implements StoreBusinessTicketTableService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreBusinessTicketTableDaoImpl") + private StoreBusinessTicketTableDao storeBusinessTicketTableDao; + + @Override + public BaseDao getBaseDao() { + return this.storeBusinessTicketTableDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostManageLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostManageLogServiceImpl.java new file mode 100644 index 0000000..0da5268 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostManageLogServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreCostManageLogDao; +import com.jwsaas.entity.food.StoreCostManageLog; +import com.jwsaas.service.food.StoreCostManageLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreCostManageLogServiceImpl") +public class StoreCostManageLogServiceImpl extends BaseServiceImpl implements StoreCostManageLogService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreCostManageLogDaoImpl") + private StoreCostManageLogDao storeCostManageLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeCostManageLogDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostManageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostManageServiceImpl.java new file mode 100644 index 0000000..0610682 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostManageServiceImpl.java @@ -0,0 +1,456 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.util.JSONUtil; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.service.food.StoreCostManageService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreCostManageServiceImpl") +public class StoreCostManageServiceImpl extends BaseServiceImpl implements StoreCostManageService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreCostManageDaoImpl") + private StoreCostManageDao storeCostManageDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreCostManageLogDaoImpl") + private StoreCostManageLogDao storeCostManageLogDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreAccountDaoImpl") + private StoreAccountDao storeAccountDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreAccountDetailDaoImpl") + private StoreAccountDetailDao storeAccountDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreFeeCutLogDaoImpl") + private StoreFeeCutLogDao storeFeeCutLogDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreDaoImpl") + private StoreDao storeDao; + + @Override + public BaseDao getBaseDao() { + return this.storeCostManageDao; + } + + @Override + public StoreCostManage saveCostAndStores(String tenantId, StoreCostManage manage, List stores) throws Exception { + try{ + manage = storeCostManageDao.save(tenantId,manage,true); + + String storeNos = null; + if(CollectionUtils.isNotEmpty(stores)){ + List costManages = new ArrayList<>(); + for(Store store : stores){ + StoreCostManage costManage = new StoreCostManage(); + costManage.setTenantId(tenantId); + costManage.setId(manage.getId()); + costManage.setStoreId(store.getId()); + costManage.setStoreNo(store.getNo()); + storeNos+=store.getNo()+","; + costManage.setStoreName(store.getName()); + costManages.add(costManage); + } + storeCostManageDao.saveStores(tenantId,costManages); + } + + StoreCostManageLog log = new StoreCostManageLog(); + log.setTenantId(tenantId); + log.setFeeId(manage.getId()); + log.setFeeName(manage.getName()); + log.setDescription("新增门店费用信息"); + log.setStoreNos(storeNos); + log.setCreateDate(new Date()); + log.setCreateUser(manage.getCreateUser()); + storeCostManageLogDao.save(tenantId,log,true); + + }catch (Exception e){ + throw e; + } + return manage; + } + + @Override + public List getStoreCostManageIdsByStoreId(String tenantId, String storeId) throws Exception { + try { + return storeCostManageDao.getStoreCostManageIdsByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getStoresByFeeId(String tenantId, String id) throws Exception { + try { + return storeCostManageDao.getStoresByFeeId(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateCostAndStores(String tenantId, StoreCostManage storeCostManage, List stores) throws Exception { + Integer i = 0; + try{ + StoreCostManage oldManange = storeCostManageDao.get(tenantId,storeCostManage.getId(),true); + List manangeStores = storeCostManageDao.getStoresByFeeId(tenantId,storeCostManage.getId(),true); + String oldStoreNos = null; + if(CollectionUtils.isNotEmpty(manangeStores)){ + for(StoreCostManage oStore : manangeStores){ + oldStoreNos += oStore.getStoreNo()+","; + } + } + storeCostManage.setBeforeMoney(oldManange.getBeforeMoney()); + storeCostManage.setBeforeCronTime(oldManange.getBeforeCronTime()); + storeCostManageDao.update(tenantId,storeCostManage,true); + storeCostManageDao.deleteStores(tenantId,storeCostManage.getId(),true); + + if(CollectionUtils.isNotEmpty(stores)){ + List costManages = new ArrayList<>(); + for(Store store : stores){ + StoreCostManage costManage = new StoreCostManage(); + costManage.setTenantId(tenantId); + costManage.setId(storeCostManage.getId()); + costManage.setStoreId(store.getId()); + costManage.setStoreNo(store.getNo()); + costManage.setStoreName(store.getName()); + costManages.add(costManage); + } + storeCostManageDao.saveStores(tenantId,costManages); + } + + StoreCostManageLog log = new StoreCostManageLog(); + log.setTenantId(tenantId); + log.setFeeId(storeCostManage.getId()); + log.setFeeName(storeCostManage.getName()); + log.setDescription("修改,旧信息:"+ JSONUtil.toJSONString(oldManange)); + log.setStoreNos("旧门店信息:"+oldStoreNos); + log.setCreateDate(new Date()); + log.setCreateUser(storeCostManage.getModifyUser()); + storeCostManageLogDao.save(tenantId,log,true); + + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public String saveCostChangeType(String tenantId, String id,String userName) throws Exception { + String i = "0"; + try{ + StoreCostManage manage = storeCostManageDao.get(tenantId,id,true); + if(manage.getFeeType() == 1){ + List costStores = storeCostManageDao.getStoresByFeeId(tenantId,id,true); + if(CollectionUtils.isNotEmpty(costStores)){ + List storeIds = new ArrayList<>(); + String storeNos = ""; + for(StoreCostManage costStore : costStores){ + storeIds.add(costStore.getStoreId()); + storeNos+=costStore.getStoreNo()+","; + } + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIds)); + List accounts = storeAccountDao.getList(tenantId,criteria,true); + List details = new ArrayList<>(); + List logs = new ArrayList<>(); + for(StoreAccount account : accounts){ + if(account.getStatus() == 2){ + return "4-"+account.getStoreId();//账户已冻结 + } + Double afterMoney = account.getAmount() - manage.getMoney(); + + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(9);// StoreAccountBusType 1-充值, 2-交班, 3-提现, 4-要货扣款, 5-配送验收差异退款, 6-账户调整扣款, 7-账户调整退款, 8-固定费用扣款, 9-变动费用扣款,99-其他; + detail.setBusTime(new Date()); + detail.setPayType("变动费用扣款"); + detail.setStatus(1); + detail.setAmount(manage.getMoney()); + detail.setAftAmount(afterMoney); + detail.setWorkerNo(userName); + detail.setDescription("变动费用扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(userName); + details.add(detail); + + StoreFeeCutLog log = new StoreFeeCutLog(); + log.setTenantId(tenantId); + log.setAccountId(account.getId()); + log.setStoreId(account.getStoreId()); + log.setStoreNo(account.getStoreNo()); + log.setFeeType(manage.getFeeType()); + log.setFeeName(manage.getName()); + log.setCutPaymentType(manage.getCutPaymentType()); + log.setAmount(manage.getMoney()); + log.setAftAmount(afterMoney); + log.setDescription("变动费用扣款"); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + logs.add(log); + + account.setAmount(afterMoney); + account.setModifyDate(new Date()); + account.setModifyUser(userName); + } + + StoreCostManageLog manageLog = new StoreCostManageLog(); + manageLog.setTenantId(tenantId); + manageLog.setFeeId(manage.getId()); + manageLog.setFeeName(manage.getName()); + manageLog.setStoreNos(storeNos); + manageLog.setDescription("变动费用扣款:"+manage.getMoney()); + manageLog.setCreateDate(new Date()); + manageLog.setCreateUser(userName); + + storeAccountDao.update(tenantId,accounts); + if(CollectionUtils.isNotEmpty(details)) { + storeAccountDetailDao.save(tenantId, details); + } + if(CollectionUtils.isNotEmpty(logs)) { + storeFeeCutLogDao.save(tenantId, logs); + } + storeCostManageLogDao.save(tenantId,manageLog,true); + i = "1"; + }else{ + i = "3";//没有关联门店; + } + }else{ + i = "2";//非变动费用; + } + + + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveTimeCost(String tenantId, String id, String currentUser) throws Exception { + Integer i = 0; + try{ + StoreCostManage cost = storeCostManageDao.get(tenantId,id,true); + if(cost != null && cost.getExeStatus() == 1){ + long currentTime = new Date().getTime(); + long startTime = cost.getStartTime().getTime(); + long endTime = cost.getEndTime().getTime(); + if(currentTime >= startTime && currentTime <= endTime){ + List stores = storeCostManageDao.getStoresByFeeId(tenantId,id,true); + if(CollectionUtils.isNotEmpty(stores)){ + List storeIds = new ArrayList<>(); + String storeNos = ""; + for(StoreCostManage costStore : stores){ + storeIds.add(costStore.getStoreId()); + storeNos+=costStore.getStoreNo()+","; + } + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIds)); + List accounts = storeAccountDao.getList(tenantId,criteria,true); + List details = new ArrayList<>(); + List logs = new ArrayList<>(); + String description = ""; + for(StoreAccount account : accounts){ + if(account.getStatus() == 2){ + description+=account.getStoreNo()+"账户冻结,"; + continue;//账户已冻结 + } + Double afterMoney = account.getAmount() - cost.getMoney(); + + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(account.getId()); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(8);// StoreAccountBusType 1-充值, 2-交班, 3-提现, 4-要货扣款, 5-配送验收差异退款, 6-账户调整扣款, 7-账户调整退款, 8-固定费用扣款, 9-变动费用扣款,99-其他; + detail.setBusTime(new Date()); + detail.setPayType("固定费用费用定时扣款"); + detail.setStatus(1); + detail.setAmount(cost.getMoney()); + detail.setAftAmount(afterMoney); + detail.setWorkerNo(currentUser); + detail.setDescription("变动费用扣款"); + detail.setCreateDate(new Date()); + detail.setCreateUser(currentUser); + details.add(detail); + + StoreFeeCutLog log = new StoreFeeCutLog(); + log.setTenantId(tenantId); + log.setAccountId(account.getId()); + log.setStoreId(account.getStoreId()); + log.setStoreNo(account.getStoreNo()); + log.setFeeType(cost.getFeeType()); + log.setFeeName(cost.getName()); + log.setCutPaymentType(cost.getCutPaymentType()); + log.setAmount(cost.getMoney()); + log.setAftAmount(afterMoney); + log.setDescription("固定费用费用定时扣款"); + log.setCreateDate(new Date()); + log.setCreateUser(currentUser); + logs.add(log); + + account.setAmount(afterMoney); + account.setModifyDate(new Date()); + account.setModifyUser(currentUser); + } + + storeAccountDao.update(tenantId,accounts); + if(CollectionUtils.isNotEmpty(details)) { + storeAccountDetailDao.save(tenantId, details); + } + if(CollectionUtils.isNotEmpty(logs)) { + storeFeeCutLogDao.save(tenantId, logs); + } + + StoreCostManageLog manageLog = new StoreCostManageLog(); + manageLog.setTenantId(tenantId); + manageLog.setFeeId(cost.getId()); + manageLog.setFeeName(cost.getName()); + manageLog.setStoreNos(storeNos); + manageLog.setDescription("固定费用定时扣款:"+cost.getMoney()+","+description); + manageLog.setCreateDate(new Date()); + manageLog.setCreateUser(currentUser); + storeCostManageLogDao.save(tenantId,manageLog,true); + + } + + i = 1; + }else{ + i = 2;//不在扣款时间内; + } + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveStores(String tenantId,String feedId, List storeIds, String userName) throws Exception { + Integer i = 0; + try{ + storeCostManageDao.deleteStores(tenantId,feedId,true); + if(CollectionUtils.isNotEmpty(storeIds)){ + List stores = storeDao.findListByIds(tenantId,storeIds,true); + List costManages = new ArrayList<>(); + String storeNos = ""; + for(Store store : stores){ + StoreCostManage costManage = new StoreCostManage(); + costManage.setTenantId(tenantId); + costManage.setId(feedId); + costManage.setStoreId(store.getId()); + costManage.setStoreNo(store.getNo()); + costManage.setStoreName(store.getName()); + costManages.add(costManage); + storeNos += store.getNo()+","; + } + storeCostManageDao.saveStores(tenantId,costManages); + + StoreCostManage cost = storeCostManageDao.get(tenantId,feedId,true); + + StoreCostManageLog manageLog = new StoreCostManageLog(); + manageLog.setTenantId(tenantId); + manageLog.setFeeId(cost.getId()); + manageLog.setFeeName(cost.getName()); + manageLog.setStoreNos(storeNos); + manageLog.setDescription("调整门店"); + manageLog.setCreateDate(new Date()); + manageLog.setCreateUser(userName); + storeCostManageLogDao.save(tenantId,manageLog,true); + + i = 1; + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveCostPause(String tenantId, String id, String userName) throws Exception { + Integer i = 0; + try{ + StoreCostManage cost = storeCostManageDao.get(tenantId,id); + cost.setExeStatus(2);//中止; + cost.setModifyDate(new Date()); + cost.setModifyUser(userName); + + StoreCostManageLog manageLog = new StoreCostManageLog(); + manageLog.setTenantId(tenantId); + manageLog.setFeeId(cost.getId()); + manageLog.setFeeName(cost.getName()); + manageLog.setDescription("费用中止(暂停)"); + manageLog.setCreateDate(new Date()); + manageLog.setCreateUser(userName); + storeCostManageLogDao.save(tenantId,manageLog); + storeCostManageDao.update(tenantId,cost); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveCostRestart(String tenantId, String id, String userName) throws Exception { + Integer i = 0; + try{ + StoreCostManage cost = storeCostManageDao.get(tenantId,id); + cost.setExeStatus(1);//中止; + cost.setModifyDate(new Date()); + cost.setModifyUser(userName); + + StoreCostManageLog manageLog = new StoreCostManageLog(); + manageLog.setTenantId(tenantId); + manageLog.setFeeId(cost.getId()); + manageLog.setFeeName(cost.getName()); + manageLog.setDescription("费用扣款恢复"); + manageLog.setCreateDate(new Date()); + manageLog.setCreateUser(userName); + storeCostManageLogDao.save(tenantId,manageLog); + storeCostManageDao.update(tenantId,cost); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateStatusToFinish(String tenantId, StoreCostManage manage, String operator) throws Exception { + Integer i = 0; + try{ + StoreCostManageLog manageLog = new StoreCostManageLog(); + manageLog.setTenantId(tenantId); + manageLog.setFeeId(manage.getId()); + manageLog.setFeeName(manage.getName()); + manageLog.setDescription("费用到期,扣款结束"); + manageLog.setCreateDate(new Date()); + manageLog.setCreateUser(operator); + storeCostManageLogDao.save(tenantId,manageLog); + + manage.setExeStatus(3); + manage.setModifyUser(operator); + manage.setModifyDate(new Date()); + storeCostManageDao.update(tenantId,manage); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostRevenueServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostRevenueServiceImpl.java new file mode 100644 index 0000000..038b0db --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreCostRevenueServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreCostRevenueDao; +import com.jwsaas.entity.food.StoreCostRevenue; +import com.jwsaas.service.food.StoreCostRevenueService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreCostRevenueServiceImpl") +public class StoreCostRevenueServiceImpl extends BaseServiceImpl implements StoreCostRevenueService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreCostRevenueDaoImpl") + private StoreCostRevenueDao storeCostRevenueDao; + + @Override + public BaseDao getBaseDao() { + return this.storeCostRevenueDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDeliveryOrderItemServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDeliveryOrderItemServiceImpl.java new file mode 100644 index 0000000..ae4ccd9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDeliveryOrderItemServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreDeliveryOrderItemDao; +import com.jwsaas.entity.food.StoreDeliveryOrderItem; +import com.jwsaas.service.food.StoreDeliveryOrderItemService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderItemServiceImpl") +public class StoreDeliveryOrderItemServiceImpl extends BaseServiceImpl implements StoreDeliveryOrderItemService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderItemDaoImpl") + private StoreDeliveryOrderItemDao storeDeliveryOrderItemDao; + + @Override + public BaseDao getBaseDao() { + return this.storeDeliveryOrderItemDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDeliveryOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDeliveryOrderServiceImpl.java new file mode 100644 index 0000000..bcd0201 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDeliveryOrderServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreDeliveryOrderDao; +import com.jwsaas.entity.food.StoreDeliveryOrder; +import com.jwsaas.service.food.StoreDeliveryOrderService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderServiceImpl") +public class StoreDeliveryOrderServiceImpl extends BaseServiceImpl implements StoreDeliveryOrderService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDeliveryOrderDaoImpl") + private StoreDeliveryOrderDao storeDeliveryOrderDao; + + @Override + public BaseDao getBaseDao() { + return this.storeDeliveryOrderDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDepartmentServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDepartmentServiceImpl.java new file mode 100644 index 0000000..3232119 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDepartmentServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreDepartmentDao; +import com.jwsaas.entity.food.StoreDepartment; +import com.jwsaas.service.food.StoreDepartmentService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreDepartmentServiceImpl") +public class StoreDepartmentServiceImpl extends BaseServiceImpl implements StoreDepartmentService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDepartmentDaoImpl") + private StoreDepartmentDao storeDepartmentDao; + + @Override + public BaseDao getBaseDao() { + return this.storeDepartmentDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storeDepartmentDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDispatchAccountLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDispatchAccountLogServiceImpl.java new file mode 100644 index 0000000..1064145 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDispatchAccountLogServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreDispatchAccountLogDao; +import com.jwsaas.entity.food.StoreDispatchAccountLog; +import com.jwsaas.service.food.StoreDispatchAccountLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreDispatchAccountLogServiceImpl") +public class StoreDispatchAccountLogServiceImpl extends BaseServiceImpl implements StoreDispatchAccountLogService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreDispatchAccountLogDaoImpl") + private StoreDispatchAccountLogDao storeDispatchAccountLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeDispatchAccountLogDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDispatchAccountServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDispatchAccountServiceImpl.java new file mode 100644 index 0000000..0d95b81 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreDispatchAccountServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreDispatchAccountDao; +import com.jwsaas.entity.food.StoreDispatchAccount; +import com.jwsaas.service.food.StoreDispatchAccountService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreDispatchAccountServiceImpl") +public class StoreDispatchAccountServiceImpl extends BaseServiceImpl implements StoreDispatchAccountService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreDispatchAccountDaoImpl") + private StoreDispatchAccountDao storeDispatchAccountDao; + + @Override + public BaseDao getBaseDao() { + return this.storeDispatchAccountDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreEnchashmentRecordLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreEnchashmentRecordLogServiceImpl.java new file mode 100644 index 0000000..2ace5c5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreEnchashmentRecordLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreEnchashmentRecordLogDao; +import com.jwsaas.entity.food.StoreEnchashmentRecordLog; +import com.jwsaas.service.food.StoreEnchashmentRecordLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreEnchashmentRecordLogServiceImpl") +public class StoreEnchashmentRecordLogServiceImpl extends BaseServiceImpl implements StoreEnchashmentRecordLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreEnchashmentRecordLogDaoImpl") + private StoreEnchashmentRecordLogDao storeEnchashmentRecordLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeEnchashmentRecordLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreEnchashmentRecordServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreEnchashmentRecordServiceImpl.java new file mode 100644 index 0000000..ffd00c7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreEnchashmentRecordServiceImpl.java @@ -0,0 +1,354 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.*; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreAccountDetailDao; +import com.jwsaas.entity.food.StoreAccountDetail; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreAccountDao; +import com.jwsaas.dao.food.StoreEnchashmentRecordDao; +import com.jwsaas.dao.food.StoreEnchashmentRecordLogDao; +import com.jwsaas.entity.food.StoreAccount; +import com.jwsaas.entity.food.StoreEnchashmentRecord; +import com.jwsaas.entity.food.StoreEnchashmentRecordLog; +import com.jwsaas.service.food.StoreEnchashmentRecordService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreEnchashmentRecordServiceImpl") +public class StoreEnchashmentRecordServiceImpl extends BaseServiceImpl implements StoreEnchashmentRecordService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreEnchashmentRecordDaoImpl") + private StoreEnchashmentRecordDao storeEnchashmentRecordDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreEnchashmentRecordLogDaoImpl") + private StoreEnchashmentRecordLogDao storeEnchashmentRecordLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDaoImpl") + private StoreAccountDao storeAccountDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAccountDetailDaoImpl") + private StoreAccountDetailDao storeAccountDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeEnchashmentRecordDao; + } + + @Override + public StoreEnchashmentRecord save4Apply(String tenantId, StoreEnchashmentRecord record) throws Exception { + try { + StoreAccount storeAccount = this.storeAccountDao.get(tenantId, record.getAccountId()); + if (storeAccount == null) { + throw new Exception("门店余额账户不能为空"); + } + + + BigDecimal availableAmount = MathUtil + .subtract(new BigDecimal(String.valueOf(storeAccount.getAmount())), + MathUtil.add(new BigDecimal(String.valueOf(storeAccount.getFreezeAmount())), new BigDecimal(String.valueOf(record.getAmount())))); + if (MathUtil.lt(availableAmount, BigDecimal.ZERO)) { + logger.error("storeNo:"+storeAccount.getStoreNo()+" amount:"+storeAccount.getAmount()+" freezeAmount:"+storeAccount.getFreezeAmount()+" txAmount:"+record.getAmount()); + throw new Exception("门店余额账户可用余额不足"); + } + + record = this.storeEnchashmentRecordDao.save(tenantId, record); + + StoreEnchashmentRecordLog recordLog = new StoreEnchashmentRecordLog(); + recordLog.setRecordId(record.getId());// 记录ID + recordLog.setType(1);// 操作类型(1-申请;2-取消;3-审核;4-结算;) + recordLog.setStatus(record.getStatus());// 操作状态 + recordLog.setSourceSign(record.getSourceSign());// 来源标识 + recordLog.setWorkerNo(record.getApplyWorkerNo());// 操作员工号 + recordLog.setDescription(record.getDescription());// 描述 + recordLog.setCreateUser(record.getApplyWorkerNo()); + this.storeEnchashmentRecordLogDao.save(tenantId, recordLog); + + StoreAccount updateAccount = new StoreAccount(); + updateAccount.setId(storeAccount.getId()); + updateAccount.setFreezeAmount(MathUtil.add(new BigDecimal(storeAccount.getFreezeAmount()), new BigDecimal(record.getAmount())).doubleValue()); + updateAccount.setModifyUser(record.getApplyWorkerNo()); + updateAccount.setModifyDate(new Date()); + storeAccountDao.update(tenantId, updateAccount); + + return record; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer update4Cancel(String tenantId, String accountId, String recordId, String workerNo, String sourceSign, String cancelReason) throws Exception { + try { + StoreAccount storeAccount = this.storeAccountDao.get(tenantId, accountId); + if (storeAccount == null) { + throw new Exception("门店余额账户不能为空"); + } + + StoreEnchashmentRecord record = this.storeEnchashmentRecordDao.get(tenantId, recordId); + if (record == null) { + throw new Exception("提现记录不存在"); + } + + if (!StringUtils.equals(storeAccount.getId(), record.getAccountId())) { + throw new Exception("信息不一致"); + } + + BigDecimal availableAmount = MathUtil.subtract(new BigDecimal(storeAccount.getFreezeAmount()), new BigDecimal(record.getAmount())); + if (MathUtil.lt(availableAmount, BigDecimal.ZERO)) { + throw new Exception("门店余额账户可用余额不足"); + } + + int rows = 0; + StoreEnchashmentRecord updateRecord = new StoreEnchashmentRecord(); + updateRecord.setId(record.getId()); + updateRecord.setStatus(1);// 状态(0-待处理;1-已取消;2-已审核/处理中;3-处理成功;4-处理失败;) + updateRecord.setCancelWorkerNo(workerNo); + updateRecord.setCancelReason(cancelReason); + updateRecord.setCancelDate(new Date()); + updateRecord.setModifyUser(workerNo); + updateRecord.setModifyDate(new Date()); + rows = this.storeEnchashmentRecordDao.update(tenantId, updateRecord); + + StoreEnchashmentRecordLog recordLog = new StoreEnchashmentRecordLog(); + recordLog.setRecordId(record.getId());// 记录ID + recordLog.setType(2);// 操作类型(1-申请;2-取消;3-审核;4-结算;) + recordLog.setStatus(updateRecord.getStatus());// 操作状态 + recordLog.setSourceSign(sourceSign);// 来源标识 + recordLog.setWorkerNo(workerNo);// 操作员工号 + recordLog.setDescription(cancelReason); + recordLog.setCreateUser(workerNo); + recordLog.setCreateDate(new Date()); + this.storeEnchashmentRecordLogDao.save(tenantId, recordLog); + + StoreAccount updateAccount = new StoreAccount(); + updateAccount.setId(storeAccount.getId()); + updateAccount.setFreezeAmount(MathUtil.subtract(new BigDecimal(storeAccount.getFreezeAmount()), new BigDecimal(record.getAmount())).doubleValue()); + updateAccount.setModifyUser(workerNo); + updateAccount.setModifyDate(new Date()); + storeAccountDao.update(tenantId, updateAccount); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateToAudit(String tenantId, StoreEnchashmentRecord record, StoreEnchashmentRecordLog log) throws Exception { + Integer i = 0; + try{ + storeEnchashmentRecordDao.update(tenantId,record); + storeEnchashmentRecordLogDao.save(tenantId,log); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateToSettle(String tenantId, StoreEnchashmentRecord record, String userName) throws Exception { + Integer i = 0; + try{ + //扣减账户余额; + StoreAccount account = storeAccountDao.get(tenantId,record.getAccountId()); + account.setAmount(account.getAmount() - record.getAmount()); + account.setFreezeAmount(account.getFreezeAmount() - record.getAmount()); + account.setModifyUser(userName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account); + + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(record.getAccountId()); + detail.setStoreId(record.getStoreId()); + detail.setStoreNo(record.getStoreNo()); + detail.setType(2); + detail.setBusType(3); + detail.setBusTime(new Date()); + detail.setVoucherNo(record.getVoucherNo()); + detail.setStatus(1); + detail.setAmount(record.getAmount()); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(userName); + detail.setDescription("提现结算"); + detail.setCreateDate(new Date()); + detail.setCreateUser(userName); + storeAccountDetailDao.save(tenantId,detail); + + //更新记录; + record.setAftAmount(account.getAmount()); + storeEnchashmentRecordDao.update(tenantId,record); + + StoreEnchashmentRecordLog recordLog = new StoreEnchashmentRecordLog(); + recordLog.setRecordId(record.getId());// 记录ID + recordLog.setType(4);// 操作类型(1-申请;2-取消;3-审核;4-结算;) + recordLog.setStatus(record.getStatus());// 操作状态 + recordLog.setSourceSign("HEADQUARTERS");// 来源标识 + recordLog.setWorkerNo(userName);// 操作员工号 + recordLog.setDescription("提现结算"); + recordLog.setCreateUser(userName); + recordLog.setCreateDate(new Date()); + this.storeEnchashmentRecordLogDao.save(tenantId, recordLog); + + + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateRecordsByBatch(String tenantId, List ids, String auditReason,String userName) throws Exception { + Integer i = 0; + try{ + List records = storeEnchashmentRecordDao.findListByIds(tenantId,ids); + if(CollectionUtils.isNotEmpty(records)){ + for(StoreEnchashmentRecord record : records){ + record.setAuditDate(new Date()); + record.setAuditWorkerNo(userName); + record.setAuditReason(StringUtils.isEmpty(auditReason) ? "批量审核" : auditReason); + record.setStatus(2); + storeEnchashmentRecordDao.update(tenantId,record); + + StoreEnchashmentRecordLog log = new StoreEnchashmentRecordLog(); + log.setTenantId(tenantId); + log.setCreateDate(new Date()); + log.setCreateUser(userName); + log.setRecordId(record.getId()); + log.setType(2); + log.setStatus(1); + log.setSourceSign("HEADQUARTERS"); + log.setWorkerNo(userName); + log.setDescription(StringUtils.isEmpty(auditReason) ? "批量审核" : auditReason); + storeEnchashmentRecordLogDao.save(tenantId,log); + } + i = 1; + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateToSettleByBatch(String tenantId, List ids, Integer payType, String voucherNo, String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("status",2)); + criteria.add(Restrictions.in("id",ids)); + criteria.add(Restrictions.order("applyDate","asc")); + List records = storeEnchashmentRecordDao.getList(tenantId,criteria,true); + //账户申请金额合计Map; + Map map = new HashMap<>(); + //账户金额Map; + Map accountMap = new HashMap<>(); + //门店账户; + Map storeAccountMap = new HashMap<>(); + + List logs = new ArrayList<>(); + List details = new ArrayList<>(); + + if(CollectionUtils.isNotEmpty(records)){ + for(StoreEnchashmentRecord record : records){ + String key = record.getAccountId(); + if(map.containsKey(key)){ + map.put(key,record.getAmount()+map.get(key)); + }else{ + map.put(key,record.getAmount()); + } + } + + + List accounts = storeAccountDao.getList(tenantId,new Criteria(),true); + if(CollectionUtils.isNotEmpty(accounts)){ + for(StoreAccount account : accounts){ + accountMap.put(account.getId(),account.getAmount()); + storeAccountMap.put(account.getId(),account); + } + } + + + + for(StoreEnchashmentRecord record : records){ + Double aftMoney = accountMap.get(record.getAccountId()) - record.getAmount(); + record.setSettleDate(new Date()); + record.setSettleWorkerNo(userName); + record.setStatus(3); + record.setVoucherNo(voucherNo); + record.setPayType(payType); + record.setAftAmount(aftMoney); + storeEnchashmentRecordDao.update(tenantId,record,true); + + accountMap.put(record.getAccountId(),aftMoney); + StoreEnchashmentRecordLog recordLog = new StoreEnchashmentRecordLog(); + recordLog.setRecordId(record.getId());// 记录ID + recordLog.setType(4);// 操作类型(1-申请;2-取消;3-审核;4-结算;) + recordLog.setStatus(record.getStatus());// 操作状态 + recordLog.setSourceSign("HEADQUARTERS");// 来源标识 + recordLog.setWorkerNo(userName);// 操作员工号 + recordLog.setDescription("批量提现结算"); + recordLog.setCreateUser(userName); + recordLog.setCreateDate(new Date()); + logs.add(recordLog); + + } + } + + + //扣减账户余额; + Set accountIds = map.keySet(); + for(String accountId : accountIds){ + //提现金额; + Double money = map.get(accountId); + StoreAccount account = storeAccountMap.get(accountId); + account.setAmount(account.getAmount() - money); + account.setFreezeAmount(account.getFreezeAmount() - money); + account.setModifyUser(userName); + account.setModifyDate(new Date()); + storeAccountDao.update(tenantId,account,true); + + + StoreAccountDetail detail = new StoreAccountDetail(); + detail.setTenantId(tenantId); + detail.setAccountId(accountId); + detail.setStoreId(account.getStoreId()); + detail.setStoreNo(account.getStoreNo()); + detail.setType(2); + detail.setBusType(3); + detail.setBusTime(new Date()); + detail.setVoucherNo(voucherNo); + detail.setStatus(1); + detail.setAmount(money); + detail.setAftAmount(account.getAmount()); + detail.setWorkerNo(userName); + detail.setDescription("批量提现结算"); + detail.setCreateDate(new Date()); + detail.setCreateUser(userName); + details.add(detail); + } + + if(logs.size() > 0){ + storeEnchashmentRecordLogDao.save(tenantId,logs); + } + if(details.size() > 0){ + storeAccountDetailDao.save(tenantId,details); + } + + + + }catch (Exception e){ + throw e; + } + return i; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreFeeCutLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreFeeCutLogServiceImpl.java new file mode 100644 index 0000000..e1b32cd --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreFeeCutLogServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreFeeCutLogDao; +import com.jwsaas.entity.food.StoreFeeCutLog; +import com.jwsaas.service.food.StoreFeeCutLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreFeeCutLogServiceImpl") +public class StoreFeeCutLogServiceImpl extends BaseServiceImpl implements StoreFeeCutLogService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreFeeCutLogDaoImpl") + private StoreFeeCutLogDao storeFeeCutLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeFeeCutLogDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailPartServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailPartServiceImpl.java new file mode 100644 index 0000000..ed6a787 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailPartServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreHandoverDetailPartDao; +import com.jwsaas.entity.food.StoreHandoverDetailPart; +import com.jwsaas.service.food.StoreHandoverDetailPartService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreHandoverDetailPartServiceImpl") +public class StoreHandoverDetailPartServiceImpl extends BaseServiceImpl implements StoreHandoverDetailPartService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreHandoverDetailPartDaoImpl") + private StoreHandoverDetailPartDao storeHandoverDetailPartDao; + + @Override + public BaseDao getBaseDao() { + return this.storeHandoverDetailPartDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailPayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailPayServiceImpl.java new file mode 100644 index 0000000..b4a9434 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailPayServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreHandoverDetailPayDao; +import com.jwsaas.entity.food.StoreHandoverDetailPay; +import com.jwsaas.service.food.StoreHandoverDetailPayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailPayServiceImpl") +public class StoreHandoverDetailPayServiceImpl extends BaseServiceImpl implements StoreHandoverDetailPayService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailPayDaoImpl") + private StoreHandoverDetailPayDao storeHandoverDetailPayDao; + + @Override + public BaseDao getBaseDao() { + return this.storeHandoverDetailPayDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailServiceImpl.java new file mode 100644 index 0000000..5744104 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreHandoverDetailDao; +import com.jwsaas.entity.food.StoreHandoverDetail; +import com.jwsaas.service.food.StoreHandoverDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreHandoverDetailServiceImpl") +public class StoreHandoverDetailServiceImpl extends BaseServiceImpl implements StoreHandoverDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreHandoverDetailDaoImpl") + private StoreHandoverDetailDao storeHandoverDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeHandoverDetailDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverServiceImpl.java new file mode 100644 index 0000000..fdd2f0d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreHandoverServiceImpl.java @@ -0,0 +1,135 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreHandoverDao; +import com.jwsaas.dao.food.StoreHandoverDetailDao; +import com.jwsaas.dao.food.StoreHandoverDetailPartDao; +import com.jwsaas.dao.food.StoreHandoverDetailPayDao; +import com.jwsaas.entity.food.StoreHandover; +import com.jwsaas.entity.food.StoreHandoverDetail; +import com.jwsaas.entity.food.StoreHandoverDetailPart; +import com.jwsaas.entity.food.StoreHandoverDetailPay; +import com.jwsaas.service.food.StoreHandoverService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverServiceImpl") +public class StoreHandoverServiceImpl extends BaseServiceImpl implements StoreHandoverService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDaoImpl") + private StoreHandoverDao storeHandoverDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailDaoImpl") + private StoreHandoverDetailDao storeHandoverDetailDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailPartDaoImpl") + private StoreHandoverDetailPartDao storeHandoverDetailPartDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreHandoverDetailPayDaoImpl") + private StoreHandoverDetailPayDao storeHandoverDetailPayDao; + + @Resource + private com.jwsaas.cache.CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.storeHandoverDao; + } + + @Override + public String saveHandover(String tenantId, StoreHandover handover, List detail, List part) throws Exception { + try { + String handoverId = null; + Object busTicketId = cacheService.get(tenantId, "shiftNo:" + handover.getStoreId() + handover.getNo()); + if (busTicketId == null) { + handover = storeHandoverDao.save(tenantId, handover, true); + handoverId = handover.getId(); + cacheService.set(tenantId, "shiftNo:" + handover.getStoreId() + handover.getNo(), handoverId, 172800); + if (CollectionUtils.isNotEmpty(detail)) { + storeHandoverDetailDao.save(tenantId, detail); + } + if (CollectionUtils.isNotEmpty(part)) { + storeHandoverDetailPartDao.save(tenantId, part); + } + return handover.getId(); + } else { + return busTicketId.toString(); + } + } catch (Exception e) { + try { + cacheService.del(tenantId, "shiftNo:" + handover.getStoreId() + handover.getNo()); + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + } + + @Override + public String saveHandoverExtend(String tenantId, StoreHandover handover, List detail, List part, List payList) + throws Exception { + try { + String handoverId = null; + Object busTicketId = cacheService.get(tenantId, "shiftNo:" + handover.getStoreId() + handover.getNo()); + if (busTicketId == null) { + handover = storeHandoverDao.save(tenantId, handover, true); + handoverId = handover.getId(); + cacheService.set(tenantId, "shiftNo:" + handover.getStoreId() + handover.getNo(), handoverId, 172800); + if (CollectionUtils.isNotEmpty(detail)) { + storeHandoverDetailDao.save(tenantId, detail); + } + if (CollectionUtils.isNotEmpty(part)) { + storeHandoverDetailPartDao.save(tenantId, part); + } + if (CollectionUtils.isNotEmpty(payList)) { + storeHandoverDetailPayDao.save(tenantId, payList); + } + return handover.getId(); + } else { + return busTicketId.toString(); + } + } catch (Exception e) { + try { + cacheService.del(tenantId, "shiftNo:" + handover.getStoreId() + handover.getNo()); + } catch (Exception ex) { + logger.error(ex.getMessage()); + } + throw e; + } + } + + @Override + public Pager getPagerByAllAgentStores(String tenantId, List storeIds, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storeHandoverDao.getPagerByAllAgentStores(tenantId,storeIds, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByAllAgentStores(String tenantId, List storeIds, Criteria criteria) throws Exception { + try{ + return storeHandoverDao.getListByAllAgentStores(tenantId,storeIds,criteria); + }catch (Exception e){ + throw e; + } + + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreLoginLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreLoginLogServiceImpl.java new file mode 100644 index 0000000..5289072 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreLoginLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreLoginLogDao; +import com.jwsaas.entity.food.StoreLoginLog; +import com.jwsaas.service.food.StoreLoginLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreLoginLogServiceImpl") +public class StoreLoginLogServiceImpl extends BaseServiceImpl implements StoreLoginLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreLoginLogDaoImpl") + private StoreLoginLogDao storeLoginLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeLoginLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOperationLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOperationLogServiceImpl.java new file mode 100644 index 0000000..fb9f053 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOperationLogServiceImpl.java @@ -0,0 +1,45 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreOperationLogDao; +import com.jwsaas.entity.food.StoreOperationLog; +import com.jwsaas.service.food.StoreOperationLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreOperationLogServiceImpl") +public class StoreOperationLogServiceImpl extends BaseServiceImpl implements StoreOperationLogService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreOperationLogDaoImpl") + private StoreOperationLogDao storeOperationLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeOperationLogDao; + } + + @Override + public Pager getStoreTypeSummaryPager(String tenantId, Criteria criteria, Pager pager) { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storeOperationLogDao.getStoreTypeSummaryPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductInfoServiceImpl.java new file mode 100644 index 0000000..d80d290 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductInfoServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreOrderProductInfoDao; +import com.jwsaas.entity.food.StoreOrderProductInfo; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoreOrderProductInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductInfoServiceImpl") +public class StoreOrderProductInfoServiceImpl extends BaseServiceImpl implements StoreOrderProductInfoService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreOrderProductInfoDaoImpl") + private StoreOrderProductInfoDao storeOrderProductInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.storeOrderProductInfoDao; + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = this.storeOrderProductInfoDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListSummary(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductInfoDao.getListSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductMakeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductMakeServiceImpl.java new file mode 100644 index 0000000..f75d0a6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductMakeServiceImpl.java @@ -0,0 +1,55 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreOrderProductMakeDao; +import com.jwsaas.entity.food.StoreOrderProductMake; +import com.jwsaas.service.food.StoreOrderProductMakeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; +import java.util.Map; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreOrderProductMakeServiceImpl") +public class StoreOrderProductMakeServiceImpl extends BaseServiceImpl implements StoreOrderProductMakeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreOrderProductMakeDaoImpl") + private StoreOrderProductMakeDao storeOrderProductMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.storeOrderProductMakeDao; + } + + @Override + public Pager getPagerSumInfos(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = storeOrderProductMakeDao.getPagerSumInfos(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListSumInfos(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductMakeDao.getListSumInfos(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductServiceImpl.java new file mode 100644 index 0000000..4c21fd9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreOrderProductServiceImpl.java @@ -0,0 +1,114 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreOrderProductDao; +import com.jwsaas.entity.food.StoreOrderProduct; +import com.jwsaas.service.food.StoreOrderProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; +import java.util.Map; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreOrderProductServiceImpl") +public class StoreOrderProductServiceImpl extends BaseServiceImpl implements StoreOrderProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreOrderProductDaoImpl") + private StoreOrderProductDao storeOrderProductDao; + + @Override + public BaseDao getBaseDao() { + return this.storeOrderProductDao; + } + + @Override + public Pager getPagerCountSumAndAmountTotalSum(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = storeOrderProductDao.getPagerCountSumAndAmountTotalSum(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListCountSumAndAmountTotalSum(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductDao.getListCountSumAndAmountTotalSum(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListAmountTotalSum(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductDao.getListAmountTotalSum(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductDao.getListByExport(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerForSalesDayProductSummary(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List> list = storeOrderProductDao.getPagerForSalesDayProductSummary(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListDataSummary(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductDao.getListDataSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListReportDataSummary(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductDao.getListReportDataSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListProductDataSummary(String tenantId, Criteria criteria) throws Exception { + try { + return storeOrderProductDao.getListProductDataSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StorePayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StorePayServiceImpl.java new file mode 100644 index 0000000..5c188b9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StorePayServiceImpl.java @@ -0,0 +1,118 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StorePayDao; +import com.jwsaas.entity.food.StorePay; +import com.jwsaas.service.food.StorePayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; +import java.util.Map; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StorePayServiceImpl") +public class StorePayServiceImpl extends BaseServiceImpl implements StorePayService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StorePayDaoImpl") + private StorePayDao storePayDao; + + @Override + public BaseDao getBaseDao() { + return this.storePayDao; + } + + @Override + public Pager getPagerWithShiftAndPosNo(String tenantId, Criteria criteria, Pager pager) throws Exception{ + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storePayDao.getPagerWithShiftAndPosNo(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithShiftAndPosNo(String tenantId, Criteria criteria) throws Exception{ + try { + return storePayDao.getListWithShiftAndPosNo(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListDailyRevenue(String tenantId, Criteria criteria) throws Exception { + try { + return storePayDao.getListDailyRevenue(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) throws Exception { + try { + return storePayDao.getListByExport(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByChargeBackSummary(String tenantId, Criteria criteria) throws Exception { + try { + return storePayDao.getListByChargeBackSummary(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListBySumChargeBack(String tenantId, Criteria criteria) throws Exception { + try { + return storePayDao.getListBySumChargeBack(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByAccountingSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storePayDao.getListByAccountingSummary(tenantId,criteria); + }catch (Exception e) { + throw e; + } + } + + @Override + public List> getListReportDataSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storePayDao.getListReportDataSummary(tenantId,criteria); + }catch (Exception e) { + throw e; + } + } + + @Override + public List getListReportDataByBusModeSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return storePayDao.getListReportDataByBusModeSummary(tenantId,criteria); + }catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreProductSaleStockServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreProductSaleStockServiceImpl.java new file mode 100644 index 0000000..fb49a04 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreProductSaleStockServiceImpl.java @@ -0,0 +1,158 @@ +package com.jwsaas.service.food.impl; + +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.stream.Collectors; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreProductSaleStockDao; +import com.jwsaas.entity.food.StoreOrderProduct; +import com.jwsaas.entity.food.StoreProductSaleStock; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoreProductSaleStockService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreProductSaleStockServiceImpl") +public class StoreProductSaleStockServiceImpl extends BaseServiceImpl implements StoreProductSaleStockService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreProductSaleStockDaoImpl") + private StoreProductSaleStockDao storeProductSaleStockDao; + + @Resource + private com.jwsaas.cache.CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.storeProductSaleStockDao; + } + + @Override + public int updateStoreProductSaleStock(String tenantId, String userName, Byte type, String id, double num) { + try { + if (id.contains(",")) { + List list = Arrays.asList(id.split(",")).stream().map((c) -> { + return setOutData(userName, tenantId, c, type, num); + }).collect(Collectors.toList()); + // 更新缓存 + for (StoreProductSaleStock storeProductSaleStock : list) { + String productKey = "productKey:" + storeProductSaleStock.getStoreId() + ":" + storeProductSaleStock.getSpecId(); + cacheService.del(tenantId, productKey); + } + return storeProductSaleStockDao.update(tenantId, list); + } + StoreProductSaleStock storeProductSaleStock = setOutData(userName, tenantId, id, type, num); + // 更新缓存 + String productKey = "productKey:" + storeProductSaleStock.getStoreId() + ":" + storeProductSaleStock.getSpecId(); + cacheService.del(tenantId, productKey); + return storeProductSaleStockDao.update(tenantId, storeProductSaleStock); + } catch (Exception e) { + e.printStackTrace(); + } + return 0; + } + + public StoreProductSaleStock setOutData(String userName, String tenantId, String id, Byte type, double num) { + StoreProductSaleStock spss = new StoreProductSaleStock(); + spss.setModifyUser(userName); + spss.setModifyDate(new Date()); + spss.setTenantId(tenantId); + spss.setId(id); + switch (type) { + case 1: + spss.setTotalStock(9999.0); + spss.setStock(9999.0); + break; + case 2: + spss.setTotalStock(0.0); + spss.setStock(0.0); + break; + + case 3: + spss.setTotalStock(num); + spss.setStock(num); + break; + + default: + break; + } + return spss; + } + + @Override + public int saveSynchronousData(String tenantId, String modifyUserName, double totalStock, double stock) { + try { + Criteria criteria0 = new Criteria(); + criteria0.add(Restrictions.limit("0", "10000")); + List stockList = storeProductSaleStockDao.getList(tenantId, criteria0,true); + for (StoreProductSaleStock storeProductSaleStock : stockList) { + // 更新缓存 + String productKey = "productKey:" + storeProductSaleStock.getStoreId() + ":" + storeProductSaleStock.getSpecId(); + cacheService.del(tenantId, productKey); + } + return storeProductSaleStockDao.synchronousData(tenantId, modifyUserName, totalStock, stock); + } catch (Exception e) { + e.printStackTrace(); + } + return 0; + } + + @Override + public Pager getPartPager(String tenantId, Criteria criteria, Pager pager) { + // TODO Auto-generated method stub + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storeProductSaleStockDao.getPartPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } + + @Override + public void updateStoreProductSaleStock(String tenantId, List orderProductList) { + try { + for (StoreOrderProduct storeProductSaleStock : orderProductList) { + // 更新缓存 + String productKey = "productKey:" + storeProductSaleStock.getStoreId() + ":" + storeProductSaleStock.getSpecId(); + Object productKeyValue = cacheService.get(tenantId, productKey); + if (productKeyValue != null) { + productKeyValue = Double.parseDouble(productKeyValue.toString()) - storeProductSaleStock.getCount(); + cacheService.set(tenantId, productKey, productKeyValue, 60 * 60 * 6); + } + this.storeProductSaleStockDao.updateStoreProductSaleStock(tenantId, storeProductSaleStock.getStoreId(), storeProductSaleStock.getSpecId(), storeProductSaleStock.getCount()); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + @Override + public List getseriesNameAndseriesIdByTenantld(String tenantId, Criteria criteria) { + // TODO Auto-generated method stub + return storeProductSaleStockDao.getseriesNameAndseriesIdByTenantld(criteria, tenantId); + } + + @Override + public int updateImptStock(String tenantId, List list) { + try { + // 更新缓存 + for (StoreProductSaleStock storeProductSaleStock : list) { + String productKey = "productKey:" + storeProductSaleStock.getStoreId() + ":" + storeProductSaleStock.getSpecId(); + cacheService.set(tenantId, productKey, storeProductSaleStock.getStock(), 60 * 60 * 6); + } + return storeProductSaleStockDao.updateImptStock(tenantId, list); + } catch (Exception e) { + e.printStackTrace(); + } + return 0; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreProductServiceImpl.java new file mode 100644 index 0000000..873f5d8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreProductServiceImpl.java @@ -0,0 +1,717 @@ +package com.jwsaas.service.food.impl; + +import java.util.*; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductSpecDao; +import com.jwsaas.dao.food.ProductSuitDao; +import com.jwsaas.dao.food.ProductSuitDetailDao; +import com.jwsaas.dao.food.StoreProductDao; +import com.jwsaas.dao.food.StoreProductSaleStockDao; +import com.jwsaas.entity.food.ProductSpec; +import com.jwsaas.entity.food.ProductSuit; +import com.jwsaas.entity.food.ProductSuitDetail; +import com.jwsaas.entity.food.ProgramStoreOrderProduct; +import com.jwsaas.entity.food.StoreProduct; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoreProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreProductServiceImpl") +public class StoreProductServiceImpl extends BaseServiceImpl implements StoreProductService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreProductDaoImpl") + private StoreProductDao storeProductDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDaoImpl") + private ProductSuitDao productSuitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDetailDaoImpl") + private ProductSuitDetailDao productSuitDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreProductSaleStockDaoImpl") + private StoreProductSaleStockDao storeProductSaleStockDao; + @Resource + private com.jwsaas.cache.CacheService cacheService; + + @Override + public BaseDao getBaseDao() { + return this.storeProductDao; + } + + @Override + public void saveStoreProduct(String tenantId, Boolean onShelves, List storeIdList, List specIdList, String currentUser) throws Exception { + try { + Assert.notNull(onShelves, "parameter 'onShelves' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + Assert.notEmpty(specIdList, "parameter 'specIdList' can't be null or empty!"); + Assert.notNull(currentUser, "parameter 'currentUser' can't be null or empty!"); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ps.id", specIdList)); + List specList = this.productSpecDao.getListWithProduct(tenantId, criteria); + + // 下架-先删除 + if (!onShelves) { + for (ProductSpec spec : specList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", spec.getProductId())); + criteria.add(Restrictions.eq("specId", spec.getId())); + criteria.add(Restrictions.in("storeId", storeIdList)); + storeProductSaleStockDao.delete(tenantId, criteria); + this.storeProductDao.delete(tenantId, criteria); + } + } + // 如果是上架,门店商品不删除,只添加; + if (onShelves) { + List suitProductIdList = new ArrayList<>(); + StoreProduct storeProduct = null; + for (String storeId : storeIdList) { + // 查找门店商品规格; + List storeSpecIds = storeProductDao.getSpecIdsList(tenantId, storeId); + for (ProductSpec spec : specList) { + if (storeSpecIds.contains(spec.getId())) { + continue; + } + storeProduct = new StoreProduct(); + storeProduct.setTenantId(tenantId); + storeProduct.setStoreId(storeId); + storeProduct.setProductId(spec.getProductId()); + storeProduct.setSpecId(spec.getId()); + storeProduct.setProductUnitId(spec.getUnitId()); + storeProduct.setPrice(spec.getPrice()); + storeProduct.setMemberPrice(spec.getMemberPrice()); + storeProduct.setCostPrice(spec.getCostPrice()); + storeProduct.setMinPrice(spec.getMinPrice()); + storeProduct.setOtherPrice(spec.getOtherPrice()); + storeProduct.setPurchasePrice(spec.getPurchasePrice()); + storeProduct.setDispatchPrice(spec.getDispatchPrice()); + storeProduct.setTypeId(spec.getTypeId()); + storeProduct.setTypePath(spec.getTypePath()); + storeProduct.setCreateUser(currentUser); + this.storeProductDao.save(tenantId, storeProduct); + if (spec.getSuitFlag() == 1) { + suitProductIdList.add(spec.getProductId()); + } + } + } + + // 套餐处理/套餐明细如果未关联到门店,则做关联处理 + for (String suitProductId : suitProductIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", suitProductId)); + // 套餐道菜 + List suitList = productSuitDao.getList(tenantId, criteria); + for (ProductSuit productSuit : suitList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("suitId", productSuit.getId())); + // 道菜明细 + List suitDetailList = productSuitDetailDao.getList(tenantId, criteria); + for (ProductSuitDetail suitDetail : suitDetailList) { + for (String storeId : storeIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("productId", suitDetail.getProductId())); + criteria.add(Restrictions.eq("specId", suitDetail.getSpecId())); + List tempList = storeProductDao.getList(tenantId, criteria); + if (CollectionUtils.isEmpty(tempList)) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ps.id", suitDetail.getSpecId())); + List tempSpecList = this.productSpecDao.getListWithProduct(tenantId, criteria); + ProductSpec tempSpec = tempSpecList.get(0); + storeProduct = new StoreProduct(); + storeProduct.setTenantId(tenantId); + storeProduct.setStoreId(storeId); + storeProduct.setProductId(tempSpec.getProductId()); + storeProduct.setSpecId(tempSpec.getId()); + storeProduct.setProductUnitId(tempSpec.getUnitId()); + storeProduct.setPrice(tempSpec.getPrice()); + storeProduct.setMemberPrice(tempSpec.getMemberPrice()); + storeProduct.setCostPrice(tempSpec.getCostPrice()); + storeProduct.setMinPrice(tempSpec.getMinPrice()); + storeProduct.setOtherPrice(tempSpec.getOtherPrice()); + storeProduct.setPurchasePrice(tempSpec.getPurchasePrice()); + storeProduct.setDispatchPrice(tempSpec.getDispatchPrice()); + storeProduct.setTypeId(tempSpec.getTypeId()); + storeProduct.setTypePath(tempSpec.getTypePath()); + storeProduct.setCreateUser(currentUser); + this.storeProductDao.save(tenantId, storeProduct); + } + } + } + } + } + + } + + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storeProductDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.storeProductDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public void deleteStoreProductWithStoreId(String tenantId, String storeId, Boolean isAll, List storeProductIdList, String currentUser) throws Exception { + try { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + + Criteria criteria = null; + if (isAll) { + // 全部下架 + criteria = new Criteria(); + criteria.add(Restrictions.eq("sp.storeId", storeId)); + criteria.add(Restrictions.lt("p.type", 10)); + List list = storeProductDao.getListExtend(tenantId,criteria); + if(CollectionUtils.isNotEmpty(list)){ + for(StoreProduct sp : list){ + criteria = new Criteria(); + criteria.add(Restrictions.eq("specId", sp.getSpecId())); + criteria.add(Restrictions.eq("storeId", storeId)); + this.storeProductDao.delete(tenantId, criteria); + } + } + //this.storeProductDao.delete(tenantId, criteria); + } else { + for (String storeProductId : storeProductIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("id", storeProductId)); + criteria.add(Restrictions.eq("storeId", storeId)); + this.storeProductDao.delete(tenantId, criteria); + } + } + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveStoreProductWithStoreId(String tenantId, String storeId, Boolean isAll, List productSpecIdList, String currentUser) throws Exception { + try { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + + List specList = null; + Criteria criteria = null; + if (isAll) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("p.deleteFlag", 0)); + criteria.add(Restrictions.eq("ps.deleteFlag", 0)); + Pager pager = new Pager(); + pager.setPageSize(1000); + pager.setPageNumber(1); + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.productSpecDao.getPagerOffShelf(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + specList = pageList; + + int pageCount = pager.getPageCount(); + for (int i = 2; i <= pageCount; i++) { + pageBounds = new PageBounds(i, pager.getPageSize()); + list = this.productSpecDao.getPagerOffShelf(tenantId, storeId, criteria, pageBounds); + if (list != null && list.size() > 0) { + specList.addAll(list); + } + } + } else { + criteria = new Criteria(); + criteria.add(Restrictions.in("ps.id", productSpecIdList)); + specList = this.productSpecDao.getListWithProduct(tenantId, criteria); + } + + if (specList == null || specList.size() == 0) { + return; + } + + List suitProductIdList = new ArrayList<>(); + // 上架 + // 查找门店下商品规格集合; + List specIds = storeProductDao.getSpecIdsList(tenantId, storeId); + StoreProduct storeProduct = null; + for (ProductSpec spec : specList) { + // 先删除 + // criteria = new Criteria(); + // criteria.add(Restrictions.eq("productId", + // spec.getProductId())); + // criteria.add(Restrictions.eq("specId", spec.getId())); + // criteria.add(Restrictions.eq("storeId", storeId)); + // this.storeProductDao.delete(tenantId, criteria); + + // 如果门店已存在此商品,跳过; + if (specIds.contains(spec.getId())) { + continue; + } + + storeProduct = new StoreProduct(); + storeProduct.setTenantId(tenantId); + storeProduct.setStoreId(storeId); + storeProduct.setProductId(spec.getProductId()); + storeProduct.setSpecId(spec.getId()); + storeProduct.setProductUnitId(spec.getUnitId()); + storeProduct.setPrice(spec.getPrice()); + storeProduct.setMemberPrice(spec.getMemberPrice()); + storeProduct.setCostPrice(spec.getCostPrice()); + storeProduct.setMinPrice(spec.getMinPrice()); + storeProduct.setOtherPrice(spec.getOtherPrice()); + storeProduct.setPurchasePrice(spec.getPurchasePrice()); + storeProduct.setDispatchPrice(spec.getDispatchPrice()); + storeProduct.setTypeId(spec.getTypeId()); + storeProduct.setTypePath(spec.getTypePath()); + storeProduct.setCreateUser(currentUser); + this.storeProductDao.save(tenantId, storeProduct); + if (spec.getSuitFlag() == 1) { + suitProductIdList.add(spec.getProductId()); + } + } + + // 门店商品上架时,套餐处理/套餐明细如果未关联到门店,则做关联处理 + for (String suitProductId : suitProductIdList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", suitProductId)); + // 套餐道菜 + List suitList = productSuitDao.getList(tenantId, criteria); + for (ProductSuit productSuit : suitList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("suitId", productSuit.getId())); + // 道菜明细 + List suitDetailList = productSuitDetailDao.getList(tenantId, criteria); + for (ProductSuitDetail suitDetail : suitDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.eq("productId", suitDetail.getProductId())); + criteria.add(Restrictions.eq("specId", suitDetail.getSpecId())); + List tempList = storeProductDao.getList(tenantId, criteria); + if (CollectionUtils.isEmpty(tempList)) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ps.id", suitDetail.getSpecId())); + List tempSpecList = this.productSpecDao.getListWithProduct(tenantId, criteria); + ProductSpec tempSpec = tempSpecList.get(0); + storeProduct = new StoreProduct(); + storeProduct.setTenantId(tenantId); + storeProduct.setStoreId(storeId); + storeProduct.setProductId(tempSpec.getProductId()); + storeProduct.setSpecId(tempSpec.getId()); + storeProduct.setProductUnitId(tempSpec.getUnitId()); + storeProduct.setPrice(tempSpec.getPrice()); + storeProduct.setMemberPrice(tempSpec.getMemberPrice()); + storeProduct.setCostPrice(tempSpec.getCostPrice()); + storeProduct.setMinPrice(tempSpec.getMinPrice()); + storeProduct.setOtherPrice(tempSpec.getOtherPrice()); + storeProduct.setPurchasePrice(tempSpec.getPurchasePrice()); + storeProduct.setDispatchPrice(tempSpec.getDispatchPrice()); + storeProduct.setTypeId(tempSpec.getTypeId()); + storeProduct.setTypePath(tempSpec.getTypePath()); + storeProduct.setCreateUser(currentUser); + this.storeProductDao.save(tenantId, storeProduct); + } + } + } + } + + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerWithStoreInfo(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storeProductDao.getPagerWithStoreInfo(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Map getSpecIdDispatchPriceMapByStoreId(String tenantId, String storeId) throws Exception { + Map map = new HashMap<>(); + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId)); + List storeProducts = storeProductDao.getList(tenantId, criteria); + if (storeProducts != null && storeProducts.size() > 0) { + for (StoreProduct sp : storeProducts) { + map.put(sp.getSpecId(), sp.getDispatchPrice()); + } + } + } catch (Exception e) { + throw e; + } + return map; + } + + @Override + public Integer saveByImpt(String tenantId, String storeId, List storeProductList, String currentUserName) throws Exception { + try { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notNull(storeProductList, "parameter 'storeProductList' can't be null or empty!"); + + int rows = 0; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ps.deleteFlag", 0)); + criteria.add(Restrictions.eq("p.deleteFlag", 0)); + List specList = this.productSpecDao.getListWithProduct(tenantId, criteria); + + Map dataMap = new HashMap<>(); + for (ProductSpec spec : specList) { + dataMap.put(spec.getProductNo() + "@" + (StringUtils.isBlank(spec.getName()) ? "" : StringUtils.trim(spec.getName())), spec); + } + + String key = null; + ProductSpec spec = null; + StoreProduct saveProduct = null; + for (StoreProduct storeProduct : storeProductList) { + key = storeProduct.getProductNo() + "@" + (StringUtils.isBlank(storeProduct.getSpecName()) ? "" : StringUtils.trim(storeProduct.getSpecName())); + if (dataMap.get(key) == null) { + continue; + } + spec = dataMap.get(key); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", spec.getProductId())); + criteria.add(Restrictions.eq("specId", spec.getId())); + criteria.add(Restrictions.eq("storeId", storeId)); + this.storeProductDao.delete(tenantId, criteria); + + saveProduct = new StoreProduct(); + saveProduct.setTenantId(tenantId); + saveProduct.setStoreId(storeId); + saveProduct.setProductId(spec.getProductId()); + saveProduct.setSpecId(spec.getId()); + saveProduct.setProductUnitId(spec.getUnitId()); + saveProduct.setPrice(storeProduct.getPrice()); + saveProduct.setMemberPrice(storeProduct.getMemberPrice()); + saveProduct.setCostPrice(spec.getCostPrice()); + saveProduct.setMinPrice(spec.getMinPrice()); + saveProduct.setOtherPrice(spec.getOtherPrice()); + saveProduct.setPurchasePrice(spec.getPurchasePrice()); + saveProduct.setDispatchPrice(spec.getDispatchPrice()); + saveProduct.setTypeId(spec.getTypeId()); + saveProduct.setTypePath(spec.getTypePath()); + saveProduct.setCreateUser(currentUserName); + this.storeProductDao.save(tenantId, saveProduct); + } + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveMaterialByImpt(String tenantId, String storeId, List storeProductList, String currentUserName) throws Exception { + try { + Assert.notNull(storeId, "parameter 'storeId' can't be null or empty!"); + Assert.notNull(storeProductList, "parameter 'storeProductList' can't be null or empty!"); + + int rows = 0; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ps.deleteFlag", 0)); + criteria.add(Restrictions.eq("p.deleteFlag", 0)); + List specList = this.productSpecDao.getListWithProduct(tenantId, criteria); + + Map dataMap = new HashMap<>(); + for (ProductSpec spec : specList) { + dataMap.put(spec.getProductNo() + "@" + (StringUtils.isBlank(spec.getName()) ? "" : StringUtils.trim(spec.getName())), spec); + } + + String key = null; + ProductSpec spec = null; + StoreProduct saveProduct = null; + for (StoreProduct storeProduct : storeProductList) { + key = storeProduct.getProductNo() + "@" + (StringUtils.isBlank(storeProduct.getSpecName()) ? "" : StringUtils.trim(storeProduct.getSpecName())); + if (dataMap.get(key) == null) { + continue; + } + spec = dataMap.get(key); + + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", spec.getProductId())); + criteria.add(Restrictions.eq("specId", spec.getId())); + criteria.add(Restrictions.eq("storeId", storeId)); + this.storeProductDao.delete(tenantId, criteria); + + saveProduct = new StoreProduct(); + saveProduct.setTenantId(tenantId); + saveProduct.setStoreId(storeId); + saveProduct.setProductId(spec.getProductId()); + saveProduct.setSpecId(spec.getId()); + saveProduct.setProductUnitId(spec.getUnitId()); + saveProduct.setPrice(spec.getPrice()); + saveProduct.setMemberPrice(spec.getMemberPrice()); + saveProduct.setCostPrice(storeProduct.getCostPrice()); + saveProduct.setMinPrice(spec.getMinPrice()); + saveProduct.setOtherPrice(spec.getOtherPrice()); + saveProduct.setPurchasePrice(storeProduct.getPurchasePrice()); + saveProduct.setDispatchPrice(storeProduct.getDispatchPrice()); + saveProduct.setTypeId(spec.getTypeId()); + saveProduct.setTypePath(spec.getTypePath()); + saveProduct.setCreateUser(currentUserName); + this.storeProductDao.save(tenantId, saveProduct); + } + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveCopyStoreMaterial(String tenantId, String refStoreId, String aimStoreId, String currentUserName) throws Exception { + Integer i = 0; + try{ + //查找目标门店现有原料; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("sp.storeId",aimStoreId)); + criteria.add(Restrictions.eq("p.type","10")); + List aimProducts = storeProductDao.getListExtend(tenantId,criteria,true); + Map map = new HashMap<>(); + if(CollectionUtils.isNotEmpty(aimProducts)){ + for(StoreProduct sp : aimProducts){ + map.put(sp.getSpecId(),sp); + } + } + + + //查找参考门店现有原料; + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("sp.storeId",refStoreId)); + crit.add(Restrictions.eq("p.type","10")); + List refProducts = storeProductDao.getListExtend(tenantId,crit,true); + + List updateList = new ArrayList<>(); + List saveList = new ArrayList<>(); + + for(StoreProduct product : refProducts){ + //已有的原料更新成本价、配送价等;没有的原料新增; + if(map.containsKey(product.getSpecId())){ + StoreProduct aimProduct = map.get(product.getSpecId()); + aimProduct.setCostPrice(product.getCostPrice()); + aimProduct.setDispatchPrice(product.getDispatchPrice()); + aimProduct.setPurchasePrice(product.getPurchasePrice()); + aimProduct.setModifyDate(new Date()); + aimProduct.setModifyUser(currentUserName); + updateList.add(aimProduct); + }else{ + StoreProduct nsp = new StoreProduct(); + nsp.setTenantId(tenantId); + nsp.setCreateDate(new Date()); + nsp.setCreateUser(currentUserName); + nsp.setStoreId(aimStoreId); + nsp.setSpecId(product.getSpecId()); + nsp.setProductId(product.getProductId()); + nsp.setSpecName(product.getSpecName()); + nsp.setProductUnitId(product.getProductUnitId()); + nsp.setTypeId(product.getTypeId()); + nsp.setTypePath(product.getTypePath()); + nsp.setPrice(product.getPrice()); + nsp.setMinPrice(product.getMinPrice()); + nsp.setMemberPrice(product.getMemberPrice()); + nsp.setOtherPrice(product.getOtherPrice()); + nsp.setCostPrice(product.getCostPrice()); + nsp.setPurchasePrice(product.getPurchasePrice()); + nsp.setDispatchPrice(product.getDispatchPrice()); + saveList.add(nsp); + } + } + if(updateList.size() > 0){ + storeProductDao.update(tenantId,updateList); + } + if(saveList.size() > 0){ + storeProductDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveCopyStoreProduct(String tenantId, String refStoreId, String aimStoreId, String currentUserName) throws Exception { + Integer i = 0; + try{ + //查找目标门店现有原料; + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("sp.storeId",aimStoreId)); + List types = new ArrayList<>(); + types.add("1"); + types.add("0"); + criteria.add(Restrictions.in("p.type",types)); + List aimProducts = storeProductDao.getListExtend(tenantId,criteria,true); + Map map = new HashMap<>(); + if(CollectionUtils.isNotEmpty(aimProducts)){ + for(StoreProduct sp : aimProducts){ + map.put(sp.getSpecId(),sp); + } + } + + + //查找参考门店现有原料; + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("sp.storeId",refStoreId)); + crit.add(Restrictions.in("p.type",types)); + List refProducts = storeProductDao.getListExtend(tenantId,crit,true); + + List updateList = new ArrayList<>(); + List saveList = new ArrayList<>(); + + for(StoreProduct product : refProducts){ + //已有的原料更新成本价、配送价等;没有的原料新增; + if(map.containsKey(product.getSpecId())){ + StoreProduct aimProduct = map.get(product.getSpecId()); + aimProduct.setPrice(product.getPrice()); + aimProduct.setMinPrice(product.getMinPrice()); + aimProduct.setMemberPrice(product.getMemberPrice()); + aimProduct.setOtherPrice(product.getOtherPrice()); + aimProduct.setModifyDate(new Date()); + aimProduct.setModifyUser(currentUserName); + updateList.add(aimProduct); + }else{ + StoreProduct nsp = new StoreProduct(); + nsp.setTenantId(tenantId); + nsp.setCreateDate(new Date()); + nsp.setCreateUser(currentUserName); + nsp.setStoreId(aimStoreId); + nsp.setSpecId(product.getSpecId()); + nsp.setProductId(product.getProductId()); + nsp.setSpecName(product.getSpecName()); + nsp.setProductUnitId(product.getProductUnitId()); + nsp.setTypeId(product.getTypeId()); + nsp.setTypePath(product.getTypePath()); + nsp.setPrice(product.getPrice()); + nsp.setMinPrice(product.getMinPrice()); + nsp.setMemberPrice(product.getMemberPrice()); + nsp.setOtherPrice(product.getOtherPrice()); + nsp.setCostPrice(product.getCostPrice()); + nsp.setPurchasePrice(product.getPurchasePrice()); + nsp.setDispatchPrice(product.getDispatchPrice()); + saveList.add(nsp); + } + } + if(updateList.size() > 0){ + storeProductDao.update(tenantId,updateList); + } + if(saveList.size() > 0){ + storeProductDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public List getSyncStoreDishList(String tenantId, Criteria c) throws Exception { + return storeProductDao.getSyncStoreDishList(tenantId,c); + } + + @Override + public List getListWithErpInfo(String tenantId, Criteria criteria) throws Exception { + try { + return this.storeProductDao.getListWithErpInfo(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getUsageList(String tenantId, Criteria criteria) throws Exception { + return this.storeProductDao.getUsageList(tenantId, criteria); + } + + @Override + public Integer saveStoreProductBySingleStoreAndProductId(String tenantId, String storeId,String productId,String currentUser) throws Exception { + Integer i = 0; + try{ + if(StringUtils.isNotEmpty(storeId) && StringUtils.isNotEmpty(productId)){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ps.productId",productId)); + List productSpecs = productSpecDao.getListWithProduct(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(productSpecs)){ + List storeProducts = new ArrayList<>(); + for(ProductSpec spec : productSpecs){ + StoreProduct storeProduct = new StoreProduct(); + storeProduct.setTenantId(tenantId); + storeProduct.setStoreId(storeId); + storeProduct.setProductId(spec.getProductId()); + storeProduct.setSpecId(spec.getId()); + storeProduct.setProductUnitId(spec.getUnitId()); + storeProduct.setPrice(spec.getPrice()); + storeProduct.setMemberPrice(spec.getMemberPrice()); + storeProduct.setCostPrice(spec.getCostPrice()); + storeProduct.setMinPrice(spec.getMinPrice()); + storeProduct.setOtherPrice(spec.getOtherPrice()); + storeProduct.setPurchasePrice(spec.getPurchasePrice()); + storeProduct.setDispatchPrice(spec.getDispatchPrice()); + storeProduct.setTypeId(spec.getTypeId()); + storeProduct.setTypePath(spec.getTypePath()); + storeProduct.setCreateUser(currentUser); + storeProducts.add(storeProduct); + } + i = storeProductDao.save(tenantId,storeProducts); + } + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public void updateStoreProductSaleStock(String tenantId, List orderProductList) { + try { + for (ProgramStoreOrderProduct storeProductSaleStock : orderProductList) { + // 更新缓存 + String productKey = "programKey:" + storeProductSaleStock.getStoreId() + ":" + storeProductSaleStock.getSpecId(); + Object productKeyValue = cacheService.get(tenantId, productKey); + if (productKeyValue != null) { + productKeyValue = Double.parseDouble(productKeyValue.toString()) - storeProductSaleStock.getCount(); + cacheService.set(tenantId, productKey, productKeyValue, 60 * 60 * 24); + } + this.storeProductDao.updateStoreProductSaleStock(tenantId, storeProductSaleStock.getStoreId(), storeProductSaleStock.getSpecId(), storeProductSaleStock.getCount()); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreServiceImpl.java new file mode 100644 index 0000000..ec5a748 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreServiceImpl.java @@ -0,0 +1,586 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.*; +import com.jwsaas.entity.food.*; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoreService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreServiceImpl") +public class StoreServiceImpl extends BaseServiceImpl implements StoreService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") + private StoreDao storeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreAreaDaoImpl") + private StoreAreaDao storeAreaDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreProductDaoImpl") + private StoreProductDao storeProductDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "MakeDetailDaoImpl") + private MakeDetailDao makeDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "BusinessPlanDaoImpl") + private BusinessPlanDao businessPlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductKitPlanDaoImpl") + private ProductKitPlanDao productKitPlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductKdsPlanDaoImpl") + private ProductKdsPlanDao productKdsPlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "PaymentParameterDaoImpl") + private PaymentParameterDao paymentParameterDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "RechargeParameterDaoImpl") + private RechargeParameterDao rechargeParameterDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "KitPlanDaoImpl") + private KitPlanDao kitPlanDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "KdsPlanDaoImpl") + private KdsPlanDao kdsPlanDao; + + + + @Override + public BaseDao getBaseDao() { + return this.storeDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storeDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Store saveStore(String tenantId, Store store, List brandIdList) throws Exception { + try { + if (StringUtils.isNotBlank(store.getAreaId())) { + StoreArea storeArea = storeAreaDao.get(tenantId, store.getAreaId(), true); + if (storeArea == null) { + store.setAreaId(null); + store.setAreaPath(null); + } else { + store.setAreaId(storeArea.getId()); + store.setAreaPath(storeArea.getPath()); + } + } + + store = this.storeDao.save(tenantId, store, true); + if (CollectionUtils.isNotEmpty(brandIdList)) { + this.storeDao.saveBrands(tenantId, store.getId(), brandIdList); + } + return store; + } catch (Exception e) { + throw e; + } + } + + + @Override + public Store saveStores(String tenantId, Store store, Integer length, List brandIdList) throws Exception { + try { + if (StringUtils.isNotBlank(store.getAreaId())) { + StoreArea storeArea = storeAreaDao.get(tenantId, store.getAreaId(), true); + if (storeArea == null) { + store.setAreaId(null); + store.setAreaPath(null); + } else { + store.setAreaId(storeArea.getId()); + store.setAreaPath(storeArea.getPath()); + } + } + //判断门店编号是否可用; + if (store.getNoType() == 1) { + if (!storeDao.isExistBatch(tenantId,"no",store.getNo())) { + String maxNo = storeDao.selectMaxValueBatch(tenantId, "no"); + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + int maxNoInt = 0; + maxNoInt = Integer.parseInt(maxNo); + String nextNo = StringUtils.leftPad("" + (maxNoInt + 1), length, "0"); + store.setNo(nextNo); + } + } + store = this.storeDao.save(tenantId, store, true); + if (CollectionUtils.isNotEmpty(brandIdList)) { + this.storeDao.saveBrands(tenantId, store.getId(), brandIdList); + } + return store; + } catch (Exception e) { + throw e; + } + } + + + @Override + public List getBrandIdList(String tenantId, String storeId) throws Exception { + try { + return this.storeDao.getBrandIdList(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStore(String tenantId, Store store, List brandIdList) throws Exception { + try { + if (StringUtils.isNotBlank(store.getAreaId())) { + StoreArea storeArea = storeAreaDao.get(tenantId, store.getAreaId(), true); + if (storeArea == null) { + store.setAreaId(null); + store.setAreaPath(null); + } else { + store.setAreaId(storeArea.getId()); + store.setAreaPath(storeArea.getPath()); + } + } + + int rows = this.storeDao.update(tenantId, store, true); + this.storeDao.delBrands(tenantId, store.getId()); + if (CollectionUtils.isNotEmpty(brandIdList)) { + this.storeDao.saveBrands(tenantId, store.getId(), brandIdList); + } + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + for (String storeId : ids) { + this.storeDao.delBrands(tenantId, storeId); + } + int rows = this.storeDao.delete(tenantId, ids); + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storeDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.storeDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Store saveCopyStore(String tenantId, Store store, String newStoreName, String newStoreNo,String nextNo, String[] functions, String operatorName) throws Exception { + Store newStore = null; + try{ + newStore = new Store(); + newStore.setCreateUser(operatorName); + newStore.setCreateDate(new Date()); + newStore.setName(newStoreName); + newStore.setNo(newStoreNo); + newStore.setTenantId(tenantId); + newStore.setTypeId(store.getTypeId()); + newStore.setPrintName(newStoreName); + newStore.setRegisterFlag(1); + newStore.setEnabled(1); + if(StringUtils.equals(newStoreNo,nextNo)){ + newStore.setNoType(1); + }else { + newStore.setNoType(2); + } + newStore = storeDao.save(tenantId,newStore); + + //保存营业日方案 + List planList = businessPlanDao.getBusinessPlanByStoreId(tenantId,store.getId()); + if(CollectionUtils.isNotEmpty(planList)){ + for(BusinessPlan plan : planList){ + businessPlanDao.saveStorePlanRelation(tenantId,plan.getId(),newStore.getId()); + } + } + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",store.getId())); + + for(int i = 0; i < functions.length; i++ ){ + switch (functions[i]){ + case "productInfo"://商品原料信息; + List products = storeProductDao.getList(tenantId,criteria); + + if(CollectionUtils.isNotEmpty(products)){ + for(StoreProduct sp : products){ + StoreProduct product = new StoreProduct(); + product.setTenantId(tenantId); + product.setCreateUser(operatorName); + product.setCreateDate(new Date()); + product.setStoreId(newStore.getId()); + product.setProductId(sp.getProductId()); + product.setSpecId(sp.getSpecId()); + product.setProductUnitId(sp.getProductUnitId()); + product.setTypeId(sp.getTypeId()); + product.setTypePath(sp.getTypePath()); + product.setPrice(sp.getPrice()); + product.setMinPrice(sp.getMinPrice()); + product.setMemberPrice(sp.getMemberPrice()); + product.setOtherPrice(sp.getOtherPrice()); + product.setCostPrice(sp.getCostPrice()); + product.setPurchasePrice(sp.getPurchasePrice()); + product.setDispatchPrice(sp.getDispatchPrice()); + storeProductDao.save(tenantId,product); + } + } + break; + case "productMake"://做法信息; + List makeDetails = makeDetailDao.getListByStoreId(tenantId,store.getId(),new Criteria()); + if(CollectionUtils.isNotEmpty(makeDetails)){ + for(MakeDetail detail : makeDetails){ + makeDetailDao.saveRelationStoreMake(tenantId,newStore.getId(),detail.getId(),detail.getNewAddPrice()); + } + } + break; + case "productKit"://厨打信息; + List plans = kitPlanDao.getListBystoreId(tenantId,store.getId()); + if(CollectionUtils.isNotEmpty(plans)){ + List kitPlans = new ArrayList<>(); + for(KitPlan kitPlan : plans){ + KitPlan kp = new KitPlan(); + kp.setId(kitPlan.getId()); + kp.setStoreId(newStore.getId()); + kp.setTenantId(tenantId); + kitPlans.add(kp); + } + kitPlanDao.saveKitPlanStoreRelation(tenantId,kitPlans); + + List kitPlanList = productKitPlanDao.findList(tenantId,"storeId",store.getId()); + if(CollectionUtils.isNotEmpty(kitPlanList)){ + for(ProductKitPlan plan : kitPlanList){ + ProductKitPlan pkp = new ProductKitPlan(); + pkp.setTenantId(tenantId); + pkp.setCreateUser(operatorName); + pkp.setCreateDate(new Date()); + pkp.setStoreId(newStore.getId()); + pkp.setProductId(plan.getProductId()); + pkp.setChuda(plan.getChuda()); + pkp.setChudaFlag(plan.getChudaFlag()); + pkp.setChupin(plan.getChupin()); + pkp.setChupinFlag(plan.getChupinFlag()); + pkp.setLabelValue(plan.getLabelValue()); + pkp.setLabelFlag(plan.getLabelFlag()); + productKitPlanDao.save(tenantId,pkp); + } + + } + + } + + break; + case "productKds"://厨显信息; + List list = kdsPlanDao.getListBystoreId(tenantId,store.getId()); + if(CollectionUtils.isNotEmpty(list)){ + List kdsPlans = new ArrayList<>(); + for(KdsPlan plan : list){ + KdsPlan kp = new KdsPlan(); + kp.setStoreId(newStore.getId()); + kp.setId(plan.getId()); + kp.setTenantId(tenantId); + kdsPlans.add(kp); + } + kdsPlanDao.saveKdsPlanStoreRelationSigle(tenantId,kdsPlans); + + List kdsPlanList = productKdsPlanDao.findList(tenantId,"storeId",store.getId()); + if(CollectionUtils.isNotEmpty(kdsPlanList)){ + for(ProductKdsPlan plan : kdsPlanList){ + ProductKdsPlan pkp = new ProductKdsPlan(); + pkp.setTenantId(tenantId); + pkp.setCreateUser(operatorName); + pkp.setCreateDate(new Date()); + pkp.setStoreId(newStore.getId()); + pkp.setProductId(plan.getProductId()); + pkp.setChuxian(plan.getChuxian()); + pkp.setChuxianFlag(plan.getChuxianFlag()); + pkp.setChuxianTime(plan.getChuxianTime()); + pkp.setChupin(plan.getChupin()); + pkp.setChupinFlag(plan.getChupinFlag()); + pkp.setChupinTime(plan.getChupinTime()); + productKdsPlanDao.save(tenantId,pkp); + } + } + } + + break; + case "paymentParameter"://支付参数信息; + List paymentParameterList = paymentParameterDao.getPaymentParameterByStoreId(tenantId,store.getId()); + if(CollectionUtils.isNotEmpty(paymentParameterList)){ + List parameterList = new ArrayList<>(); + for(PaymentParameter parameter : paymentParameterList){ + PaymentParameter paymentParameter = new PaymentParameter(); + paymentParameter.setTenantId(tenantId); + paymentParameter.setId(parameter.getId()); + paymentParameter.setStoreId(newStore.getId()); + parameterList.add(paymentParameter); + } + paymentParameterDao.savePaymentParameterStoreRelationBySingleType(tenantId,parameterList); + } + break; + case "rechargeParameter"://充值参数信息; + List rechargeParameterList = rechargeParameterDao.getListByStoreId(tenantId,store.getId(),new Criteria()); + if(CollectionUtils.isNotEmpty(rechargeParameterList)){ + List parameterList = new ArrayList<>(); + for(RechargeParameter parameter : rechargeParameterList){ + RechargeParameter paymentParameter = new RechargeParameter(); + paymentParameter.setTenantId(tenantId); + paymentParameter.setId(parameter.getId()); + paymentParameter.setStoreId(newStore.getId()); + parameterList.add(paymentParameter); + } + rechargeParameterDao.saveRechargeParameterStoreRelationBySingleType(tenantId,parameterList); + } + break; + } + } + + }catch(Exception e){ + throw e; + } + return newStore; + } + + @Override + public List getAllStoreIds(String tenantId,Criteria criteria) throws Exception { + try { + return this.storeDao.getAllStoreIds(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Store updateCopyStore(String tenantId, Store store, String nStoreId, String[] functions, String operatorName) throws Exception { + Store newStore = null; + try { + newStore = storeDao.get(tenantId, nStoreId); + newStore.setModifyDate(new Date()); + newStore.setModifyUser(operatorName); + storeDao.update(tenantId, newStore); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", store.getId())); + + + for(int i = 0; i < functions.length; i++ ){ + switch (functions[i]){ + case "productInfo": + List products = storeProductDao.getList(tenantId,criteria); + + Criteria crit = new Criteria(); + crit.add(Restrictions.eq("storeId",nStoreId)); + storeProductDao.delete(tenantId,crit); + + if(CollectionUtils.isNotEmpty(products)){ + for(StoreProduct sp : products){ + StoreProduct product = new StoreProduct(); + product.setTenantId(tenantId); + product.setCreateUser(operatorName); + product.setCreateDate(new Date()); + product.setStoreId(newStore.getId()); + product.setProductId(sp.getProductId()); + product.setSpecId(sp.getSpecId()); + product.setProductUnitId(sp.getProductUnitId()); + product.setTypeId(sp.getTypeId()); + product.setTypePath(sp.getTypePath()); + product.setPrice(sp.getPrice()); + product.setMinPrice(sp.getMinPrice()); + product.setMemberPrice(sp.getMemberPrice()); + product.setOtherPrice(sp.getOtherPrice()); + product.setCostPrice(sp.getCostPrice()); + product.setPurchasePrice(sp.getPurchasePrice()); + product.setDispatchPrice(sp.getDispatchPrice()); + storeProductDao.save(tenantId,product); + } + } + break; + case "productMake": + List makeDetails = makeDetailDao.getListByStoreId(tenantId,store.getId(),new Criteria()); + + Criteria crits = new Criteria(); + crits.add(Restrictions.eq("storeId",nStoreId)); + makeDetailDao.deleteRelationStoreMake(tenantId,crits); + + if(CollectionUtils.isNotEmpty(makeDetails)){ + for(MakeDetail detail : makeDetails){ + makeDetailDao.saveRelationStoreMake(tenantId,newStore.getId(),detail.getId(),detail.getNewAddPrice()); + } + } + break; + case "productKit"://厨打信息; + Criteria criter = new Criteria(); + criter.add(Restrictions.eq("storeId",nStoreId)); + productKitPlanDao.delete(tenantId,criter); + kitPlanDao.deleteKitPlanStoreByCriteria(tenantId,criter); + + + List plans = kitPlanDao.getListBystoreId(tenantId,store.getId()); + if(CollectionUtils.isNotEmpty(plans)){ + List kitPlans = new ArrayList<>(); + for(KitPlan kitPlan : plans){ + KitPlan kp = new KitPlan(); + kp.setId(kitPlan.getId()); + kp.setStoreId(nStoreId); + kp.setTenantId(tenantId); + kitPlans.add(kp); + } + kitPlanDao.saveKitPlanStoreRelation(tenantId,kitPlans); + + List kitPlanList = productKitPlanDao.findList(tenantId,"storeId",store.getId()); + if(CollectionUtils.isNotEmpty(kitPlanList)){ + for(ProductKitPlan plan : kitPlanList){ + ProductKitPlan pkp = new ProductKitPlan(); + pkp.setTenantId(tenantId); + pkp.setCreateUser(operatorName); + pkp.setCreateDate(new Date()); + pkp.setStoreId(nStoreId); + pkp.setProductId(plan.getProductId()); + pkp.setChuda(plan.getChuda()); + pkp.setChudaFlag(plan.getChudaFlag()); + pkp.setChupin(plan.getChupin()); + pkp.setChupinFlag(plan.getChupinFlag()); + pkp.setLabelValue(plan.getLabelValue()); + pkp.setLabelFlag(plan.getLabelFlag()); + productKitPlanDao.save(tenantId,pkp); + } + + } + + } + break; + case "productKds"://厨打信息; + Criteria criters = new Criteria(); + criters.add(Restrictions.eq("storeId",nStoreId)); + productKdsPlanDao.delete(tenantId,criters); + kdsPlanDao.deleteKdsPlanStoreByCriteria(tenantId,criters); + + List list = kdsPlanDao.getListBystoreId(tenantId,store.getId()); + if(CollectionUtils.isNotEmpty(list)){ + List kdsPlans = new ArrayList<>(); + for(KdsPlan plan : list){ + KdsPlan kp = new KdsPlan(); + kp.setStoreId(newStore.getId()); + kp.setId(plan.getId()); + kp.setTenantId(tenantId); + kdsPlans.add(kp); + } + kdsPlanDao.saveKdsPlanStoreRelationSigle(tenantId,kdsPlans); + + List kdsPlanList = productKdsPlanDao.findList(tenantId,"storeId",store.getId()); + if(CollectionUtils.isNotEmpty(kdsPlanList)){ + for(ProductKdsPlan plan : kdsPlanList){ + ProductKdsPlan pkp = new ProductKdsPlan(); + pkp.setTenantId(tenantId); + pkp.setCreateUser(operatorName); + pkp.setCreateDate(new Date()); + pkp.setStoreId(newStore.getId()); + pkp.setProductId(plan.getProductId()); + pkp.setChuxian(plan.getChuxian()); + pkp.setChuxianFlag(plan.getChuxianFlag()); + pkp.setChuxianTime(plan.getChuxianTime()); + pkp.setChupin(plan.getChupin()); + pkp.setChupinFlag(plan.getChupinFlag()); + pkp.setChupinTime(plan.getChupinTime()); + productKdsPlanDao.save(tenantId,pkp); + } + } + } + + break; + case "paymentParameter"://支付参数信息; + Criteria criteri = new Criteria(); + criteri.add(Restrictions.eq("storeId",nStoreId)); + paymentParameterDao.deleteRelationByParameterId(tenantId,criteri); + List paymentParameterList = paymentParameterDao.getPaymentParameterByStoreId(tenantId,store.getId()); + if(CollectionUtils.isNotEmpty(paymentParameterList)){ + List parameterList = new ArrayList<>(); + for(PaymentParameter parameter : paymentParameterList){ + PaymentParameter paymentParameter = new PaymentParameter(); + paymentParameter.setTenantId(tenantId); + paymentParameter.setId(parameter.getId()); + paymentParameter.setStoreId(newStore.getId()); + parameterList.add(paymentParameter); + } + paymentParameterDao.savePaymentParameterStoreRelationBySingleType(tenantId,parameterList); + } + break; + case "rechargeParameter"://充值参数信息; + Criteria c = new Criteria(); + c.add(Restrictions.eq("storeId",nStoreId)); + rechargeParameterDao.deleteRelationByParameterId(tenantId,c); + List rechargeParameterList = rechargeParameterDao.getListByStoreId(tenantId,store.getId(),new Criteria()); + if(CollectionUtils.isNotEmpty(rechargeParameterList)){ + List parameterList = new ArrayList<>(); + for(RechargeParameter parameter : rechargeParameterList){ + RechargeParameter paymentParameter = new RechargeParameter(); + paymentParameter.setTenantId(tenantId); + paymentParameter.setId(parameter.getId()); + paymentParameter.setStoreId(newStore.getId()); + parameterList.add(paymentParameter); + } + rechargeParameterDao.saveRechargeParameterStoreRelationBySingleType(tenantId,parameterList); + } + break; + } + } + } catch (Exception e) { + throw e; + } + return newStore; + } + + @Override + public Integer saveShopGroupRelation(String tenantId, List shopIds, String groupId, String groupNo) + throws Exception { + Integer result = 0; + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id", shopIds)); + criteria.add(Restrictions.isNull("groupId")); + result += this.storeDao.updateDefaultGroup(tenantId, groupId, groupNo, criteria); + } catch (Exception e) { + throw e; + } + return result; + + } + + @Override + public List getStoreIdsByBrandId(String tenantId, String brandId) throws Exception { + try{ + return storeDao.getStoreIdsByBrandId(tenantId,brandId); + }catch (Exception e){ + throw e; + } + + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTemplateDetailServiceImpl.java new file mode 100644 index 0000000..cf20c16 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTemplateDetailServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStockCheckTemplateDetailDao; +import com.jwsaas.entity.food.StoreStockCheckTemplateDetail; +import com.jwsaas.service.food.StoreStockCheckTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreStockCheckTemplateDetailServiceImpl") +public class StoreStockCheckTemplateDetailServiceImpl extends BaseServiceImpl implements StoreStockCheckTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreStockCheckTemplateDetailDaoImpl") + private StoreStockCheckTemplateDetailDao storeStockCheckTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStockCheckTemplateDetailDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTemplateServiceImpl.java new file mode 100644 index 0000000..3db5fb1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTemplateServiceImpl.java @@ -0,0 +1,147 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreStockCheckTemplateDetailDao; +import com.jwsaas.entity.food.StoreStockCheckTemplateDetail; +import com.jwsaas.entity.ops.CardReaderInfo; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStockCheckTemplateDao; +import com.jwsaas.entity.food.StoreStockCheckTemplate; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoreStockCheckTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; + + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreStockCheckTemplateServiceImpl") +public class StoreStockCheckTemplateServiceImpl extends BaseServiceImpl implements StoreStockCheckTemplateService{ + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTemplateDaoImpl") + private StoreStockCheckTemplateDao storeStockCheckTemplateDao; + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreStockCheckTemplateDetailDaoImpl") + private StoreStockCheckTemplateDetailDao storeStockCheckTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStockCheckTemplateDao; + } + + @Override + public Pager getPagerByStoreId(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storeStockCheckTemplateDao.getPagerByStoreId(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + + + @Override + public Integer saveTemplateDetailStoreIds(String tenantId, StoreStockCheckTemplate template, List details, List storeIds) throws Exception { + Integer i = 0; + try{ + StoreStockCheckTemplate t = storeStockCheckTemplateDao.save(tenantId,template,true); + if(CollectionUtils.isNotEmpty(details)){ + for(StoreStockCheckTemplateDetail detail: details){ + detail.setTicketId(t.getId()); + } + storeStockCheckTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(storeIds)){ + List templates = new ArrayList<>(); + for(String storeId : storeIds){ + StoreStockCheckTemplate tem = new StoreStockCheckTemplate(); + tem.setTenantId(tenantId); + tem.setId(t.getId()); + tem.setStoreId(storeId); + templates.add(tem); + } + storeStockCheckTemplateDao.saveTemplateRelations(tenantId,templates); + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String id) throws Exception { + return storeStockCheckTemplateDao.getStoreIdByTemplateId(tenantId,id); + } + + @Override + public Integer updateTemplateDetailStoreIds(String tenantId, StoreStockCheckTemplate template, List details, List storeIds) throws Exception { + Integer i = 0; + try{ + storeStockCheckTemplateDao.update(tenantId,template,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",template.getId())); + storeStockCheckTemplateDetailDao.delete(tenantId,criteria,true); + storeStockCheckTemplateDao.deleteTemplateRelations(tenantId,criteria,true); + + if(CollectionUtils.isNotEmpty(details)){ + for(StoreStockCheckTemplateDetail detail: details){ + detail.setTicketId(template.getId()); + } + storeStockCheckTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(storeIds)){ + List templates = new ArrayList<>(); + for(String storeId : storeIds){ + StoreStockCheckTemplate tem = new StoreStockCheckTemplate(); + tem.setTenantId(tenantId); + tem.setId(template.getId()); + tem.setStoreId(storeId); + templates.add(tem); + } + storeStockCheckTemplateDao.saveTemplateRelations(tenantId,templates); + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteTemplateDetailStoreIds(String tenantId, List templateIds) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("ticketId",templateIds)); + storeStockCheckTemplateDetailDao.delete(tenantId,criteria,true); + storeStockCheckTemplateDao.deleteTemplateRelations(tenantId,criteria,true); + storeStockCheckTemplateDao.delete(tenantId,templateIds); + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public List getAllStoreIds(String tenantId) throws Exception { + return storeStockCheckTemplateDao.getAllStoreIds(tenantId); + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketDetailServiceImpl.java new file mode 100644 index 0000000..127f86a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketDetailServiceImpl.java @@ -0,0 +1,109 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStockCheckTicketDetailDao; +import com.jwsaas.entity.food.StoreStockCheckTicketDetail; +import com.jwsaas.service.food.StoreStockCheckTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketDetailServiceImpl") +public class StoreStockCheckTicketDetailServiceImpl extends BaseServiceImpl implements StoreStockCheckTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketDetailDaoImpl") + private StoreStockCheckTicketDetailDao storeStockCheckTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStockCheckTicketDetailDao; + } + + @Override + public List> getList4UnCheck(String tenantId, Criteria criteria) throws Exception { + try { + return this.storeStockCheckTicketDetailDao.getList4UnCheck(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getList4CheckProduct(String tenantId, String storeId, String storageId, String specIds) throws Exception { + try { + String sql = "SELECT ctd.specId FROM cy_store_stock_check_ticket_detail ctd LEFT JOIN cy_store_stock_check_ticket ct ON (ctd.ticketId=ct.id AND ctd.tenantId=ct.tenantId)" + + " where ctd.tenantId=" + tenantId + " and ct.storeId=" + storeId + " and ctd.storageId=" + storageId + " and ct.status=0 and ctd.specId in (" + specIds + ") "; + List> list = this.storeStockCheckTicketDetailDao.selectList(sql); + + List usingList = new ArrayList<>(); + for (Map data : list) { + usingList.add(data.get("specId").toString()); + } + + List> resultList = new ArrayList<>(); + String[] specIdArray = StringUtils.split(specIds, ","); + Map tempMap = null; + for (String specId : specIdArray) { + if (!usingList.contains(specId)) { + tempMap = new HashMap<>(); + tempMap.put("specId", specId); + resultList.add(tempMap); + } + } + + return resultList; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerCheckedTicketDetails(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storeStockCheckTicketDetailDao.getPagerCheckedTicketDetails(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListCheckedTicketDetails(String tenantId, Criteria criteria) throws Exception { + try { + return storeStockCheckTicketDetailDao.getListCheckedTicketDetails(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer update(String tenantId, List entity) throws Exception { + try { + Assert.notEmpty(entity, "parameter 'entity' can't be null or empty!"); + for (StoreStockCheckTicketDetail detail : entity) { + this.storeStockCheckTicketDetailDao.update(tenantId, detail); + } + return entity.size(); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketLogServiceImpl.java new file mode 100644 index 0000000..4e76e63 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStockCheckTicketLogDao; +import com.jwsaas.entity.food.StoreStockCheckTicketLog; +import com.jwsaas.service.food.StoreStockCheckTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketLogServiceImpl") +public class StoreStockCheckTicketLogServiceImpl extends BaseServiceImpl implements StoreStockCheckTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketLogDaoImpl") + private StoreStockCheckTicketLogDao storeStockCheckTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStockCheckTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketServiceImpl.java new file mode 100644 index 0000000..9918627 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStockCheckTicketServiceImpl.java @@ -0,0 +1,265 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductStoreStockDao; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.StoreProductDao; +import com.jwsaas.dao.food.StoreStockCheckTicketDao; +import com.jwsaas.dao.food.StoreStockCheckTicketDetailDao; +import com.jwsaas.dao.food.StoreStockCheckTicketLogDao; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductStoreStock; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.entity.food.StoreProduct; +import com.jwsaas.entity.food.StoreStockCheckTicket; +import com.jwsaas.entity.food.StoreStockCheckTicketDetail; +import com.jwsaas.entity.food.StoreStockCheckTicketLog; +import com.jwsaas.service.food.StoreStockCheckTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketServiceImpl") +public class StoreStockCheckTicketServiceImpl extends BaseServiceImpl implements StoreStockCheckTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketDaoImpl") + private StoreStockCheckTicketDao storeStockCheckTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketDetailDaoImpl") + private StoreStockCheckTicketDetailDao storeStockCheckTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStockCheckTicketLogDaoImpl") + private StoreStockCheckTicketLogDao storeStockCheckTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") + private ProductStoreStockDao productStoreStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") + private ProductStoreStockLogDao productStoreStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductDaoImpl") + private ProductDao productDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreProductDaoImpl") + private StoreProductDao storeProductDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStockCheckTicketDao; + } + + @Override + public StoreStockCheckTicket saveTicket(String tenantId, StoreStockCheckTicket ticket, List ticketDetailList, StoreStockCheckTicketLog ticketLog) throws Exception { + try { + ticket = this.storeStockCheckTicketDao.save(tenantId, ticket, true); + // 商品库存资料 + Map stockMap = new HashMap<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", ticket.getStoreId())); + criteria.add(Restrictions.limit("0", "15000")); + List storeStockList = productStoreStockDao.getList(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(storeStockList)) { + for (ProductStoreStock productStore : storeStockList) { + stockMap.put(productStore.getSpecId() + "-" + productStore.getStorageId(), productStore); + } + } + // 获取商品价格 + Map productMap = new HashMap<>(); + criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", ticket.getStoreId())); + criteria.add(Restrictions.limit("0", "15000")); + List storeProductList = storeProductDao.getList(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(storeProductList)) { + for (StoreProduct storeProduct : storeProductList) { + productMap.put(storeProduct.getSpecId(), storeProduct); + } + } + for (StoreStockCheckTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(ticket.getId()); + ticketDetail.setCreateUser(ticket.getSetMan()); + ticketDetail.setTenantId(tenantId); + // 获取门店商品库存信息 + ProductStoreStock stock = stockMap.get(ticketDetail.getSpecId() + "-" + ticketDetail.getStorageId()); + // 获取商品的门店盘点价格 + StoreProduct storeProduct = productMap.get(ticketDetail.getSpecId()); + Double sysPrice = 0D; + if (storeProduct != null) { + sysPrice = storeProduct.getDispatchPrice(); + } + if (stock != null) { + Double sysMoney = MathUtil.multiply(sysPrice, stock.getStockAmount(), 2, BigDecimal.ROUND_HALF_UP); + ticketDetail.setSysPrice(sysPrice); + ticketDetail.setSysAmount(stock.getStockAmount()); + ticketDetail.setSysMoney(sysMoney);// ticketDetail.setSysMoney(stock.getStockCost()); + ticketDetail.setCheckAmount(0D); + ticketDetail.setCheckMoney(0D); + ticketDetail.setDifferenceAmount(MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(ticketDetail.getSysAmount())).doubleValue()); + ticketDetail.setDifferenceMoney(MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(ticketDetail.getSysMoney())).doubleValue()); + } else { + ticketDetail.setSysPrice(sysPrice); + ticketDetail.setSysAmount(0D); + ticketDetail.setSysMoney(0D); + ticketDetail.setCheckAmount(0D); + ticketDetail.setCheckMoney(0D); + ticketDetail.setDifferenceAmount(0D); + ticketDetail.setDifferenceMoney(0D); + } + } + if(CollectionUtils.isNotEmpty(ticketDetailList)){ + this.storeStockCheckTicketDetailDao.save(tenantId, ticketDetailList); + } + ticketLog.setTicketId(ticket.getId()); + ticketLog.setTicketNo(ticket.getNo()); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + this.storeStockCheckTicketLogDao.save(tenantId, ticketLog, true); + return ticket; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicketStatus(String tenantId, String storeId, String storageId, Integer status, String checkMan) throws Exception { + try { + int result = 0; + List ticketList = storeStockCheckTicketDao.getUnCheckList(tenantId, storeId, storageId, true); + if (CollectionUtils.isEmpty(ticketList)) { + throw new Exception("没有可以操作的单据"); + } + switch (status) { + case 1: + // 审核 + // 商品单位 + Criteria criteria = new Criteria(); + List productUnitList = productUnitDao.getList(tenantId, criteria, true); + Map productUnitMap = new HashMap<>(); + for (ProductUnit productUnit : productUnitList) { + productUnitMap.put(productUnit.getId(), productUnit); + } + //库存系数 + criteria = new Criteria(); + criteria.add(Restrictions.limit("0", "20000")); + List productRatioList = productRatioDao.getList(tenantId, criteria, true); + Map ratioMap = new HashMap<>(); + if (CollectionUtils.isNotEmpty(productRatioList)) { + for (ProductRatio ratio : productRatioList) { + if (!ratioMap.containsKey(ratio.getProductId())) { + ratioMap.put(ratio.getProductId(), ratio); + } + } + } + for (StoreStockCheckTicket ticket : ticketList) { + ticket.setStatus(1); + ticket.setCheckMan(checkMan); + ticket.setCheckDate(new Date()); + storeStockCheckTicketDao.update(tenantId, ticket, true); + // 审核成功,处理单据明细 + List ticketDetailList = storeStockCheckTicketDetailDao.findList(tenantId, "ticketId", ticket.getId(), true); + for (StoreStockCheckTicketDetail ticketDetail : ticketDetailList) { + String operator = checkMan; + String ticketNo = ticket.getNo(); + // criteria = new Criteria(); + // criteria.add(Restrictions.eq("productId", + // ticketDetail.getProductId())); + // List productRatioList = + // productRatioDao.getList(tenantId, criteria, true); + ProductRatio ratio = ratioMap.get(ticketDetail.getProductId()); + + String dispatchUnitId = ratio.getDispatchUnitId(); + String dispatchUnitName = productUnitMap.get(dispatchUnitId).getName(); + String packUnitId = ticketDetail.getStockUnitId(); + String packUnitName = ticketDetail.getStockUnitName(); + String salesUnitId = ticketDetail.getStockUnitId(); + String salesUnitName = ticketDetail.getStockUnitName(); + + // 1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库;7-盘亏;8-盘盈 + if (MathUtil.gt(new BigDecimal(ticketDetail.getDifferenceAmount()), BigDecimal.ZERO)) { + Integer ticketType = 8; + String ticketTypeName = "盘盈"; + Double price = ticketDetail.getSysPrice(); + Double quantity = ticketDetail.getDifferenceAmount(); + Double money = ticketDetail.getDifferenceMoney(); + this.productStoreStockDao.stockInByStoreStorageTicket(tenantId, storeId, ticketDetail.getStorageId(), ticketDetail.getStorageName(), ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketType, ticketTypeName, ticketNo, dispatchUnitId, dispatchUnitName, packUnitId, packUnitName, price, quantity, money, operator, ratio, productStoreStockLogDao); + + } else if (MathUtil.lt(new BigDecimal(ticketDetail.getDifferenceAmount()), BigDecimal.ZERO)) { + Integer ticketType = 7; + String ticketTypeName = "盘亏"; + BigDecimal price = new BigDecimal(ticketDetail.getSysPrice()); + BigDecimal quantity = MathUtil.subtract(BigDecimal.ZERO, new BigDecimal(ticketDetail.getDifferenceAmount())); + BigDecimal money = new BigDecimal(ticketDetail.getDifferenceMoney()); + this.productStoreStockDao.stockOut(tenantId, storeId, ticketDetail.getStorageId(), ticketDetail.getStorageName(), ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketType, ticketTypeName, ticketNo, salesUnitId, salesUnitName, packUnitId, packUnitName, price, quantity, money, operator, ratio, dispatchUnitId, dispatchUnitName, productStoreStockLogDao); + } + + StoreStockCheckTicketLog ticketLog = new StoreStockCheckTicketLog(); + ticketLog.setType(2);// 操作类型(0-新建;1-修改;2-审核;3-作废;4-反审核;) + ticketLog.setStatus(ticket.getStatus()); + ticketLog.setDescription("审核单据"); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + ticketLog.setTicketId(ticket.getId()); + ticketLog.setTicketNo(ticket.getNo()); + ticketLog.setCreateUser(checkMan); + ticketLog.setTenantId(tenantId); + this.storeStockCheckTicketLogDao.save(tenantId, ticketLog, true); + } + + result++; + } + break; + case 2: + // 作废 + for (StoreStockCheckTicket ticket : ticketList) { + ticket.setStatus(2); + ticket.setCheckMan(checkMan); + ticket.setCheckDate(new Date()); + storeStockCheckTicketDao.update(tenantId, ticket, true); + + StoreStockCheckTicketLog ticketLog = new StoreStockCheckTicketLog(); + ticketLog.setType(3);// 操作类型(0-新建;1-修改;2-审核;3-作废;4-反审核;) + ticketLog.setStatus(ticket.getStatus()); + ticketLog.setDescription("作废单据"); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + ticketLog.setTicketId(ticket.getId()); + ticketLog.setTicketNo(ticket.getNo()); + ticketLog.setCreateUser(checkMan); + ticketLog.setTenantId(tenantId); + this.storeStockCheckTicketLogDao.save(tenantId, ticketLog, true); + + result++; + } + break; + default: + break; + } + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getSummary(String tenantId, String storeId, String no, String storageId, String startTime, String endTime, String typeId, String keyword) throws Exception { + try { + return this.storeStockCheckTicketDao.getSummary(tenantId, storeId, no, storageId, startTime, endTime, typeId, keyword); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketDetailServiceImpl.java new file mode 100644 index 0000000..ba2e9f6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketDetailServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStorageOutTicketDetailDao; +import com.jwsaas.entity.food.StoreStorageOutTicketDetail; +import com.jwsaas.service.food.StoreStorageOutTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketDetailServiceImpl") +public class StoreStorageOutTicketDetailServiceImpl extends BaseServiceImpl implements StoreStorageOutTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketDetailDaoImpl") + private StoreStorageOutTicketDetailDao storeStorageOutTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStorageOutTicketDetailDao; + } + + @Override + public Pager getPagerSumAmount(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storeStorageOutTicketDetailDao.getPagerSumAmount(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListSumAmount(String tenantId, Criteria criteria) throws Exception { + try { + return storeStorageOutTicketDetailDao.getListSumAmount(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketLogServiceImpl.java new file mode 100644 index 0000000..61f34d2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStorageOutTicketLogDao; +import com.jwsaas.entity.food.StoreStorageOutTicketLog; +import com.jwsaas.service.food.StoreStorageOutTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketLogServiceImpl") +public class StoreStorageOutTicketLogServiceImpl extends BaseServiceImpl implements StoreStorageOutTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketLogDaoImpl") + private StoreStorageOutTicketLogDao storeStorageOutTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStorageOutTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketServiceImpl.java new file mode 100644 index 0000000..48b3e7c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageOutTicketServiceImpl.java @@ -0,0 +1,173 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductStoreStockDao; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.StoreStorageOutTicketDao; +import com.jwsaas.dao.food.StoreStorageOutTicketDetailDao; +import com.jwsaas.dao.food.StoreStorageOutTicketLogDao; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.entity.food.StoreStorageOutTicket; +import com.jwsaas.entity.food.StoreStorageOutTicketDetail; +import com.jwsaas.entity.food.StoreStorageOutTicketLog; +import com.jwsaas.service.food.StoreStorageOutTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketServiceImpl") +public class StoreStorageOutTicketServiceImpl extends BaseServiceImpl implements StoreStorageOutTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketDaoImpl") + private StoreStorageOutTicketDao storeStorageOutTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketDetailDaoImpl") + private StoreStorageOutTicketDetailDao storeStorageOutTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageOutTicketLogDaoImpl") + private StoreStorageOutTicketLogDao storeStorageOutTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") + private ProductStoreStockDao productStoreStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") + private ProductStoreStockLogDao productStoreStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStorageOutTicketDao; + } + + @Override + public StoreStorageOutTicket saveTicket(String tenantId, StoreStorageOutTicket ticket, List ticketDetailList, StoreStorageOutTicketLog ticketLog) throws Exception { + try { + ticket = this.storeStorageOutTicketDao.save(tenantId, ticket, true); + + for (StoreStorageOutTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(ticket.getId()); + ticketDetail.setTicketNo(ticket.getNo()); + ticketDetail.setCreateUser(ticket.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.storeStorageOutTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(ticket.getId()); + ticketLog.setTicketNo(ticket.getNo()); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + this.storeStorageOutTicketLogDao.save(tenantId, ticketLog, true); + + return ticket; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, StoreStorageOutTicket ticket, List ticketDetailList, StoreStorageOutTicketLog ticketLog) throws Exception { + try { + int rows = this.storeStorageOutTicketDao.update(tenantId, ticket, true); + + Criteria criteria = null; + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + this.storeStorageOutTicketDetailDao.delete(tenantId, criteria, true); + + for (StoreStorageOutTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(ticket.getId()); + ticketDetail.setTicketNo(ticket.getNo()); + ticketDetail.setCreateUser(ticket.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.storeStorageOutTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(ticket.getId()); + ticketLog.setTicketNo(ticket.getNo()); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + this.storeStorageOutTicketLogDao.save(tenantId, ticketLog, true); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicketStatus(String tenantId, StoreStorageOutTicket ticket, StoreStorageOutTicketLog ticketLog) throws Exception { + try { + int rows = this.storeStorageOutTicketDao.update(tenantId, ticket, true); + this.storeStorageOutTicketLogDao.save(tenantId, ticketLog, true); + + StoreStorageOutTicket ticketInfo = this.storeStorageOutTicketDao.get(tenantId, ticket.getId(), true); + int status = ticketInfo.getStatus();// 单据状态(0-新建;1-驳回;2-审核通过;3-已作废;) + + // 操作类型(1-驳回;2-审核;3-作废;4-反审核;) + if (ticketLog.getType() == 2) { + if (status == 2) { + // 审核通过,减少门店库存 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketInfo.getId())); + criteria.add(Restrictions.eq("ticketNo", ticketInfo.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List ticketDetailList = this.storeStorageOutTicketDetailDao.getList(tenantId, criteria, true); + + // 商品单位 + criteria = new Criteria(); + List productUnitList = productUnitDao.getList(tenantId, criteria, true); + Map productUnitMap = new HashMap<>(); + for (ProductUnit productUnit : productUnitList) { + productUnitMap.put(productUnit.getId(), productUnit); + } + + String storageId = ticketInfo.getStorageId(); + String storageName = ticketInfo.getStorageName(); + String storeId = ticketInfo.getStoreId(); + String ticketNo = ticketInfo.getNo(); + // 1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库; + Integer ticketType = 6; + String ticketTypeName = "门店出库"; + String operator = ticketInfo.getCheckMan(); + // 产品出库 + for (StoreStorageOutTicketDetail ticketDetail : ticketDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria, true); + ProductRatio ratio = productRatioList.get(0); + + String dispatchUnitId = ratio.getDispatchUnitId(); + String dispatchUnitName = productUnitMap.get(dispatchUnitId).getName(); + String packUnitId = ticketDetail.getStockUnitId(); + String packUnitName = ticketDetail.getStockUnitName(); + String salesUnitId = ticketDetail.getStockUnitId(); + String salesUnitName = ticketDetail.getStockUnitName(); + + this.productStoreStockDao.stockOut(tenantId, storeId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), + ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketType, ticketTypeName, ticketNo, salesUnitId, salesUnitName, + packUnitId, packUnitName, new BigDecimal(ticketDetail.getPrice()), new BigDecimal(ticketDetail.getAmount()), new BigDecimal(ticketDetail.getMoney()), operator, ratio, + dispatchUnitId, dispatchUnitName, productStoreStockLogDao); + } + } + } else if (ticketLog.getType() == 4) { + // 反审核 + } + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageServiceImpl.java new file mode 100644 index 0000000..e615c37 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageServiceImpl.java @@ -0,0 +1,124 @@ +package com.jwsaas.service.food.impl; + + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStorageDao; +import com.jwsaas.entity.food.StoreStorage; +import com.jwsaas.service.food.StoreStorageService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoreStorageServiceImpl") +public class StoreStorageServiceImpl extends BaseServiceImpl implements StoreStorageService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreStorageDaoImpl") + private StoreStorageDao storeStorageDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStorageDao; + } + + @Override + public StoreStorage saveStoreStorageAndStoreId(String tenantId, StoreStorage storeStorage, String storeIds) throws Exception{ + StoreStorage storage = null; + try{ + storage = storeStorageDao.save(tenantId,storeStorage,true); + if(StringUtils.isNotEmpty(storeIds)){ + List storeIdList = Arrays.asList(storeIds.split(",")); + List list = new ArrayList<>(); + if(storeIdList != null && storeIdList.size() > 0){ + for(String id : storeIdList){ + StoreStorage ss = new StoreStorage(); + ss.setTenantId(tenantId); + ss.setStoreId(id); + ss.setId(storage.getId()); + list.add(ss); + } + } + if(list.size() > 0){ + storeStorageDao.saveStoreStorageRelations(tenantId,list); + } + } + + }catch (Exception e){ + throw e; + } + return storage; + } + + @Override + public List getStoreStorageStoreIdsByStorageId(String tenantId, String storageId){ + return storeStorageDao.getStoreStorageStoreIdsByStorageId(tenantId,storageId); + } + @Override + public List getListByStoreId(String tenantId, String storeId) throws Exception { + try { + return this.storeStorageDao.getListByStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStoreStorageRelation(String tenantId, StoreStorage storeStorage, String storeIds) throws Exception { + Integer i = 0; + try{ + storeStorageDao.update(tenantId,storeStorage,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("tenantId",tenantId)); + criteria.add(Restrictions.eq("storageId",storeStorage.getId())); + storeStorageDao.deleteStoreStorageRelations(tenantId,criteria,true); + if(StringUtils.isNotEmpty(storeIds)){ + List storeIdList = Arrays.asList(storeIds.split(",")); + List list = new ArrayList<>(); + for(String id : storeIdList){ + StoreStorage ss = new StoreStorage(); + ss.setTenantId(tenantId); + ss.setStoreId(id); + ss.setId(storeStorage.getId()); + list.add(ss); + } + if(list.size() > 0){ + storeStorageDao.saveStoreStorageRelations(tenantId,list); + } + } + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteStoreStorageRelationsByIds(String tenantId, List ids) throws Exception{ + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storageId",ids)); + storeStorageDao.deleteStoreStorageRelations(tenantId,criteria,true); + i = storeStorageDao.delete(tenantId,ids); + }catch(Exception e){ + throw e; + } + return i; + } + + + @Override + public List getAllStoreStorageInfos(String tenantId, Criteria criteria) throws Exception { + try{ + return storeStorageDao.getAllStoreStorageInfos(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketDetailServiceImpl.java new file mode 100644 index 0000000..64ffd17 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketDetailServiceImpl.java @@ -0,0 +1,52 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStorageTicketDetailDao; +import com.jwsaas.entity.food.StoreStorageTicketDetail; +import com.jwsaas.service.food.StoreStorageTicketDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketDetailServiceImpl") +public class StoreStorageTicketDetailServiceImpl extends BaseServiceImpl implements StoreStorageTicketDetailService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketDetailDaoImpl") + private StoreStorageTicketDetailDao storeStorageTicketDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStorageTicketDetailDao; + } + + @Override + public Pager getPagerSumAmount(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = storeStorageTicketDetailDao.getPagerSumAmount(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListSumAmount(String tenantId, Criteria criteria) throws Exception { + try { + return storeStorageTicketDetailDao.getListSumAmount(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketLogServiceImpl.java new file mode 100644 index 0000000..d226244 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreStorageTicketLogDao; +import com.jwsaas.entity.food.StoreStorageTicketLog; +import com.jwsaas.service.food.StoreStorageTicketLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketLogServiceImpl") +public class StoreStorageTicketLogServiceImpl extends BaseServiceImpl implements StoreStorageTicketLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketLogDaoImpl") + private StoreStorageTicketLogDao storeStorageTicketLogDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStorageTicketLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketServiceImpl.java new file mode 100644 index 0000000..8c25ec4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreStorageTicketServiceImpl.java @@ -0,0 +1,169 @@ +package com.jwsaas.service.food.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductRatioDao; +import com.jwsaas.dao.food.ProductStoreStockDao; +import com.jwsaas.dao.food.ProductStoreStockLogDao; +import com.jwsaas.dao.food.ProductUnitDao; +import com.jwsaas.dao.food.StoreStorageTicketDao; +import com.jwsaas.dao.food.StoreStorageTicketDetailDao; +import com.jwsaas.dao.food.StoreStorageTicketLogDao; +import com.jwsaas.entity.food.ProductRatio; +import com.jwsaas.entity.food.ProductUnit; +import com.jwsaas.entity.food.StoreStorageTicket; +import com.jwsaas.entity.food.StoreStorageTicketDetail; +import com.jwsaas.entity.food.StoreStorageTicketLog; +import com.jwsaas.service.food.StoreStorageTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketServiceImpl") +public class StoreStorageTicketServiceImpl extends BaseServiceImpl implements StoreStorageTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketDaoImpl") + private StoreStorageTicketDao storeStorageTicketDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketDetailDaoImpl") + private StoreStorageTicketDetailDao storeStorageTicketDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreStorageTicketLogDaoImpl") + private StoreStorageTicketLogDao storeStorageTicketLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductRatioDaoImpl") + private ProductRatioDao productRatioDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockDaoImpl") + private ProductStoreStockDao productStoreStockDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductStoreStockLogDaoImpl") + private ProductStoreStockLogDao productStoreStockLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductUnitDaoImpl") + private ProductUnitDao productUnitDao; + + @Override + public BaseDao getBaseDao() { + return this.storeStorageTicketDao; + } + + @Override + public StoreStorageTicket saveTicket(String tenantId, StoreStorageTicket ticket, List ticketDetailList, StoreStorageTicketLog ticketLog) throws Exception { + try { + ticket = this.storeStorageTicketDao.save(tenantId, ticket, true); + + for (StoreStorageTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(ticket.getId()); + ticketDetail.setTicketNo(ticket.getNo()); + ticketDetail.setCreateUser(ticket.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.storeStorageTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(ticket.getId()); + ticketLog.setTicketNo(ticket.getNo()); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + this.storeStorageTicketLogDao.save(tenantId, ticketLog, true); + + return ticket; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicket(String tenantId, StoreStorageTicket ticket, List ticketDetailList, StoreStorageTicketLog ticketLog) throws Exception { + try { + int rows = this.storeStorageTicketDao.update(tenantId, ticket, true); + + Criteria criteria = null; + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticket.getId())); + this.storeStorageTicketDetailDao.delete(tenantId, criteria, true); + + for (StoreStorageTicketDetail ticketDetail : ticketDetailList) { + ticketDetail.setTicketId(ticket.getId()); + ticketDetail.setTicketNo(ticket.getNo()); + ticketDetail.setCreateUser(ticket.getSetMan()); + ticketDetail.setTenantId(tenantId); + } + this.storeStorageTicketDetailDao.save(tenantId, ticketDetailList); + + ticketLog.setTicketId(ticket.getId()); + ticketLog.setTicketNo(ticket.getNo()); + ticketLog.setCreateUser(ticket.getSetMan()); + ticketLog.setTenantId(tenantId); + this.storeStorageTicketLogDao.save(tenantId, ticketLog, true); + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateTicketStatus(String tenantId, StoreStorageTicket ticket, StoreStorageTicketLog ticketLog) throws Exception { + try { + int rows = this.storeStorageTicketDao.update(tenantId, ticket, true); + this.storeStorageTicketLogDao.save(tenantId, ticketLog, true); + + StoreStorageTicket ticketInfo = this.storeStorageTicketDao.get(tenantId, ticket.getId(), true); + int status = ticketInfo.getStatus();// 单据状态(0-新建;1-驳回;2-审核通过;3-已作废;) + + // 操作类型(1-驳回;2-审核;3-作废;4-反审核;) + if (ticketLog.getType() == 2) { + if (status == 2) { + // 审核通过,增加门店库存 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketInfo.getId())); + criteria.add(Restrictions.eq("ticketNo", ticketInfo.getNo())); + criteria.add(Restrictions.order("productNo", "asc")); + criteria.add(Restrictions.order("specId", "asc")); + List ticketDetailList = this.storeStorageTicketDetailDao.getList(tenantId, criteria, true); + + // 商品单位 + criteria = new Criteria(); + List productUnitList = productUnitDao.getList(tenantId, criteria, true); + Map productUnitMap = new HashMap<>(); + for (ProductUnit productUnit : productUnitList) { + productUnitMap.put(productUnit.getId(), productUnit); + } + + String storageId = ticketInfo.getStorageId(); + String storageName = ticketInfo.getStorageName(); + String storeId = ticketInfo.getStoreId(); + String ticketNo = ticketInfo.getNo(); + // 1-采购入库;2-配送入库;3-转仓库;4-销售出库;5-门店入库;6-门店出库; + Integer ticketType = 5; + String ticketTypeName = "门店入库"; + String operator = ticketInfo.getCheckMan(); + // 产品入库 + for (StoreStorageTicketDetail ticketDetail : ticketDetailList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("productId", ticketDetail.getProductId())); + List productRatioList = productRatioDao.getList(tenantId, criteria, true); + ProductRatio ratio = productRatioList.get(0); + + String dispatchUnitId = ratio.getDispatchUnitId(); + String dispatchUnitName = productUnitMap.get(dispatchUnitId).getName(); + String packUnitId = ticketDetail.getStockUnitId(); + String packUnitName = ticketDetail.getStockUnitName(); + + this.productStoreStockDao.stockInByStoreStorageTicket(tenantId, storeId, storageId, storageName, ticketDetail.getProductId(), ticketDetail.getProductNo(), ticketDetail.getProductName(), + ticketDetail.getSpecId(), ticketDetail.getSpecName(), ticketDetail.getProductDescription(), ticketType, ticketTypeName, ticketNo, dispatchUnitId, dispatchUnitName, + packUnitId, packUnitName, ticketDetail.getPrice(), ticketDetail.getAmount(), ticketDetail.getMoney(), operator, ratio, productStoreStockLogDao); + } + } + } else if (ticketLog.getType() == 4) { + // 反审核 + } + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreTypeServiceImpl.java new file mode 100644 index 0000000..7c0b981 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreTypeServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreTypeDao; +import com.jwsaas.entity.food.StoreType; +import com.jwsaas.service.food.StoreTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreTypeServiceImpl") +public class StoreTypeServiceImpl extends BaseServiceImpl implements StoreTypeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreTypeDaoImpl") + private StoreTypeDao storeTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.storeTypeDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storeTypeDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreWorkerExtServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreWorkerExtServiceImpl.java new file mode 100644 index 0000000..c5d88ba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreWorkerExtServiceImpl.java @@ -0,0 +1,139 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreDao; +import com.jwsaas.dao.food.StoreWorkerDao; +import com.jwsaas.dao.food.StoreWorkerExtDao; +import com.jwsaas.entity.food.Store; +import com.jwsaas.entity.food.StoreWorker; +import com.jwsaas.entity.food.StoreWorkerExt; +import com.jwsaas.service.food.StoreWorkerExtService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreWorkerExtServiceImpl") +public class StoreWorkerExtServiceImpl extends BaseServiceImpl implements StoreWorkerExtService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreWorkerExtDaoImpl") + private StoreWorkerExtDao storeWorkerExtDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreWorkerDaoImpl") + private StoreWorkerDao storeWorkerDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") + private StoreDao storeDao; + + @Override + public BaseDao getBaseDao() { + return this.storeWorkerExtDao; + } + + @Override + public Integer saveExtend(String tenantId, StoreWorker storeWorker, List storeInfoList, String currentUser) throws Exception { + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("workerId", storeWorker.getId())); + List extList = storeWorkerExtDao.getList(tenantId, criteria, true); + // 已存在的门店ID列表 + List existedStoreIdList = new ArrayList<>(); + for (StoreWorkerExt ext : extList) { + existedStoreIdList.add(ext.getStoreId()); + } + + List storeIdList = new ArrayList<>(); + Map allStoreMap = new HashMap<>(); + for (Store store : storeInfoList) { + storeIdList.add(store.getId()); + allStoreMap.put(store.getId(), store); + } + + List newStoreIdList = new ArrayList<>(); + for (String storeId : storeIdList) { + if (!existedStoreIdList.contains(storeId)) { + newStoreIdList.add(storeId); + } + } + + // 新增的关联门店做保存操作 + List saveList = new ArrayList<>(); + for (String storeId : newStoreIdList) { + StoreWorkerExt ext = new StoreWorkerExt(); + ext.setWorkerId(storeWorker.getId()); + ext.setWorkerNo(storeWorker.getNo()); + ext.setStoreId(storeId); + ext.setStoreNo(allStoreMap.get(storeId).getNo()); + ext.setPasswd(storeWorker.getPasswd()); + ext.setDescription(null); + ext.setCreateUser(currentUser); + saveList.add(ext); + } + if (saveList.size() > 0) { + storeWorkerExtDao.save(tenantId, saveList); + } + + // 刪除不关联的门店 + criteria = new Criteria(); + criteria.add(Restrictions.eq("workerId", storeWorker.getId())); + criteria.add(Restrictions.notIn("storeId", storeIdList)); + storeWorkerExtDao.delete(tenantId, criteria, true); + + int rows = storeInfoList.size(); + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updatePwd(String tenantId, String storeId, String workerId, String passwd, String currentUser) throws Exception { + try { + int rows = 0; + // 查询员工信息 + StoreWorker storeWorker = storeWorkerDao.get(tenantId, workerId); + // 门店信息 + Store store = storeDao.get(tenantId, storeId); + // 查询员工门店扩展信息 + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId", storeId));// 门店ID + criteria.add(Restrictions.eq("workerId", workerId));// 员工工号 + List workerExtList = storeWorkerExtDao.getList(tenantId, criteria); + if (CollectionUtils.isEmpty(workerExtList)) { + // 为空新增一条记录 + StoreWorkerExt saveObj = new StoreWorkerExt(); + saveObj.setWorkerId(workerId);// 员工ID + saveObj.setWorkerNo(storeWorker.getNo());// 员工工号 + saveObj.setStoreId(storeId);// 门店ID + saveObj.setStoreNo(store.getNo());// 门店编号 + saveObj.setPasswd(passwd);// 登录密码 + saveObj.setDescription(null);// 备注 + saveObj.setCreateDate(new Date()); + saveObj.setCreateUser(currentUser); + storeWorkerExtDao.save(tenantId, saveObj); + rows++; + } else { + StoreWorkerExt workerExt = workerExtList.get(0); + // 修改密码 + StoreWorkerExt updateObj = new StoreWorkerExt(); + updateObj.setId(workerExt.getId()); + updateObj.setPasswd(passwd);// 登录密码 + updateObj.setModifyDate(new Date()); + updateObj.setModifyUser(currentUser); + rows = storeWorkerExtDao.update(tenantId, updateObj); + } + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoreWorkerServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreWorkerServiceImpl.java new file mode 100644 index 0000000..e25b0ed --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoreWorkerServiceImpl.java @@ -0,0 +1,243 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoreDao; +import com.jwsaas.dao.food.StoreWorkerDao; +import com.jwsaas.dao.food.UserDao; +import com.jwsaas.entity.food.Store; +import com.jwsaas.entity.food.StoreWorker; +import com.jwsaas.entity.food.User; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoreWorkerService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "StoreWorkerServiceImpl") +public class StoreWorkerServiceImpl extends BaseServiceImpl implements StoreWorkerService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreWorkerDaoImpl") + private StoreWorkerDao storeWorkerDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "UserDaoImpl") + private UserDao userDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "StoreDaoImpl") + private StoreDao storeDao; + + @Override + public BaseDao getBaseDao() { + return this.storeWorkerDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storeWorkerDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public String selectMaxValueExtend(String tenantId, String property, List excludeValueList) throws Exception { + try { + return this.storeWorkerDao.selectMaxValueExtend(tenantId, property, excludeValueList); + } catch (Exception e) { + throw e; + } + } + + @Override + public StoreWorker saveWorker(String tenantId, StoreWorker storeWorker, List storeIdList) throws Exception { + try { + storeWorker = this.storeWorkerDao.save(tenantId, storeWorker, true); + if (CollectionUtils.isNotEmpty(storeIdList)) { + this.storeWorkerDao.saveStores(tenantId, storeWorker.getId(), storeIdList); + } + + // 是否登陆后台 - '0是不可登陆 1是可登陆', + if (storeWorker.getIsAdmin() == 1) { + // 同步信息到User + // 默认门店 + Store store = this.storeDao.get(tenantId, storeWorker.getStoreId(), true); + // 是否总部员工 + boolean isHeadquarterWorker = Constants.isHeadquarterWorker(store.getNo()); + + User user = new User(); + user.setUserName(storeWorker.getNo()); + user.setPasswd(storeWorker.getPasswd()); + user.setEmail(storeWorker.getEmail()); + user.setNickName(storeWorker.getName()); + user.setRealName(storeWorker.getName()); + user.setSex(storeWorker.getSex()); + user.setMobile(storeWorker.getMobile()); + user.setBirthday(storeWorker.getBirthday()); + user.setStatus(storeWorker.getEnabled() == 1 ? 1 : 0); + user.setIdentityFlag(isHeadquarterWorker ? 0 : 1);// 0-总部,1-门店(营业员) + user.setDescription(storeWorker.getDescription()); + user.setCreateDate(storeWorker.getCreateDate()); + user.setCreateUser(storeWorker.getCreateUser()); + user = userDao.save(tenantId, user, true); + } + + return storeWorker; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getStoreIdList(String tenantId, String workerId) throws Exception { + try { + return this.storeWorkerDao.getStoreIdList(tenantId, workerId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateWorker(String tenantId, StoreWorker storeWorker, List storeIdList) throws Exception { + try { + int rows = this.storeWorkerDao.update(tenantId, storeWorker, true); + this.storeWorkerDao.delStores(tenantId, storeWorker.getId()); + if (CollectionUtils.isNotEmpty(storeIdList)) { + this.storeWorkerDao.saveStores(tenantId, storeWorker.getId(), storeIdList); + } + storeWorker = storeWorkerDao.get(tenantId, storeWorker.getId(), true); + User user = userDao.find(tenantId, "userName", storeWorker.getNo(), true); + if (storeWorker.getIsAdmin() == 1 && user == null) { + // 同步信息到User + // 默认门店 + Store store = this.storeDao.get(tenantId, storeWorker.getStoreId(), true); + // 是否总部员工 + boolean isHeadquarterWorker = Constants.isHeadquarterWorker(store.getNo()); + user = new User(); + user.setUserName(storeWorker.getNo()); + user.setPasswd(storeWorker.getPasswd()); + user.setEmail(storeWorker.getEmail()); + user.setNickName(storeWorker.getName()); + user.setRealName(storeWorker.getName()); + user.setSex(storeWorker.getSex()); + user.setMobile(storeWorker.getMobile()); + user.setBirthday(storeWorker.getBirthday()); + user.setStatus(storeWorker.getEnabled() == 1 ? 1 : 0); + user.setIdentityFlag(isHeadquarterWorker ? 0 : 1);// 0-总部,1-门店(营业员) + user.setDescription(storeWorker.getDescription()); + user.setCreateDate(storeWorker.getCreateDate()); + user.setCreateUser(storeWorker.getCreateUser()); + user = userDao.save(tenantId, user, true); + } else { + if (user != null) { + User updateUser = new User(); + updateUser.setId(user.getId()); + updateUser.setStatus((storeWorker.getIsAdmin() == 1 && storeWorker.getEnabled() == 1) ? 1 : 0); + updateUser.setPasswd(storeWorker.getPasswd()); + updateUser.setEmail(storeWorker.getEmail()); + updateUser.setNickName(storeWorker.getName()); + updateUser.setRealName(storeWorker.getName()); + updateUser.setSex(storeWorker.getSex()); + updateUser.setMobile(storeWorker.getMobile()); + updateUser.setBirthday(storeWorker.getBirthday()); + updateUser.setDescription(storeWorker.getDescription()); + updateUser.setModifyUser(storeWorker.getCreateUser()); + updateUser.setModifyDate(storeWorker.getCreateDate()); + userDao.update(tenantId, updateUser, true); + } + } + + return rows; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getPosRoleIds(String tenantId, String workerId) throws Exception { + try { + return this.storeWorkerDao.getPosRoleIds(tenantId, workerId); + } catch (Exception e) { + throw e; + } + } + + @Override + public boolean saveWorkerRoleRelation(String tenantId, String workerId, String userId, List roleIds, List posRoleIds) throws Exception { + try { + if (StringUtils.isNotBlank(userId)) { + userDao.delRelationUserRole(tenantId, userId); + if (CollectionUtils.isNotEmpty(roleIds)) { + userDao.saveRelationUserRole(tenantId, userId, roleIds); + } + } + + storeWorkerDao.delPosRoleRelation(tenantId, workerId); + if (CollectionUtils.isNotEmpty(posRoleIds)) { + storeWorkerDao.savePosRoleRelation(tenantId, workerId, posRoleIds); + } + return true; + } catch (Exception e) { + throw e; + } + } + + @Override + public boolean isStoreWorker(String tenantId, String workerId, String storeId) throws Exception { + try { + List list = this.storeWorkerDao.isStoreWorker(tenantId, workerId, storeId); + if (list != null && list.size() > 0) { + return true; + } else { + return false; + } + } catch (Exception e) { + throw e; + } + } + + @Override + public List getStoreWorkerList(String tenantId, String storeId) throws Exception { + try { + return this.storeWorkerDao.getStoreWorkerList(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getWorkerStorePager(String tenantId , Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storeWorkerDao.getWorkerStorePager(tenantId, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getStoreWorkerPager(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storeWorkerDao.getStoreWorkerPager(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableAreaServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableAreaServiceImpl.java new file mode 100644 index 0000000..2f549ac --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableAreaServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoretableAreaDao; +import com.jwsaas.entity.food.StoretableArea; +import com.jwsaas.service.food.StoretableAreaService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoretableAreaServiceImpl") +public class StoretableAreaServiceImpl extends BaseServiceImpl implements StoretableAreaService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoretableAreaDaoImpl") + private StoretableAreaDao storetableAreaDao; + + @Override + public BaseDao getBaseDao() { + return this.storetableAreaDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storetableAreaDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreId(String tenantId, String sotreId) throws Exception { + try { + return this.storetableAreaDao.getListByStoreId(tenantId, sotreId); + } catch (Exception e) { + throw e; + } + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableServiceImpl.java new file mode 100644 index 0000000..f037d1f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableServiceImpl.java @@ -0,0 +1,57 @@ +package com.jwsaas.service.food.impl; + + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoretableDao; +import com.jwsaas.entity.food.Storetable; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.StoretableService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoretableServiceImpl") +public class StoretableServiceImpl extends BaseServiceImpl implements StoretableService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoretableDaoImpl") + private StoretableDao storetableDao; + + @Override + public BaseDao getBaseDao() { + return this.storetableDao; + } + + @Override + public Pager getWeixinStoreTablePager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storetableDao.getWeixinStoreTablePager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getProgramStoreTablePager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.storetableDao.getProgramStoreTablePager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableTypeServiceImpl.java new file mode 100644 index 0000000..4aff9f6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/StoretableTypeServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.StoretableTypeDao; +import com.jwsaas.entity.food.StoretableType; +import com.jwsaas.service.food.StoretableTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"StoretableTypeServiceImpl") +public class StoretableTypeServiceImpl extends BaseServiceImpl implements StoretableTypeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoretableTypeDaoImpl") + private StoretableTypeDao storetableTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.storetableTypeDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.storetableTypeDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreId(String tenantId, String sotreId) throws Exception { + try { + return this.storetableTypeDao.getListByStoreId(tenantId, sotreId); + } catch (Exception e) { + throw e; + } + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SupplierServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SupplierServiceImpl.java new file mode 100644 index 0000000..5fca602 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SupplierServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SupplierDao; +import com.jwsaas.entity.food.Supplier; +import com.jwsaas.service.food.SupplierService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "SupplierServiceImpl") +public class SupplierServiceImpl extends BaseServiceImpl implements SupplierService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SupplierDaoImpl") + private SupplierDao supplierDao; + + @Override + public BaseDao getBaseDao() { + return this.supplierDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.supplierDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/SupplierTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/SupplierTypeServiceImpl.java new file mode 100644 index 0000000..a662623 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/SupplierTypeServiceImpl.java @@ -0,0 +1,54 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.SupplierDao; +import com.jwsaas.dao.food.SupplierTypeDao; +import com.jwsaas.entity.food.SupplierType; +import com.jwsaas.service.food.SupplierTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "SupplierTypeServiceImpl") +public class SupplierTypeServiceImpl extends BaseServiceImpl implements SupplierTypeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SupplierTypeDaoImpl") + private SupplierTypeDao supplierTypeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "SupplierDaoImpl") + private SupplierDao supplierDao; + + @Override + public BaseDao getBaseDao() { + return this.supplierTypeDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.supplierTypeDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + Assert.notEmpty(ids, "parameter 'ids' can't be null or empty!"); + + for (String typeId : ids) { + this.supplierDao.updateTypeToNull(tenantId, typeId, true); + } + + return this.supplierTypeDao.delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/TaskScheduleServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/TaskScheduleServiceImpl.java new file mode 100644 index 0000000..1760a05 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/TaskScheduleServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.TaskScheduleDao; +import com.jwsaas.entity.food.TaskSchedule; +import com.jwsaas.service.food.TaskScheduleService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"TaskScheduleServiceImpl") +public class TaskScheduleServiceImpl extends BaseServiceImpl implements TaskScheduleService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"TaskScheduleDaoImpl") + private TaskScheduleDao taskScheduleDao; + + @Override + public BaseDao getBaseDao() { + return this.taskScheduleDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketMaterialServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketMaterialServiceImpl.java new file mode 100644 index 0000000..0d4c4aa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketMaterialServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ThuselevelTicketMaterialDao; +import com.jwsaas.entity.food.ThuselevelTicketMaterial; +import com.jwsaas.service.food.ThuselevelTicketMaterialService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketMaterialServiceImpl") +public class ThuselevelTicketMaterialServiceImpl extends BaseServiceImpl implements ThuselevelTicketMaterialService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketMaterialDaoImpl") + private ThuselevelTicketMaterialDao thuselevelTicketMaterialDao; + + @Override + public BaseDao getBaseDao() { + return this.thuselevelTicketMaterialDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketServiceImpl.java new file mode 100644 index 0000000..037fd2e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketServiceImpl.java @@ -0,0 +1,165 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.StoreProductDao; +import com.jwsaas.dao.food.ThuselevelTicketMaterialDao; +import com.jwsaas.dao.food.ThuselevelTicketStoreDao; +import com.jwsaas.entity.food.StoreProduct; +import com.jwsaas.entity.food.ThuselevelTicketMaterial; +import com.jwsaas.entity.food.ThuselevelTicketStore; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.collections4.MapUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ThuselevelTicketDao; +import com.jwsaas.entity.food.ThuselevelTicket; +import com.jwsaas.service.food.ThuselevelTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketServiceImpl") +public class ThuselevelTicketServiceImpl extends BaseServiceImpl implements ThuselevelTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketDaoImpl") + private ThuselevelTicketDao thuselevelTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketStoreDaoImpl") + private ThuselevelTicketStoreDao thuselevelTicketStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketMaterialDaoImpl") + private ThuselevelTicketMaterialDao thuselevelTicketMaterialDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"StoreProductDaoImpl") + private StoreProductDao storeProductDao; + + + @Override + public BaseDao getBaseDao() { + return this.thuselevelTicketDao; + } + + @Override + public ThuselevelTicket saveTicket(String tenantId, ThuselevelTicket ticket, List storeList, List materialList, String userName) throws Exception { + try{ + ticket = thuselevelTicketDao.save(tenantId,ticket,true); + for(ThuselevelTicketStore store : storeList){ + store.setTenantId(tenantId); + store.setCreateUser(userName); + store.setTicketId(ticket.getId()); + } + thuselevelTicketStoreDao.save(tenantId,storeList); + for(ThuselevelTicketMaterial material : materialList){ + material.setTicketId(ticket.getId()); + material.setTenantId(tenantId); + material.setCreateUser(userName); + } + thuselevelTicketMaterialDao.save(tenantId,materialList); + + }catch (Exception e){ + throw e; + } + return ticket; + } + + @Override + public Integer deleteTicket(String tenantId, String id) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",id)); + thuselevelTicketStoreDao.delete(tenantId,criteria); + thuselevelTicketMaterialDao.delete(tenantId,criteria); + i = thuselevelTicketDao.delete(tenantId,id); + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicket(String tenantId, ThuselevelTicket ticket, List storeList, List materialList, String userName) throws Exception { + Integer i = 0; + try{ + i = thuselevelTicketDao.update(tenantId,ticket,true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + thuselevelTicketStoreDao.delete(tenantId,criteria,true); + thuselevelTicketMaterialDao.delete(tenantId,criteria,true); + + for(ThuselevelTicketStore store : storeList){ + store.setTenantId(tenantId); + store.setCreateUser(userName); + store.setTicketId(ticket.getId()); + } + thuselevelTicketStoreDao.save(tenantId,storeList); + for(ThuselevelTicketMaterial material : materialList){ + material.setTicketId(ticket.getId()); + material.setTenantId(tenantId); + material.setCreateUser(userName); + } + thuselevelTicketMaterialDao.save(tenantId,materialList); + + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveTicketAudit(String tenantId, ThuselevelTicket ticket,String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + List storeList = thuselevelTicketStoreDao.getList(tenantId,criteria,true); + List materialList = thuselevelTicketMaterialDao.getList(tenantId,criteria,true); + List storeProductList = new ArrayList<>(); + for(ThuselevelTicketStore store : storeList){ + Map map = getStoreMaterialMap(tenantId,store.getStoreId(),true); + if(MapUtils.isNotEmpty(map)){ + for(ThuselevelTicketMaterial material : materialList){ + if(map.containsKey(material.getSpecId())){ + StoreProduct product = map.get(material.getSpecId()); + product.setModifyUser(userName); + product.setModifyDate(new Date()); + product.setThUseLevel(material.getThUseLevel()); + product.setCost(material.getCost()); + storeProductList.add(product); + } + } + } + } + if(storeProductList.size() > 0){ + storeProductDao.update(tenantId,storeProductList); + } + ticket.setCheckUser(userName); + ticket.setCheckDate(new Date()); + ticket.setStatus(1); + thuselevelTicketDao.update(tenantId,ticket,true); + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + + private Map getStoreMaterialMap(String tenantId,String storeId,boolean isBatch) throws Exception{ + Map map = new HashMap<>(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("storeId",storeId)); + criteria.add(Restrictions.limit("0","5000")); + List list = storeProductDao.getList(tenantId,criteria,isBatch); + if(CollectionUtils.isNotEmpty(list)){ + for(StoreProduct product : list){ + map.put(product.getSpecId(),product); + } + } + return map; + + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketStoreServiceImpl.java new file mode 100644 index 0000000..b5f8fbc --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/ThuselevelTicketStoreServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ThuselevelTicketStoreDao; +import com.jwsaas.entity.food.ThuselevelTicketStore; +import com.jwsaas.service.food.ThuselevelTicketStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketStoreServiceImpl") +public class ThuselevelTicketStoreServiceImpl extends BaseServiceImpl implements ThuselevelTicketStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ThuselevelTicketStoreDaoImpl") + private ThuselevelTicketStoreDao thuselevelTicketStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.thuselevelTicketStoreDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/TicketPrintSettingServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/TicketPrintSettingServiceImpl.java new file mode 100644 index 0000000..d54b18c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/TicketPrintSettingServiceImpl.java @@ -0,0 +1,49 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.TicketPrintSettingDao; +import com.jwsaas.entity.food.TicketPrintSetting; +import com.jwsaas.service.food.TicketPrintSettingService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "TicketPrintSettingServiceImpl") +public class TicketPrintSettingServiceImpl extends BaseServiceImpl implements TicketPrintSettingService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "TicketPrintSettingDaoImpl") + private TicketPrintSettingDao ticketPrintSettingDao; + + @Override + public BaseDao getBaseDao() { + return this.ticketPrintSettingDao; + } + + @Override + public Integer updateSettings(String tenantId, List list) throws Exception { + try { + Assert.notEmpty(list, "parameter 'list' can't be null or empty!"); + int rows = 0; + Criteria criteria = null; + for (TicketPrintSetting setting : list) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketSign", setting.getTicketSign()));// 单据标识 + criteria.add(Restrictions.eq("`key`", setting.getKey())); + ticketPrintSettingDao.delete(tenantId, criteria); + ticketPrintSettingDao.save(tenantId, setting); + rows++; + } + return rows; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/UserServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/UserServiceImpl.java new file mode 100644 index 0000000..e9dbc9e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/UserServiceImpl.java @@ -0,0 +1,94 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.UserDao; +import com.jwsaas.entity.food.User; +import com.jwsaas.service.food.UserService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "UserServiceImpl") +public class UserServiceImpl extends BaseServiceImpl implements UserService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "UserDaoImpl") + private UserDao userDao; + + @Override + public BaseDao getBaseDao() { + return this.userDao; + } + + @Override + public User getLogin(String tenantId, String userName, String passwd) throws Exception { + try { + return this.userDao.getLogin(tenantId, userName, passwd); + } catch (Exception e) { + throw e; + } + } + + @Override + public boolean saveRelationUserRole(String tenantId, String userId, List roleIds) throws Exception { + try { + userDao.delRelationUserRole(tenantId, userId); + if (CollectionUtils.isNotEmpty(roleIds)) { + userDao.saveRelationUserRole(tenantId, userId, roleIds); + } + return true; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getRoleIdByUserId(String tenantId, String userId) throws Exception { + return this.userDao.getRoleIdByUserId(tenantId, userId); + } + + @Override + public List getRoleNameByUserId(String tenantId, String userId) throws Exception { + return this.userDao.getRoleNameByUserId(tenantId, userId); + } + + @Override + public int updatePwd(String tenantId, String id, String passwd) throws Exception { + return this.userDao.updatePwd(tenantId, id, passwd); + } + + @Override + public boolean saveUser(String tenantId, User user, List roleIds) throws Exception { + user = this.userDao.save(tenantId, user); + if (CollectionUtils.isNotEmpty(roleIds)) { + userDao.saveRelationUserRole(tenantId, user.getId(), roleIds); + } + + return true; + } + + @Override + public boolean updateUser(String tenantId, User user, List roleIds) throws Exception { + this.userDao.update(tenantId, user); + this.userDao.delRelationUserRole(tenantId, user.getId()); + if (CollectionUtils.isNotEmpty(roleIds)) { + userDao.saveRelationUserRole(tenantId, user.getId(), roleIds); + } + + return true; + } + + @Override + public boolean deleteUser(String tenantId, List ids) throws Exception { + if (CollectionUtils.isNotEmpty(ids)) { + this.userDao.delRelationUserRoles(tenantId, ids); + this.userDao.delete(tenantId, ids); + } + return false; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorAddressServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorAddressServiceImpl.java new file mode 100644 index 0000000..4c97b7a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorAddressServiceImpl.java @@ -0,0 +1,58 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VisitorAddressDao; +import com.jwsaas.entity.food.VisitorAddress; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.VisitorAddressService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "VisitorAddressServiceImpl") +public class VisitorAddressServiceImpl extends BaseServiceImpl implements VisitorAddressService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VisitorAddressDaoImpl") + private VisitorAddressDao visitorAddressDao; + + @Override + public BaseDao getBaseDao() { + return this.visitorAddressDao; + } + + @Override + public Pager getPagerExtend(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.visitorAddressDao.getPagerExtend(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getWithVisitorPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.visitorAddressDao.getWithVisitorPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorServiceImpl.java new file mode 100644 index 0000000..657d68a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorServiceImpl.java @@ -0,0 +1,218 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VisitorAddressDao; +import com.jwsaas.dao.food.VisitorDao; +import com.jwsaas.dao.food.VisitorTagDao; +import com.jwsaas.entity.food.Visitor; +import com.jwsaas.entity.food.VisitorAddress; +import com.jwsaas.entity.food.VisitorTag; +import com.jwsaas.service.food.VisitorService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "VisitorServiceImpl") +public class VisitorServiceImpl extends BaseServiceImpl implements VisitorService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VisitorDaoImpl") + private VisitorDao visitorDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VisitorTagDaoImpl") + private VisitorTagDao visitorTagDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VisitorAddressDaoImpl") + private VisitorAddressDao visitorAddressDao; + + @Override + public BaseDao getBaseDao() { + return this.visitorDao; + } + + @Override + public String selectMaxValue(String tenantId, String property) throws Exception { + try { + return this.visitorDao.selectMaxValue(tenantId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public String selectMaxValueExtend(String tenantId, String storeId, String property) throws Exception { + try { + return this.visitorDao.selectMaxValue(tenantId, storeId, property); + } catch (Exception e) { + throw e; + } + } + + @Override + public Visitor saveExtend(String tenantId, Visitor entity, List tagList, List addressList) throws Exception { + try { + if (StringUtils.isBlank(entity.getNo())) { + // String maxNo = this.visitorDao.selectMaxValue(tenantId, "no", + // true); + String maxNo = this.visitorDao.selectMaxValue(tenantId, entity.getStoreId(), "no", true); + String nextNo = getNextNo(maxNo); + entity.setNo(nextNo); + } + entity = this.getBaseDao().save(tenantId, entity, true); + + if (CollectionUtils.isNotEmpty(tagList)) { + for (VisitorTag tag : tagList) { + tag.setVisitorId(entity.getId()); + tag.setCreateUser(entity.getCreateUser()); + tag.setCreateDate(entity.getCreateDate()); + } + this.visitorTagDao.save(tenantId, tagList); + } + + if (CollectionUtils.isNotEmpty(addressList)) { + for (VisitorAddress address : addressList) { + address.setVisitorId(entity.getId()); + address.setCreateUser(entity.getCreateUser()); + address.setCreateDate(entity.getCreateDate()); + } + this.visitorAddressDao.save(tenantId, addressList); + } + + return entity; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateExtend(String tenantId, Visitor visitor, List tagList, List addressList) throws Exception { + Integer i = 0; + try { + + this.getBaseDao().update(tenantId, visitor, true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("visitorId",visitor.getId())); + if (CollectionUtils.isNotEmpty(tagList)) { + visitorTagDao.delete(tenantId,criteria,true); + for (VisitorTag tag : tagList) { + tag.setVisitorId(visitor.getId()); + tag.setCreateUser(tag.getCreateUser() != null ? tag.getCreateUser() : visitor.getModifyUser()); + tag.setCreateDate(tag.getCreateDate() != null ? tag.getCreateDate() : visitor.getModifyDate()); + tag.setModifyUser(tag.getModifyUser() != null ? tag.getModifyUser() : visitor.getModifyUser()); + tag.setModifyDate(tag.getModifyDate() != null ? tag.getModifyDate() : visitor.getModifyDate()); + } + this.visitorTagDao.save(tenantId, tagList); + } + + if (CollectionUtils.isNotEmpty(addressList)) { + visitorAddressDao.delete(tenantId,criteria,true); + for (VisitorAddress address : addressList) { + address.setVisitorId(visitor.getId()); + address.setCreateUser(address.getCreateUser() != null ? address.getCreateUser() : visitor.getModifyUser()); + address.setCreateDate(address.getCreateDate() != null ? address.getCreateDate() : visitor.getModifyDate()); + address.setModifyUser(address.getModifyUser() != null ? address.getModifyUser() : visitor.getModifyUser()); + address.setModifyDate(address.getModifyDate() != null ? address.getModifyDate() : visitor.getModifyDate()); + } + this.visitorAddressDao.save(tenantId, addressList); + } + + i = 1; + } catch (Exception e) { + throw e; + } + return i ; + } + + @Override + public Integer saveByImpt(String tenantId, List visitorList, String currentUserName) throws Exception{ + Integer i = 0; + try{ + if(CollectionUtils.isNotEmpty(visitorList)){ + List visitors = new ArrayList<>(); + for(Visitor visitor : visitorList){ + String tags = visitor.getDescription(); + visitor.setDescription(null); + visitor.setTenantId(tenantId); + visitor.setCreateUser(currentUserName); + visitor.setCreateDate(new Date()); + Visitor v = visitorDao.save(tenantId,visitor,true); + v.setAddress(visitor.getAddress()); + v.setDescription(tags); + visitors.add(v); + } + if(CollectionUtils.isNotEmpty(visitors)){ + List addresses = new ArrayList<>(); + List tags = new ArrayList<>(); + for(Visitor vis : visitors){ + //增加地址; + VisitorAddress address = new VisitorAddress(); + address.setTenantId(tenantId); + address.setCreateUser(currentUserName); + address.setCreateDate(new Date()); + address.setVisitorId(vis.getId()); + address.setName(vis.getName()); + address.setTelephone(vis.getTel()); + address.setAddress(vis.getAddress()); + addresses.add(address); + + //增加标签; + if(StringUtils.isNotEmpty(vis.getDescription())){ + List tagNames = new ArrayList<>(); + String tagStr = vis.getDescription(); + if(tagStr.contains(",")){ + tagNames = new ArrayList<>(Arrays.asList(tagStr.split(","))); + }else if(tagStr.contains(",")){ + tagNames = new ArrayList<>(Arrays.asList(tagStr.split(","))); + }else{ + tagNames.add(tagStr); + } + for(String tagName : tagNames){ + VisitorTag tag = new VisitorTag(); + tag.setTenantId(tenantId); + tag.setCreateDate(new Date()); + tag.setCreateUser(currentUserName); + tag.setVisitorId(vis.getId()); + tag.setName(tagName); + tags.add(tag); + } + + } + + } + + if(addresses.size() > 0){ + visitorAddressDao.save(tenantId,addresses); + } + + if(tags.size() > 0){ + visitorTagDao.save(tenantId,tags); + } + } + } + }catch(Exception e){ + throw e; + } + return i; + } + + private String getNextNo(String maxNo) { + if (StringUtils.isBlank(maxNo)) { + maxNo = "0"; + } + int maxNoInt = 0; + try { + maxNoInt = Integer.parseInt(maxNo); + } catch (Exception e) { + logger.error("字符串" + maxNo + "转换成数值出错!"); + } + String nextNo = "" + (maxNoInt + 1); + return nextNo; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorTagServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorTagServiceImpl.java new file mode 100644 index 0000000..826790e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VisitorTagServiceImpl.java @@ -0,0 +1,44 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VisitorTagDao; +import com.jwsaas.entity.food.VisitorTag; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.VisitorTagService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "VisitorTagServiceImpl") +public class VisitorTagServiceImpl extends BaseServiceImpl implements VisitorTagService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VisitorTagDaoImpl") + private VisitorTagDao visitorTagDao; + + @Override + public BaseDao getBaseDao() { + return this.visitorTagDao; + } + + @Override + public Pager getPagerExtend(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.visitorTagDao.getPagerExtend(tenantId, storeId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposAdPictureServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposAdPictureServiceImpl.java new file mode 100644 index 0000000..094d4d2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposAdPictureServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposAdPictureDao; +import com.jwsaas.entity.food.VposAdPicture; +import com.jwsaas.service.food.VposAdPictureService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposAdPictureServiceImpl") +public class VposAdPictureServiceImpl extends BaseServiceImpl implements VposAdPictureService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposAdPictureDaoImpl") + private VposAdPictureDao vposAdPictureDao; + + @Override + public BaseDao getBaseDao() { + return this.vposAdPictureDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposCcbfzAccountServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposCcbfzAccountServiceImpl.java new file mode 100644 index 0000000..b699bc7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposCcbfzAccountServiceImpl.java @@ -0,0 +1,52 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposCcbfzAccountDao; +import com.jwsaas.entity.food.VposCcbfzAccount; +import com.jwsaas.service.food.VposCcbfzAccountService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposCcbfzAccountServiceImpl") +public class VposCcbfzAccountServiceImpl extends BaseServiceImpl implements VposCcbfzAccountService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposCcbfzAccountDaoImpl") + private VposCcbfzAccountDao vposCcbfzAccountDao; + + @Override + public BaseDao getBaseDao() { + return this.vposCcbfzAccountDao; + } + + @Override + public List getAllSeriesIds(String tenantId,Criteria criteria) throws Exception { + List allSeriesIds = new ArrayList<>(); + try{ + List seriesIds = vposCcbfzAccountDao.getAllSeriesIds(tenantId,criteria); + if(CollectionUtils.isNotEmpty(seriesIds)){ + for(String ids : seriesIds){ + if(ids.contains(",")){ + List idList = Arrays.asList(ids.split(",")); + allSeriesIds.addAll(idList); + }else{ + allSeriesIds.add(ids); + } + } + } + }catch (Exception e){ + throw e; + } + return allSeriesIds; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposProductEvaluateImageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposProductEvaluateImageServiceImpl.java new file mode 100644 index 0000000..7ca9c3e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposProductEvaluateImageServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposProductEvaluateImageDao; +import com.jwsaas.entity.food.VposProductEvaluateImage; +import com.jwsaas.service.food.VposProductEvaluateImageService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposProductEvaluateImageServiceImpl") +public class VposProductEvaluateImageServiceImpl extends BaseServiceImpl implements VposProductEvaluateImageService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposProductEvaluateImageDaoImpl") + private VposProductEvaluateImageDao vposProductEvaluateImageDao; + + @Override + public BaseDao getBaseDao() { + return this.vposProductEvaluateImageDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposProductEvaluateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposProductEvaluateServiceImpl.java new file mode 100644 index 0000000..b840f0f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposProductEvaluateServiceImpl.java @@ -0,0 +1,45 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposProductEvaluateDao; +import com.jwsaas.entity.food.VposProductEvaluate; +import com.jwsaas.service.food.VposProductEvaluateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposProductEvaluateServiceImpl") +public class VposProductEvaluateServiceImpl extends BaseServiceImpl implements VposProductEvaluateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposProductEvaluateDaoImpl") + private VposProductEvaluateDao vposProductEvaluateDao; + + @Override + public BaseDao getBaseDao() { + return this.vposProductEvaluateDao; + } + + @Override + public Pager getPager4ApiView(String tenantId, String openId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = vposProductEvaluateDao.getPager4ApiView(tenantId, openId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreBusinessTicketInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreBusinessTicketInfoServiceImpl.java new file mode 100644 index 0000000..ea3905b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreBusinessTicketInfoServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposStoreBusinessTicketInfoDao; +import com.jwsaas.entity.food.VposStoreBusinessTicketInfo; +import com.jwsaas.service.food.VposStoreBusinessTicketInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposStoreBusinessTicketInfoServiceImpl") +public class VposStoreBusinessTicketInfoServiceImpl extends BaseServiceImpl implements VposStoreBusinessTicketInfoService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposStoreBusinessTicketInfoDaoImpl") + private VposStoreBusinessTicketInfoDao vposStoreBusinessTicketInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.vposStoreBusinessTicketInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreBusinessTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreBusinessTicketServiceImpl.java new file mode 100644 index 0000000..9664b79 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreBusinessTicketServiceImpl.java @@ -0,0 +1,199 @@ +package com.jwsaas.service.food.impl; + +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposStoreBusinessTicketDao; +import com.jwsaas.dao.food.VposStoreBusinessTicketInfoDao; +import com.jwsaas.dao.food.VposStoreOrderProductDao; +import com.jwsaas.dao.food.VposStoreOrderProductInfoDao; +import com.jwsaas.dao.food.VposStoreOrderProductMakeDao; +import com.jwsaas.dao.food.VposStorePayDao; +import com.jwsaas.entity.food.StoreBusinessTicketCheck; +import com.jwsaas.entity.food.VposBusinessOrderUpload; +import com.jwsaas.entity.food.VposStoreBusinessTicket; +import com.jwsaas.entity.food.VposStoreBusinessTicketInfo; +import com.jwsaas.entity.food.VposStoreOrderProduct; +import com.jwsaas.entity.food.VposStoreOrderProductInfo; +import com.jwsaas.entity.food.VposStoreOrderProductMake; +import com.jwsaas.entity.food.VposStorePay; +import com.jwsaas.service.food.VposStoreBusinessTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "VposStoreBusinessTicketServiceImpl") +public class VposStoreBusinessTicketServiceImpl extends BaseServiceImpl implements VposStoreBusinessTicketService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VposStoreBusinessTicketDaoImpl") + private VposStoreBusinessTicketDao vposStoreBusinessTicketDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VposStoreBusinessTicketInfoDaoImpl") + private VposStoreBusinessTicketInfoDao vposStoreBusinessTicketInfoDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VposStoreOrderProductDaoImpl") + private VposStoreOrderProductDao vposStoreOrderProductDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VposStoreOrderProductInfoDaoImpl") + private VposStoreOrderProductInfoDao vposStoreOrderProductInfoDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VposStoreOrderProductMakeDaoImpl") + private VposStoreOrderProductMakeDao vposStoreOrderProductMakeDao; + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "VposStorePayDaoImpl") + private VposStorePayDao vposStorePayDao; + + @Override + public BaseDao getBaseDao() { + return this.vposStoreBusinessTicketDao; + } + + @Override + public synchronized StoreBusinessTicketCheck saveBusinessTicket(String tenantId, VposBusinessOrderUpload ticket) throws Exception { + try { + String ticketId = null; + VposStoreBusinessTicket bus = ticket.getTicket(); + List ticketInfos = ticket.getTicketInfos(); + List products = ticket.getProducts(); + List productInfos = ticket.getProductInfos(); + List makes = ticket.getMakes(); + double productCount = 0.00; + for (VposStoreOrderProduct product : products) { + productCount += (product.getCount() - product.getRcount()); + } + bus.setExt1(String.valueOf(productCount)); + // 未上传过 + bus = vposStoreBusinessTicketDao.save(tenantId, bus, false); + ticketId = bus.getId(); + if (CollectionUtils.isNotEmpty(ticketInfos)) { + for (VposStoreBusinessTicketInfo ticketInfo : ticketInfos) { + ticketInfo.setTicketId(ticketId); + vposStoreBusinessTicketInfoDao.save(tenantId, ticketInfo, false); + } + } + if (CollectionUtils.isNotEmpty(products)) { + for (VposStoreOrderProduct product : products) { + product.setTicketId(ticketId); + vposStoreOrderProductDao.save(tenantId, product, false); + } + } + if (CollectionUtils.isNotEmpty(productInfos)) { + for (VposStoreOrderProductInfo info : productInfos) { + info.setTicketId(ticketId); + vposStoreOrderProductInfoDao.save(tenantId, info, false); + } + } + if (CollectionUtils.isNotEmpty(makes)) { + for (VposStoreOrderProductMake make : makes) { + make.setTicketId(ticketId); + vposStoreOrderProductMakeDao.save(tenantId, make, false); + } + } + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketId); + return ticketCheck; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + + @Override + public synchronized StoreBusinessTicketCheck updateBusinessTicket(String tenantId, VposStoreBusinessTicket ticket, List payList) throws Exception { + try { + vposStoreBusinessTicketDao.update(tenantId, ticket, false); + if (CollectionUtils.isNotEmpty(payList)) { + for (VposStorePay pay : payList) { + pay.setTicketId(ticket.getId()); + vposStorePayDao.save(tenantId, pay, false); + } + } + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticket.getId()); + return ticketCheck; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) throws Exception { + try { + return vposStoreBusinessTicketDao.getListByExport(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public synchronized StoreBusinessTicketCheck updateBusinessTicketOne(String tenantId, VposBusinessOrderUpload ticket) throws Exception { + + try { + String ticketId = null; + VposStoreBusinessTicket bus = ticket.getTicket(); + List ticketInfos = ticket.getTicketInfos(); + List products = ticket.getProducts(); + List productInfos = ticket.getProductInfos(); + List makes = ticket.getMakes(); + double productCount = 0.00; + for (VposStoreOrderProduct product : products) { + productCount += (product.getCount() - product.getRcount()); + } + bus.setExt1(String.valueOf(productCount)); + // 未上传过 + Integer result = vposStoreBusinessTicketDao.update(tenantId, bus, true); + ticketId = bus.getId(); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId", ticketId)); + vposStoreBusinessTicketInfoDao.delete(tenantId, criteria, true); + vposStoreOrderProductDao.delete(tenantId, criteria, true); + vposStoreOrderProductInfoDao.delete(tenantId, criteria, true); + vposStoreOrderProductMakeDao.delete(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(ticketInfos)) { + for (VposStoreBusinessTicketInfo ticketInfo : ticketInfos) { + ticketInfo.setTicketId(ticketId); + } + vposStoreBusinessTicketInfoDao.save(tenantId, ticketInfos); + } + if (CollectionUtils.isNotEmpty(products)) { + for (VposStoreOrderProduct product : products) { + product.setTicketId(ticketId); + } + vposStoreOrderProductDao.save(tenantId, products); + } + if (CollectionUtils.isNotEmpty(productInfos)) { + for (VposStoreOrderProductInfo info : productInfos) { + info.setTicketId(ticketId); + } + vposStoreOrderProductInfoDao.save(tenantId, productInfos); + } + if (CollectionUtils.isNotEmpty(makes)) { + for (VposStoreOrderProductMake make : makes) { + make.setTicketId(ticketId); + } + vposStoreOrderProductMakeDao.save(tenantId, makes); + } + StoreBusinessTicketCheck ticketCheck = new StoreBusinessTicketCheck(); + ticketCheck.setStatus("1"); + ticketCheck.setTimesp(String.valueOf(new Date().getTime())); + ticketCheck.setTicketId(ticketId); + return ticketCheck; + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductInfoServiceImpl.java new file mode 100644 index 0000000..224e382 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductInfoServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposStoreOrderProductInfoDao; +import com.jwsaas.entity.food.VposStoreOrderProductInfo; +import com.jwsaas.service.food.VposStoreOrderProductInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposStoreOrderProductInfoServiceImpl") +public class VposStoreOrderProductInfoServiceImpl extends BaseServiceImpl implements VposStoreOrderProductInfoService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposStoreOrderProductInfoDaoImpl") + private VposStoreOrderProductInfoDao vposStoreOrderProductInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.vposStoreOrderProductInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductMakeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductMakeServiceImpl.java new file mode 100644 index 0000000..7fbd619 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductMakeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposStoreOrderProductMakeDao; +import com.jwsaas.entity.food.VposStoreOrderProductMake; +import com.jwsaas.service.food.VposStoreOrderProductMakeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposStoreOrderProductMakeServiceImpl") +public class VposStoreOrderProductMakeServiceImpl extends BaseServiceImpl implements VposStoreOrderProductMakeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposStoreOrderProductMakeDaoImpl") + private VposStoreOrderProductMakeDao vposStoreOrderProductMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.vposStoreOrderProductMakeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductServiceImpl.java new file mode 100644 index 0000000..b439456 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStoreOrderProductServiceImpl.java @@ -0,0 +1,55 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposStoreOrderProductDao; +import com.jwsaas.entity.food.VposStoreOrderProduct; +import com.jwsaas.service.food.VposStoreOrderProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposStoreOrderProductServiceImpl") +public class VposStoreOrderProductServiceImpl extends BaseServiceImpl implements VposStoreOrderProductService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposStoreOrderProductDaoImpl") + private VposStoreOrderProductDao vposStoreOrderProductDao; + + @Override + public BaseDao getBaseDao() { + return this.vposStoreOrderProductDao; + } + + @Override + public List getListByExport(String tenantId, Criteria criteria) throws Exception { + try{ + return vposStoreOrderProductDao.getListByExport(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getSummaryList(String tenantId, Criteria criteria) throws Exception { + try{ + return vposStoreOrderProductDao.getSummaryList(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } + + @Override + public List getListByProductSalesSummary(String tenantId, Criteria criteria) throws Exception { + try{ + return vposStoreOrderProductDao.getListByProductSalesSummary(tenantId,criteria); + }catch (Exception e){ + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposStorePayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStorePayServiceImpl.java new file mode 100644 index 0000000..f876b9a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposStorePayServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposStorePayDao; +import com.jwsaas.entity.food.VposStorePay; +import com.jwsaas.service.food.VposStorePayService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposStorePayServiceImpl") +public class VposStorePayServiceImpl extends BaseServiceImpl implements VposStorePayService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposStorePayDaoImpl") + private VposStorePayDao vposStorePayDao; + + @Override + public BaseDao getBaseDao() { + return this.vposStorePayDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposUserSeriesServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposUserSeriesServiceImpl.java new file mode 100644 index 0000000..be5a12d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposUserSeriesServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposUserSeriesDao; +import com.jwsaas.entity.food.VposUserSeries; +import com.jwsaas.service.food.VposUserSeriesService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposUserSeriesServiceImpl") +public class VposUserSeriesServiceImpl extends BaseServiceImpl implements VposUserSeriesService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposUserSeriesDaoImpl") + private VposUserSeriesDao vposUserSeriesDao; + + @Override + public BaseDao getBaseDao() { + return this.vposUserSeriesDao; + } + + @Override + public List getSeriesIdByUserId(String tenantId, String id) throws Exception { + try{ + return vposUserSeriesDao.getSeriesIdByUserId(tenantId,id); + }catch (Exception e){ + throw e; + } + + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/VposUserServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/VposUserServiceImpl.java new file mode 100644 index 0000000..e938883 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/VposUserServiceImpl.java @@ -0,0 +1,28 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.VposUserDao; +import com.jwsaas.entity.food.VposUser; +import com.jwsaas.service.food.VposUserService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"VposUserServiceImpl") +public class VposUserServiceImpl extends BaseServiceImpl implements VposUserService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"VposUserDaoImpl") + private VposUserDao vposUserDao; + + @Override + public BaseDao getBaseDao() { + return this.vposUserDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdPictureServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdPictureServiceImpl.java new file mode 100644 index 0000000..19eaea6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdPictureServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxAdPictureDao; +import com.jwsaas.entity.food.WxAdPicture; +import com.jwsaas.service.food.WxAdPictureService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxAdPictureServiceImpl") +public class WxAdPictureServiceImpl extends BaseServiceImpl implements WxAdPictureService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxAdPictureDaoImpl") + private WxAdPictureDao wxAdPictureDao; + + @Override + public BaseDao getBaseDao() { + return this.wxAdPictureDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceGoodsServiceImpl.java new file mode 100644 index 0000000..b8e2937 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceGoodsServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxAdjustPriceGoodsDao; +import com.jwsaas.entity.food.WxAdjustPriceGoods; +import com.jwsaas.service.food.WxAdjustPriceGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceGoodsServiceImpl") +public class WxAdjustPriceGoodsServiceImpl extends BaseServiceImpl implements WxAdjustPriceGoodsService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceGoodsDaoImpl") + private WxAdjustPriceGoodsDao wxAdjustPriceGoodsDao; + + @Override + public BaseDao getBaseDao() { + return this.wxAdjustPriceGoodsDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return wxAdjustPriceGoodsDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceStoreServiceImpl.java new file mode 100644 index 0000000..77e7c1c --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceStoreServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxAdjustPriceStoreDao; +import com.jwsaas.entity.food.WxAdjustPriceStore; +import com.jwsaas.service.food.WxAdjustPriceStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceStoreServiceImpl") +public class WxAdjustPriceStoreServiceImpl extends BaseServiceImpl implements WxAdjustPriceStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceStoreDaoImpl") + private WxAdjustPriceStoreDao wxAdjustPriceStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.wxAdjustPriceStoreDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return wxAdjustPriceStoreDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceTicketServiceImpl.java new file mode 100644 index 0000000..6645d86 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxAdjustPriceTicketServiceImpl.java @@ -0,0 +1,204 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxAdjustPriceGoodsDao; +import com.jwsaas.dao.food.WxAdjustPriceStoreDao; +import com.jwsaas.dao.food.WxStoreGoodsDao; +import com.jwsaas.entity.food.WxAdjustPriceGoods; +import com.jwsaas.entity.food.WxAdjustPriceStore; +import com.jwsaas.entity.food.WxStoreGoods; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxAdjustPriceTicketDao; +import com.jwsaas.entity.food.WxAdjustPriceTicket; +import com.jwsaas.service.food.WxAdjustPriceTicketService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceTicketServiceImpl") +public class WxAdjustPriceTicketServiceImpl extends BaseServiceImpl implements WxAdjustPriceTicketService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceTicketDaoImpl") + private WxAdjustPriceTicketDao wxAdjustPriceTicketDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceGoodsDaoImpl") + private WxAdjustPriceGoodsDao wxAdjustPriceGoodsDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxAdjustPriceStoreDaoImpl") + private WxAdjustPriceStoreDao wxAdjustPriceStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxStoreGoodsDaoImpl") + private WxStoreGoodsDao wxStoreGoodsDao; + + @Override + public BaseDao getBaseDao() { + return this.wxAdjustPriceTicketDao; + } + + @Override + public Integer saveTicket(String tenantId, WxAdjustPriceTicket ticket, List storeList, List goodsList,String userName) throws Exception { + Integer i = 0; + try{ + ticket = wxAdjustPriceTicketDao.save(tenantId,ticket,true); + if(CollectionUtils.isNotEmpty(goodsList)){ + List goodses = new ArrayList<>(); + for(WxAdjustPriceGoods goods : goodsList){ + goods.setTenantId(tenantId); + goods.setCreateUser(userName); + goods.setCreateDate(new Date()); + goods.setTicketId(ticket.getId()); + goods.setTicketNo(ticket.getNo()); + goodses.add(goods); + } + wxAdjustPriceGoodsDao.save(tenantId,goodses); + } + + if(CollectionUtils.isNotEmpty(storeList)){ + List stores = new ArrayList<>(); + for(String storeId : storeList){ + WxAdjustPriceStore store = new WxAdjustPriceStore(); + store.setTenantId(tenantId); + store.setCreateDate(new Date()); + store.setCreateUser(userName); + store.setStoreId(storeId); + store.setTicketId(ticket.getId()); + store.setTicketNo(ticket.getNo()); + stores.add(store); + } + wxAdjustPriceStoreDao.save(tenantId,stores); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTicket(String tenantId, WxAdjustPriceTicket ticket, List storeList, List goodsList, String userName) throws Exception { + Integer i = 0; + try{ + wxAdjustPriceTicketDao.update(tenantId,ticket,true); + WxAdjustPriceTicket wxTicket = wxAdjustPriceTicketDao.get(tenantId,ticket.getId(),true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticket.getId())); + wxAdjustPriceStoreDao.delete(tenantId,criteria,true); + wxAdjustPriceGoodsDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(goodsList)){ + List goodses = new ArrayList<>(); + for(WxAdjustPriceGoods goods : goodsList){ + goods.setTenantId(tenantId); + goods.setCreateUser(userName); + goods.setCreateDate(new Date()); + goods.setTicketId(wxTicket.getId()); + goods.setTicketNo(wxTicket.getNo()); + goods.setModifyUser(userName); + goods.setModifyDate(new Date()); + goodses.add(goods); + } + wxAdjustPriceGoodsDao.save(tenantId,goodses); + } + + if(CollectionUtils.isNotEmpty(storeList)){ + List stores = new ArrayList<>(); + for(String storeId : storeList){ + WxAdjustPriceStore store = new WxAdjustPriceStore(); + store.setTenantId(tenantId); + store.setCreateDate(new Date()); + store.setCreateUser(userName); + store.setStoreId(storeId); + store.setTicketId(wxTicket.getId()); + store.setTicketNo(wxTicket.getNo()); + store.setModifyUser(userName); + store.setModifyDate(new Date()); + stores.add(store); + } + wxAdjustPriceStoreDao.save(tenantId,stores); + } + i = 0; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveExecuteWxAdjustPrice(String tenantId, String ticketId) throws Exception { + Integer i = 0; + try{ + WxAdjustPriceTicket ticket = wxAdjustPriceTicketDao.get(tenantId,ticketId,true); + if(ticket != null){ + if(ticket.getStatus() == 1){ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("ticketId",ticketId)); + List goodses = wxAdjustPriceGoodsDao.getList(tenantId,criteria,true); + if(CollectionUtils.isEmpty(goodses)){ + return 3;//单据明细不存在; + } + List stores = wxAdjustPriceStoreDao.getList(tenantId,criteria,true); + if(CollectionUtils.isEmpty(stores)){ + return 4;//单据门店不存在; + } + List storeIds = new ArrayList<>(); + for(WxAdjustPriceStore store : stores){ + storeIds.add(store.getStoreId()); + } + List wxStoreGoodsList = new ArrayList<>(); + Map map = getWxStoreGoodsMap(tenantId,storeIds); + for(WxAdjustPriceStore store : stores){ + for(WxAdjustPriceGoods goods : goodses){ + String key = store.getStoreId()+"-"+goods.getGoodsId(); + WxStoreGoods wxStoreGoods = map.get(key); + if(wxStoreGoods != null){ + wxStoreGoods.setPrice(goods.getPrice()); + wxStoreGoods.setMemberPrice(goods.getMemberPrice()); + wxStoreGoods.setModifyDate(new Date()); + wxStoreGoods.setModifyUser("Job"); + wxStoreGoodsList.add(wxStoreGoods); + } + } + } + if(wxStoreGoodsList.size() > 0){ + wxStoreGoodsDao.update(tenantId,wxStoreGoodsList); + } + ticket.setStatus(3); + wxAdjustPriceTicketDao.update(tenantId,ticket,true); + i =1; + }else{ + return 5; + } + + }else{ + return 2;//单据不存在; + } + }catch (Exception e){ + throw e; + } + return i; + } + + private Map getWxStoreGoodsMap(String tenantId, List storeIds) throws Exception{ + Map map = new HashMap<>(); + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId",storeIds)); + List list = wxStoreGoodsDao.getList(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(list)){ + for(WxStoreGoods goods : list){ + String key = goods.getStoreId()+"-"+goods.getGoodsId(); + map.put(key,goods); + } + } + }catch (Exception e){ + throw e; + } + return map; + } + + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsCategoryServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsCategoryServiceImpl.java new file mode 100644 index 0000000..76e453a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsCategoryServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxGoodsCategoryDao; +import com.jwsaas.entity.food.WxGoodsCategory; +import com.jwsaas.service.food.WxGoodsCategoryService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsCategoryServiceImpl") +public class WxGoodsCategoryServiceImpl extends BaseServiceImpl implements WxGoodsCategoryService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxGoodsCategoryDaoImpl") + private WxGoodsCategoryDao wxGoodsCategoryDao; + + @Override + public BaseDao getBaseDao() { + return this.wxGoodsCategoryDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsMakeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsMakeServiceImpl.java new file mode 100644 index 0000000..b16f9e1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsMakeServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxGoodsMakeDao; +import com.jwsaas.entity.food.WxGoodsMake; +import com.jwsaas.service.food.WxGoodsMakeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsMakeServiceImpl") +public class WxGoodsMakeServiceImpl extends BaseServiceImpl implements WxGoodsMakeService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxGoodsMakeDaoImpl") + private WxGoodsMakeDao wxGoodsMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.wxGoodsMakeDao; + } + + @Override + public List> getMakeCount(String tenantId, Criteria criteria) throws Exception { + try { + return this.wxGoodsMakeDao.getMakeCount(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtends(String tenantId, Criteria criteria) throws Exception { + try { + return this.wxGoodsMakeDao.getListExtends(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsServiceImpl.java new file mode 100644 index 0000000..208d6d9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsServiceImpl.java @@ -0,0 +1,123 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxGoodsDao; +import com.jwsaas.dao.food.WxGoodsMakeDao; +import com.jwsaas.entity.food.WxGoods; +import com.jwsaas.entity.food.WxGoodsMake; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.WxGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxGoodsServiceImpl") +public class WxGoodsServiceImpl extends BaseServiceImpl implements WxGoodsService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxGoodsDaoImpl") + private WxGoodsDao wxGoodsDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxGoodsMakeDaoImpl") + private WxGoodsMakeDao wxGoodsMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.wxGoodsDao; + } + + @Override + public Integer saveGoodsMakes(String tenantId, List list, List makes) throws Exception { + Integer i = 0; + try{ + i = wxGoodsDao.save(tenantId,list); + if(CollectionUtils.isNotEmpty(makes)) { + wxGoodsMakeDao.save(tenantId, makes); + } + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateGoodsMakes(String tenantId,String productId, List list, List makes) throws Exception { + Integer i = 0; + try{ + wxGoodsDao.update(tenantId,list); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("productId",productId)); + wxGoodsMakeDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(makes)) { + wxGoodsMakeDao.save(tenantId, makes); + } + i = 1; + }catch(Exception e){ + throw e; + } + return i; + } + + @Override + public List getAllSpecIds(String tenantId) throws Exception { + try { + return wxGoodsDao.getAllSpecIds(tenantId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getAllProductIds(String tenantId) throws Exception { + try { + return wxGoodsDao.getAllProductIds(tenantId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getExtendPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = wxGoodsDao.getExtendPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByStoreIds(String tenantId, List ids, Criteria criteria) throws Exception { + try { + return wxGoodsDao.getListByStoreIds(tenantId,ids,criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateGoodsAndMakesByBatch(String tenantId, List productIds,List goodsList, List makes) throws Exception { + Integer i = 0; + try{ + wxGoodsDao.update(tenantId,goodsList); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("productId",productIds)); + wxGoodsMakeDao.delete(tenantId,criteria,true); + if(CollectionUtils.isNotEmpty(makes)) { + wxGoodsMakeDao.save(tenantId, makes); + } + }catch (Exception e){ + throw e; + } + return i; + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateDetailServiceImpl.java new file mode 100644 index 0000000..4112f4e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateDetailServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxGoodsTemplateDetailDao; +import com.jwsaas.entity.food.WxGoodsTemplateDetail; +import com.jwsaas.service.food.WxGoodsTemplateDetailService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateDetailServiceImpl") +public class WxGoodsTemplateDetailServiceImpl extends BaseServiceImpl implements WxGoodsTemplateDetailService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateDetailDaoImpl") + private WxGoodsTemplateDetailDao wxGoodsTemplateDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.wxGoodsTemplateDetailDao; + } + + @Override + public List getGoodsIdByTemplateId(String tenantId, String templateId) throws Exception { + try { + return wxGoodsTemplateDetailDao.getGoodsIdByTemplateId(tenantId, templateId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithExtend(String tenantId, Criteria crit) throws Exception { + try { + return wxGoodsTemplateDetailDao.getListWithExtend(tenantId, crit); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateServiceImpl.java new file mode 100644 index 0000000..1a546ce --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateServiceImpl.java @@ -0,0 +1,281 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.WxGoodsTemplateDetailDao; +import com.jwsaas.dao.food.WxGoodsTemplateStoreDao; +import com.jwsaas.dao.food.WxStoreGoodsDao; +import com.jwsaas.entity.food.WxGoodsTemplateDetail; +import com.jwsaas.entity.food.WxGoodsTemplateStore; +import com.jwsaas.entity.food.WxStoreGoods; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxGoodsTemplateDao; +import com.jwsaas.entity.food.WxGoodsTemplate; +import com.jwsaas.service.food.WxGoodsTemplateService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.*; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateServiceImpl") +public class WxGoodsTemplateServiceImpl extends BaseServiceImpl implements WxGoodsTemplateService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateDaoImpl") + private WxGoodsTemplateDao wxGoodsTemplateDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateDetailDaoImpl") + private WxGoodsTemplateDetailDao wxGoodsTemplateDetailDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateStoreDaoImpl") + private WxGoodsTemplateStoreDao wxGoodsTemplateStoreDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxStoreGoodsDaoImpl") + private WxStoreGoodsDao wxStoreGoodsDao; + + + @Override + public BaseDao getBaseDao() { + return this.wxGoodsTemplateDao; + } + + @Override + public Integer saveTemplateDetailStoreId(String tenantId, WxGoodsTemplate template, List details, List storeIds) throws Exception { + Integer i = 0; + try{ + template = wxGoodsTemplateDao.save(tenantId,template,true); + if(CollectionUtils.isNotEmpty(details)){ + for(WxGoodsTemplateDetail detail : details){ + detail.setTenantId(tenantId); + detail.setCreateUser(template.getCreateUser()); + detail.setCreateDate(new Date()); + detail.setTemplateId(template.getId()); + } + wxGoodsTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(storeIds)){ + List stores = new ArrayList<>(); + for(String storeId : storeIds){ + WxGoodsTemplateStore store = new WxGoodsTemplateStore(); + store.setTemplateId(template.getId()); + store.setStoreId(storeId); + store.setCreateDate(new Date()); + store.setCreateUser(template.getCreateUser()); + stores.add(store); + } + wxGoodsTemplateStoreDao.save(tenantId,stores); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer updateTemplateDetailStoreId(String tenantId, WxGoodsTemplate template, List details, List storeIds) throws Exception { + Integer i = 0; + try{ + wxGoodsTemplateDao.update(tenantId,template,true); + template = wxGoodsTemplateDao.get(tenantId,template.getId(),true); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("templateId",template.getId())); + wxGoodsTemplateDetailDao.delete(tenantId,criteria,true); + wxGoodsTemplateStoreDao.delete(tenantId,criteria,true); + + if(CollectionUtils.isNotEmpty(details)){ + for(WxGoodsTemplateDetail detail : details){ + detail.setTenantId(tenantId); + detail.setCreateUser(template.getCreateUser()); + detail.setCreateDate(new Date()); + detail.setTemplateId(template.getId()); + } + wxGoodsTemplateDetailDao.save(tenantId,details); + } + if(CollectionUtils.isNotEmpty(storeIds)){ + List stores = new ArrayList<>(); + for(String storeId : storeIds){ + WxGoodsTemplateStore store = new WxGoodsTemplateStore(); + store.setTemplateId(template.getId()); + store.setStoreId(storeId); + store.setCreateDate(new Date()); + store.setCreateUser(template.getCreateUser()); + stores.add(store); + } + wxGoodsTemplateStoreDao.save(tenantId,stores); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer deleteTemplateDetailsStores(String tenantId, List ids, String userName) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("templateId",ids)); + wxGoodsTemplateDetailDao.delete(tenantId,criteria,true); + wxGoodsTemplateStoreDao.delete(tenantId,criteria,true); + wxGoodsTemplateDao.delete(tenantId,ids); + + i= 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveStoreWxGoodsPrice(String tenantId, String templateId, String storeIds, String userName) throws Exception { + Integer i = 0; + try{ + List details = wxGoodsTemplateDetailDao.findList(tenantId,"templateId",templateId,true); + List saveList = new ArrayList<>(); + List updateList = new ArrayList<>(); + if(StringUtils.isEmpty(storeIds)){ + List stores = wxGoodsTemplateStoreDao.findList(tenantId,"templateId",templateId,true); + for(WxGoodsTemplateStore store : stores){ + Map map = getWxStoreGoodsMap(tenantId,store.getStoreId()); + for(WxGoodsTemplateDetail detail : details){ + String key = detail.getGoodsId(); + if(map.containsKey(key)){ + WxStoreGoods wsg = map.get(key); + wsg.setPrice(detail.getPrice()); + wsg.setMemberPrice(detail.getMemberPrice()); + wsg.setModifyUser(userName); + wsg.setModifyDate(new Date()); + updateList.add(wsg); + }else{ + WxStoreGoods goods = new WxStoreGoods(); + goods.setTenantId(tenantId); + goods.setCreateUser(userName); + goods.setCreateDate(new Date()); + goods.setGoodsId(detail.getGoodsId()); + goods.setProductId(detail.getProductId()); + goods.setSpecId(detail.getSpecId()); + goods.setPrice(detail.getPrice()); + goods.setMemberPrice(detail.getMemberPrice()); + goods.setStoreId(store.getStoreId()); + goods.setInventoryQuantity(0.0); + saveList.add(goods); + } + } + } + }else{ + List ids = Arrays.asList(storeIds.split(",")); + for(String storeId : ids){ + Map map = getWxStoreGoodsMap(tenantId,storeId); + for(WxGoodsTemplateDetail detail : details){ + String key = detail.getGoodsId(); + if(map.containsKey(key)){ + WxStoreGoods wsg = map.get(key); + wsg.setPrice(detail.getPrice()); + wsg.setMemberPrice(detail.getMemberPrice()); + wsg.setModifyUser(userName); + wsg.setModifyDate(new Date()); + updateList.add(wsg); + }else{ + WxStoreGoods goods = new WxStoreGoods(); + goods.setTenantId(tenantId); + goods.setCreateUser(userName); + goods.setCreateDate(new Date()); + goods.setGoodsId(detail.getGoodsId()); + goods.setProductId(detail.getProductId()); + goods.setSpecId(detail.getSpecId()); + goods.setPrice(detail.getPrice()); + goods.setMemberPrice(detail.getMemberPrice()); + goods.setStoreId(storeId); + goods.setInventoryQuantity(0.0); + saveList.add(goods); + } + } + } + } + + if(updateList.size() > 0){ + wxStoreGoodsDao.update(tenantId,updateList); + } + if(saveList.size() > 0){ + wxStoreGoodsDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + @Override + public Integer saveStoreWxGoodsPriceByCover(String tenantId, String templateId, String storeIds, String userName) throws Exception { + Integer i = 0; + try{ + List details = wxGoodsTemplateDetailDao.findList(tenantId,"templateId",templateId,true); + List saveList = new ArrayList<>(); + if(StringUtils.isEmpty(storeIds)){ + List stores = wxGoodsTemplateStoreDao.findList(tenantId,"templateId",templateId,true); + for(WxGoodsTemplateStore store : stores){ + wxStoreGoodsDao.delete(tenantId,"storeId",store.getStoreId(),true); + for(WxGoodsTemplateDetail detail : details){ + WxStoreGoods goods = new WxStoreGoods(); + goods.setTenantId(tenantId); + goods.setCreateUser(userName); + goods.setCreateDate(new Date()); + goods.setGoodsId(detail.getGoodsId()); + goods.setProductId(detail.getProductId()); + goods.setSpecId(detail.getSpecId()); + goods.setPrice(detail.getPrice()); + goods.setMemberPrice(detail.getMemberPrice()); + goods.setStoreId(store.getStoreId()); + goods.setInventoryQuantity(0.0); + saveList.add(goods); + } + } + }else{ + List ids = Arrays.asList(storeIds.split(",")); + for(String storeId : ids){ + wxStoreGoodsDao.delete(tenantId,"storeId",storeId,true); + for(WxGoodsTemplateDetail detail : details){ + WxStoreGoods goods = new WxStoreGoods(); + goods.setTenantId(tenantId); + goods.setCreateUser(userName); + goods.setCreateDate(new Date()); + goods.setGoodsId(detail.getGoodsId()); + goods.setProductId(detail.getProductId()); + goods.setSpecId(detail.getSpecId()); + goods.setPrice(detail.getPrice()); + goods.setMemberPrice(detail.getMemberPrice()); + goods.setStoreId(storeId); + goods.setInventoryQuantity(0.0); + saveList.add(goods); + } + } + } + if(saveList.size() > 0){ + wxStoreGoodsDao.save(tenantId,saveList); + } + i = 1; + }catch (Exception e){ + throw e; + } + return i; + } + + + private Map getWxStoreGoodsMap(String tenantId,String storeId) throws Exception{ + Map map = new HashMap<>(); + List goodses = wxStoreGoodsDao.findList(tenantId,"storeId",storeId,true); + if(CollectionUtils.isNotEmpty(goodses)){ + for(WxStoreGoods goods : goodses){ + map.put(goods.getGoodsId(),goods); + } + } + return map; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateStoreServiceImpl.java new file mode 100644 index 0000000..ffac2ae --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxGoodsTemplateStoreServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxGoodsTemplateStoreDao; +import com.jwsaas.entity.food.WxGoodsTemplateStore; +import com.jwsaas.service.food.WxGoodsTemplateStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateStoreServiceImpl") +public class WxGoodsTemplateStoreServiceImpl extends BaseServiceImpl implements WxGoodsTemplateStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxGoodsTemplateStoreDaoImpl") + private WxGoodsTemplateStoreDao wxGoodsTemplateStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.wxGoodsTemplateStoreDao; + } + + @Override + public List getStoreIdByTemplateId(String tenantId, String templateId) throws Exception { + try { + return wxGoodsTemplateStoreDao.getStoreIdByTemplateId(tenantId, templateId); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListWithExtend(String tenantId, Criteria criteria) throws Exception { + try { + return wxGoodsTemplateStoreDao.getListWithExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxPaymentParameterServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxPaymentParameterServiceImpl.java new file mode 100644 index 0000000..111f5d0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxPaymentParameterServiceImpl.java @@ -0,0 +1,117 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.entity.food.WxStore; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxPaymentParameterDao; +import com.jwsaas.entity.food.WxPaymentParameter; +import com.jwsaas.service.food.WxPaymentParameterService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.ArrayList; +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxPaymentParameterServiceImpl") +public class WxPaymentParameterServiceImpl extends BaseServiceImpl implements WxPaymentParameterService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxPaymentParameterDaoImpl") + private WxPaymentParameterDao wxPaymentParameterDao; + + @Override + public BaseDao getBaseDao() { + return this.wxPaymentParameterDao; + } + + @Override + public Integer saveWxStorePaymentRelation(String tenantId, WxPaymentParameter payment, List wxStores) throws Exception { + Integer i = 0; + try { + payment = wxPaymentParameterDao.save(tenantId, payment, true); + if (CollectionUtils.isNotEmpty(wxStores)) { + List parameters = new ArrayList<>(); + for (WxStore store : wxStores) { + WxPaymentParameter wp = new WxPaymentParameter(); + wp.setTenantId(tenantId); + wp.setStoreId(store.getStoreId()); + wp.setWxStoreId(store.getId()); + wp.setId(payment.getId()); + parameters.add(wp); + } + if (CollectionUtils.isNotEmpty(parameters)) { + wxPaymentParameterDao.saveRelation(tenantId, parameters); + } + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public List getStoreIdsByPaymentId(String tenantId, String id) throws Exception { + try { + return wxPaymentParameterDao.getStoreIdsByPaymentId(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateWxStorePaymentRelation(String tenantId, String id, WxPaymentParameter payment, List wxStores) throws Exception { + Integer i = 0; + try { + i = wxPaymentParameterDao.update(tenantId, payment, true); + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("parameterId", id)); + wxPaymentParameterDao.deleteRelationByCriteria(tenantId, criteria, true); + if (CollectionUtils.isNotEmpty(wxStores)) { + List parameters = new ArrayList<>(); + for (WxStore store : wxStores) { + WxPaymentParameter wp = new WxPaymentParameter(); + wp.setTenantId(tenantId); + wp.setStoreId(store.getStoreId()); + wp.setWxStoreId(store.getId()); + wp.setId(payment.getId()); + parameters.add(wp); + } + if (CollectionUtils.isNotEmpty(parameters)) { + wxPaymentParameterDao.saveRelation(tenantId, parameters); + } + } + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public Integer deletePaymentAndStoreByParameterIds(String tenantId, List parameterIds) throws Exception { + Integer i = 0; + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("parameterId", parameterIds)); + wxPaymentParameterDao.deleteRelationByCriteria(tenantId, criteria, true); + i = wxPaymentParameterDao.delete(tenantId, parameterIds); + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public List getPaymentParameterByStoreId(String tenantId, String wxStoreId) throws Exception { + try { + return this.wxPaymentParameterDao.getPaymentParameterByStoreId(tenantId, wxStoreId); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxQrcodeSettingServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxQrcodeSettingServiceImpl.java new file mode 100644 index 0000000..bcffbe8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxQrcodeSettingServiceImpl.java @@ -0,0 +1,34 @@ +package com.jwsaas.service.food.impl; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxQrcodeSettingDao; +import com.jwsaas.entity.food.WxQrcodeSetting; +import com.jwsaas.service.food.WxQrcodeSettingService; +import com.jwsaas.service.impl.BaseServiceImpl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxQrcodeSettingServiceImpl") +public class WxQrcodeSettingServiceImpl extends BaseServiceImpl implements WxQrcodeSettingService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxQrcodeSettingDaoImpl") + private WxQrcodeSettingDao wxQrcodeSettingDao; + + @Override + public BaseDao getBaseDao() { + return this.wxQrcodeSettingDao; + } + + @Override + public WxQrcodeSetting saveWeixinQrcodeSet(String tenantId, WxQrcodeSetting qrcodeSet) throws Exception { + try{ + wxQrcodeSettingDao.delete(tenantId,new Criteria()); + qrcodeSet = wxQrcodeSettingDao.save(tenantId,qrcodeSet); + }catch (Exception e){ + throw e; + } + return qrcodeSet; + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemMakeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemMakeServiceImpl.java new file mode 100644 index 0000000..5ee6a16 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemMakeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxSalesOrderItemMakeDao; +import com.jwsaas.entity.food.WxSalesOrderItemMake; +import com.jwsaas.service.food.WxSalesOrderItemMakeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxSalesOrderItemMakeServiceImpl") +public class WxSalesOrderItemMakeServiceImpl extends BaseServiceImpl implements WxSalesOrderItemMakeService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxSalesOrderItemMakeDaoImpl") + private WxSalesOrderItemMakeDao wxSalesOrderItemMakeDao; + + @Override + public BaseDao getBaseDao() { + return this.wxSalesOrderItemMakeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemPromoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemPromoServiceImpl.java new file mode 100644 index 0000000..bdd25fa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemPromoServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxSalesOrderItemPromoDao; +import com.jwsaas.entity.food.WxSalesOrderItemPromo; +import com.jwsaas.service.food.WxSalesOrderItemPromoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemPromoServiceImpl") +public class WxSalesOrderItemPromoServiceImpl extends BaseServiceImpl implements WxSalesOrderItemPromoService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemPromoDaoImpl") + private WxSalesOrderItemPromoDao wxSalesOrderItemPromoDao; + + @Override + public BaseDao getBaseDao() { + return this.wxSalesOrderItemPromoDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemServiceImpl.java new file mode 100644 index 0000000..30444c4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderItemServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.food.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxSalesOrderItemDao; +import com.jwsaas.entity.food.WxSalesOrderItem; +import com.jwsaas.service.food.WxSalesOrderItemService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemServiceImpl") +public class WxSalesOrderItemServiceImpl extends BaseServiceImpl implements WxSalesOrderItemService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemDaoImpl") + private WxSalesOrderItemDao wxSalesOrderItemDao; + + @Override + public BaseDao getBaseDao() { + return this.wxSalesOrderItemDao; + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.wxSalesOrderItemDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderLogServiceImpl.java new file mode 100644 index 0000000..32c3991 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxSalesOrderLogDao; +import com.jwsaas.entity.food.WxSalesOrderLog; +import com.jwsaas.service.food.WxSalesOrderLogService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderLogServiceImpl") +public class WxSalesOrderLogServiceImpl extends BaseServiceImpl implements WxSalesOrderLogService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderLogDaoImpl") + private WxSalesOrderLogDao wxSalesOrderLogDao; + + @Override + public BaseDao getBaseDao() { + return this.wxSalesOrderLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl.java new file mode 100644 index 0000000..7273b92 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl.java @@ -0,0 +1,516 @@ +package com.jwsaas.service.food.impl; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxSalesOrderDao; +import com.jwsaas.dao.food.WxSalesOrderItemDao; +import com.jwsaas.dao.food.WxSalesOrderItemMakeDao; +import com.jwsaas.dao.food.WxSalesOrderItemPromoDao; +import com.jwsaas.dao.food.WxSalesOrderLogDao; +import com.jwsaas.dao.food.WxSalesPaymentDao; +import com.jwsaas.entity.food.WxSalesOrder; +import com.jwsaas.entity.food.WxSalesOrderItem; +import com.jwsaas.entity.food.WxSalesOrderItemMake; +import com.jwsaas.entity.food.WxSalesOrderItemPromo; +import com.jwsaas.entity.food.WxSalesOrderLog; +import com.jwsaas.entity.food.WxSalesPayment; +import com.jwsaas.service.food.WxSalesOrderService; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.util.JSONUtil; +import com.jwsaas.utils.MathUtil; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderServiceImpl") +public class WxSalesOrderServiceImpl extends BaseServiceImpl implements WxSalesOrderService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderDaoImpl") + private WxSalesOrderDao wxSalesOrderDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemDaoImpl") + private WxSalesOrderItemDao wxSalesOrderItemDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemMakeDaoImpl") + private WxSalesOrderItemMakeDao wxSalesOrderItemMakeDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderLogDaoImpl") + private WxSalesOrderLogDao wxSalesOrderLogDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesPaymentDaoImpl") + private WxSalesPaymentDao wxSalesPaymentDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesOrderItemPromoDaoImpl") + private WxSalesOrderItemPromoDao wxSalesOrderItemPromoDao; + + @Override + public BaseDao getBaseDao() { + return this.wxSalesOrderDao; + } + + @Override + public WxSalesOrder saveExtend(String tenantId, WxSalesOrder salesOrder, List orderItemList, List> itemMakeList, + List> itemPromoList, List pays) throws Exception { + try { + Assert.notNull(salesOrder, "parameter 'salesOrder' can't be null or empty!"); + Assert.notEmpty(orderItemList, "parameter 'orderItemList' can't be null or empty!"); + Assert.notEmpty(itemMakeList, "parameter 'itemMakeList' can't be null or empty!"); + + salesOrder = wxSalesOrderDao.save(tenantId, salesOrder, true); + + // 订单明细 + for (int i = 0; i < orderItemList.size(); i++) { + WxSalesOrderItem orderItem = orderItemList.get(i); + orderItem.setTicketId(salesOrder.getId());// 销售单ID + orderItem.setBusNo(salesOrder.getNo());// 销售单编号 + orderItem.setMemberId(salesOrder.getMemberId());// 会员ID + orderItem.setCreateUser(salesOrder.getCreateUser()); + orderItem = wxSalesOrderItemDao.save(tenantId, orderItem, true); + // 做法信息 + List makeList = itemMakeList.get(i); + for (WxSalesOrderItemMake make : makeList) { + make.setTicketId(salesOrder.getId());// 销售单ID + make.setBusNo(salesOrder.getNo());// 销售单编号 + make.setMemberId(salesOrder.getMemberId());// 会员ID + make.setOrderItemId(orderItem.getId());// 订单明细ID + make.setCreateUser(salesOrder.getCreateUser()); + } + if (CollectionUtils.isNotEmpty(makeList)) { + wxSalesOrderItemMakeDao.save(tenantId, makeList); + } + + // 优惠信息 + List promoList = itemPromoList.get(i); + for (WxSalesOrderItemPromo promo : promoList) { + promo.setTicketId(salesOrder.getId());// 销售单ID + promo.setBusNo(salesOrder.getNo());// 销售单编号 + promo.setOrderItemId(orderItem.getId());// 订单明细ID + promo.setCreateUser(salesOrder.getCreateUser()); + } + if (CollectionUtils.isNotEmpty(promoList)) { + wxSalesOrderItemPromoDao.save(tenantId, promoList); + } + + } + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(salesOrder.getId());// 销售单ID + orderLog.setTicketNo(salesOrder.getNo());// 销售单编号 + orderLog.setType(0);// 操作类型(0-新建;2-取消;3-付款;4-商家确认;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("创建订单");// 描述 + orderLog.setCreateUser(salesOrder.getCreateUser()); + wxSalesOrderLogDao.save(tenantId, orderLog, true); + + // 付款信息 + BigDecimal paid = BigDecimal.ZERO; + for (WxSalesPayment payment : pays) { + payment.setTicketId(salesOrder.getId());// 销售单ID + payment.setBusNo(salesOrder.getNo());// 销售单编号 + payment.setMemberId(salesOrder.getMemberId());// 会员ID + payment.setCreateUser(salesOrder.getCreateUser()); + paid = MathUtil.add(paid, new BigDecimal(payment.getMoney())); + } + wxSalesPaymentDao.save(tenantId, pays); + + // 更改订单付款状态 + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(salesOrder.getId()); + updateSalesOrder.setStatus(1);// 0-等待付款;1-已支付;2-已退单;3-已取消;4-商家已确认;5-已完成; + updateSalesOrder.setModifyDate(salesOrder.getCreateDate()); + updateSalesOrder.setModifyUser(salesOrder.getCreateUser()); + updateSalesOrder.setPaid(paid.doubleValue()); + updateSalesOrder.setPayDate(salesOrder.getCreateDate()); + wxSalesOrderDao.update(tenantId, updateSalesOrder, true); + + // 记录日志 + orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(salesOrder.getId());// 销售单ID + orderLog.setTicketNo(salesOrder.getNo());// 销售单编号 + orderLog.setType(3);// 操作类型(0-新建;2-取消;3-付款;4-商家确认;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("用户付款");// 描述 + orderLog.setCreateUser(salesOrder.getCreateUser()); + wxSalesOrderLogDao.save(tenantId, orderLog, true); + + salesOrder = wxSalesOrderDao.get(tenantId, salesOrder.getId(), true); + return salesOrder; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveStoreOrderConfirm(String tenantId, String ticketId, String ticketNo, String takeNo, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setTakeNo(takeNo);// 取餐号 + updateSalesOrder.setStatus(4);// 0-等待付款;1-已支付;2-已退单;3-已取消;4-商家已确认;5-已完成; + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(4);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("商家确认");// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveStoreOrderCancel(String tenantId, String ticketId, String ticketNo, String cancelReason, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setStatus(3);// 0-等待付款;1-已支付;2-已退单;3-已取消;4-已完成; + updateSalesOrder.setCancelDate(new Date());// 取消时间 + updateSalesOrder.setCancelReason(cancelReason);// 取消原因 + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(3);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("商家取消");// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveStoreOrderDelivery(String tenantId, String ticketId, String ticketNo, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setStatus(5);// 0-等待付款;1-已支付;2-已退单;3-已取消;4-商家已确认;5-已完成; + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(5);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;5-商家送餐;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("商家已送餐,用户已取餐。");// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveUserOrderCancel(String tenantId, String ticketId, String ticketNo, String cancelReason, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setStatus(3);// 0-等待付款;1-已支付;2-已退单;3-已取消;4-商家已确认;5-已完成; + updateSalesOrder.setCancelDate(new Date());// 取消时间 + updateSalesOrder.setCancelReason(cancelReason);// 取消原因 + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(1);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("用户取消");// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveOrderPayRefund(String tenantId, String ticketId, String ticketNo, List> refundResultList, + String currentUser,Map refundPointResult) throws Exception { + Assert.notEmpty(refundResultList, "parameter 'orderItemList' can't be null or empty!"); + try { + int result = 0; + if (refundResultList.size() == 0) { + return result; + } + + for (Map refundResult : refundResultList) { + WxSalesPayment pay = (WxSalesPayment) refundResult.get("orderPay"); + String payMode = refundResult.get("payMode").toString(); + Boolean status = (Boolean) refundResult.get("status"); + String response = refundResult.get("response").toString(); + String paySign = refundResult.get("paySign")==null?"":refundResult.get("paySign").toString(); + if (status) { + WxSalesPayment updatePay = new WxSalesPayment(); + updatePay.setId(pay.getId()); + updatePay.setStatus(2);// 0-未付款;1-已付款;2-已退款;3-已取消; + updatePay.setModifyDate(new Date()); + updatePay.setModifyUser(currentUser); + wxSalesPaymentDao.update(tenantId, updatePay); + } + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(5);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;5-:退款;) + orderLog.setStatus(status?1:0);// 操作状态 1-成功 0-失败 + String description = "退款"; + if (StringUtils.equalsIgnoreCase("05", payMode)) { + if(StringUtils.isNotBlank(paySign) && "fbzf".equals(paySign)){ +// Map dataMap = (Map)responseMap.get("data"); +// String orderNo = dataMap.get("merchant_order_sn")== null?"":dataMap.get("merchant_order_sn").toString(); +// String refundNo = dataMap.get("merchant_refund_sn")== null?"":dataMap.get("merchant_refund_sn").toString(); +// String fubeRefundNo = dataMap.get("refund_sn")== null?"":dataMap.get("refund_sn").toString(); + description = "退款(付呗) "+response; + }else{ + Map responseMap = JSONUtil.parseObject(response, new TypeReference>() {}); + String outRefundNo = responseMap.get("outRefundNo") == null ? "" : responseMap.get("outRefundNo").toString();// 商户退款单号 + String refundId = responseMap.get("refundId") == null ? "" : responseMap.get("refundId").toString();// 微信退款单号 + description = "退款[" + outRefundNo + "," + refundId + "]"; + } + }else if(StringUtils.equalsIgnoreCase("07", payMode)){ + description = "退款(富友) "+response; + }else if(StringUtils.equalsIgnoreCase("08", payMode)){ + description = "退款(哆啦宝) "+response; + }else if(StringUtils.equalsIgnoreCase("09", payMode)){ + description = "退款(扫呗) "+response; + }else if(StringUtils.equalsIgnoreCase("02", payMode)){ + // 会员卡撤销支付 + Map responseMap = JSONUtil.parseObject(response, new TypeReference>() {}); + String outRefundNo = responseMap.get("outRefundNo") == null ? "" : responseMap.get("outRefundNo").toString(); + String refundId = responseMap.get("refNo") == null ? "" : responseMap.get("refNo").toString();// + description = "撤销支付[" + outRefundNo + "," + refundId + "]"; + } + orderLog.setDescription(description);// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + } + // 如果非会员支付 并且已积分 记录扣除积分日志 + if(null != refundPointResult){ + String outRefundNo = refundPointResult.get("outRefundNo") == null ? "" : refundPointResult.get("outRefundNo").toString();// 商户退款单号 + String refundId = refundPointResult.get("refNo") == null ? "" : refundPointResult.get("refNo").toString();// 微信退款单号 + + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(5);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;5-:退款;) + orderLog.setStatus(1);// 操作状态 + String description = "微信支付退款 撤销会员积分[" + outRefundNo + "," + refundId + "]"; + orderLog.setDescription(description);// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + } + + // 订单退款状态 + int orderRefundResult = 2;// 0-未退款;1-部分退款;2-全部退款; + for (Map refundResult : refundResultList) { + Boolean status = (Boolean) refundResult.get("status"); + if (!status) { + orderRefundResult = 1; + break; + } + } + logger.info("orderRefundResult:" + orderRefundResult); + WxSalesOrder salesOrder = wxSalesOrderDao.get(tenantId, ticketId); + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(salesOrder.getId()); + updateSalesOrder.setStatus(2);// 0-等待付款;1-已支付;2-已退单;3-已取消;4-商家已确认;5-已完成; + updateSalesOrder.setRefundStatus(3);// 退单状态(0-用户未申请退单;1-退单处理中;2-商家拒绝退单;3-已退单;) + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveOrderAutoCancel(String tenantId, String ticketId, String ticketNo, String cancelReason, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setStatus(3);// 0-等待付款;1-已支付;2-已退单;3-已取消;4-商家已确认;5-已完成; + updateSalesOrder.setCancelDate(new Date());// 取消时间 + updateSalesOrder.setCancelReason(cancelReason);// 取消原因 + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(5);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;5-超时自动取消;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("接单超时自动取消");// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer saveRefundUserApply(String tenantId, String ticketId, String ticketNo, String refundReason, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setRefundStatus(1);// 退单状态(0-用户未申请退单;1-退单处理中;2-商家拒绝退单;3-已退单;) + updateSalesOrder.setBackCause(refundReason); + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(6);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;5-退款;6-用户申请退款;7-门店拒绝退款;8-门店同意退款;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription(refundReason);// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + /** + * 门店拒绝退款 + */ + @Override + public Integer saveRefundStoreRefuse(String tenantId, String ticketId, String ticketNo, String refuseReason, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setRefundStatus(2);// 退单状态(0-用户未申请退单;1-退单处理中;2-商家拒绝退单;3-已退单;) + updateSalesOrder.setStoreReason(refuseReason);// + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(7);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;5-退款;6-用户申请退款;7-门店拒绝退款;8-门店同意退款;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription(refuseReason);// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + /** + * 门店同意退款 + */ + @Override + public Integer saveRefundStoreAgree(String tenantId, String ticketId, String ticketNo, String currentUser) throws Exception { + try { + int result = 0; + + WxSalesOrder updateSalesOrder = new WxSalesOrder(); + updateSalesOrder.setId(ticketId); + updateSalesOrder.setRefundStatus(3);// 退单状态(0-用户未申请退单;1-退单处理中;2-商家拒绝退单;3-已退单;) + // updateSalesOrder.setBackCause(refundReason); + updateSalesOrder.setModifyDate(new Date()); + updateSalesOrder.setModifyUser(currentUser); + result = wxSalesOrderDao.update(tenantId, updateSalesOrder); + + // 记录日志 + WxSalesOrderLog orderLog = new WxSalesOrderLog(); + orderLog.setTicketId(ticketId);// 销售单ID + orderLog.setTicketNo(ticketNo);// 销售单编号 + orderLog.setType(8);// 操作类型(0-新建;1-用户取消;2-用户付款;3-商家拒单/取消;4-商家确认;5-退款;6-用户申请退款;7-门店拒绝退款;8-门店同意退款;) + orderLog.setStatus(1);// 操作状态 + orderLog.setDescription("同意退款");// 描述 + orderLog.setCreateUser(currentUser); + wxSalesOrderLogDao.save(tenantId, orderLog); + + return result; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer getDaySeqByStoreId(String tenantId, String currentDate, String storeId) throws Exception { + try { + Integer result = 1; + String maxDaySeq = this.wxSalesOrderDao.selectMaxDaySeq(tenantId, currentDate, storeId); + result = getNextNo(maxDaySeq); + return result; + } catch (Exception e) { + throw e; + } + } + + private int getNextNo(String maxDaySeq) { + if (StringUtils.isBlank(maxDaySeq)) { + maxDaySeq = "0"; + } + int maxNoInt = 0; + try { + maxNoInt = Integer.parseInt(maxDaySeq); + } catch (Exception e) { + logger.error("字符串" + maxDaySeq + "转换成数值出错!"); + } + return (maxNoInt + 1); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesPaymentServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesPaymentServiceImpl.java new file mode 100644 index 0000000..e0afac0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxSalesPaymentServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxSalesPaymentDao; +import com.jwsaas.entity.food.WxSalesPayment; +import com.jwsaas.service.food.WxSalesPaymentService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxSalesPaymentServiceImpl") +public class WxSalesPaymentServiceImpl extends BaseServiceImpl implements WxSalesPaymentService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxSalesPaymentDaoImpl") + private WxSalesPaymentDao wxSalesPaymentDao; + + @Override + public BaseDao getBaseDao() { + return this.wxSalesPaymentDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxStoreGoodsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxStoreGoodsServiceImpl.java new file mode 100644 index 0000000..853f072 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxStoreGoodsServiceImpl.java @@ -0,0 +1,345 @@ +package com.jwsaas.service.food.impl; + +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.stereotype.Service; +import org.springframework.util.Assert; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.ProductDao; +import com.jwsaas.dao.food.ProductSpecDao; +import com.jwsaas.dao.food.ProductSuitDao; +import com.jwsaas.dao.food.ProductSuitDetailDao; +import com.jwsaas.dao.food.WxGoodsDao; +import com.jwsaas.dao.food.WxStoreGoodsDao; +import com.jwsaas.entity.food.WxGoods; +import com.jwsaas.entity.food.WxStoreGoods; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.food.WxStoreGoodsService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxStoreGoodsServiceImpl") +public class WxStoreGoodsServiceImpl extends BaseServiceImpl implements WxStoreGoodsService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxStoreGoodsDaoImpl") + private WxStoreGoodsDao wxStoreGoodsDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxGoodsDaoImpl") + private WxGoodsDao wxGoodsDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductDaoImpl") + private ProductDao productDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDaoImpl") + private ProductSuitDao productSuitDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSuitDetailDaoImpl") + private ProductSuitDetailDao productSuitDetailDao; + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "ProductSpecDaoImpl") + private ProductSpecDao productSpecDao; + + @Override + public BaseDao getBaseDao() { + return this.wxStoreGoodsDao; + } + + @Override + public Pager getPagerExtendSimpleByStoreId(String tenantId, String storeId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + if (criteria == null) { + criteria = new Criteria(); + } + criteria.add(Restrictions.eq("storeId", storeId)); + criteria.add(Restrictions.order("orderNo", "asc")); + criteria.add(Restrictions.order("productNo", "asc")); + List> list = this.wxStoreGoodsDao.getPagerExtendSimple(tenantId, criteria, pageBounds); + pager.setList(list); + PageList> pageList = (PageList>) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return this.wxStoreGoodsDao.getListExtend(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public void saveWxGoods(String tenantId, Boolean onShelves, List storeIdList, List goodsIdList, String currentUserName) throws Exception { + try { + Assert.notNull(onShelves, "parameter 'onShelves' can't be null or empty!"); + Assert.notEmpty(storeIdList, "parameter 'storeIdList' can't be null or empty!"); + Assert.notEmpty(goodsIdList, "parameter 'specIdList' can't be null or empty!"); + Assert.notNull(currentUserName, "parameter 'currentUser' can't be null or empty!"); + + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("id", goodsIdList)); + List specList = this.wxGoodsDao.getList(tenantId, criteria); + List productIds = new ArrayList<>(); + + // 先删除 + for (WxGoods goods : specList) { + criteria = new Criteria(); + criteria.add(Restrictions.eq("goodsId", goods.getId())); + criteria.add(Restrictions.in("storeId", storeIdList)); + this.wxStoreGoodsDao.delete(tenantId, criteria); + if (!productIds.contains(goods.getProductId())) { + productIds.add(goods.getProductId()); + } + } + + // 如果是上架,进行保存 + if (onShelves) { + WxStoreGoods storeGoods = null; + for (String storeId : storeIdList) { + for (WxGoods good : specList) { + storeGoods = new WxStoreGoods(); + storeGoods.setTenantId(tenantId); + storeGoods.setStoreId(storeId); + storeGoods.setProductId(good.getProductId()); + storeGoods.setSpecId(good.getId()); + storeGoods.setPrice(good.getPrice()); + storeGoods.setMemberPrice(good.getMemberPrice()); + storeGoods.setGoodsId(good.getId()); + storeGoods.setCreateUser(currentUserName); + storeGoods.setCreateDate(new Date()); + this.wxStoreGoodsDao.save(tenantId, storeGoods); + } + } + // 查找是套餐的菜品; + // Criteria crit = new Criteria(); + // crit.add(Restrictions.in("id",productIds)); + // crit.add(Restrictions.eq("suitFlag",1)); + // crit.add(Restrictions.eq("deleteFlag",0)); + // crit.add(Restrictions.eq("stopFlag",0)); + // List products = productDao.getList(tenantId,crit); + // + // // 套餐处理/套餐明细如果未关联到门店,则做关联处理 + // for (Product product : products) { + // criteria = new Criteria(); + // criteria.add(Restrictions.eq("productId", product.getId())); + // // 套餐道菜 + // List suitList = productSuitDao.getList(tenantId, + // criteria); + // for (ProductSuit productSuit : suitList) { + // criteria = new Criteria(); + // criteria.add(Restrictions.eq("suitId", productSuit.getId())); + // // 道菜明细 + // List suitDetailList = + // productSuitDetailDao.getList(tenantId, criteria); + // for (ProductSuitDetail suitDetail : suitDetailList) { + // for (String storeId : storeIdList) { + // criteria = new Criteria(); + // criteria.add(Restrictions.eq("storeId", storeId)); + // criteria.add(Restrictions.eq("productId", + // suitDetail.getProductId())); + // criteria.add(Restrictions.eq("specId", + // suitDetail.getSpecId())); + // List tempList = + // wxStoreGoodsDao.getList(tenantId, criteria); + // if (CollectionUtils.isEmpty(tempList)) { + // criteria = new Criteria(); + // criteria.add(Restrictions.eq("ps.id", + // suitDetail.getSpecId())); + // List tempSpecList = + // this.productSpecDao.getListWithProduct(tenantId, criteria); + // ProductSpec tempSpec = tempSpecList.get(0); + // //判断微信商品是否存在; + // crit = new Criteria(); + // crit.add(Restrictions.eq("productId",tempSpec.getProductId())); + // crit.add(Restrictions.eq("specId",tempSpec.getId())); + // List goodsList = wxGoodsDao.getList(tenantId,crit); + // WxGoods wgoods = null; + // //创建此微信商品; + // if(CollectionUtils.isEmpty(goodsList)){ + // wgoods = new WxGoods(); + // wgoods.setTenantId(tenantId); + // wgoods.setCreateDate(new Date()); + // wgoods.setCreateUser(currentUserName); + // wgoods.setProductId(tempSpec.getProductId()); + // wgoods.setSpecId(tempSpec.getId()); + // wgoods.setSpecName(tempSpec.getProductName()); + // wgoods.setDescription(tempSpec.getProductDescription()); + // wgoods.setPrice(tempSpec.getPrice()); + // wgoods = wxGoodsDao.save(tenantId,wgoods); + // }else { + // wgoods = goodsList.get(0); + // } + // storeGoods = new WxStoreGoods(); + // storeGoods.setTenantId(tenantId); + // storeGoods.setStoreId(storeId); + // storeGoods.setProductId(tempSpec.getProductId()); + // storeGoods.setSpecId(tempSpec.getId()); + // storeGoods.setPrice(tempSpec.getPrice()); + // storeGoods.setMemberPrice(tempSpec.getMemberPrice()); + // storeGoods.setGoodsId(wgoods.getId()); + // storeGoods.setCreateUser(currentUserName); + // storeGoods.setCreateDate(new Date()); + // this.wxStoreGoodsDao.save(tenantId, storeGoods); + // } + // } + // } + // } + // } + + } + + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = wxStoreGoodsDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStoreWxGoods(String tenantId, List storeIdList, List goodsList, String userName) throws Exception { + Integer i = 0; + try { + Map map = getStoreGoodsMap(tenantId, storeIdList, true); + List saveList = new ArrayList<>(); + List updateList = new ArrayList<>(); + if (map != null && map.size() > 0) { + for (String storeId : storeIdList) { + for (WxGoods goods : goodsList) { + String key = storeId + "_" + goods.getId(); + if (map.containsKey(key)) { + WxStoreGoods storeGoods = map.get(key); + storeGoods.setPrice(goods.getPrice()); + storeGoods.setMemberPrice(goods.getMemberPrice()); + storeGoods.setInventoryQuantity(goods.getInventoryQuantity()); + storeGoods.setModifyDate(new Date()); + storeGoods.setModifyUser(userName); + updateList.add(storeGoods); + } else { + WxStoreGoods wsg = new WxStoreGoods(); + wsg.setTenantId(tenantId); + wsg.setStoreId(storeId); + wsg.setGoodsId(goods.getId()); + wsg.setProductId(goods.getProductId()); + wsg.setSpecId(goods.getSpecId()); + wsg.setPrice(goods.getPrice()); + wsg.setMemberPrice(goods.getMemberPrice()); + wsg.setInventoryQuantity(goods.getInventoryQuantity()); + wsg.setCreateUser(userName); + wsg.setCreateDate(new Date()); + saveList.add(wsg); + } + } + } + + } else { + for (String storeId : storeIdList) { + for (WxGoods goods : goodsList) { + WxStoreGoods wsg = new WxStoreGoods(); + wsg.setTenantId(tenantId); + wsg.setStoreId(storeId); + wsg.setGoodsId(goods.getId()); + wsg.setProductId(goods.getProductId()); + wsg.setSpecId(goods.getSpecId()); + wsg.setPrice(goods.getPrice()); + wsg.setMemberPrice(goods.getMemberPrice()); + wsg.setInventoryQuantity(goods.getInventoryQuantity()); + wsg.setCreateUser(userName); + wsg.setCreateDate(new Date()); + saveList.add(wsg); + } + } + } + if (saveList.size() > 0) { + wxStoreGoodsDao.save(tenantId, saveList); + } + if (updateList.size() > 0) { + wxStoreGoodsDao.update(tenantId, updateList); + } + i = 1; + } catch (Exception e) { + throw e; + } + return i; + } + + @Override + public List getSpecIdsByWxStoreId(String tenantId, String storeId) throws Exception { + try { + return this.wxStoreGoodsDao.getSpecIdsByWxStoreId(tenantId, storeId); + } catch (Exception e) { + throw e; + } + } + + private Map getStoreGoodsMap(String tenantId, List storeIds, boolean flag) throws Exception { + Map map = new HashMap<>(); + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("storeId", storeIds)); + List list = wxStoreGoodsDao.getList(tenantId, criteria, flag); + if (CollectionUtils.isNotEmpty(list)) { + if (list.size() >= 10000) { + throw new Exception("所选门店商品超过10000,请减少选择数据"); + } + for (WxStoreGoods goods : list) { + String key = goods.getStoreId() + "_" + goods.getGoodsId(); + map.put(key, goods); + } + } + } catch (Exception e) { + throw e; + } + return map; + } + + @Override + public Integer updateStoreWxGoodsStatus(String tenantId, String wxStoreId, List productIds, int saleStatus) { + try { + Criteria criteria = new Criteria(); + criteria.add(Restrictions.eq("tenantId", tenantId)); + criteria.add(Restrictions.eq("storeId", wxStoreId)); + criteria.add(Restrictions.in("productId", productIds)); + List storeGoods = wxStoreGoodsDao.getList(tenantId, criteria); + for (WxStoreGoods goods : storeGoods) { + goods.setSaleStatus(saleStatus); + wxStoreGoodsDao.update(tenantId, goods); + } + return 0; + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateStoreWxGoodsStatusByStoreId(String tenantId, String wxStoreId, int saleStatus) { + try { + return wxStoreGoodsDao.updateStoreWxGoodsStatusByStoreId(tenantId, wxStoreId, saleStatus); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxStoreServiceImpl.java new file mode 100644 index 0000000..189361a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxStoreServiceImpl.java @@ -0,0 +1,61 @@ +package com.jwsaas.service.food.impl; + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxStoreDao; +import com.jwsaas.entity.food.WxStore; +import com.jwsaas.service.food.WxStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "WxStoreServiceImpl") +public class WxStoreServiceImpl extends BaseServiceImpl implements WxStoreService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "WxStoreDaoImpl") + private WxStoreDao wxStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.wxStoreDao; + } + + @Override + public List getStoreIdList(String tenantId) throws Exception { + try { + return wxStoreDao.getStoreIdList(tenantId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPagerExtend(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = wxStoreDao.getPagerExtend(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtend(String tenantId, Criteria criteria) throws Exception { + try { + return wxStoreDao.getListExtend(tenantId,criteria); + } catch (Exception e) { + throw e; + } + } +} diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxdcDistributionAddressServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxdcDistributionAddressServiceImpl.java new file mode 100644 index 0000000..894c3b8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxdcDistributionAddressServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxdcDistributionAddressDao; +import com.jwsaas.entity.food.WxdcDistributionAddress; +import com.jwsaas.service.food.WxdcDistributionAddressService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxdcDistributionAddressServiceImpl") +public class WxdcDistributionAddressServiceImpl extends BaseServiceImpl implements WxdcDistributionAddressService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxdcDistributionAddressDaoImpl") + private WxdcDistributionAddressDao wxdcDistributionAddressDao; + + @Override + public BaseDao getBaseDao() { + return this.wxdcDistributionAddressDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/WxdcDistributionServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/WxdcDistributionServiceImpl.java new file mode 100644 index 0000000..837f84e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/WxdcDistributionServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.WxdcDistributionDao; +import com.jwsaas.entity.food.WxdcDistribution; +import com.jwsaas.service.food.WxdcDistributionService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"WxdcDistributionServiceImpl") +public class WxdcDistributionServiceImpl extends BaseServiceImpl implements WxdcDistributionService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"WxdcDistributionDaoImpl") + private WxdcDistributionDao wxdcDistributionDao; + + @Override + public BaseDao getBaseDao() { + return this.wxdcDistributionDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/YunposSetServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/YunposSetServiceImpl.java new file mode 100644 index 0000000..a3b035e --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/YunposSetServiceImpl.java @@ -0,0 +1,46 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.food.YunposSetStoreDao; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.YunposSetDao; +import com.jwsaas.entity.food.YunposSet; +import com.jwsaas.service.food.YunposSetService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"YunposSetServiceImpl") +public class YunposSetServiceImpl extends BaseServiceImpl implements YunposSetService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"YunposSetDaoImpl") + private YunposSetDao yunposSetDao; + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"YunposSetStoreDaoImpl") + private YunposSetStoreDao yunposSetStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.yunposSetDao; + } + + @Override + public Integer deleteSetAndRelations(String tenantId, List ids) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("setId",ids)); + yunposSetStoreDao.delete(tenantId,criteria,true); + i = yunposSetDao.delete(tenantId,ids); + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/food/impl/YunposSetStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/food/impl/YunposSetStoreServiceImpl.java new file mode 100644 index 0000000..a0adae4 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/food/impl/YunposSetStoreServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.food.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.food.YunposSetStoreDao; +import com.jwsaas.entity.food.YunposSetStore; +import com.jwsaas.service.food.YunposSetStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"YunposSetStoreServiceImpl") +public class YunposSetStoreServiceImpl extends BaseServiceImpl implements YunposSetStoreService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"YunposSetStoreDaoImpl") + private YunposSetStoreDao yunposSetStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.yunposSetStoreDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/impl/BaseServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/impl/BaseServiceImpl.java new file mode 100644 index 0000000..eacc75d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/impl/BaseServiceImpl.java @@ -0,0 +1,240 @@ +package com.jwsaas.service.impl; + +import java.io.Serializable; +import java.util.List; +import java.util.Map; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.entity.BaseEntity; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.BaseService; + +/** + * Service实现类 - Service实现类基类 + */ +public abstract class BaseServiceImpl implements BaseService { + + protected Logger logger = LoggerFactory.getLogger(this.getClass()); + + protected abstract BaseDao getBaseDao(); + + /** + * 根据主键获取唯一的实体对象. + * + * @param tenantId + * 租户标识 + * @param id + * 主键 + * @return + * @throws Exception + */ + @Override + public T get(String tenantId, PK id) throws Exception { + try { + return this.getBaseDao().get(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public T find(String tenantId, String property, Object value) throws Exception { + try { + return this.getBaseDao().find(tenantId, property, value); + } catch (Exception e) { + throw e; + } + } + + @Override + public List findList(String tenantId, String property, Object value) throws Exception { + try { + return this.getBaseDao().findList(tenantId, property, value); + } catch (Exception e) { + throw e; + } + } + + @Override + public List findListByIds(String tenantId, List ids) throws Exception { + try { + return this.getBaseDao().findListByIds(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getList(String tenantId, Criteria criteria) throws Exception { + try { + return this.getBaseDao().getList(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Long getTotalCount(String tenantId) throws Exception { + try { + return this.getBaseDao().getTotalCount(tenantId); + } catch (Exception e) { + throw e; + } + } + + @Override + public Boolean isExist(String tenantId, String property, Object value) throws Exception { + try { + return this.getBaseDao().isExist(tenantId, property, value); + } catch (Exception e) { + throw e; + } + } + + @Override + public T save(String tenantId, T entity) throws Exception { + try { + return this.getBaseDao().save(tenantId, entity); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer save(String tenantId, List entity) throws Exception { + try { + return this.getBaseDao().save(tenantId, entity); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer update(String tenantId, T entity) throws Exception { + try { + return this.getBaseDao().update(tenantId, entity); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer update(String tenantId, List entity) throws Exception { + try { + return this.getBaseDao().update(tenantId, entity); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer delete(String tenantId, PK id) throws Exception { + try { + return this.getBaseDao().delete(tenantId, id); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer delete(String tenantId, List ids) throws Exception { + try { + return this.getBaseDao().delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByProperty(String tenantId, String property, Object value) throws Exception { + try { + return this.getBaseDao().delete(tenantId, property, value); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByCriteria(String tenantId, Criteria criteria) throws Exception { + try { + return this.getBaseDao().delete(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIds(String tenantId, List ids) throws Exception { + try { + return this.getBaseDao().delete(tenantId, ids); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager getPager(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.getBaseDao().getPager(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List> selectList(String tenantId, String sql) throws Exception { + try { + return this.getBaseDao().selectList(sql); + } catch (Exception e) { + throw e; + } + } + + @Override + public Map selectOne(String tenantId, String sql) throws Exception { + try { + return this.getBaseDao().selectOne(sql); + } catch (Exception e) { + throw e; + } + } + + @Override + public Pager selectPager(String tenantId, String sql, Pager pager) throws Exception { + try { + return this.getBaseDao().selectPager(sql, pager); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer deleteByIdsLogical(String tenantId, List ids, String currentUser) throws Exception { + try { + return this.getBaseDao().deleteLogical(tenantId, ids, currentUser); + } catch (Exception e) { + throw e; + } + } + + @Override + public String getMaxNo(String tenantId, Criteria criteria) throws Exception { + try { + return this.getBaseDao().getMaxNo(tenantId, criteria); + } catch (Exception e) { + throw e; + } + } + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/service/impl/HelloServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/impl/HelloServiceImpl.java new file mode 100644 index 0000000..ef7ed43 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/impl/HelloServiceImpl.java @@ -0,0 +1,20 @@ +package com.jwsaas.service.impl; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; + +import com.jwsaas.service.HelloService; + +@Service(com.jwsaas.Constants.SHARED_SIGN + "HelloServiceImpl") +public class HelloServiceImpl implements HelloService { + + protected Logger logger = LoggerFactory.getLogger(this.getClass()); + + @Override + public String sayHello(String tenantId) throws Exception { + logger.error("say hello ......"); + return "hello"; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/impl/TenantServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/impl/TenantServiceImpl.java new file mode 100644 index 0000000..8652c0f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/impl/TenantServiceImpl.java @@ -0,0 +1,23 @@ +package com.jwsaas.service.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.TenantDao; +import com.jwsaas.entity.Tenant; +import com.jwsaas.service.TenantService; + +@Service(com.jwsaas.Constants.SHARED_SIGN + "TenantServiceImpl") +public class TenantServiceImpl extends BaseServiceImpl implements TenantService { + + @Resource(name = com.jwsaas.Constants.SHARED_SIGN + "TenantDaoImpl") + private TenantDao tenantDao; + + @Override + public BaseDao getBaseDao() { + return this.tenantDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentServiceImpl.java new file mode 100644 index 0000000..ed25589 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentServiceImpl.java @@ -0,0 +1,29 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AgentDao; +import com.jwsaas.entity.ops.Agent; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.AgentService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + + +@Service(Constants.OPS_SIGN+"AgentServiceImpl") +public class AgentServiceImpl extends BaseServiceImpl implements AgentService { + + @Resource(name= Constants.OPS_SIGN+"AgentDaoImpl") + private AgentDao agentDao; + + + @Override + public BaseDao getBaseDao() { + return this.agentDao; + } + + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentSubFuyouTicketImageServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentSubFuyouTicketImageServiceImpl.java new file mode 100644 index 0000000..056fb28 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentSubFuyouTicketImageServiceImpl.java @@ -0,0 +1,44 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AgentSubFuyouTicketImageDao; +import com.jwsaas.entity.ops.AgentSubFuyouTicketImage; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.AgentSubFuyouTicketImageService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +@Service(Constants.OPS_SIGN+"AgentSubFuyouTicketImageServiceImpl") +public class AgentSubFuyouTicketImageServiceImpl extends BaseServiceImpl implements AgentSubFuyouTicketImageService{ + + @Resource(name= Constants.OPS_SIGN+"AgentSubFuyouTicketImageDaoImpl") + private AgentSubFuyouTicketImageDao agentSubFuyouTicketImageDao; + + @Override + public BaseDao getBaseDao() { + return this.agentSubFuyouTicketImageDao; + } + + @Override + public Pager getPagerExtendInfo(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = agentSubFuyouTicketImageDao.getPagerExtendInfo(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentSubFuyouTicketServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentSubFuyouTicketServiceImpl.java new file mode 100644 index 0000000..b20f5ca --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AgentSubFuyouTicketServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AgentSubFuyouTicketDao; +import com.jwsaas.entity.ops.AgentSubFuyouTicket; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.AgentSubFuyouTicketService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(Constants.OPS_SIGN+"AgentSubFuyouTicketServiceImpl") +public class AgentSubFuyouTicketServiceImpl extends BaseServiceImpl implements AgentSubFuyouTicketService{ + + @Resource(name= Constants.OPS_SIGN+"AgentSubFuyouTicketDaoImpl") + private AgentSubFuyouTicketDao agentSubFuyouTicketDao; + + @Override + public BaseDao getBaseDao() { + return this.agentSubFuyouTicketDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppBaiduBranchServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppBaiduBranchServiceImpl.java new file mode 100644 index 0000000..1db5090 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppBaiduBranchServiceImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.Constants; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppBaiduBranchDao; +import com.jwsaas.entity.ops.AppBaiduBranch; +import com.jwsaas.service.ops.AppBaiduBranchService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(Constants.FOOD_SIGN+"AppBaiduBranchServiceImpl") +public class AppBaiduBranchServiceImpl extends BaseServiceImpl implements AppBaiduBranchService{ + + @Resource(name= Constants.FOOD_SIGN+"AppBaiduBranchDaoImpl") + private AppBaiduBranchDao appBaiduBranchDao; + + @Override + public BaseDao getBaseDao() { + return this.appBaiduBranchDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppGuopanStoreInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppGuopanStoreInfoServiceImpl.java new file mode 100644 index 0000000..2368cba --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppGuopanStoreInfoServiceImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.Constants; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppGuopanStoreInfoDao; +import com.jwsaas.entity.ops.AppGuopanStoreInfo; +import com.jwsaas.service.ops.AppGuopanStoreInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(Constants.OPS_SIGN+"AppGuopanStoreInfoServiceImpl") +public class AppGuopanStoreInfoServiceImpl extends BaseServiceImpl implements AppGuopanStoreInfoService{ + + @Resource(name= Constants.OPS_SIGN+"AppGuopanStoreInfoDaoImpl") + private AppGuopanStoreInfoDao appGuopanStoreInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.appGuopanStoreInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppInfoServiceImpl.java new file mode 100644 index 0000000..cfd9bab --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppInfoServiceImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppInfoDao; +import com.jwsaas.entity.ops.AppInfo; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.AppInfoService; + + +@Service(com.jwsaas.Constants.OPS_SIGN+"AppInfoServiceImpl") +public class AppInfoServiceImpl extends BaseServiceImpl implements AppInfoService{ + + @Resource(name=com.jwsaas.Constants.OPS_SIGN+"AppInfoDaoImpl") + private AppInfoDao appInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.appInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppQimaiSetStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppQimaiSetStoreServiceImpl.java new file mode 100644 index 0000000..bf55f7a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppQimaiSetStoreServiceImpl.java @@ -0,0 +1,27 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.Constants; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppQimaiSetStoreDao; +import com.jwsaas.entity.ops.AppQimaiSetStore; +import com.jwsaas.service.ops.AppQimaiSetStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(Constants.OPS_SIGN+"AppQimaiSetStoreServiceImpl") +public class AppQimaiSetStoreServiceImpl extends BaseServiceImpl implements AppQimaiSetStoreService{ + + @Resource(name= Constants.OPS_SIGN+"AppQimaiSetStoreDaoImpl") + private AppQimaiSetStoreDao appQimaiSetStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.appQimaiSetStoreDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppShopmeituanSetServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppShopmeituanSetServiceImpl.java new file mode 100644 index 0000000..77763ed --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppShopmeituanSetServiceImpl.java @@ -0,0 +1,49 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.Constants; +import com.jwsaas.condition.Criteria; +import com.jwsaas.condition.Restrictions; +import com.jwsaas.dao.ops.AppShopmeituanSetStoreDao; +import com.jwsaas.entity.ops.CardReaderInfo; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppShopmeituanSetDao; +import com.jwsaas.entity.ops.AppShopmeituanSet; +import com.jwsaas.service.ops.AppShopmeituanSetService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(Constants.OPS_SIGN+"AppShopmeituanSetServiceImpl") +public class AppShopmeituanSetServiceImpl extends BaseServiceImpl implements AppShopmeituanSetService{ + + @Resource(name= Constants.OPS_SIGN+"AppShopmeituanSetDaoImpl") + private AppShopmeituanSetDao appShopmeituanSetDao; + @Resource(name= Constants.OPS_SIGN+"AppShopmeituanSetStoreDaoImpl") + private AppShopmeituanSetStoreDao appShopmeituanSetStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.appShopmeituanSetDao; + } + + + @Override + public Integer deleteWithRelations(String tenantId, List sids) throws Exception { + Integer i = 0; + try{ + Criteria criteria = new Criteria(); + criteria.add(Restrictions.in("setId",sids)); + appShopmeituanSetStoreDao.delete(tenantId,criteria); + i = appShopmeituanSetDao.delete(tenantId,sids); + }catch (Exception e){ + throw e; + } + return i; + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppShopmeituanSetStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppShopmeituanSetStoreServiceImpl.java new file mode 100644 index 0000000..ce90a4a --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppShopmeituanSetStoreServiceImpl.java @@ -0,0 +1,37 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import com.jwsaas.Constants; +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppShopmeituanSetStoreDao; +import com.jwsaas.entity.ops.AppShopmeituanSetStore; +import com.jwsaas.service.ops.AppShopmeituanSetStoreService; +import com.jwsaas.service.impl.BaseServiceImpl; + +import java.util.List; + +@Service(Constants.OPS_SIGN+"AppShopmeituanSetStoreServiceImpl") +public class AppShopmeituanSetStoreServiceImpl extends BaseServiceImpl implements AppShopmeituanSetStoreService{ + + @Resource(name= Constants.OPS_SIGN+"AppShopmeituanSetStoreDaoImpl") + private AppShopmeituanSetStoreDao appShopmeituanSetStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.appShopmeituanSetStoreDao; + } + + @Override + public List getStoreIdsBySetIdAndTenantCode(String tenantId, String setId, String tenantCode) { + try { + return appShopmeituanSetStoreDao.getStoreIdsBySetIdAndTenantCode(tenantId, setId, tenantCode); + } catch (Exception e) { + throw e; + } + } +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppVersionServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppVersionServiceImpl.java new file mode 100644 index 0000000..416d0f1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppVersionServiceImpl.java @@ -0,0 +1,74 @@ +package com.jwsaas.service.ops.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppVersionDao; +import com.jwsaas.entity.ops.AppVersion; +import com.jwsaas.mybatis.domain.PageBounds; +import com.jwsaas.pager.PageList; +import com.jwsaas.pager.Pager; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.AppVersionService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "AppVersionServiceImpl") +public class AppVersionServiceImpl extends BaseServiceImpl implements AppVersionService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "AppVersionDaoImpl") + private AppVersionDao appVersionDao; + + @Override + public BaseDao getBaseDao() { + return this.appVersionDao; + } + + @Override + public Pager getPagerWithRelation(String tenantId, Criteria criteria, Pager pager) throws Exception { + try { + PageBounds pageBounds = new PageBounds(pager.getPageNumber(), pager.getPageSize()); + List list = this.appVersionDao.getPagerWithRelation(tenantId, criteria, pageBounds); + pager.setList(list); + PageList pageList = (PageList) list; + pager.setTotalCount(pageList.getPaginator().getTotalCount()); + return pager; + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByPosNo(String tenantId, String tenantCode, String posNo, String appSign, String terminalType,Integer enableWhite, String versionType, + String versionNum) throws Exception { + try { + return this.appVersionDao.getListByPosNo(tenantId, tenantCode, posNo, appSign, terminalType, enableWhite,versionType, versionNum); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListExtend(String tenantId, String tenantCode, String storeNo, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, + String versionNum) throws Exception { + try { + return this.appVersionDao.getListExtend(tenantId, tenantCode, storeNo, posNo, appSign, terminalType, enableWhite, versionType, versionNum); + } catch (Exception e) { + throw e; + } + } + + @Override + public List getListByPlan(String tenantId, String tenantCode, String storeNo, String posNo, String appSign, String terminalType, Integer enableWhite, String versionType, + String versionNum, List planIdList) throws Exception { + try { + return this.appVersionDao.getListByPlan(tenantId, tenantCode, storeNo, posNo, appSign, terminalType, enableWhite, versionType, versionNum, planIdList); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppWhiteDetailServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppWhiteDetailServiceImpl.java new file mode 100644 index 0000000..bc0a2ca --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppWhiteDetailServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppWhiteDetailDao; +import com.jwsaas.entity.ops.AppWhiteDetail; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.AppWhiteDetailService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "AppWhiteDetailServiceImpl") +public class AppWhiteDetailServiceImpl extends BaseServiceImpl implements AppWhiteDetailService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "AppWhiteDetailDaoImpl") + private AppWhiteDetailDao appWhiteDetailDao; + + @Override + public BaseDao getBaseDao() { + return this.appWhiteDetailDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/AppWhitePlanServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppWhitePlanServiceImpl.java new file mode 100644 index 0000000..9b4a0c1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/AppWhitePlanServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.AppWhitePlanDao; +import com.jwsaas.entity.ops.AppWhitePlan; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.AppWhitePlanService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "AppWhitePlanServiceImpl") +public class AppWhitePlanServiceImpl extends BaseServiceImpl implements AppWhitePlanService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "AppWhitePlanDaoImpl") + private AppWhitePlanDao appWhitePlanDao; + + @Override + public BaseDao getBaseDao() { + return this.appWhitePlanDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/BankCodeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/BankCodeServiceImpl.java new file mode 100644 index 0000000..732d7d9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/BankCodeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.BankCodeDao; +import com.jwsaas.entity.ops.BankCode; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.BankCodeService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(Constants.OPS_SIGN+"BankCodeServiceImpl") +public class BankCodeServiceImpl extends BaseServiceImpl implements BankCodeService{ + + @Resource(name= Constants.OPS_SIGN+"BankCodeDaoImpl") + private BankCodeDao bankCodeDao; + + @Override + public BaseDao getBaseDao() { + return this.bankCodeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/CardReaderInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/CardReaderInfoServiceImpl.java new file mode 100644 index 0000000..e2222ef --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/CardReaderInfoServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.CardReaderInfoDao; +import com.jwsaas.entity.ops.CardReaderInfo; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.CardReaderInfoService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "CardReaderInfoServiceImpl") +public class CardReaderInfoServiceImpl extends BaseServiceImpl implements CardReaderInfoService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "CardReaderInfoDaoImpl") + private CardReaderInfoDao cardReaderInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.cardReaderInfoDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/CityCodeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/CityCodeServiceImpl.java new file mode 100644 index 0000000..1d89e7f --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/CityCodeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.CityCodeDao; +import com.jwsaas.entity.ops.CityCode; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.CityCodeService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(Constants.OPS_SIGN+"CityCodeServiceImpl") +public class CityCodeServiceImpl extends BaseServiceImpl implements CityCodeService{ + + @Resource(name= Constants.OPS_SIGN+"CityCodeDaoImpl") + private CityCodeDao cityCodeDao; + + @Override + public BaseDao getBaseDao() { + return this.cityCodeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/CityServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/CityServiceImpl.java new file mode 100644 index 0000000..b6de104 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/CityServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.CityDao; +import com.jwsaas.entity.ops.City; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.CityService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "CityServiceImpl") +public class CityServiceImpl extends BaseServiceImpl implements CityService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "CityDaoImpl") + private CityDao cityDao; + + @Override + public BaseDao getBaseDao() { + return this.cityDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/ElemeAuthorizeInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/ElemeAuthorizeInfoServiceImpl.java new file mode 100644 index 0000000..2389fb5 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/ElemeAuthorizeInfoServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.ElemeAuthorizeInfoDao; +import com.jwsaas.entity.ops.ElemeAuthorizeInfo; +import com.jwsaas.service.ops.ElemeAuthorizeInfoService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"ElemeAuthorizeInfoServiceImpl") +public class ElemeAuthorizeInfoServiceImpl extends BaseServiceImpl implements ElemeAuthorizeInfoService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"ElemeAuthorizeInfoDaoImpl") + private ElemeAuthorizeInfoDao elemeAuthorizeInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.elemeAuthorizeInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/ErrorInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/ErrorInfoServiceImpl.java new file mode 100644 index 0000000..befc910 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/ErrorInfoServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.ErrorInfoDao; +import com.jwsaas.entity.ops.ErrorInfo; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.ErrorInfoService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "ErrorInfoServiceImpl") +public class ErrorInfoServiceImpl extends BaseServiceImpl implements ErrorInfoService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "ErrorInfoDaoImpl") + private ErrorInfoDao errorInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.errorInfoDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/MeituanBranchServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/MeituanBranchServiceImpl.java new file mode 100644 index 0000000..0fcd8f3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/MeituanBranchServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.MeituanBranchDao; +import com.jwsaas.entity.ops.MeituanBranch; +import com.jwsaas.service.ops.MeituanBranchService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.FOOD_SIGN+"MeituanBranchServiceImpl") +public class MeituanBranchServiceImpl extends BaseServiceImpl implements MeituanBranchService{ + + @Resource(name=com.jwsaas.Constants.FOOD_SIGN+"MeituanBranchDaoImpl") + private MeituanBranchDao meituanBranchDao; + + @Override + public BaseDao getBaseDao() { + return this.meituanBranchDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/PosModuleServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/PosModuleServiceImpl.java new file mode 100644 index 0000000..3403744 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/PosModuleServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.PosModuleDao; +import com.jwsaas.entity.ops.PosModule; +import com.jwsaas.service.ops.PosModuleService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.OPS_SIGN + "PosModuleServiceImpl") +public class PosModuleServiceImpl extends BaseServiceImpl implements PosModuleService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "PosModuleDaoImpl") + private PosModuleDao posModuleDao; + + @Override + public BaseDao getBaseDao() { + return this.posModuleDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/PosModuleTypeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/PosModuleTypeServiceImpl.java new file mode 100644 index 0000000..ab7b0f6 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/PosModuleTypeServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.PosModuleTypeDao; +import com.jwsaas.entity.ops.PosModuleType; +import com.jwsaas.service.ops.PosModuleTypeService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.OPS_SIGN + "PosModuleTypeServiceImpl") +public class PosModuleTypeServiceImpl extends BaseServiceImpl implements PosModuleTypeService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "PosModuleTypeDaoImpl") + private PosModuleTypeDao posModuleTypeDao; + + @Override + public BaseDao getBaseDao() { + return this.posModuleTypeDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/PrinterInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/PrinterInfoServiceImpl.java new file mode 100644 index 0000000..f682d2b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/PrinterInfoServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.PrinterInfoDao; +import com.jwsaas.entity.ops.PrinterInfo; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.PrinterInfoService; + +@Service(com.jwsaas.Constants.OPS_SIGN+"PrinterInfoServiceImpl") +public class PrinterInfoServiceImpl extends BaseServiceImpl implements PrinterInfoService{ + + @Resource(name=com.jwsaas.Constants.OPS_SIGN+"PrinterInfoDaoImpl") + private PrinterInfoDao printerInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.printerInfoDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/ProductPermissionsServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/ProductPermissionsServiceImpl.java new file mode 100644 index 0000000..e66e89b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/ProductPermissionsServiceImpl.java @@ -0,0 +1,35 @@ +package com.jwsaas.service.ops.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.ProductPermissionsDao; +import com.jwsaas.entity.ops.ProductPermissions; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.ProductPermissionsService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "ProductPermissionsServiceImpl") +public class ProductPermissionsServiceImpl extends BaseServiceImpl implements ProductPermissionsService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "ProductPermissionsDaoImpl") + private ProductPermissionsDao productPermissionsDao; + + @Override + public BaseDao getBaseDao() { + return this.productPermissionsDao; + } + + @Override + public List getListByModuleType(String tenantId, String productId, String moduleType) throws Exception { + try { + return this.productPermissionsDao.getListByModuleType(tenantId, productId, moduleType); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/QimaiSetServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/QimaiSetServiceImpl.java new file mode 100644 index 0000000..752e0c0 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/QimaiSetServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.QimaiSetDao; +import com.jwsaas.entity.ops.QimaiSet; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.QimaiSetService; + +@Service(com.jwsaas.Constants.FOOD_SIGN + "QimaiSetServiceImpl") +public class QimaiSetServiceImpl extends BaseServiceImpl implements QimaiSetService { + + @Resource(name = com.jwsaas.Constants.FOOD_SIGN + "QimaiSetDaoImpl") + private QimaiSetDao appQimaiSetDao; + + @Override + public BaseDao getBaseDao() { + return this.appQimaiSetDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/SetCodeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/SetCodeServiceImpl.java new file mode 100644 index 0000000..15840f1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/SetCodeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.SetCodeDao; +import com.jwsaas.entity.ops.SetCode; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.SetCodeService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(Constants.OPS_SIGN+"SetCodeServiceImpl") +public class SetCodeServiceImpl extends BaseServiceImpl implements SetCodeService{ + + @Resource(name= Constants.OPS_SIGN+"SetCodeDaoImpl") + private SetCodeDao setCodeDao; + + @Override + public BaseDao getBaseDao() { + return this.setCodeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantLineProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantLineProductServiceImpl.java new file mode 100644 index 0000000..6a0d0e9 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantLineProductServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.TenantLineProductDao; +import com.jwsaas.entity.ops.TenantLineProduct; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.TenantLineProductService; + +@Service(com.jwsaas.Constants.OPS_SIGN+"TenantLineProductServiceImpl") +public class TenantLineProductServiceImpl extends BaseServiceImpl implements TenantLineProductService{ + + @Resource(name=com.jwsaas.Constants.OPS_SIGN+"TenantLineProductDaoImpl") + private TenantLineProductDao tenantLineProductDao; + + @Override + public BaseDao getBaseDao() { + return this.tenantLineProductDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantPosInfoServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantPosInfoServiceImpl.java new file mode 100644 index 0000000..dba3bad --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantPosInfoServiceImpl.java @@ -0,0 +1,42 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.TenantPosInfoDao; +import com.jwsaas.entity.ops.TenantPosInfo; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.TenantPosInfoService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "TenantPosInfoServiceImpl") +public class TenantPosInfoServiceImpl extends BaseServiceImpl implements TenantPosInfoService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "TenantPosInfoDaoImpl") + private TenantPosInfoDao tenantPosInfoDao; + + @Override + public BaseDao getBaseDao() { + return this.tenantPosInfoDao; + } + + @Override + public Integer updateMonitorInfo(String tenantId, TenantPosInfo entity) throws Exception { + try { + return this.tenantPosInfoDao.updateMonitorInfo(tenantId, entity); + } catch (Exception e) { + throw e; + } + } + + @Override + public Integer updateLastActiveTime(String tenantId, TenantPosInfo entity) throws Exception { + try { + return this.tenantPosInfoDao.updateLastActiveTime(tenantId, entity); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantPosLoginLogServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantPosLoginLogServiceImpl.java new file mode 100644 index 0000000..19c74f7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantPosLoginLogServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.TenantPosLoginLogDao; +import com.jwsaas.entity.ops.TenantPosLoginLog; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.TenantPosLoginLogService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "TenantPosLoginLogServiceImpl") +public class TenantPosLoginLogServiceImpl extends BaseServiceImpl implements TenantPosLoginLogService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "TenantPosLoginLogDaoImpl") + private TenantPosLoginLogDao tenantPosLoginLogDao; + + @Override + public BaseDao getBaseDao() { + return this.tenantPosLoginLogDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantProductServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantProductServiceImpl.java new file mode 100644 index 0000000..96e6f47 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantProductServiceImpl.java @@ -0,0 +1,35 @@ +package com.jwsaas.service.ops.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.TenantProductDao; +import com.jwsaas.entity.ops.TenantProduct; +import com.jwsaas.service.ops.TenantProductService; +import com.jwsaas.service.impl.BaseServiceImpl; + +@Service(com.jwsaas.Constants.OPS_SIGN + "TenantProductServiceImpl") +public class TenantProductServiceImpl extends BaseServiceImpl implements TenantProductService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "TenantProductDaoImpl") + private TenantProductDao tenantProductDao; + + @Override + public BaseDao getBaseDao() { + return this.tenantProductDao; + } + + @Override + public List getListByTenantCode(String tenantId, String tenantCode, String appSign) throws Exception { + try { + return this.tenantProductDao.getListByTenantCode(tenantId, tenantCode, appSign); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantStoreAuthServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantStoreAuthServiceImpl.java new file mode 100644 index 0000000..3b6c549 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/TenantStoreAuthServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.TenantStoreAuthDao; +import com.jwsaas.entity.ops.TenantStoreAuth; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.TenantStoreAuthService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(Constants.OPS_SIGN + "TenantStoreAuthServiceImpl") +public class TenantStoreAuthServiceImpl extends BaseServiceImpl implements TenantStoreAuthService { + + @Resource(name = Constants.OPS_SIGN + "TenantStoreAuthDaoImpl") + private TenantStoreAuthDao tenantStoreAuthDao; + + @Override + public BaseDao getBaseDao() { + return this.tenantStoreAuthDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradePosServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradePosServiceImpl.java new file mode 100644 index 0000000..95069ff --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradePosServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.UpgradePosDao; +import com.jwsaas.entity.ops.UpgradePos; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.UpgradePosService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "UpgradePosServiceImpl") +public class UpgradePosServiceImpl extends BaseServiceImpl implements UpgradePosService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "UpgradePosDaoImpl") + private UpgradePosDao upgradePosDao; + + @Override + public BaseDao getBaseDao() { + return this.upgradePosDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradeSchemeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradeSchemeServiceImpl.java new file mode 100644 index 0000000..e018d33 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradeSchemeServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.UpgradeSchemeDao; +import com.jwsaas.entity.ops.UpgradeScheme; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.UpgradeSchemeService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "UpgradeSchemeServiceImpl") +public class UpgradeSchemeServiceImpl extends BaseServiceImpl implements UpgradeSchemeService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "UpgradeSchemeDaoImpl") + private UpgradeSchemeDao upgradeSchemeDao; + + @Override + public BaseDao getBaseDao() { + return this.upgradeSchemeDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradeStoreServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradeStoreServiceImpl.java new file mode 100644 index 0000000..ffa02e3 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/UpgradeStoreServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.ops.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.UpgradeStoreDao; +import com.jwsaas.entity.ops.UpgradeStore; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.UpgradeStoreService; + +@Service(com.jwsaas.Constants.OPS_SIGN + "UpgradeStoreServiceImpl") +public class UpgradeStoreServiceImpl extends BaseServiceImpl implements UpgradeStoreService { + + @Resource(name = com.jwsaas.Constants.OPS_SIGN + "UpgradeStoreDaoImpl") + private UpgradeStoreDao upgradeStoreDao; + + @Override + public BaseDao getBaseDao() { + return this.upgradeStoreDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/WxBusinessCodeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/WxBusinessCodeServiceImpl.java new file mode 100644 index 0000000..650e36b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/WxBusinessCodeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.WxBusinessCodeDao; +import com.jwsaas.entity.ops.WxBusinessCode; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.WxBusinessCodeService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(Constants.OPS_SIGN+"WxBusinessCodeServiceImpl") +public class WxBusinessCodeServiceImpl extends BaseServiceImpl implements WxBusinessCodeService{ + + @Resource(name= Constants.OPS_SIGN+"WxBusinessCodeDaoImpl") + private WxBusinessCodeDao wxBusinessCodeDao; + + @Override + public BaseDao getBaseDao() { + return this.wxBusinessCodeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/ops/impl/ZfbBusinessCodeServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/ops/impl/ZfbBusinessCodeServiceImpl.java new file mode 100644 index 0000000..ecf0cc7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/ops/impl/ZfbBusinessCodeServiceImpl.java @@ -0,0 +1,26 @@ +package com.jwsaas.service.ops.impl; + + +import com.jwsaas.Constants; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.ops.ZfbBusinessCodeDao; +import com.jwsaas.entity.ops.ZfbBusinessCode; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.ops.ZfbBusinessCodeService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Service(Constants.OPS_SIGN+"ZfbBusinessCodeServiceImpl") +public class ZfbBusinessCodeServiceImpl extends BaseServiceImpl implements ZfbBusinessCodeService{ + + @Resource(name= Constants.OPS_SIGN+"ZfbBusinessCodeDaoImpl") + private ZfbBusinessCodeDao zfbBusinessCodeDao; + + @Override + public BaseDao getBaseDao() { + return this.zfbBusinessCodeDao; + } + +} + diff --git a/food-server/src/main/java/com/jwsaas/service/shared/impl/AppAuthServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/shared/impl/AppAuthServiceImpl.java new file mode 100644 index 0000000..3bd4eb2 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/shared/impl/AppAuthServiceImpl.java @@ -0,0 +1,36 @@ +package com.jwsaas.service.shared.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.condition.Criteria; +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.shared.AppAuthDao; +import com.jwsaas.entity.shared.AppAuth; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.shared.AppAuthService; + +@Service(com.jwsaas.Constants.SHARED_SIGN + "AppAuthServiceImpl") +public class AppAuthServiceImpl extends BaseServiceImpl implements AppAuthService { + + @Resource(name = com.jwsaas.Constants.SHARED_SIGN + "AppAuthDaoImpl") + private AppAuthDao appAuthDao; + + @Override + public BaseDao getBaseDao() { + return this.appAuthDao; + } + + @Override + public List getListWithAppSign(String tenantId, String appSign, Criteria criteria) throws Exception { + try { + return appAuthDao.getListWithAppSign(tenantId, appSign, criteria); + } catch (Exception e) { + throw e; + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/shared/impl/FunctionServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/shared/impl/FunctionServiceImpl.java new file mode 100644 index 0000000..8c959a7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/shared/impl/FunctionServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.shared.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.shared.FunctionDao; +import com.jwsaas.entity.shared.Function; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.shared.FunctionService; + +@Service(com.jwsaas.Constants.SHARED_SIGN + "FunctionServiceImpl") +public class FunctionServiceImpl extends BaseServiceImpl implements FunctionService { + + @Resource(name = com.jwsaas.Constants.SHARED_SIGN + "FunctionDaoImpl") + private FunctionDao functionDao; + + @Override + public BaseDao getBaseDao() { + return this.functionDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/shared/impl/ModuleServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/shared/impl/ModuleServiceImpl.java new file mode 100644 index 0000000..4ea6e53 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/shared/impl/ModuleServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.shared.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.shared.ModuleDao; +import com.jwsaas.entity.shared.Module; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.shared.ModuleService; + +@Service(com.jwsaas.Constants.SHARED_SIGN + "ModuleServiceImpl") +public class ModuleServiceImpl extends BaseServiceImpl implements ModuleService { + + @Resource(name = com.jwsaas.Constants.SHARED_SIGN + "ModuleDaoImpl") + private ModuleDao moduleDao; + + @Override + public BaseDao getBaseDao() { + return this.moduleDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/shared/impl/ResourcesServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/shared/impl/ResourcesServiceImpl.java new file mode 100644 index 0000000..2bba5e1 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/shared/impl/ResourcesServiceImpl.java @@ -0,0 +1,24 @@ +package com.jwsaas.service.shared.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.shared.ResourcesDao; +import com.jwsaas.entity.shared.Resources; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.shared.ResourcesService; + +@Service(com.jwsaas.Constants.SHARED_SIGN + "ResourcesServiceImpl") +public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesService { + + @Resource(name = com.jwsaas.Constants.SHARED_SIGN + "ResourcesDaoImpl") + private ResourcesDao resourcesDao; + + @Override + public BaseDao getBaseDao() { + return this.resourcesDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinAccountServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinAccountServiceImpl.java new file mode 100644 index 0000000..d388652 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinAccountServiceImpl.java @@ -0,0 +1,43 @@ +package com.jwsaas.service.wxdc.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.wxdc.WeixinAccountDao; +import com.jwsaas.entity.wxdc.WeixinAccount; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.wxdc.WeixinAccountService; + +/** + * 微信公众号管理接口实现 + * + * @author 张莹 + * + * @version 创建时间:2017-7-12 + * + */ +@Service(com.jwsaas.Constants.WXDC_SIGN + "WeixinAccountServiceImpl") +public class WeixinAccountServiceImpl extends BaseServiceImpl implements WeixinAccountService { + + @Resource(name = com.jwsaas.Constants.WXDC_SIGN + "WeixinAccountDaoImpl") + private WeixinAccountDao weixinAccountDao; + + @Override + public BaseDao getBaseDao() { + return this.weixinAccountDao; + } + + @Override + public Integer savezhangguiQuery(String defaultDbSign,WeixinAccount account) throws Exception { + + return this.weixinAccountDao.savezhangguiQuery(defaultDbSign,account); + } + + @Override + public Integer updatezhangguiQuery(String defaultDbSign, WeixinAccount account) throws Exception { + return this.weixinAccountDao.updatezhangguiQuery(defaultDbSign,account); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinOrderPayServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinOrderPayServiceImpl.java new file mode 100644 index 0000000..abf4179 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinOrderPayServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.wxdc.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.wxdc.WeixinOrderPayDao; +import com.jwsaas.entity.wxdc.WeixinOrderPay; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.wxdc.WeixinOrderPayService; + +/** + * 微信支付订单记录接口实现 + * + * @author 张莹 + * + * @version 创建时间:2016-9-27 + * + */ +@Service(com.jwsaas.Constants.WXDC_SIGN + "WeixinOrderPayServiceImpl") +public class WeixinOrderPayServiceImpl extends BaseServiceImpl + implements WeixinOrderPayService { + + @Resource(name = com.jwsaas.Constants.WXDC_SIGN + "WeixinOrderPayDaoImpl") + private WeixinOrderPayDao weixinOrderPayDao; + + @Override + public BaseDao getBaseDao() { + return this.weixinOrderPayDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinPayResultServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinPayResultServiceImpl.java new file mode 100644 index 0000000..96c8c16 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinPayResultServiceImpl.java @@ -0,0 +1,32 @@ +package com.jwsaas.service.wxdc.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.wxdc.WeixinPayResultDao; +import com.jwsaas.entity.wxdc.WeixinPayResult; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.wxdc.WeixinPayResultService; + +/** + * 支付结果接口实现 + * + * @author 张莹 + * + * @version 创建时间:2016-4-29 + * + */ +@Service(com.jwsaas.Constants.WXDC_SIGN + "WeixinPayResultServiceImpl") +public class WeixinPayResultServiceImpl extends BaseServiceImpl implements WeixinPayResultService { + + @Resource(name = com.jwsaas.Constants.WXDC_SIGN + "WeixinPayResultDaoImpl") + private WeixinPayResultDao weixinPayResultDao; + + @Override + public BaseDao getBaseDao() { + return this.weixinPayResultDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinPayUnifiedOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinPayUnifiedOrderServiceImpl.java new file mode 100644 index 0000000..aa1c6fb --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinPayUnifiedOrderServiceImpl.java @@ -0,0 +1,32 @@ +package com.jwsaas.service.wxdc.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.wxdc.WeixinPayUnifiedOrderDao; +import com.jwsaas.entity.wxdc.WeixinPayUnifiedOrder; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.wxdc.WeixinPayUnifiedOrderService; + +/** + * 统一下单接口实现 + * + * @author 张莹 + * + * @version 创建时间:2016-4-29 + * + */ +@Service(com.jwsaas.Constants.WXDC_SIGN + "WeixinPayUnifiedOrderServiceImpl") +public class WeixinPayUnifiedOrderServiceImpl extends BaseServiceImpl implements WeixinPayUnifiedOrderService { + + @Resource(name = com.jwsaas.Constants.WXDC_SIGN + "WeixinPayUnifiedOrderDaoImpl") + private WeixinPayUnifiedOrderDao weixinPayUnifiedOrderDao; + + @Override + public BaseDao getBaseDao() { + return this.weixinPayUnifiedOrderDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinRechargeOrderServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinRechargeOrderServiceImpl.java new file mode 100644 index 0000000..f331f9d --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinRechargeOrderServiceImpl.java @@ -0,0 +1,33 @@ +package com.jwsaas.service.wxdc.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.wxdc.WeixinRechargeOrderDao; +import com.jwsaas.entity.wxdc.WeixinRechargeOrder; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.wxdc.WeixinRechargeOrderService; + +/** + * 会员充值订单 + * + * @author 娄许涛 + * + * @version 创建时间:2018-2-1 + * + */ +@Service(com.jwsaas.Constants.WXDC_SIGN + "WeixinRechargeOrderServiceImpl") +public class WeixinRechargeOrderServiceImpl extends BaseServiceImpl + implements WeixinRechargeOrderService { + + @Resource(name = com.jwsaas.Constants.WXDC_SIGN + "WeixinRechargeOrderDaoImpl") + private WeixinRechargeOrderDao weixinRechargeOrderDao; + + @Override + public BaseDao getBaseDao() { + return this.weixinRechargeOrderDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinUserServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinUserServiceImpl.java new file mode 100644 index 0000000..b15ec75 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/wxdc/impl/WeixinUserServiceImpl.java @@ -0,0 +1,32 @@ +package com.jwsaas.service.wxdc.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.wxdc.WeixinUserDao; +import com.jwsaas.entity.wxdc.WeixinUser; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.wxdc.WeixinUserService; + +/** + * 微信用戶信息接口实现 + * + * @author 张莹 + * + * @version 创建时间:2017-7-12 + * + */ +@Service(com.jwsaas.Constants.WXDC_SIGN + "WeixinUserServiceImpl") +public class WeixinUserServiceImpl extends BaseServiceImpl implements WeixinUserService { + + @Resource(name = com.jwsaas.Constants.WXDC_SIGN + "WeixinUserDaoImpl") + private WeixinUserDao weixinUserDao; + + @Override + public BaseDao getBaseDao() { + return this.weixinUserDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/service/wxyh/impl/WeixinUserServiceImpl.java b/food-server/src/main/java/com/jwsaas/service/wxyh/impl/WeixinUserServiceImpl.java new file mode 100644 index 0000000..9100802 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/service/wxyh/impl/WeixinUserServiceImpl.java @@ -0,0 +1,32 @@ +package com.jwsaas.service.wxyh.impl; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.jwsaas.dao.BaseDao; +import com.jwsaas.dao.wxyh.WeixinUserDao; +import com.jwsaas.entity.wxyh.WeixinUser; +import com.jwsaas.service.impl.BaseServiceImpl; +import com.jwsaas.service.wxyh.WeixinUserService; + +/** + * 小程序用戶信息接口实现 + * + * @author 娄许涛 + * + * @version 创建时间:2017-12-20 + * + */ +@Service(com.jwsaas.Constants.WXYH_SIGN + "WeixinUserServiceImpl") +public class WeixinUserServiceImpl extends BaseServiceImpl implements WeixinUserService { + + @Resource(name = com.jwsaas.Constants.WXYH_SIGN + "WeixinUserDaoImpl") + private WeixinUserDao weixinUserDao; + + @Override + public BaseDao getBaseDao() { + return this.weixinUserDao; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/util/JSONException.java b/food-server/src/main/java/com/jwsaas/util/JSONException.java new file mode 100644 index 0000000..eba254b --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/util/JSONException.java @@ -0,0 +1,18 @@ +package com.jwsaas.util; + +@SuppressWarnings("serial") +public class JSONException extends RuntimeException { + + public JSONException(){ + super(); + } + + public JSONException(String message){ + super(message); + } + + public JSONException(String message, Throwable cause){ + super(message, cause); + } + +} \ No newline at end of file diff --git a/food-server/src/main/java/com/jwsaas/util/JSONUtil.java b/food-server/src/main/java/com/jwsaas/util/JSONUtil.java new file mode 100644 index 0000000..bed3597 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/util/JSONUtil.java @@ -0,0 +1,166 @@ +package com.jwsaas.util; + +import java.io.ByteArrayOutputStream; +import java.util.ArrayList; +import java.util.List; + +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; +import com.fasterxml.jackson.annotation.PropertyAccessor; +import com.fasterxml.jackson.core.JsonEncoding; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationConfig; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.databind.node.ObjectNode; + +public class JSONUtil { + + protected static Logger logger = LoggerFactory.getLogger(JSONUtil.class); + + private static ObjectMapper objectMapper = new ObjectMapper(); + private static final String charsetName = "UTF-8"; + + static { + objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY); + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + + SerializationConfig serializationConfig = objectMapper.getSerializationConfig(); + serializationConfig = serializationConfig.without(SerializationFeature.WRAP_ROOT_VALUE) + .with(SerializationFeature.INDENT_OUTPUT); + // SerializerProvider serializerProvider = + // objectMapper.getSerializerProvider(); + // serializerProvider.setNullValueSerializer(new + // JsonSerializer() { + // + // @Override + // public void serialize(Object value, JsonGenerator jgen, + // SerializerProvider serializers) + // throws IOException, JsonProcessingException { + // jgen.writeString(""); + // } + // + // }); + } + + // public static ObjectMapper getObjectMapper() { + // return CollectionUtils.deepCopy(objectMapper); + // } + + public static String toJSONString(Object object) { + ByteArrayOutputStream bos = new ByteArrayOutputStream(1024); + try { + JsonGenerator jsonGenerator = objectMapper.getFactory().createGenerator(bos, JsonEncoding.UTF8); + objectMapper.writeValue(jsonGenerator, object); + return bos.toString(charsetName); + } catch (Exception e) { + throw new JSONException(e.getMessage(), e); + } finally { + try { + bos.close(); + } catch (Exception ex) { + logger.error("toJSONString(bos.close) Exception ", ex); + } + } + } + + public static JsonNode parseJsonNode(String text) { + try { + return objectMapper.readTree(text); + } catch (Exception e) { + throw new JSONException(e.getMessage(), e); + } + } + + public static T parseObject(String text, Class clazz) { + try { + return objectMapper.readValue(text, clazz); + } catch (Exception e) { + throw new JSONException(e.getMessage(), e); + } + } + + public static T parseObject(String text, Class clazz, String charsetName) { + try { + return objectMapper.readValue(text.getBytes(charsetName), clazz); + } catch (Exception e) { + throw new JSONException(e.getMessage(), e); + } + } + + public static T parseObject(String text, TypeReference valueTypeRef) { + try { + return objectMapper.readValue(objectMapper.getFactory().createParser(text), valueTypeRef); + } catch (Exception e) { + throw new JSONException(e.getMessage(), e); + } + } + + public static ObjectNode createObjectNode() { + try { + return objectMapper.createObjectNode(); + } catch (Exception e) { + throw new JSONException(e.getMessage(), e); + } + } + + /** + * 从json中读取tagPath处的值 tagPath用 :分隔 + * + * @param json + * @param tagPath + * @return + * @throws Exception + */ + public static List readValueFromJson(String json, String tagPath) throws Exception { + // 返回值 + List value = new ArrayList(); + if (StringUtils.isBlank(json) || StringUtils.isBlank(tagPath)) { + return value; + } + String[] path = tagPath.split(":"); + JsonNode node = objectMapper.readTree(json); + getJsonValue(node, path, value, 1); + return value; + } + + public static void getJsonValue(JsonNode node, String[] path, List values, int nextIndex) { + if (node == null) { + return; + } + // 是路径的最后就直接取值 + if (nextIndex == path.length) { + if (node.isArray()) { + for (int i = 0; i < node.size(); i++) { + JsonNode child = node.get(i).get(path[nextIndex - 1]); + if (child == null) { + continue; + } + values.add(child.toString()); + } + } else { + JsonNode child = node.get(path[nextIndex - 1]); + if (child != null) { + values.add(child.toString()); + } + } + return; + } + // 判断是Node下是集合还是一个节点 + node = node.get(path[nextIndex - 1]); + if (node.isArray()) { + for (int i = 0; i < node.size(); i++) { + getJsonValue(node.get(i), path, values, nextIndex + 1); + } + } else { + getJsonValue(node, path, values, nextIndex + 1); + } + } + +} diff --git a/food-server/src/main/java/com/jwsaas/util/TlCommonConstants.java b/food-server/src/main/java/com/jwsaas/util/TlCommonConstants.java new file mode 100644 index 0000000..2796fd8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/util/TlCommonConstants.java @@ -0,0 +1,44 @@ +package com.jwsaas.util; + +import java.nio.charset.StandardCharsets; + +/** + * @author zzq + * @version 1.0.0 + * @Title {@link} + * @Description + * @date 2020/5/27 + */ +public class TlCommonConstants { + + /** + * 测试接口地址 + */ + public static final String URL = "https://zhttest.sxallinpay.com/prod-api/yunshangtong/openApi/gateway"; + /** + * 测试接口对接appId + */ + public static final String APP_ID = "1293840404734611458"; + /** + * 测试接口对接appKey + */ + public static final String APP_KEY = "eaa59d04162548d581526ef6a81bc8a8"; + /** + * 测试环境sysId + */ + public static final String SYS_ID = ""; + /** + * 默认字符集 + */ + public static final String DEFAULT_CHARSET = StandardCharsets.UTF_8.toString(); + /** + * 默认签名方式 + */ + public static final String DEFAULT_SIGN_TYPE = "MD5"; + /** + * 默认版本号 + */ + public static final String DEFAULT_VERSION = "1.0"; + + +} diff --git a/food-server/src/main/java/com/jwsaas/util/TlHttpClient.java b/food-server/src/main/java/com/jwsaas/util/TlHttpClient.java new file mode 100644 index 0000000..a9fda53 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/util/TlHttpClient.java @@ -0,0 +1,35 @@ +package com.jwsaas.util; + +import org.apache.commons.lang3.time.DateFormatUtils; + +import java.io.IOException; +import java.util.Date; + +/** + * @author zzq + * @version 1.0.0 + * @Title {@link} + * @Description + * @date 2020/5/27 + */ +public class TlHttpClient { + + public static String post(String method, T body) throws IOException { + TlRequest request = new TlRequest<>(); + request.setAppId(TlCommonConstants.APP_ID); + request.setCharset(TlCommonConstants.DEFAULT_CHARSET); + request.setSignType(TlCommonConstants.DEFAULT_SIGN_TYPE); + request.setVersion(TlCommonConstants.DEFAULT_VERSION); + request.setTimestamp(DateFormatUtils.format(new Date(), "yyyyMMddHHmmss")); + request.setMethod(method); + request.setBizContent(body); + + request.sign(TlCommonConstants.APP_KEY); + + String result = TlHttpUtils.post(TlCommonConstants.URL, request.toMap()); + + request.verify(result); + return result; + } + +} diff --git a/food-server/src/main/java/com/jwsaas/util/TlHttpUtils.java b/food-server/src/main/java/com/jwsaas/util/TlHttpUtils.java new file mode 100644 index 0000000..0b754d7 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/util/TlHttpUtils.java @@ -0,0 +1,75 @@ +package com.jwsaas.util; + + +import org.apache.commons.lang3.StringUtils; +import org.apache.http.HttpStatus; +import org.apache.http.NameValuePair; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.entity.UrlEncodedFormEntity; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.message.BasicNameValuePair; +import org.apache.http.util.EntityUtils; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.StringJoiner; +import java.util.stream.Collectors; + +/** + * @author zzq + * @version 1.0.0 + * @Title {@link} + * @Description + * @date 2020/5/26 + */ +//@Slf4j +public class TlHttpUtils { + + public static String post(String url, Map parameters) throws IOException { + // @Cleanup + CloseableHttpClient client = httpClientBuilder().build(); + HttpPost post = new HttpPost(url); + List pairList = parameters.entrySet().stream() + .map(entry -> new BasicNameValuePair(entry.getKey(), entry.getValue())) + .collect(Collectors.toList()); + StringJoiner requestBody = new StringJoiner("&"); + for (NameValuePair each : pairList) { + requestBody.add(StringUtils.join(each.getName(), "=", each.getValue())); + } + // log.info("Request url : [{}], parameters : [{}]", url, requestBody); + post.setEntity(new UrlEncodedFormEntity(pairList, StandardCharsets.UTF_8)); + //@Cleanup + CloseableHttpResponse execute = client.execute(post); + int statusCode = execute.getStatusLine().getStatusCode(); + if (statusCode != HttpStatus.SC_OK) { + throw new IOException( + "Http request error, error message : [" + execute.getStatusLine().getReasonPhrase() + "]"); + } + String result = Objects.isNull(execute.getEntity()) ? "" : EntityUtils.toString(execute.getEntity(), + StandardCharsets.UTF_8.toString()); + // log.info("Response body : [{}]", result); + return result; + } + + private static HttpClientBuilder httpClientBuilder() { + return HttpClients.custom() + .disableAutomaticRetries() + .setDefaultRequestConfig(defaultRequestConfig()); + } + + private static RequestConfig defaultRequestConfig() { + return RequestConfig.custom() + .setConnectTimeout(30_000) + .setSocketTimeout(60_000) + .setConnectionRequestTimeout(5_000) + .build(); + } + +} diff --git a/food-server/src/main/java/com/jwsaas/util/TlRequest.java b/food-server/src/main/java/com/jwsaas/util/TlRequest.java new file mode 100644 index 0000000..cd9fde8 --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/util/TlRequest.java @@ -0,0 +1,138 @@ +package com.jwsaas.util; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import org.apache.commons.lang3.StringUtils; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Objects; +import java.util.TreeMap; + +/** + * @author zzq + * @version 1.0.0 + * @Title {@link} + * @Description + * @date 2020/5/26 + */ +public class TlRequest implements Serializable { + + private static final long serialVersionUID = -1128445146065327824L; + + private String appId; + private String version; + private String charset; + private String signType; + private String sign; + private String timestamp; + private String method; + private T bizContent; + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getCharset() { + return charset; + } + + public void setCharset(String charset) { + this.charset = charset; + } + + public String getSignType() { + return signType; + } + + public void setSignType(String signType) { + this.signType = signType; + } + + public String getSign() { + return sign; + } + + public void setSign(String sign) { + this.sign = sign; + } + + public String getTimestamp() { + return timestamp; + } + + public void setTimestamp(String timestamp) { + this.timestamp = timestamp; + } + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public T getBizContent() { + return bizContent; + } + + public void setBizContent(T bizContent) { + this.bizContent = bizContent; + } + + public void sign(String key) { + TreeMap param = new TreeMap<>(); + param.put("appId", appId); + param.put("version", version); + param.put("charset", charset); + param.put("signType", signType); + param.put("timestamp", timestamp); + param.put("method", method); + param.put("bizContent", JSON.toJSONString(bizContent)); + param.put("key", key); + this.sign = TlSignUtils.sign(param); + } + + public Map toMap() { + Map param = new HashMap<>(); + param.put("appId", appId); + param.put("version", version); + param.put("charset", charset); + param.put("signType", signType); + param.put("timestamp", timestamp); + param.put("method", method); + param.put("sign", sign); + param.put("bizContent", JSON.toJSONString(bizContent)); + return param; + } + + public void verify(String result) { + JSONObject jsonObject = JSON.parseObject(result); + TreeMap resultParam = new TreeMap<>(); + for (Entry each : jsonObject.entrySet()) { + resultParam.put(each.getKey(), + Objects.nonNull(each.getValue()) ? String.valueOf(each.getValue()) : StringUtils.EMPTY); + } + resultParam.put("key", TlCommonConstants.APP_KEY); + if (!TlSignUtils.verify(resultParam)) { + throw new RuntimeException("验签不通过"); + } + } + + +} diff --git a/food-server/src/main/java/com/jwsaas/util/TlSignUtils.java b/food-server/src/main/java/com/jwsaas/util/TlSignUtils.java new file mode 100644 index 0000000..b91f8aa --- /dev/null +++ b/food-server/src/main/java/com/jwsaas/util/TlSignUtils.java @@ -0,0 +1,38 @@ +package com.jwsaas.util; + +import org.apache.commons.codec.digest.DigestUtils; +import org.apache.commons.lang3.StringUtils; + +import java.util.Map.Entry; +import java.util.StringJoiner; +import java.util.TreeMap; + +/** + * @author zzq + * @version 1.0.0 + * @Title {@link} + * @Description + * @date 2020/5/27 + */ +//@Slf4j +public class TlSignUtils { + + public static String sign(TreeMap param) { + StringJoiner joiner = new StringJoiner("&"); + for (Entry each : param.entrySet()) { + joiner.add(StringUtils.join(each.getKey(), "=", each.getValue())); + } + // log.info("签名原文 : [{}]", joiner.toString()); + return DigestUtils.md5Hex(joiner.toString()); + } + + public static boolean verify(TreeMap param) { + String originalSign = param.remove("sign"); + String sign = sign(param); + // log.info("原密文 : [{}], MD5签名结果 : [{}]", originalSign, sign); + boolean verify = StringUtils.equals(originalSign, sign); + // log.info("签名验证结果: [{}]", verify ? "通过" : "不通过"); + return verify; + } + +} diff --git a/food-server/src/main/lib/libwrapper-macosx-universal-32.jnilib b/food-server/src/main/lib/libwrapper-macosx-universal-32.jnilib new file mode 100644 index 0000000..ae75d31 Binary files /dev/null and b/food-server/src/main/lib/libwrapper-macosx-universal-32.jnilib differ diff --git a/food-server/src/main/lib/libwrapper-macosx-universal-64.jnilib b/food-server/src/main/lib/libwrapper-macosx-universal-64.jnilib new file mode 100644 index 0000000..e7d4102 Binary files /dev/null and b/food-server/src/main/lib/libwrapper-macosx-universal-64.jnilib differ diff --git a/food-server/src/main/lib/wrapper-windows-x86-32.dll b/food-server/src/main/lib/wrapper-windows-x86-32.dll new file mode 100644 index 0000000..6aaa9c1 Binary files /dev/null and b/food-server/src/main/lib/wrapper-windows-x86-32.dll differ diff --git a/food-server/src/main/lib/wrapper-windows-x86-64.dll b/food-server/src/main/lib/wrapper-windows-x86-64.dll new file mode 100644 index 0000000..81f11ce Binary files /dev/null and b/food-server/src/main/lib/wrapper-windows-x86-64.dll differ diff --git a/food-server/src/main/lib/wrapper.jar b/food-server/src/main/lib/wrapper.jar new file mode 100644 index 0000000..70dc5ab Binary files /dev/null and b/food-server/src/main/lib/wrapper.jar differ diff --git a/food-server/src/main/logs/safeToDelete.tmp b/food-server/src/main/logs/safeToDelete.tmp new file mode 100644 index 0000000..e69de29 diff --git a/food-server/src/main/resources/META-INF/dubbo/com.alibaba.dubbo.rpc.Filter b/food-server/src/main/resources/META-INF/dubbo/com.alibaba.dubbo.rpc.Filter new file mode 100644 index 0000000..0a76408 --- /dev/null +++ b/food-server/src/main/resources/META-INF/dubbo/com.alibaba.dubbo.rpc.Filter @@ -0,0 +1 @@ +serverDataVersionFilter=com.jwsaas.Filters.ServerDataVersionFilter \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceProductMapper.xml new file mode 100644 index 0000000..240acd0 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceProductMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`specId`,`oldPrice`,`oldMinPrice`,`oldMemberPrice`,`oldOtherPrice`,`price`,`minPrice`,`memberPrice`,`otherPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_adjust_price_product + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`specId` + ,`oldPrice` + ,`oldMinPrice` + ,`oldMemberPrice` + ,`oldOtherPrice` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`otherPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{specId} + ,#{oldPrice} + ,#{oldMinPrice} + ,#{oldMemberPrice} + ,#{oldOtherPrice} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{otherPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_adjust_price_product + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`oldPrice` = #{oldPrice} + ,`oldMinPrice` = #{oldMinPrice} + ,`oldMemberPrice` = #{oldMemberPrice} + ,`oldOtherPrice` = #{oldOtherPrice} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`otherPrice` = #{otherPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_adjust_price_product + where `id` = #{id} + + + + delete from cy_adjust_price_product + ${condition} + + + + delete from cy_adjust_price_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceStoreMapper.xml new file mode 100644 index 0000000..f673c31 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceStoreMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_adjust_price_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_adjust_price_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_adjust_price_store + where `id` = #{id} + + + + delete from cy_adjust_price_store + ${condition} + + + + delete from cy_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceTicketMapper.xml new file mode 100644 index 0000000..e0bf524 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdjustPriceTicketMapper.xml @@ -0,0 +1,130 @@ + + + + + + `id`,`tenantId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into cy_adjust_price_ticket + + `id`,`tenantId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_adjust_price_ticket + ${condition} + + + + delete from cy_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdvertCaptionMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdvertCaptionMapper.xml new file mode 100644 index 0000000..42c1e64 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdvertCaptionMapper.xml @@ -0,0 +1,194 @@ + + + + + + `id`,`tenantId`,`name`,`content`,`stopFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_advert_caption + + `id`,`tenantId` + ,`name` + ,`content` + ,`stopFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{content} + ,#{stopFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_advert_caption + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`content` = #{content} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_advert_caption + where `id` = #{id} + + + + delete from cy_advert_caption + ${condition} + + + + delete from cy_advert_caption + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_advert_caption + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO cy_advert_caption_store (tenantId,storeId,captionId) + VALUES (#{tenantId}, #{storeId}, #{captionId}) + + + + + delete from cy_advert_caption_store + where tenantId=#{tenantId} and captionId=#{captionId} + + + + + delete from cy_advert_caption_store + where tenantId=#{tenantId} and captionId=#{captionId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdvertPictureMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdvertPictureMapper.xml new file mode 100644 index 0000000..a5bffe9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AdvertPictureMapper.xml @@ -0,0 +1,206 @@ + + + + + + `id`,`tenantId`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`stopFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_advert_picture + + `id`,`tenantId` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`stopFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{stopFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_advert_picture + + `tenantId` = #{tenantId} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_advert_picture + where `id` = #{id} + + + + delete from cy_advert_picture + ${condition} + + + + delete from cy_advert_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_advert_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO cy_advert_picture_store (tenantId,storeId,pictureId) + VALUES (#{tenantId}, #{storeId}, #{pictureId}) + + + + + delete from cy_advert_picture_store + where tenantId=#{tenantId} and pictureId=#{pictureId} + + + + + delete from cy_advert_picture_store + where tenantId=#{tenantId} and pictureId=#{pictureId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AgentMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AgentMapper.xml new file mode 100644 index 0000000..13d7857 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AgentMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sex`,`birthday`,`email`,`mobile`,`isLogin`,`passwd`,`enable`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_agent + + `id`,`tenantId` + ,`no` + ,`name` + ,`sex` + ,`birthday` + ,`email` + ,`mobile` + ,`isLogin` + ,`passwd` + ,`enable` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sex} + ,#{birthday} + ,#{email} + ,#{mobile} + ,#{isLogin} + ,#{passwd} + ,#{enable} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_agent + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sex` = #{sex} + ,`birthday` = #{birthday} + ,`email` = #{email} + ,`mobile` = #{mobile} + ,`isLogin` = #{isLogin} + ,`passwd` = #{passwd} + ,`enable` = #{enable} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_agent + where `id` = #{id} + + + + delete from cy_agent + ${condition} + + + + delete from cy_agent + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AgentStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AgentStoreMapper.xml new file mode 100644 index 0000000..ad76d34 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AgentStoreMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`agentId`,`valueType`,`valueId`,`valueNo`,`valueName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_agent_store + + `id`,`tenantId` + ,`agentId` + ,`valueType` + ,`valueId` + ,`valueNo` + ,`valueName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{agentId} + ,#{valueType} + ,#{valueId} + ,#{valueNo} + ,#{valueName} + ,#{createUser} + ,#{createDate} + + + + + update cy_agent_store + + `tenantId` = #{tenantId} + ,`agentId` = #{agentId} + ,`valueType` = #{valueType} + ,`valueId` = #{valueId} + ,`valueNo` = #{valueNo} + ,`valueName` = #{valueName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_agent_store + where `id` = #{id} + + + + delete from cy_agent_store + ${condition} + + + + delete from cy_agent_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsDetailMapper.xml new file mode 100644 index 0000000..033059d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsDetailMapper.xml @@ -0,0 +1,198 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`packUnitId`,`packUnitName`,`packUnitAmount`,`dispatchUnitId`,`dispatchUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`packUnitId` + ,`packUnitName` + ,`packUnitAmount` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{packUnitId} + ,#{packUnitName} + ,#{packUnitAmount} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`packUnitAmount` = #{packUnitAmount} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_detail + where `id` = #{id} + + + + delete from cy_ask_goods_detail + ${condition} + + + + delete from cy_ask_goods_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateDetailMapper.xml new file mode 100644 index 0000000..d20b7e2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateDetailMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_template_detail + where `id` = #{id} + + + + delete from cy_ask_goods_template_detail + ${condition} + + + + delete from cy_ask_goods_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateMapper.xml new file mode 100644 index 0000000..1cc7f98 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`selfFlag`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`selfFlag` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{selfFlag} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`selfFlag` = #{selfFlag} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_template + where `id` = #{id} + + + + delete from cy_ask_goods_template + ${condition} + + + + delete from cy_ask_goods_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateStoreMapper.xml new file mode 100644 index 0000000..ab3efe2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateStoreMapper.xml @@ -0,0 +1,110 @@ + + + + + + `tenantId`,`storeId`,`ticketId` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_template_store + + `tenantId` + ,`storeId` + ,`ticketId` + + + #{tenantId} + ,#{storeId} + ,#{ticketId} + + + + + update cy_ask_goods_template_store + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + + where `id` = #{id} + + + + delete from cy_ask_goods_template_store + where `id` = #{id} + + + + delete from cy_ask_goods_template_store + ${condition} + + + + delete from cy_ask_goods_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketLogMapper.xml new file mode 100644 index 0000000..29e1461 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketLogMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`payStatus`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`payStatus` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{payStatus} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_ask_goods_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`payStatus` = #{payStatus} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_log + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_log + ${condition} + + + + delete from cy_ask_goods_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketMapper.xml new file mode 100644 index 0000000..6b5897a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketMapper.xml @@ -0,0 +1,194 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`description`,`status`,`payStatus`,`productMoney`,`dispatchMoney`,`totalMoney`,`isUse`,`setMan`,`setDate`,`checkMan`,`checkDate`,`dispatchDate`,`reason`,`sourceSign`,`deliveryMode`,`deliveryModeDesc`,`barCodeNo`,`erpToExamine`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`status` + ,`payStatus` + ,`productMoney` + ,`dispatchMoney` + ,`totalMoney` + ,`isUse` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`dispatchDate` + ,`reason` + ,`sourceSign` + ,`deliveryMode` + ,`deliveryModeDesc` + ,`barCodeNo` + ,`erpToExamine` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{status} + ,#{payStatus} + ,#{productMoney} + ,#{dispatchMoney} + ,#{totalMoney} + ,#{isUse} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{dispatchDate} + ,#{reason} + ,#{sourceSign} + ,#{deliveryMode} + ,#{deliveryModeDesc} + ,#{barCodeNo} + ,#{erpToExamine} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`status` = #{status} + ,`payStatus` = #{payStatus} + ,`productMoney` = #{productMoney} + ,`dispatchMoney` = #{dispatchMoney} + ,`totalMoney` = #{totalMoney} + ,`isUse` = #{isUse} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + + ,`checkMan` = #{checkMan} + ,`checkMan` = NULL + + + ,`checkDate` = #{checkDate} + ,`checkDate` = NULL + + ,`dispatchDate` = #{dispatchDate} + ,`reason` = #{reason} + ,`sourceSign` = #{sourceSign} + ,`deliveryMode` = #{deliveryMode} + ,`deliveryModeDesc` = #{deliveryModeDesc} + ,`barCodeNo` = #{barCodeNo} + ,`erpToExamine` = #{erpToExamine} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_ticket + where `id` = #{id} + + + + delete from cy_ask_goods_ticket + ${condition} + + + + delete from cy_ask_goods_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketPayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketPayMapper.xml new file mode 100644 index 0000000..33219a3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketPayMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`description`,`type`,`money`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_ticket_pay + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`type` + ,`money` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{type} + ,#{money} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_ticket_pay + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`type` = #{type} + ,`money` = #{money} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_pay + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_pay + ${condition} + + + + delete from cy_ask_goods_ticket_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduFoodMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduFoodMapper.xml new file mode 100644 index 0000000..a6fb2ba --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduFoodMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryName`,`dishId`,`dishName`,`dishSkuId`,`spec`,`description`,`price`,`boxNum`,`boxPrice`,`isBind`,`erpProductId`,`erpProduct`,`erpSpecId`,`erpSpec`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_baidu_food + + `id`,`tenantId` + ,`storeId` + ,`categoryName` + ,`dishId` + ,`dishName` + ,`dishSkuId` + ,`spec` + ,`description` + ,`price` + ,`boxNum` + ,`boxPrice` + ,`isBind` + ,`erpProductId` + ,`erpProduct` + ,`erpSpecId` + ,`erpSpec` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryName} + ,#{dishId} + ,#{dishName} + ,#{dishSkuId} + ,#{spec} + ,#{description} + ,#{price} + ,#{boxNum} + ,#{boxPrice} + ,#{isBind} + ,#{erpProductId} + ,#{erpProduct} + ,#{erpSpecId} + ,#{erpSpec} + ,#{createUser} + ,#{createDate} + + + + + update cy_baidu_food + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryName` = #{categoryName} + ,`dishId` = #{dishId} + ,`dishName` = #{dishName} + ,`dishSkuId` = #{dishSkuId} + ,`spec` = #{spec} + ,`description` = #{description} + ,`price` = #{price} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`isBind` = #{isBind} + ,`erpProductId` = #{erpProductId} + ,`erpProduct` = #{erpProduct} + ,`erpSpecId` = #{erpSpecId} + ,`erpSpec` = #{erpSpec} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_baidu_food + where `id` = #{id} + + + + delete from cy_baidu_food + ${condition} + + + + delete from cy_baidu_food + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduOrderMapper.xml new file mode 100644 index 0000000..6e244c8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduOrderMapper.xml @@ -0,0 +1,218 @@ + + + + + + `id`,`tenantId`,`source`,`shopId`,`body`,`baiduShopId`,`baiduShopName`,`orderId`,`sendImmediately`,`orderIndex`,`status`,`expectTimeMode`,`sendTime`,`pickupTime`,`atshopTime`,`deliveryTime`,`deliveryPhone`,`finishedTime`,`confirmTime`,`cancelTime`,`sendFee`,`packageFee`,`discountFee`,`shopFee`,`totalFee`,`userFee`,`payType`,`needInvoice`,`invoiceTitle`,`remark`,`deliveryParty`,`createTime`,`mealNum`,`responsibleParty`,`commission`,`user`,`shop`,`products`,`discount`,`partRefundInfo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_baidu_order + + `id`,`tenantId` + ,`source` + ,`shopId` + ,`body` + ,`baiduShopId` + ,`baiduShopName` + ,`orderId` + ,`sendImmediately` + ,`orderIndex` + ,`status` + ,`expectTimeMode` + ,`sendTime` + ,`pickupTime` + ,`atshopTime` + ,`deliveryTime` + ,`deliveryPhone` + ,`finishedTime` + ,`confirmTime` + ,`cancelTime` + ,`sendFee` + ,`packageFee` + ,`discountFee` + ,`shopFee` + ,`totalFee` + ,`userFee` + ,`payType` + ,`needInvoice` + ,`invoiceTitle` + ,`remark` + ,`deliveryParty` + ,`createTime` + ,`mealNum` + ,`responsibleParty` + ,`commission` + ,`user` + ,`shop` + ,`products` + ,`discount` + ,`partRefundInfo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{source} + ,#{shopId} + ,#{body} + ,#{baiduShopId} + ,#{baiduShopName} + ,#{orderId} + ,#{sendImmediately} + ,#{orderIndex} + ,#{status} + ,#{expectTimeMode} + ,#{sendTime} + ,#{pickupTime} + ,#{atshopTime} + ,#{deliveryTime} + ,#{deliveryPhone} + ,#{finishedTime} + ,#{confirmTime} + ,#{cancelTime} + ,#{sendFee} + ,#{packageFee} + ,#{discountFee} + ,#{shopFee} + ,#{totalFee} + ,#{userFee} + ,#{payType} + ,#{needInvoice} + ,#{invoiceTitle} + ,#{remark} + ,#{deliveryParty} + ,#{createTime} + ,#{mealNum} + ,#{responsibleParty} + ,#{commission} + ,#{user} + ,#{shop} + ,#{products} + ,#{discount} + ,#{partRefundInfo} + ,#{createUser} + ,#{createDate} + + + + + update cy_baidu_order + + `tenantId` = #{tenantId} + ,`source` = #{source} + ,`shopId` = #{shopId} + ,`body` = #{body} + ,`baiduShopId` = #{baiduShopId} + ,`baiduShopName` = #{baiduShopName} + ,`orderId` = #{orderId} + ,`sendImmediately` = #{sendImmediately} + ,`orderIndex` = #{orderIndex} + ,`status` = #{status} + ,`expectTimeMode` = #{expectTimeMode} + ,`sendTime` = #{sendTime} + ,`pickupTime` = #{pickupTime} + ,`atshopTime` = #{atshopTime} + ,`deliveryTime` = #{deliveryTime} + ,`deliveryPhone` = #{deliveryPhone} + ,`finishedTime` = #{finishedTime} + ,`confirmTime` = #{confirmTime} + ,`cancelTime` = #{cancelTime} + ,`sendFee` = #{sendFee} + ,`packageFee` = #{packageFee} + ,`discountFee` = #{discountFee} + ,`shopFee` = #{shopFee} + ,`totalFee` = #{totalFee} + ,`userFee` = #{userFee} + ,`payType` = #{payType} + ,`needInvoice` = #{needInvoice} + ,`invoiceTitle` = #{invoiceTitle} + ,`remark` = #{remark} + ,`deliveryParty` = #{deliveryParty} + ,`createTime` = #{createTime} + ,`mealNum` = #{mealNum} + ,`responsibleParty` = #{responsibleParty} + ,`commission` = #{commission} + ,`user` = #{user} + ,`shop` = #{shop} + ,`products` = #{products} + ,`discount` = #{discount} + ,`partRefundInfo` = #{partRefundInfo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_baidu_order + where `id` = #{id} + + + + delete from cy_baidu_order + ${condition} + + + + delete from cy_baidu_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduOrderProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduOrderProductMapper.xml new file mode 100644 index 0000000..bcf7bd2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BaiduOrderProductMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`tenantId`,`orderId`,`baiduProductId`,`otherDishId`,`productId`,`upc`,`productType`,`productName`,`productAmount`,`productPrice`,`productAttr`,`baiduAttrId`,`attrId`,`option`,`productFeatures`,`productFee`,`packageFee`,`packagePrice`,`packageAmount`,`totalFee`,`productCustomIndex`,`isFixedPrice`,`group`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_baidu_order_product + + `id`,`tenantId` + ,`orderId` + ,`baiduProductId` + ,`otherDishId` + ,`productId` + ,`upc` + ,`productType` + ,`productName` + ,`productAmount` + ,`productPrice` + ,`productAttr` + ,`baiduAttrId` + ,`attrId` + ,`option` + ,`productFeatures` + ,`productFee` + ,`packageFee` + ,`packagePrice` + ,`packageAmount` + ,`totalFee` + ,`productCustomIndex` + ,`isFixedPrice` + ,`group` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{baiduProductId} + ,#{otherDishId} + ,#{productId} + ,#{upc} + ,#{productType} + ,#{productName} + ,#{productAmount} + ,#{productPrice} + ,#{productAttr} + ,#{baiduAttrId} + ,#{attrId} + ,#{option} + ,#{productFeatures} + ,#{productFee} + ,#{packageFee} + ,#{packagePrice} + ,#{packageAmount} + ,#{totalFee} + ,#{productCustomIndex} + ,#{isFixedPrice} + ,#{group} + ,#{createUser} + ,#{createDate} + + + + + update cy_baidu_order_product + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`baiduProductId` = #{baiduProductId} + ,`otherDishId` = #{otherDishId} + ,`productId` = #{productId} + ,`upc` = #{upc} + ,`productType` = #{productType} + ,`productName` = #{productName} + ,`productAmount` = #{productAmount} + ,`productPrice` = #{productPrice} + ,`productAttr` = #{productAttr} + ,`baiduAttrId` = #{baiduAttrId} + ,`attrId` = #{attrId} + ,`option` = #{option} + ,`productFeatures` = #{productFeatures} + ,`productFee` = #{productFee} + ,`packageFee` = #{packageFee} + ,`packagePrice` = #{packagePrice} + ,`packageAmount` = #{packageAmount} + ,`totalFee` = #{totalFee} + ,`productCustomIndex` = #{productCustomIndex} + ,`isFixedPrice` = #{isFixedPrice} + ,`group` = #{group} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_baidu_order_product + where `id` = #{id} + + + + delete from cy_baidu_order_product + ${condition} + + + + delete from cy_baidu_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BrandMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BrandMapper.xml new file mode 100644 index 0000000..f62f242 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BrandMapper.xml @@ -0,0 +1,148 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`deleteFlag`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_brand + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`deleteFlag` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{deleteFlag} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_brand + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_brand + where `id` = #{id} + + + + delete from cy_brand + ${condition} + + + + delete from cy_brand + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_brand + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BusinessPlanDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BusinessPlanDetailMapper.xml new file mode 100644 index 0000000..75933a0 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BusinessPlanDetailMapper.xml @@ -0,0 +1,129 @@ + + + + + + `id`,`tenantId`,`planId`,`name`,`startType`,`startTime`,`endType`,`endTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_business_plan_detail + + `id`,`tenantId` + ,`planId` + ,`name` + ,`startType` + ,`startTime` + ,`endType` + ,`endTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{name} + ,#{startType} + ,#{startTime} + ,#{endType} + ,#{endTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_business_plan_detail + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`name` = #{name} + ,`startType` = #{startType} + ,`startTime` = #{startTime} + ,`endType` = #{endType} + ,`endTime` = #{endTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_business_plan_detail + where `id` = #{id} + + + + delete from cy_business_plan_detail + ${condition} + + + + delete from cy_business_plan_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BusinessPlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BusinessPlanMapper.xml new file mode 100644 index 0000000..b7038a3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/BusinessPlanMapper.xml @@ -0,0 +1,195 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`startType`,`startTime`,`endType`,`endTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_business_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`startType` + ,`startTime` + ,`endType` + ,`endTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{startType} + ,#{startTime} + ,#{endType} + ,#{endTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_business_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`startType` = #{startType} + ,`startTime` = #{startTime} + ,`endType` = #{endType} + ,`endTime` = #{endTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_business_plan + where `id` = #{id} + + + + delete from cy_business_plan + ${condition} + + + + delete from cy_business_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + insert into cy_business_plan_store (tenantId, planId, storeId) + values + (#{tenantId}, #{planId}, #{storeId}) + + + + + delete from cy_business_plan_store + where `tenantId` = #{tenantId} and planId=#{planId} and storeId=#{storeId} + + + + + delete from cy_business_plan_store + where `tenantId` = #{tenantId} and planId=#{planId} + + + + + delete from cy_business_plan_store + where `tenantId` = #{tenantId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CandaoStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CandaoStoreMapper.xml new file mode 100644 index 0000000..9a411b1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CandaoStoreMapper.xml @@ -0,0 +1,236 @@ + + + + + + `id`,`tenantId`,`groupId`,`brandId`,`brandName`,`waimaiType`,`storeId`,`subStoreId`,`storeNo`,`storeName`,`provinceId`,`provinceName`,`cityId`,`cityName`,`districtId`,`districtName`,`townName`,`tradeArea`,`saleArea`,`address`,`latitude`,`longitude`,`announcement`,`logo`,`phoneList`,`customerPhone`,`contactEmail`,`deliverFee`,`businessTimes`,`orderType`,`avgProductTime`,`waitTime`,`appointment`,`takeSelf`,`payType`,`onLinePayType`,`isInvoice`,`eleDelivery`,`autoChangeDeliver`,`busy`,`sharedOrder`,`enabled`,`isSync`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_candao_store + + `id`,`tenantId` + ,`groupId` + ,`brandId` + ,`brandName` + ,`waimaiType` + ,`storeId` + ,`subStoreId` + ,`storeNo` + ,`storeName` + ,`provinceId` + ,`provinceName` + ,`cityId` + ,`cityName` + ,`districtId` + ,`districtName` + ,`townName` + ,`tradeArea` + ,`saleArea` + ,`address` + ,`latitude` + ,`longitude` + ,`announcement` + ,`logo` + ,`phoneList` + ,`customerPhone` + ,`contactEmail` + ,`deliverFee` + ,`businessTimes` + ,`orderType` + ,`avgProductTime` + ,`waitTime` + ,`appointment` + ,`takeSelf` + ,`payType` + ,`onLinePayType` + ,`isInvoice` + ,`eleDelivery` + ,`autoChangeDeliver` + ,`busy` + ,`sharedOrder` + ,`enabled` + ,`isSync` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{groupId} + ,#{brandId} + ,#{brandName} + ,#{waimaiType} + ,#{storeId} + ,#{subStoreId} + ,#{storeNo} + ,#{storeName} + ,#{provinceId} + ,#{provinceName} + ,#{cityId} + ,#{cityName} + ,#{districtId} + ,#{districtName} + ,#{townName} + ,#{tradeArea} + ,#{saleArea} + ,#{address} + ,#{latitude} + ,#{longitude} + ,#{announcement} + ,#{logo} + ,#{phoneList} + ,#{customerPhone} + ,#{contactEmail} + ,#{deliverFee} + ,#{businessTimes} + ,#{orderType} + ,#{avgProductTime} + ,#{waitTime} + ,#{appointment} + ,#{takeSelf} + ,#{payType} + ,#{onLinePayType} + ,#{isInvoice} + ,#{eleDelivery} + ,#{autoChangeDeliver} + ,#{busy} + ,#{sharedOrder} + ,#{enabled} + ,#{isSync} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_candao_store + + `tenantId` = #{tenantId} + ,`groupId` = #{groupId} + ,`brandId` = #{brandId} + ,`brandName` = #{brandName} + ,`waimaiType` = #{waimaiType} + ,`storeId` = #{storeId} + ,`subStoreId` = #{subStoreId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`provinceId` = #{provinceId} + ,`provinceName` = #{provinceName} + ,`cityId` = #{cityId} + ,`cityName` = #{cityName} + ,`districtId` = #{districtId} + ,`districtName` = #{districtName} + ,`townName` = #{townName} + ,`tradeArea` = #{tradeArea} + ,`saleArea` = #{saleArea} + ,`address` = #{address} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`announcement` = #{announcement} + ,`logo` = #{logo} + ,`phoneList` = #{phoneList} + ,`customerPhone` = #{customerPhone} + ,`contactEmail` = #{contactEmail} + ,`deliverFee` = #{deliverFee} + ,`businessTimes` = #{businessTimes} + ,`orderType` = #{orderType} + ,`avgProductTime` = #{avgProductTime} + ,`waitTime` = #{waitTime} + ,`appointment` = #{appointment} + ,`takeSelf` = #{takeSelf} + ,`payType` = #{payType} + ,`onLinePayType` = #{onLinePayType} + ,`isInvoice` = #{isInvoice} + ,`eleDelivery` = #{eleDelivery} + ,`autoChangeDeliver` = #{autoChangeDeliver} + ,`busy` = #{busy} + ,`sharedOrder` = #{sharedOrder} + ,`enabled` = #{enabled} + ,`isSync` = #{isSync} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_candao_store + where `id` = #{id} + + + + delete from cy_candao_store + ${condition} + + + + delete from cy_candao_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_candao_store + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CategoryMapper.xml new file mode 100644 index 0000000..5f18fc8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CategoryMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`name`,`enabled`,`sign`,`orderNo`,`parentId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_category + + `id`,`tenantId` + ,`name` + ,`enabled` + ,`sign` + ,`orderNo` + ,`parentId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{enabled} + ,#{sign} + ,#{orderNo} + ,#{parentId} + ,#{createUser} + ,#{createDate} + + + + + update cy_category + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`enabled` = #{enabled} + ,`sign` = #{sign} + ,`orderNo` = #{orderNo} + ,`parentId` = #{parentId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_category + where `id` = #{id} + + + + delete from cy_category + ${condition} + + + + delete from cy_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTemplateDetailMapper.xml new file mode 100644 index 0000000..09e902d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTemplateDetailMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_template_detail + where `id` = #{id} + + + + delete from cy_check_template_detail + ${condition} + + + + delete from cy_check_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTemplateMapper.xml new file mode 100644 index 0000000..8b9825f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_template + where `id` = #{id} + + + + delete from cy_check_template + ${condition} + + + + delete from cy_check_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketDetailMapper.xml new file mode 100644 index 0000000..fafe275 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketDetailMapper.xml @@ -0,0 +1,180 @@ + + + + + + `id`,`tenantId`,`storageId`,`storageName`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`sysAmount`,`checkAmount`,`differenceAmount`,`sysMoney`,`checkMoney`,`differenceMoney`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_ticket_detail + + `id`,`tenantId` + ,`storageId` + ,`storageName` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`sysAmount` + ,`checkAmount` + ,`differenceAmount` + ,`sysMoney` + ,`checkMoney` + ,`differenceMoney` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storageId} + ,#{storageName} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{sysAmount} + ,#{checkAmount} + ,#{differenceAmount} + ,#{sysMoney} + ,#{checkMoney} + ,#{differenceMoney} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_ticket_detail + + `tenantId` = #{tenantId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`sysAmount` = #{sysAmount} + ,`checkAmount` = #{checkAmount} + ,`differenceAmount` = #{differenceAmount} + ,`sysMoney` = #{sysMoney} + ,`checkMoney` = #{checkMoney} + ,`differenceMoney` = #{differenceMoney} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_ticket_detail + where `id` = #{id} + + + + delete from cy_check_ticket_detail + ${condition} + + + + delete from cy_check_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketLogMapper.xml new file mode 100644 index 0000000..71b4e20 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_check_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_check_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_check_ticket_log + where `id` = #{id} + + + + delete from cy_check_ticket_log + ${condition} + + + + delete from cy_check_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketMapper.xml new file mode 100644 index 0000000..290f3e9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CheckTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_ticket + where `id` = #{id} + + + + delete from cy_check_ticket + ${condition} + + + + delete from cy_check_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostFeeItemMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostFeeItemMapper.xml new file mode 100644 index 0000000..5265e9c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostFeeItemMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`typeId`,`typePath`,`no`,`name`,`type`,`enabled`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_fee_item + + `id`,`tenantId` + ,`typeId` + ,`typePath` + ,`no` + ,`name` + ,`type` + ,`enabled` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{typeId} + ,#{typePath} + ,#{no} + ,#{name} + ,#{type} + ,#{enabled} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_fee_item + + `tenantId` = #{tenantId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`enabled` = #{enabled} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_fee_item + where `id` = #{id} + + + + delete from cy_cost_fee_item + ${condition} + + + + delete from cy_cost_fee_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostFeeTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostFeeTypeMapper.xml new file mode 100644 index 0000000..98cd00b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostFeeTypeMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`parentId`,`path`,`no`,`name`,`type`,`enabled`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_fee_type + + `id`,`tenantId` + ,`parentId` + ,`path` + ,`no` + ,`name` + ,`type` + ,`enabled` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{parentId} + ,#{path} + ,#{no} + ,#{name} + ,#{type} + ,#{enabled} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_fee_type + + `tenantId` = #{tenantId} + ,`parentId` = #{parentId} + ,`path` = #{path} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`enabled` = #{enabled} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_fee_type + where `id` = #{id} + + + + delete from cy_cost_fee_type + ${condition} + + + + delete from cy_cost_fee_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketMapper.xml new file mode 100644 index 0000000..428b588 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`description`,`status`,`amount`,`discountAmount`,`receivableAmount`,`boxAmount`,`workerAmount`,`summaryDate`,`checkPeople`,`checkDate`,`ticketCount`,`peoplePrice`,`profit`,`totalCost`,`difTotalCost`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`status` + ,`amount` + ,`discountAmount` + ,`receivableAmount` + ,`boxAmount` + ,`workerAmount` + ,`summaryDate` + ,`checkPeople` + ,`checkDate` + ,`ticketCount` + ,`peoplePrice` + ,`profit` + ,`totalCost` + ,`difTotalCost` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{status} + ,#{amount} + ,#{discountAmount} + ,#{receivableAmount} + ,#{boxAmount} + ,#{workerAmount} + ,#{summaryDate} + ,#{checkPeople} + ,#{checkDate} + ,#{ticketCount} + ,#{peoplePrice} + ,#{profit} + ,#{totalCost} + ,#{difTotalCost} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`status` = #{status} + ,`amount` = #{amount} + ,`discountAmount` = #{discountAmount} + ,`receivableAmount` = #{receivableAmount} + ,`boxAmount` = #{boxAmount} + ,`workerAmount` = #{workerAmount} + ,`summaryDate` = #{summaryDate} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`ticketCount` = #{ticketCount} + ,`peoplePrice` = #{peoplePrice} + ,`profit` = #{profit} + ,`totalCost` = #{totalCost} + ,`difTotalCost` = #{difTotalCost} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket + where `id` = #{id} + + + + delete from cy_cost_ticket + ${condition} + + + + delete from cy_cost_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketPayTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketPayTypeMapper.xml new file mode 100644 index 0000000..058da2a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketPayTypeMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`payTypeNo`,`payTypeName`,`otherRateType`,`otherRateValue`,`money`,`realMoney`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_pay_type + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`payTypeNo` + ,`payTypeName` + ,`otherRateType` + ,`otherRateValue` + ,`money` + ,`realMoney` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{payTypeNo} + ,#{payTypeName} + ,#{otherRateType} + ,#{otherRateValue} + ,#{money} + ,#{realMoney} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_pay_type + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`payTypeNo` = #{payTypeNo} + ,`payTypeName` = #{payTypeName} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`money` = #{money} + ,`realMoney` = #{realMoney} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_pay_type + where `id` = #{id} + + + + delete from cy_cost_ticket_pay_type + ${condition} + + + + delete from cy_cost_ticket_pay_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductChangeMapper.xml new file mode 100644 index 0000000..119b167 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductChangeMapper.xml @@ -0,0 +1,197 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`yeterdayStock`,`todayIn`,`todayStock`,`todayLoss`,`todayUse`,`posUse`,`difUse`,`difMoney`,`cost`,`salePro`,`standard`,`difStandard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`yeterdayStock` + ,`todayIn` + ,`todayStock` + ,`todayLoss` + ,`todayUse` + ,`posUse` + ,`difUse` + ,`difMoney` + ,`cost` + ,`salePro` + ,`standard` + ,`difStandard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{yeterdayStock} + ,#{todayIn} + ,#{todayStock} + ,#{todayLoss} + ,#{todayUse} + ,#{posUse} + ,#{difUse} + ,#{difMoney} + ,#{cost} + ,#{salePro} + ,#{standard} + ,#{difStandard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`yeterdayStock` = #{yeterdayStock} + ,`todayIn` = #{todayIn} + ,`todayStock` = #{todayStock} + ,`todayLoss` = #{todayLoss} + ,`todayUse` = #{todayUse} + ,`posUse` = #{posUse} + ,`difUse` = #{difUse} + ,`difMoney` = #{difMoney} + ,`cost` = #{cost} + ,`salePro` = #{salePro} + ,`standard` = #{standard} + ,`difStandard` = #{difStandard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_change + ${condition} + + + + delete from cy_cost_ticket_product_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductFixedChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductFixedChangeMapper.xml new file mode 100644 index 0000000..076763a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductFixedChangeMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_fixed_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_fixed_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_fixed_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_fixed_change + ${condition} + + + + delete from cy_cost_ticket_product_fixed_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductMoreChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductMoreChangeMapper.xml new file mode 100644 index 0000000..927104b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductMoreChangeMapper.xml @@ -0,0 +1,197 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`yeterdayStock`,`todayIn`,`todayStock`,`todayLoss`,`todayUse`,`posUse`,`difUse`,`difMoney`,`cost`,`salePro`,`standard`,`difStandard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_more_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`yeterdayStock` + ,`todayIn` + ,`todayStock` + ,`todayLoss` + ,`todayUse` + ,`posUse` + ,`difUse` + ,`difMoney` + ,`cost` + ,`salePro` + ,`standard` + ,`difStandard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{yeterdayStock} + ,#{todayIn} + ,#{todayStock} + ,#{todayLoss} + ,#{todayUse} + ,#{posUse} + ,#{difUse} + ,#{difMoney} + ,#{cost} + ,#{salePro} + ,#{standard} + ,#{difStandard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_more_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`yeterdayStock` = #{yeterdayStock} + ,`todayIn` = #{todayIn} + ,`todayStock` = #{todayStock} + ,`todayLoss` = #{todayLoss} + ,`todayUse` = #{todayUse} + ,`posUse` = #{posUse} + ,`difUse` = #{difUse} + ,`difMoney` = #{difMoney} + ,`cost` = #{cost} + ,`salePro` = #{salePro} + ,`standard` = #{standard} + ,`difStandard` = #{difStandard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_more_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_more_change + ${condition} + + + + delete from cy_cost_ticket_product_more_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductOtherChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductOtherChangeMapper.xml new file mode 100644 index 0000000..d48c0dd --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductOtherChangeMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_other_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_other_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_other_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_other_change + ${condition} + + + + delete from cy_cost_ticket_product_other_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductTypeMapper.xml new file mode 100644 index 0000000..1e3c8a5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketProductTypeMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typeNo`,`typeName`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_type + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_type + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_type + where `id` = #{id} + + + + delete from cy_cost_ticket_product_type + ${condition} + + + + delete from cy_cost_ticket_product_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateMapper.xml new file mode 100644 index 0000000..19d4e7f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template + where `id` = #{id} + + + + delete from cy_cost_ticket_template + ${condition} + + + + delete from cy_cost_ticket_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_cost_ticket_template_store (`tenantId`,`ticketId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + DELETE FROM cy_cost_ticket_template_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductChangeMapper.xml new file mode 100644 index 0000000..1690de0 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductChangeMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`cost`,`standard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`cost` + ,`standard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{cost} + ,#{standard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`cost` = #{cost} + ,`standard` = #{standard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_change + ${condition} + + + + delete from cy_cost_ticket_template_product_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductFixedChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductFixedChangeMapper.xml new file mode 100644 index 0000000..e18124b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductFixedChangeMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_fixed_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_fixed_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_fixed_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_fixed_change + ${condition} + + + + delete from cy_cost_ticket_template_product_fixed_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductMoreChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductMoreChangeMapper.xml new file mode 100644 index 0000000..dc8137c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductMoreChangeMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`cost`,`standard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_more_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`cost` + ,`standard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{cost} + ,#{standard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_more_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`cost` = #{cost} + ,`standard` = #{standard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_more_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_more_change + ${condition} + + + + delete from cy_cost_ticket_template_product_more_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductOtherChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductOtherChangeMapper.xml new file mode 100644 index 0000000..9a8a333 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductOtherChangeMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_other_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_other_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_other_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_other_change + ${condition} + + + + delete from cy_cost_ticket_template_product_other_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponCodeDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponCodeDetailMapper.xml new file mode 100644 index 0000000..3633d3d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponCodeDetailMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`couponId`,`couponCode`,`status`,`beginDateTime`,`endDateTime`,`storeId`,`storeName`,`storeNo`,`checkTime`,`workerNo`,`posNo`,`busNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_code_detail + + `id`,`tenantId` + ,`couponId` + ,`couponCode` + ,`status` + ,`beginDateTime` + ,`endDateTime` + ,`storeId` + ,`storeName` + ,`storeNo` + ,`checkTime` + ,`workerNo` + ,`posNo` + ,`busNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{couponId} + ,#{couponCode} + ,#{status} + ,#{beginDateTime} + ,#{endDateTime} + ,#{storeId} + ,#{storeName} + ,#{storeNo} + ,#{checkTime} + ,#{workerNo} + ,#{posNo} + ,#{busNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_code_detail + + `tenantId` = #{tenantId} + ,`couponId` = #{couponId} + ,`couponCode` = #{couponCode} + ,`status` = #{status} + ,`beginDateTime` = #{beginDateTime} + ,`endDateTime` = #{endDateTime} + ,`storeId` = #{storeId} + ,`storeName` = #{storeName} + ,`storeNo` = #{storeNo} + ,`checkTime` = #{checkTime} + ,`workerNo` = #{workerNo} + ,`posNo` = #{posNo} + ,`busNo` = #{busNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_code_detail + where `id` = #{id} + + + + delete from cy_coupon_code_detail + ${condition} + + + + delete from cy_coupon_code_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponMapper.xml new file mode 100644 index 0000000..ea792ca --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`tenantId`,`name`,`startDate`,`endDate`,`startTime`,`endTime`,`weekDays`,`validMonth`,`description`,`type`,`rule`,`allStore`,`allBrand`,`allCategory`,`allGoods`,`status`,`voucherFlag`,`putNum`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon + + `id`,`tenantId` + ,`name` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`weekDays` + ,`validMonth` + ,`description` + ,`type` + ,`rule` + ,`allStore` + ,`allBrand` + ,`allCategory` + ,`allGoods` + ,`status` + ,`voucherFlag` + ,`putNum` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{weekDays} + ,#{validMonth} + ,#{description} + ,#{type} + ,#{rule} + ,#{allStore} + ,#{allBrand} + ,#{allCategory} + ,#{allGoods} + ,#{status} + ,#{voucherFlag} + ,#{putNum} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`weekDays` = #{weekDays} + ,`validMonth` = #{validMonth} + ,`description` = #{description} + ,`type` = #{type} + ,`rule` = #{rule} + ,`allStore` = #{allStore} + ,`allBrand` = #{allBrand} + ,`allCategory` = #{allCategory} + ,`allGoods` = #{allGoods} + ,`status` = #{status} + ,`voucherFlag` = #{voucherFlag} + ,`putNum` = #{putNum} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon + where `id` = #{id} + + + + delete from cy_coupon + ${condition} + + + + delete from cy_coupon + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponStoreMapper.xml new file mode 100644 index 0000000..6302ac5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponStoreMapper.xml @@ -0,0 +1,120 @@ + + + + + + `id`,`tenantId`,`couponId`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_store + + `id`,`tenantId` + ,`couponId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{couponId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_store + + `tenantId` = #{tenantId} + ,`couponId` = #{couponId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_store + where `id` = #{id} + + + + delete from cy_coupon_store + ${condition} + + + + delete from cy_coupon_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketMapper.xml new file mode 100644 index 0000000..a7b9dc4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`startDate`,`endDate`,`startTime`,`endTime`,`weekDays`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_ticket + + `id`,`tenantId` + ,`no` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`weekDays` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{weekDays} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`weekDays` = #{weekDays} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_ticket + where `id` = #{id} + + + + delete from cy_coupon_ticket + ${condition} + + + + delete from cy_coupon_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketProductMapper.xml new file mode 100644 index 0000000..8882bdd --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketProductMapper.xml @@ -0,0 +1,136 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`specId`,`couponPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_ticket_product + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`specId` + ,`couponPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{specId} + ,#{couponPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_ticket_product + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`couponPrice` = #{couponPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_ticket_product + where `id` = #{id} + + + + delete from cy_coupon_ticket_product + ${condition} + + + + delete from cy_coupon_ticket_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketStoreMapper.xml new file mode 100644 index 0000000..2d26b9a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/CouponTicketStoreMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_ticket_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_ticket_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_ticket_store + where `id` = #{id} + + + + delete from cy_coupon_ticket_store + ${condition} + + + + delete from cy_coupon_ticket_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DeliverMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DeliverMapper.xml new file mode 100644 index 0000000..5a33a55 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DeliverMapper.xml @@ -0,0 +1,129 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`isJob`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_deliver + + `id`,`tenantId` + ,`no` + ,`name` + ,`isJob` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{isJob} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_deliver + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`isJob` = #{isJob} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_deliver + where `id` = #{id} + + + + delete from cy_deliver + ${condition} + + + + delete from cy_deliver + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + INSERT INTO cy_deliver_store (`tenantId`,`deliverId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + DELETE FROM cy_deliver_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DfsFileMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DfsFileMapper.xml new file mode 100644 index 0000000..5300ca8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DfsFileMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`name`,`mimeType`,`suffix`,`length`,`isImage`,`width`,`height`,`type`,`groupName`,`fileName`,`useCount`,`deleteCount`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_dfs_file + + `id`,`tenantId` + ,`name` + ,`mimeType` + ,`suffix` + ,`length` + ,`isImage` + ,`width` + ,`height` + ,`type` + ,`groupName` + ,`fileName` + ,`useCount` + ,`deleteCount` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{mimeType} + ,#{suffix} + ,#{length} + ,#{isImage} + ,#{width} + ,#{height} + ,#{type} + ,#{groupName} + ,#{fileName} + ,#{useCount} + ,#{deleteCount} + ,#{createUser} + ,#{createDate} + + + + + update shared_dfs_file + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`mimeType` = #{mimeType} + ,`suffix` = #{suffix} + ,`length` = #{length} + ,`isImage` = #{isImage} + ,`width` = #{width} + ,`height` = #{height} + ,`type` = #{type} + ,`groupName` = #{groupName} + ,`fileName` = #{fileName} + ,`useCount` = #{useCount} + ,`deleteCount` = #{deleteCount} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_dfs_file + where `id` = #{id} + + + + delete from shared_dfs_file + ${condition} + + + + delete from shared_dfs_file + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + update shared_dfs_file set `useCount` = `useCount` + 1 ,`modifyUser` = + #{modifyUser} ,`modifyDate` = now() where `tenantId` = #{tenantId} and + `groupName` = #{groupName} and `fileName` = #{fileName} + + + + + update shared_dfs_file set `deleteCount` = `deleteCount` + 1 ,`modifyUser` = + #{modifyUser} ,`modifyDate` = now() where `tenantId` = #{tenantId} and + `groupName` = #{groupName} and `fileName` = #{fileName} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanMapper.xml new file mode 100644 index 0000000..e69a440 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanMapper.xml @@ -0,0 +1,151 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`balanceMode`,`creditType`,`advanceType`,`advanceValue`,`wxdcFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_settle_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`balanceMode` + ,`creditType` + ,`advanceType` + ,`advanceValue` + ,`wxdcFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{balanceMode} + ,#{creditType} + ,#{advanceType} + ,#{advanceValue} + ,#{wxdcFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_dispatch_settle_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`balanceMode` = #{balanceMode} + ,`creditType` = #{creditType} + ,`advanceType` = #{advanceType} + ,`advanceValue` = #{advanceValue} + ,`wxdcFlag` = #{wxdcFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan + ${condition} + + + + delete from cy_dispatch_settle_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + insert into cy_dispatch_settle_plan_store (`tenantId`,`storeId`,`planId`) values (#{tenantId},#{storeId},#{id}) + + + + + + delete from cy_dispatch_settle_plan_store + where `planId` = #{id} + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanPayModeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanPayModeMapper.xml new file mode 100644 index 0000000..645d88b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanPayModeMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`planId`,`no`,`name`,`incomeFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_settle_plan_pay_mode + + `id`,`tenantId` + ,`planId` + ,`no` + ,`name` + ,`incomeFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{no} + ,#{name} + ,#{incomeFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_settle_plan_pay_mode + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`no` = #{no} + ,`name` = #{name} + ,`incomeFlag` = #{incomeFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan_pay_mode + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan_pay_mode + ${condition} + + + + delete from cy_dispatch_settle_plan_pay_mode + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_dispatch_settle_plan_pay_mode + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketDetailMapper.xml new file mode 100644 index 0000000..6e26ef7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketDetailMapper.xml @@ -0,0 +1,216 @@ + + + + + + `id`,`tenantId`,`dispatchId`,`dispatchNo`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`askgoodsAmount`,`dispatchAmount`,`dispatchUnitId`,`dispatchUnitName`,`price`,`money`,`description`,`packUnitId`,`packUnitName`,`dpScale`,`receiveAmount`,`differenceAmount`,`differenceMoney`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_ticket_detail + + `id`,`tenantId` + ,`dispatchId` + ,`dispatchNo` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`askgoodsAmount` + ,`dispatchAmount` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`price` + ,`money` + ,`description` + ,`packUnitId` + ,`packUnitName` + ,`dpScale` + ,`receiveAmount` + ,`differenceAmount` + ,`differenceMoney` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{dispatchId} + ,#{dispatchNo} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{askgoodsAmount} + ,#{dispatchAmount} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{price} + ,#{money} + ,#{description} + ,#{packUnitId} + ,#{packUnitName} + ,#{dpScale} + ,#{receiveAmount} + ,#{differenceAmount} + ,#{differenceMoney} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_ticket_detail + + `tenantId` = #{tenantId} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`askgoodsAmount` = #{askgoodsAmount} + ,`dispatchAmount` = #{dispatchAmount} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`dpScale` = #{dpScale} + ,`receiveAmount` = #{receiveAmount} + ,`differenceAmount` = #{differenceAmount} + ,`differenceMoney` = #{differenceMoney} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_ticket_detail + where `id` = #{id} + + + + delete from cy_dispatch_ticket_detail + ${condition} + + + + delete from cy_dispatch_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketLogMapper.xml new file mode 100644 index 0000000..77c584e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`dispatchId`,`dispatchNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_ticket_log + + `id`,`tenantId` + ,`dispatchId` + ,`dispatchNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{dispatchId} + ,#{dispatchNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_ticket_log + + `tenantId` = #{tenantId} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_ticket_log + where `id` = #{id} + + + + delete from cy_dispatch_ticket_log + ${condition} + + + + delete from cy_dispatch_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketMapper.xml new file mode 100644 index 0000000..02d0bff --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchTicketMapper.xml @@ -0,0 +1,199 @@ + + + + + + `id`,`tenantId`,`askgoodsId`,`askgoodsNo`,`storeId`,`no`,`status`,`isUse`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`deliveryDate`,`arrivalDate`,`address`,`linkMan`,`linkTelephone`,`logisticsNo`,`logisticsName`,`logisticsFee`,`orderMoney`,`otherFee`,`money`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_ticket + + `id`,`tenantId` + ,`askgoodsId` + ,`askgoodsNo` + ,`storeId` + ,`no` + ,`status` + ,`isUse` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`deliveryDate` + ,`arrivalDate` + ,`address` + ,`linkMan` + ,`linkTelephone` + ,`logisticsNo` + ,`logisticsName` + ,`logisticsFee` + ,`orderMoney` + ,`otherFee` + ,`money` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{askgoodsId} + ,#{askgoodsNo} + ,#{storeId} + ,#{no} + ,#{status} + ,#{isUse} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{deliveryDate} + ,#{arrivalDate} + ,#{address} + ,#{linkMan} + ,#{linkTelephone} + ,#{logisticsNo} + ,#{logisticsName} + ,#{logisticsFee} + ,#{orderMoney} + ,#{otherFee} + ,#{money} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_ticket + + `tenantId` = #{tenantId} + ,`askgoodsId` = #{askgoodsId} + ,`askgoodsNo` = #{askgoodsNo} + ,`storeId` = #{storeId} + ,`no` = #{no} + ,`status` = #{status} + ,`isUse` = #{isUse} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`deliveryDate` = #{deliveryDate} + ,`arrivalDate` = #{arrivalDate} + ,`address` = #{address} + ,`linkMan` = #{linkMan} + ,`linkTelephone` = #{linkTelephone} + ,`logisticsNo` = #{logisticsNo} + ,`logisticsName` = #{logisticsName} + ,`logisticsFee` = #{logisticsFee} + ,`orderMoney` = #{orderMoney} + ,`otherFee` = #{otherFee} + ,`money` = #{money} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_ticket + where `id` = #{id} + + + + delete from cy_dispatch_ticket + ${condition} + + + + delete from cy_dispatch_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMapper.xml new file mode 100644 index 0000000..54948ab --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`makeUser`,`makeDate`,`checkUser`,`checkDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatchprice_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`makeUser` + ,`makeDate` + ,`checkUser` + ,`checkDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{makeUser} + ,#{makeDate} + ,#{checkUser} + ,#{checkDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatchprice_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`makeUser` = #{makeUser} + ,`makeDate` = #{makeDate} + ,`checkUser` = #{checkUser} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket + ${condition} + + + + delete from cy_dispatchprice_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMaterialMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMaterialMapper.xml new file mode 100644 index 0000000..63e67fa --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMaterialMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`hdispatchPrice`,`dispatchPrice`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatchprice_ticket_material + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`hdispatchPrice` + ,`dispatchPrice` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{hdispatchPrice} + ,#{dispatchPrice} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatchprice_ticket_material + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`hdispatchPrice` = #{hdispatchPrice} + ,`dispatchPrice` = #{dispatchPrice} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_material + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_material + ${condition} + + + + delete from cy_dispatchprice_ticket_material + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketStoreMapper.xml new file mode 100644 index 0000000..d5c1814 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketStoreMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storeId`,`storeNo`,`storeName`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatchprice_ticket_store + + `id`,`tenantId` + ,`ticketId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatchprice_ticket_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_store + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_store + ${condition} + + + + delete from cy_dispatchprice_ticket_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeCategoryFoodMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeCategoryFoodMapper.xml new file mode 100644 index 0000000..c3e9531 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeCategoryFoodMapper.xml @@ -0,0 +1,169 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryId`,`foodId`,`foodName`,`description`,`isValid`,`specId`,`specName`,`price`,`packingFee`,`isBind`,`erpProductId`,`erpProduct`,`erpSpecId`,`erpSpec`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_category_food + + `id`,`tenantId` + ,`storeId` + ,`categoryId` + ,`foodId` + ,`foodName` + ,`description` + ,`isValid` + ,`specId` + ,`specName` + ,`price` + ,`packingFee` + ,`isBind` + ,`erpProductId` + ,`erpProduct` + ,`erpSpecId` + ,`erpSpec` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryId} + ,#{foodId} + ,#{foodName} + ,#{description} + ,#{isValid} + ,#{specId} + ,#{specName} + ,#{price} + ,#{packingFee} + ,#{isBind} + ,#{erpProductId} + ,#{erpProduct} + ,#{erpSpecId} + ,#{erpSpec} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_category_food + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryId` = #{categoryId} + ,`foodId` = #{foodId} + ,`foodName` = #{foodName} + ,`description` = #{description} + ,`isValid` = #{isValid} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`price` = #{price} + ,`packingFee` = #{packingFee} + ,`isBind` = #{isBind} + + ,`erpProductId` = #{erpProductId} + ,`erpProductId` = NULL + + + ,`erpProduct` = #{erpProduct} + ,`erpProduct` = NULL + + + ,`erpSpecId` = #{erpSpecId} + ,`erpSpecId` = NULL + + + ,`erpSpec` = #{erpSpec} + ,`erpSpec` = NULL + + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_category_food + where `id` = #{id} + + + + delete from cy_eleme_category_food + ${condition} + + + + delete from cy_eleme_category_food + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeFoodCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeFoodCategoryMapper.xml new file mode 100644 index 0000000..c5d46d3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeFoodCategoryMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryId`,`name`,`isValid`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_food_category + + `id`,`tenantId` + ,`storeId` + ,`categoryId` + ,`name` + ,`isValid` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryId} + ,#{name} + ,#{isValid} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_food_category + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryId` = #{categoryId} + ,`name` = #{name} + ,`isValid` = #{isValid} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_food_category + where `id` = #{id} + + + + delete from cy_eleme_food_category + ${condition} + + + + delete from cy_eleme_food_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailGroupMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailGroupMapper.xml new file mode 100644 index 0000000..80d1244 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailGroupMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`orderId`,`groupName`,`groupType`,`specId`,`skuId`,`categoryId`,`name`,`price`,`quantity`,`total`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_order_detail_group + + `id`,`tenantId` + ,`orderId` + ,`groupName` + ,`groupType` + ,`specId` + ,`skuId` + ,`categoryId` + ,`name` + ,`price` + ,`quantity` + ,`total` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{groupName} + ,#{groupType} + ,#{specId} + ,#{skuId} + ,#{categoryId} + ,#{name} + ,#{price} + ,#{quantity} + ,#{total} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_order_detail_group + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`groupName` = #{groupName} + ,`groupType` = #{groupType} + ,`specId` = #{specId} + ,`skuId` = #{skuId} + ,`categoryId` = #{categoryId} + ,`name` = #{name} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`total` = #{total} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_order_detail_group + where `id` = #{id} + + + + delete from cy_eleme_order_detail_group + ${condition} + + + + delete from cy_eleme_order_detail_group + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailMapper.xml new file mode 100644 index 0000000..73dc70f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailMapper.xml @@ -0,0 +1,214 @@ + + + + + + `id`,`tenantId`,`message`,`storeId`,`orderId`,`address`,`createdAt`,`activeAt`,`deliverFee`,`deliverTime`,`description`,`invoice`,`isBook`,`isOnlinePaid`,`phoneList`,`shopId`,`shopName`,`daySn`,`status`,`refundStatus`,`userId`,`totalPrice`,`originalPrice`,`consignee`,`deliveryGeo`,`deliveryPoiAddress`,`invoiced`,`income`,`serviceRate`,`serviceFee`,`hongbao`,`packageFee`,`activityTotal`,`shopPart`,`elemePart`,`downgraded`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_order_detail + + `id`,`tenantId` + ,`message` + ,`storeId` + ,`orderId` + ,`address` + ,`createdAt` + ,`activeAt` + ,`deliverFee` + ,`deliverTime` + ,`description` + ,`invoice` + ,`isBook` + ,`isOnlinePaid` + ,`phoneList` + ,`shopId` + ,`shopName` + ,`daySn` + ,`status` + ,`refundStatus` + ,`userId` + ,`totalPrice` + ,`originalPrice` + ,`consignee` + ,`deliveryGeo` + ,`deliveryPoiAddress` + ,`invoiced` + ,`income` + ,`serviceRate` + ,`serviceFee` + ,`hongbao` + ,`packageFee` + ,`activityTotal` + ,`shopPart` + ,`elemePart` + ,`downgraded` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{storeId} + ,#{orderId} + ,#{address} + ,#{createdAt} + ,#{activeAt} + ,#{deliverFee} + ,#{deliverTime} + ,#{description} + ,#{invoice} + ,#{isBook} + ,#{isOnlinePaid} + ,#{phoneList} + ,#{shopId} + ,#{shopName} + ,#{daySn} + ,#{status} + ,#{refundStatus} + ,#{userId} + ,#{totalPrice} + ,#{originalPrice} + ,#{consignee} + ,#{deliveryGeo} + ,#{deliveryPoiAddress} + ,#{invoiced} + ,#{income} + ,#{serviceRate} + ,#{serviceFee} + ,#{hongbao} + ,#{packageFee} + ,#{activityTotal} + ,#{shopPart} + ,#{elemePart} + ,#{downgraded} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_order_detail + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`storeId` = #{storeId} + ,`orderId` = #{orderId} + ,`address` = #{address} + ,`createdAt` = #{createdAt} + ,`activeAt` = #{activeAt} + ,`deliverFee` = #{deliverFee} + ,`deliverTime` = #{deliverTime} + ,`description` = #{description} + ,`invoice` = #{invoice} + ,`isBook` = #{isBook} + ,`isOnlinePaid` = #{isOnlinePaid} + ,`phoneList` = #{phoneList} + ,`shopId` = #{shopId} + ,`shopName` = #{shopName} + ,`daySn` = #{daySn} + ,`status` = #{status} + ,`refundStatus` = #{refundStatus} + ,`userId` = #{userId} + ,`totalPrice` = #{totalPrice} + ,`originalPrice` = #{originalPrice} + ,`consignee` = #{consignee} + ,`deliveryGeo` = #{deliveryGeo} + ,`deliveryPoiAddress` = #{deliveryPoiAddress} + ,`invoiced` = #{invoiced} + ,`income` = #{income} + ,`serviceRate` = #{serviceRate} + ,`serviceFee` = #{serviceFee} + ,`hongbao` = #{hongbao} + ,`packageFee` = #{packageFee} + ,`activityTotal` = #{activityTotal} + ,`shopPart` = #{shopPart} + ,`elemePart` = #{elemePart} + ,`downgraded` = #{downgraded} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_order_detail + where `id` = #{id} + + + + delete from cy_eleme_order_detail + ${condition} + + + + delete from cy_eleme_order_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ErpPosSetMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ErpPosSetMapper.xml new file mode 100644 index 0000000..ce04296 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ErpPosSetMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`storeId`,`posNo`,`pbody`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_erp_pos_set + + `id`,`tenantId` + ,`storeId` + ,`posNo` + ,`pbody` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{posNo} + ,#{pbody} + ,#{createDate} + ,#{createUser} + + + + + update cy_erp_pos_set + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`posNo` = #{posNo} + ,`pbody` = #{pbody} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_erp_pos_set + where `id` = #{id} + + + + delete from cy_erp_pos_set + ${condition} + + + + delete from cy_erp_pos_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/FeeItemMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/FeeItemMapper.xml new file mode 100644 index 0000000..796ed8c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/FeeItemMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`name`,`type`,`enabled`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_fee_item + + `id`,`tenantId` + ,`name` + ,`type` + ,`enabled` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{type} + ,#{enabled} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_fee_item + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`type` = #{type} + ,`enabled` = #{enabled} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_fee_item + where `id` = #{id} + + + + delete from cy_fee_item + ${condition} + + + + delete from cy_fee_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/KdsPlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/KdsPlanMapper.xml new file mode 100644 index 0000000..09cc1a6 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/KdsPlanMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_kds_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_kds_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_kds_plan + where `id` = #{id} + + + + delete from cy_kds_plan + ${condition} + + + + delete from cy_kds_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + insert into cy_kds_plan_store (`tenantId`,`planId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + DELETE FROM cy_kds_plan_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/KitPlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/KitPlanMapper.xml new file mode 100644 index 0000000..7a7db76 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/KitPlanMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`type`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_kit_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`type` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{type} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + + insert into cy_kit_plan_store (`tenantId`,`planId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + update cy_kit_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_kit_plan + where `id` = #{id} + + + + delete from cy_kit_plan + ${condition} + + + + delete from cy_kit_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + DELETE FROM cy_kit_plan_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeBurdenMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeBurdenMapper.xml new file mode 100644 index 0000000..e572a4e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeBurdenMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`makeId`,`burdenProductId`,`burdenSpecId`,`salesUnitId`,`salesAmount`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_make_burden + + `id`,`tenantId` + ,`makeId` + ,`burdenProductId` + ,`burdenSpecId` + ,`salesUnitId` + ,`salesAmount` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{makeId} + ,#{burdenProductId} + ,#{burdenSpecId} + ,#{salesUnitId} + ,#{salesAmount} + ,#{createDate} + ,#{createUser} + + + + + update cy_make_burden + + `tenantId` = #{tenantId} + ,`makeId` = #{makeId} + ,`burdenProductId` = #{burdenProductId} + ,`burdenSpecId` = #{burdenSpecId} + ,`salesUnitId` = #{salesUnitId} + ,`salesAmount` = #{salesAmount} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_make_burden + where `id` = #{id} + + + + delete from cy_make_burden + ${condition} + + + + delete from cy_make_burden + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeDetailMapper.xml new file mode 100644 index 0000000..e73987e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeDetailMapper.xml @@ -0,0 +1,198 @@ + + + + + + `id`,`tenantId`,`no`,`typeId`,`description`,`spell`,`addPrice`,`qtyFlag`,`orderNo`,`color`,`prvFlag`,`deleteFlag`,`noType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_make_detail + + `id`,`tenantId` + ,`no` + ,`typeId` + ,`description` + ,`spell` + ,`addPrice` + ,`qtyFlag` + ,`orderNo` + ,`color` + ,`prvFlag` + ,`deleteFlag` + ,`noType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{typeId} + ,#{description} + ,#{spell} + ,#{addPrice} + ,#{qtyFlag} + ,#{orderNo} + ,#{color} + ,#{prvFlag} + ,#{deleteFlag} + ,#{noType} + ,#{createDate} + ,#{createUser} + + + + + update cy_make_detail + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`typeId` = #{typeId} + ,`description` = #{description} + ,`spell` = #{spell} + ,`addPrice` = #{addPrice} + ,`qtyFlag` = #{qtyFlag} + ,`orderNo` = #{orderNo} + ,`color` = #{color} + ,`prvFlag` = #{prvFlag} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_make_detail + where `id` = #{id} + + + + delete from cy_make_detail + ${condition} + + + + delete from cy_make_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_make_detail + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + delete from cy_product_make + ${condition} + + + + insert into cy_product_make (`tenantId`,`productId`,`makeId`) + values (#{tenantId}, #{productId}, #{makeId}) + + + + delete from cy_product_make_store + ${condition} + + + + insert into cy_product_make_store (`tenantId`,`storeId`,`makeId`,`addPrice`) + values (#{tenantId}, #{storeId}, #{makeId}, #{addPrice}) + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeTypeMapper.xml new file mode 100644 index 0000000..eb2d320 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MakeTypeMapper.xml @@ -0,0 +1,141 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`isRadio`,`type`,`seqNo`,`color`,`deleteFlag`,`noType`,`isMust`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_make_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`isRadio` + ,`type` + ,`seqNo` + ,`color` + ,`deleteFlag` + ,`noType` + ,`isMust` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{isRadio} + ,#{type} + ,#{seqNo} + ,#{color} + ,#{deleteFlag} + ,#{noType} + ,#{isMust} + ,#{createDate} + ,#{createUser} + + + + + update cy_make_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`isRadio` = #{isRadio} + ,`type` = #{type} + ,`seqNo` = #{seqNo} + ,`color` = #{color} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`isMust` = #{isMust} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_make_type + where `id` = #{id} + + + + delete from cy_make_type + ${condition} + + + + delete from cy_make_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_make_type + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanFoodCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanFoodCategoryMapper.xml new file mode 100644 index 0000000..d4d9e6d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanFoodCategoryMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`storeId`,`name`,`sequence`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_food_category + + `id`,`tenantId` + ,`storeId` + ,`name` + ,`sequence` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{name} + ,#{sequence} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_food_category + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`name` = #{name} + ,`sequence` = #{sequence} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_food_category + where `id` = #{id} + + + + delete from cy_meituan_food_category + ${condition} + + + + delete from cy_meituan_food_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanFoodMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanFoodMapper.xml new file mode 100644 index 0000000..2a164a7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanFoodMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryName`,`dishId`,`dishName`,`dishSkuId`,`spec`,`description`,`price`,`boxNum`,`boxPrice`,`isBind`,`erpProductId`,`erpProduct`,`erpSpecId`,`erpSpec`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_food + + `id`,`tenantId` + ,`storeId` + ,`categoryName` + ,`dishId` + ,`dishName` + ,`dishSkuId` + ,`spec` + ,`description` + ,`price` + ,`boxNum` + ,`boxPrice` + ,`isBind` + ,`erpProductId` + ,`erpProduct` + ,`erpSpecId` + ,`erpSpec` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryName} + ,#{dishId} + ,#{dishName} + ,#{dishSkuId} + ,#{spec} + ,#{description} + ,#{price} + ,#{boxNum} + ,#{boxPrice} + ,#{isBind} + ,#{erpProductId} + ,#{erpProduct} + ,#{erpSpecId} + ,#{erpSpec} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_food + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryName` = #{categoryName} + ,`dishId` = #{dishId} + ,`dishName` = #{dishName} + ,`dishSkuId` = #{dishSkuId} + ,`spec` = #{spec} + ,`description` = #{description} + ,`price` = #{price} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`isBind` = #{isBind} + + ,`erpProductId` = #{erpProductId} + ,`erpProductId` = NULL + + + ,`erpProduct` = #{erpProduct} + ,`erpProduct` = NULL + + + ,`erpSpecId` = #{erpSpecId} + ,`erpSpecId` = NULL + + + ,`erpSpec` = #{erpSpec} + ,`erpSpec` = NULL + + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_food + where `id` = #{id} + + + + delete from cy_meituan_food + ${condition} + + + + delete from cy_meituan_food + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderExtraMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderExtraMapper.xml new file mode 100644 index 0000000..96712a5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderExtraMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`orderId`,`mtCharge`,`poiCharge`,`reduceFee`,`remark`,`type`,`actDetailId`,`avgSendTime`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_order_extra + + `id`,`tenantId` + ,`orderId` + ,`mtCharge` + ,`poiCharge` + ,`reduceFee` + ,`remark` + ,`type` + ,`actDetailId` + ,`avgSendTime` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{mtCharge} + ,#{poiCharge} + ,#{reduceFee} + ,#{remark} + ,#{type} + ,#{actDetailId} + ,#{avgSendTime} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_order_extra + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`mtCharge` = #{mtCharge} + ,`poiCharge` = #{poiCharge} + ,`reduceFee` = #{reduceFee} + ,`remark` = #{remark} + ,`type` = #{type} + ,`actDetailId` = #{actDetailId} + ,`avgSendTime` = #{avgSendTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_order_extra + where `id` = #{id} + + + + delete from cy_meituan_order_extra + ${condition} + + + + delete from cy_meituan_order_extra + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderItemMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderItemMapper.xml new file mode 100644 index 0000000..525ec08 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderItemMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`orderId`,`eDishCode`,`boxNum`,`boxPrice`,`dishName`,`price`,`skuId`,`quantity`,`unit`,`discount`,`spec`,`property`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_order_item + + `id`,`tenantId` + ,`orderId` + ,`eDishCode` + ,`boxNum` + ,`boxPrice` + ,`dishName` + ,`price` + ,`skuId` + ,`quantity` + ,`unit` + ,`discount` + ,`spec` + ,`property` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{eDishCode} + ,#{boxNum} + ,#{boxPrice} + ,#{dishName} + ,#{price} + ,#{skuId} + ,#{quantity} + ,#{unit} + ,#{discount} + ,#{spec} + ,#{property} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_order_item + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`eDishCode` = #{eDishCode} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`dishName` = #{dishName} + ,`price` = #{price} + ,`skuId` = #{skuId} + ,`quantity` = #{quantity} + ,`unit` = #{unit} + ,`discount` = #{discount} + ,`spec` = #{spec} + ,`property` = #{property} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_order_item + where `id` = #{id} + + + + delete from cy_meituan_order_item + ${condition} + + + + delete from cy_meituan_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderMapper.xml new file mode 100644 index 0000000..77bb212 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/MeituanOrderMapper.xml @@ -0,0 +1,266 @@ + + + + + + `id`,`tenantId`,`message`,`storeId`,`orderId`,`cTime`,`caution`,`deliveryTime`,`detail`,`cityId`,`extras`,`hasInvoiced`,`invoiceTitle`,`isPre`,`isThirdShipping`,`latitude`,`longitude`,`poiReceiveDetail`,`logisticsCode`,`logisticsCompletedTime`,`logisticsConfirmTime`,`logisticsDispatcherMobile`,`logisticsDispatcherName`,`logisticsFetchTime`,`logisticsId`,`logisticsName`,`logisticsSendTime`,`logisticsStatus`,`orderCompletedTime`,`orderConfirmTime`,`orderCancelTime`,`orderIdView`,`orderSendTime`,`originalPrice`,`payType`,`pickType`,`poiAddress`,`poiId`,`poiName`,`poiPhone`,`recipientAddress`,`recipientName`,`recipientPhone`,`shipperPhone`,`shippingFee`,`status`,`total`,`uTime`,`daySeq`,`dinnersNumber`,`cancelReason`,`cancelReasonCode`,`refundReason`,`foodShareFeeChargeByPoi`,`wmPoiReceiveCent`,`refundReasonCode`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_order + + `id`,`tenantId` + ,`message` + ,`storeId` + ,`orderId` + ,`cTime` + ,`caution` + ,`deliveryTime` + ,`detail` + ,`cityId` + ,`extras` + ,`hasInvoiced` + ,`invoiceTitle` + ,`isPre` + ,`isThirdShipping` + ,`latitude` + ,`longitude` + ,`poiReceiveDetail` + ,`logisticsCode` + ,`logisticsCompletedTime` + ,`logisticsConfirmTime` + ,`logisticsDispatcherMobile` + ,`logisticsDispatcherName` + ,`logisticsFetchTime` + ,`logisticsId` + ,`logisticsName` + ,`logisticsSendTime` + ,`logisticsStatus` + ,`orderCompletedTime` + ,`orderConfirmTime` + ,`orderCancelTime` + ,`orderIdView` + ,`orderSendTime` + ,`originalPrice` + ,`payType` + ,`pickType` + ,`poiAddress` + ,`poiId` + ,`poiName` + ,`poiPhone` + ,`recipientAddress` + ,`recipientName` + ,`recipientPhone` + ,`shipperPhone` + ,`shippingFee` + ,`status` + ,`total` + ,`uTime` + ,`daySeq` + ,`dinnersNumber` + ,`cancelReason` + ,`cancelReasonCode` + ,`refundReason` + ,`foodShareFeeChargeByPoi` + ,`wmPoiReceiveCent` + ,`refundReasonCode` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{storeId} + ,#{orderId} + ,#{cTime} + ,#{caution} + ,#{deliveryTime} + ,#{detail} + ,#{cityId} + ,#{extras} + ,#{hasInvoiced} + ,#{invoiceTitle} + ,#{isPre} + ,#{isThirdShipping} + ,#{latitude} + ,#{longitude} + ,#{poiReceiveDetail} + ,#{logisticsCode} + ,#{logisticsCompletedTime} + ,#{logisticsConfirmTime} + ,#{logisticsDispatcherMobile} + ,#{logisticsDispatcherName} + ,#{logisticsFetchTime} + ,#{logisticsId} + ,#{logisticsName} + ,#{logisticsSendTime} + ,#{logisticsStatus} + ,#{orderCompletedTime} + ,#{orderConfirmTime} + ,#{orderCancelTime} + ,#{orderIdView} + ,#{orderSendTime} + ,#{originalPrice} + ,#{payType} + ,#{pickType} + ,#{poiAddress} + ,#{poiId} + ,#{poiName} + ,#{poiPhone} + ,#{recipientAddress} + ,#{recipientName} + ,#{recipientPhone} + ,#{shipperPhone} + ,#{shippingFee} + ,#{status} + ,#{total} + ,#{uTime} + ,#{daySeq} + ,#{dinnersNumber} + ,#{cancelReason} + ,#{cancelReasonCode} + ,#{refundReason} + ,#{foodShareFeeChargeByPoi} + ,#{wmPoiReceiveCent} + ,#{refundReasonCode} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_order + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`storeId` = #{storeId} + ,`orderId` = #{orderId} + ,`cTime` = #{cTime} + ,`caution` = #{caution} + ,`deliveryTime` = #{deliveryTime} + ,`detail` = #{detail} + ,`cityId` = #{cityId} + ,`extras` = #{extras} + ,`hasInvoiced` = #{hasInvoiced} + ,`invoiceTitle` = #{invoiceTitle} + ,`isPre` = #{isPre} + ,`isThirdShipping` = #{isThirdShipping} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`poiReceiveDetail` = #{poiReceiveDetail} + ,`logisticsCode` = #{logisticsCode} + ,`logisticsCompletedTime` = #{logisticsCompletedTime} + ,`logisticsConfirmTime` = #{logisticsConfirmTime} + ,`logisticsDispatcherMobile` = #{logisticsDispatcherMobile} + ,`logisticsDispatcherName` = #{logisticsDispatcherName} + ,`logisticsFetchTime` = #{logisticsFetchTime} + ,`logisticsId` = #{logisticsId} + ,`logisticsName` = #{logisticsName} + ,`logisticsSendTime` = #{logisticsSendTime} + ,`logisticsStatus` = #{logisticsStatus} + ,`orderCompletedTime` = #{orderCompletedTime} + ,`orderConfirmTime` = #{orderConfirmTime} + ,`orderCancelTime` = #{orderCancelTime} + ,`orderIdView` = #{orderIdView} + ,`orderSendTime` = #{orderSendTime} + ,`originalPrice` = #{originalPrice} + ,`payType` = #{payType} + ,`pickType` = #{pickType} + ,`poiAddress` = #{poiAddress} + ,`poiId` = #{poiId} + ,`poiName` = #{poiName} + ,`poiPhone` = #{poiPhone} + ,`recipientAddress` = #{recipientAddress} + ,`recipientName` = #{recipientName} + ,`recipientPhone` = #{recipientPhone} + ,`shipperPhone` = #{shipperPhone} + ,`shippingFee` = #{shippingFee} + ,`status` = #{status} + ,`total` = #{total} + ,`uTime` = #{uTime} + ,`daySeq` = #{daySeq} + ,`dinnersNumber` = #{dinnersNumber} + ,`cancelReason` = #{cancelReason} + ,`cancelReasonCode` = #{cancelReasonCode} + ,`refundReason` = #{refundReason} + ,`foodShareFeeChargeByPoi` = #{foodShareFeeChargeByPoi} + ,`wmPoiReceiveCent` = #{wmPoiReceiveCent} + ,`refundReasonCode` = #{refundReasonCode} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_order + where `id` = #{id} + + + + delete from cy_meituan_order + ${condition} + + + + delete from cy_meituan_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketDetailMapper.xml new file mode 100644 index 0000000..5e5e85b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketDetailMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_out_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_out_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_detail + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_detail + ${condition} + + + + delete from cy_other_storage_out_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketLogMapper.xml new file mode 100644 index 0000000..be1e787 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_out_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_other_storage_out_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_log + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_log + ${condition} + + + + delete from cy_other_storage_out_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketMapper.xml new file mode 100644 index 0000000..025ad20 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`no`,`type`,`storageId`,`storageName`,`description`,`status`,`stockMan`,`linkMan`,`linkTelephone`,`logisticsNo`,`logisticsName`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_out_ticket + + `id`,`tenantId` + ,`no` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`stockMan` + ,`linkMan` + ,`linkTelephone` + ,`logisticsNo` + ,`logisticsName` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{stockMan} + ,#{linkMan} + ,#{linkTelephone} + ,#{logisticsNo} + ,#{logisticsName} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_out_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`stockMan` = #{stockMan} + ,`linkMan` = #{linkMan} + ,`linkTelephone` = #{linkTelephone} + ,`logisticsNo` = #{logisticsNo} + ,`logisticsName` = #{logisticsName} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket + ${condition} + + + + delete from cy_other_storage_out_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketDetailMapper.xml new file mode 100644 index 0000000..18254c7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketDetailMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`batchNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`stockAmount`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`batchNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`stockAmount` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{batchNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{stockAmount} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`batchNo` = #{batchNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`stockAmount` = #{stockAmount} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_ticket_detail + where `id` = #{id} + + + + delete from cy_other_storage_ticket_detail + ${condition} + + + + delete from cy_other_storage_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketLogMapper.xml new file mode 100644 index 0000000..6fc3086 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_other_storage_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_other_storage_ticket_log + where `id` = #{id} + + + + delete from cy_other_storage_ticket_log + ${condition} + + + + delete from cy_other_storage_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketMapper.xml new file mode 100644 index 0000000..28b355e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`no`,`type`,`storageId`,`storageName`,`description`,`status`,`stockMan`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_ticket + + `id`,`tenantId` + ,`no` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`stockMan` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{stockMan} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`stockMan` = #{stockMan} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_ticket + where `id` = #{id} + + + + delete from cy_other_storage_ticket + ${condition} + + + + delete from cy_other_storage_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayModeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayModeMapper.xml new file mode 100644 index 0000000..6f89346 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayModeMapper.xml @@ -0,0 +1,191 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`typeId`,`shortcut`,`pointFlag`,`frontFlag`,`rechargeFlag`,`fixeAmount`,`discount`,`otherRateType`,`otherRateValue`,`incomeFlag`,`deleteFlag`,`otherNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pay_mode + + `id`,`tenantId` + ,`no` + ,`name` + ,`typeId` + ,`shortcut` + ,`pointFlag` + ,`frontFlag` + ,`rechargeFlag` + ,`fixeAmount` + ,`discount` + ,`otherRateType` + ,`otherRateValue` + ,`incomeFlag` + ,`deleteFlag` + ,`otherNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{typeId} + ,#{shortcut} + ,#{pointFlag} + ,#{frontFlag} + ,#{rechargeFlag} + ,#{fixeAmount} + ,#{discount} + ,#{otherRateType} + ,#{otherRateValue} + ,#{incomeFlag} + ,#{deleteFlag} + ,#{otherNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_pay_mode + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`typeId` = #{typeId} + ,`shortcut` = #{shortcut} + ,`pointFlag` = #{pointFlag} + ,`frontFlag` = #{frontFlag} + ,`rechargeFlag` = #{rechargeFlag} + ,`fixeAmount` = #{fixeAmount} + ,`discount` = #{discount} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`incomeFlag` = #{incomeFlag} + ,`deleteFlag` = #{deleteFlag} + ,`otherNo` = #{otherNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pay_mode + where `id` = #{id} + + + + delete from cy_pay_mode + ${condition} + + + + delete from cy_pay_mode + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + delete from cy_pay_mode_store + ${condition} + + + + insert into cy_pay_mode_store (tenantId,storeId,modeId,shortcut,pointFlag,frontFlag,fixeAmount,discount,otherRateType,otherRateValue,periodDiscount) + values (#{tenantId},#{storeId},#{modeId},#{shortcut},#{pointFlag},#{frontFlag},#{fixeAmount},#{discount},#{otherRateType},#{otherRateValue},#{periodDiscount}) + + + + + + + + + + update cy_pay_mode + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayModeStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayModeStoreMapper.xml new file mode 100644 index 0000000..dcb44e3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayModeStoreMapper.xml @@ -0,0 +1,143 @@ + + + + + + `tenantId`,`storeId`,`modeId`,`shortcut`,`pointFlag`,`frontFlag`,`fixeAmount`,`discount`,`otherRateType`,`otherRateValue`,`periodDiscount` + + + + + + + + + + + + + + + + + + + + insert into cy_pay_mode_store + + `tenantId` + ,`storeId` + ,`modeId` + ,`shortcut` + ,`pointFlag` + ,`frontFlag` + ,`fixeAmount` + ,`discount` + ,`otherRateType` + ,`otherRateValue` + ,`periodDiscount` + + + #{tenantId} + ,#{storeId} + ,#{modeId} + ,#{shortcut} + ,#{pointFlag} + ,#{frontFlag} + ,#{fixeAmount} + ,#{discount} + ,#{otherRateType} + ,#{otherRateValue} + ,#{periodDiscount} + + + + + update cy_pay_mode_store + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`modeId` = #{modeId} + ,`shortcut` = #{shortcut} + ,`pointFlag` = #{pointFlag} + ,`frontFlag` = #{frontFlag} + ,`fixeAmount` = #{fixeAmount} + ,`discount` = #{discount} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`periodDiscount` = #{periodDiscount} + + where `id` = #{id} + + + + delete from cy_pay_mode_store + where `id` = #{id} + + + + delete from cy_pay_mode_store + ${condition} + + + + delete from cy_pay_mode_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayTypeMapper.xml new file mode 100644 index 0000000..180d505 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PayTypeMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pay_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{createDate} + ,#{createUser} + + + + + update cy_pay_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pay_type + where `id` = #{id} + + + + delete from cy_pay_type + ${condition} + + + + delete from cy_pay_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PaymentParameterMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PaymentParameterMapper.xml new file mode 100644 index 0000000..943f480 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PaymentParameterMapper.xml @@ -0,0 +1,151 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into cy_payment_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_payment_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_payment_parameter + where `id` = #{id} + + + + delete from cy_payment_parameter + ${condition} + + + + delete from cy_payment_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + insert into cy_payment_parameter_store (tenantId,storeId,parameterId) values (#{tenantId},#{storeId},#{id}) + + + + + + delete from cy_payment_parameter_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PermissionsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PermissionsMapper.xml new file mode 100644 index 0000000..da7fa13 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PermissionsMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`roleId`,`moduleId`,`permissions`,`functionIds`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_permissions + + `id`,`tenantId` + ,`roleId` + ,`moduleId` + ,`permissions` + ,`functionIds` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{roleId} + ,#{moduleId} + ,#{permissions} + ,#{functionIds} + ,#{createUser} + ,#{createDate} + + + + + update shared_permissions + + `tenantId` = #{tenantId} + ,`roleId` = #{roleId} + ,`moduleId` = #{moduleId} + ,`permissions` = #{permissions} + ,`functionIds` = #{functionIds} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_permissions + where `id` = #{id} + + + + delete from shared_permissions + ${condition} + + + + delete from shared_permissions + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + delete from + shared_permissions + where tenantId = #{tenantId} and roleId = #{roleId} + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosInfoMapper.xml new file mode 100644 index 0000000..6907616 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosInfoMapper.xml @@ -0,0 +1,160 @@ + + + + + + `id`,`tenantId`,`appSign`,`terminalType`,`storeId`,`storeNo`,`posNo`,`name`,`MACAddress`,`serialNumber`,`cpuNumber`,`status`,`pollCode`,`appSecret`,`appKey`,`description`,`deleteFlag`,`aliasName`,`isTester`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_info + + `id`,`tenantId` + ,`appSign` + ,`terminalType` + ,`storeId` + ,`storeNo` + ,`posNo` + ,`name` + ,`MACAddress` + ,`serialNumber` + ,`cpuNumber` + ,`status` + ,`pollCode` + ,`appSecret` + ,`appKey` + ,`description` + ,`deleteFlag` + ,`aliasName` + ,`isTester` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{appSign} + ,#{terminalType} + ,#{storeId} + ,#{storeNo} + ,#{posNo} + ,#{name} + ,#{MACAddress} + ,#{serialNumber} + ,#{cpuNumber} + ,#{status} + ,#{pollCode} + ,#{appSecret} + ,#{appKey} + ,#{description} + ,#{deleteFlag} + ,#{aliasName} + ,#{isTester} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_info + + `tenantId` = #{tenantId} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`posNo` = #{posNo} + ,`name` = #{name} + ,`MACAddress` = #{MACAddress} + ,`serialNumber` = #{serialNumber} + ,`cpuNumber` = #{cpuNumber} + ,`status` = #{status} + ,`pollCode` = #{pollCode} + ,`appSecret` = #{appSecret} + ,`appKey` = #{appKey} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`aliasName` = #{aliasName} + ,`isTester` = #{isTester} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_info + where `id` = #{id} + + + + delete from cy_pos_info + ${condition} + + + + delete from cy_pos_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosPollcodeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosPollcodeMapper.xml new file mode 100644 index 0000000..ce1280a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosPollcodeMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`pollCode`,`storeId`,`storeNo`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_pollcode + + `id`,`tenantId` + ,`pollCode` + ,`storeId` + ,`storeNo` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{pollCode} + ,#{storeId} + ,#{storeNo} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_pollcode + + `tenantId` = #{tenantId} + ,`pollCode` = #{pollCode} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_pollcode + where `id` = #{id} + + + + delete from cy_pos_pollcode + ${condition} + + + + delete from cy_pos_pollcode + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosRoleMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosRoleMapper.xml new file mode 100644 index 0000000..52329d7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosRoleMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`discount`,`free`,`description`,`type`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_role + + `id`,`tenantId` + ,`no` + ,`name` + ,`discount` + ,`free` + ,`description` + ,`type` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{discount} + ,#{free} + ,#{description} + ,#{type} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_pos_role + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`discount` = #{discount} + ,`free` = #{free} + ,`description` = #{description} + ,`type` = #{type} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_pos_role + where `id` = #{id} + + + + delete from cy_pos_role + ${condition} + + + + delete from cy_pos_role + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_pos_role + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + delete from cy_pos_role_module + where `tenantId` = #{tenantId} and roleId = #{roleId} + + + + + insert into cy_pos_role_module (`tenantId`,`roleId`,`moduleNo`) + values + (#{tenantId},#{roleId}, #{moduleNo}) + + + + + + + + + + + + + + + + + + + insert into cy_store_worker_role (tenantId, workerId, roleId) + values + (#{tenantId}, #{workerId}, #{roleId}) + + + + + delete from cy_store_worker_role + where `tenantId`=#{tenantId} and roleId=#{roleId} and workerId=#{workerId} + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanConfigMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanConfigMapper.xml new file mode 100644 index 0000000..2cc52d7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanConfigMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`group`,`keys`,`values`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_config + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`group` + ,`keys` + ,`values` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{group} + ,#{keys} + ,#{values} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_config + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`group` = #{group} + ,`keys` = #{keys} + ,`values` = #{values} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_config + where `id` = #{id} + + + + delete from cy_pos_set_plan_config + ${condition} + + + + delete from cy_pos_set_plan_config + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanMapper.xml new file mode 100644 index 0000000..834db9b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`name`,`terminalType`,`description`,`enable`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan + + `id`,`tenantId` + ,`name` + ,`terminalType` + ,`description` + ,`enable` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{terminalType} + ,#{description} + ,#{enable} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`terminalType` = #{terminalType} + ,`description` = #{description} + ,`enable` = #{enable} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan + where `id` = #{id} + + + + delete from cy_pos_set_plan + ${condition} + + + + delete from cy_pos_set_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_pos_set_plan_store (`tenantId`,`planId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + + + DELETE FROM cy_pos_set_plan_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanModuleMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanModuleMapper.xml new file mode 100644 index 0000000..5589bca --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanModuleMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`area`,`parentId`,`name`,`alias`,`keycode`,`keydata`,`color1`,`color2`,`color3`,`fontSize`,`shortcut`,`orderNo`,`icon`,`enable`,`resourceId`,`layout`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_module + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`area` + ,`parentId` + ,`name` + ,`alias` + ,`keycode` + ,`keydata` + ,`color1` + ,`color2` + ,`color3` + ,`fontSize` + ,`shortcut` + ,`orderNo` + ,`icon` + ,`enable` + ,`resourceId` + ,`layout` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{area} + ,#{parentId} + ,#{name} + ,#{alias} + ,#{keycode} + ,#{keydata} + ,#{color1} + ,#{color2} + ,#{color3} + ,#{fontSize} + ,#{shortcut} + ,#{orderNo} + ,#{icon} + ,#{enable} + ,#{resourceId} + ,#{layout} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_module + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`area` = #{area} + ,`parentId` = #{parentId} + ,`name` = #{name} + ,`alias` = #{alias} + ,`keycode` = #{keycode} + ,`keydata` = #{keydata} + ,`color1` = #{color1} + ,`color2` = #{color2} + ,`color3` = #{color3} + ,`fontSize` = #{fontSize} + ,`shortcut` = #{shortcut} + ,`orderNo` = #{orderNo} + ,`icon` = #{icon} + ,`enable` = #{enable} + ,`resourceId` = #{resourceId} + ,`layout` = #{layout} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_module + where `id` = #{id} + + + + delete from cy_pos_set_plan_module + ${condition} + + + + delete from cy_pos_set_plan_module + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanResourcesMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanResourcesMapper.xml new file mode 100644 index 0000000..3ae7a39 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanResourcesMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`group`,`name`,`keycode`,`keydata`,`enable`,`permission`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_resources + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`group` + ,`name` + ,`keycode` + ,`keydata` + ,`enable` + ,`permission` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{group} + ,#{name} + ,#{keycode} + ,#{keydata} + ,#{enable} + ,#{permission} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_resources + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`group` = #{group} + ,`name` = #{name} + ,`keycode` = #{keycode} + ,`keydata` = #{keydata} + ,`enable` = #{enable} + ,`permission` = #{permission} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_resources + where `id` = #{id} + + + + delete from cy_pos_set_plan_resources + ${condition} + + + + delete from cy_pos_set_plan_resources + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanShortcutMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanShortcutMapper.xml new file mode 100644 index 0000000..7f58593 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PosSetPlanShortcutMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`area`,`parentId`,`name`,`alias`,`keycode`,`keydata`,`color1`,`color2`,`color3`,`fontSize`,`shortcut`,`orderNo`,`icon`,`enable`,`resourceId`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_shortcut + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`area` + ,`parentId` + ,`name` + ,`alias` + ,`keycode` + ,`keydata` + ,`color1` + ,`color2` + ,`color3` + ,`fontSize` + ,`shortcut` + ,`orderNo` + ,`icon` + ,`enable` + ,`resourceId` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{area} + ,#{parentId} + ,#{name} + ,#{alias} + ,#{keycode} + ,#{keydata} + ,#{color1} + ,#{color2} + ,#{color3} + ,#{fontSize} + ,#{shortcut} + ,#{orderNo} + ,#{icon} + ,#{enable} + ,#{resourceId} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_shortcut + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`area` = #{area} + ,`parentId` = #{parentId} + ,`name` = #{name} + ,`alias` = #{alias} + ,`keycode` = #{keycode} + ,`keydata` = #{keydata} + ,`color1` = #{color1} + ,`color2` = #{color2} + ,`color3` = #{color3} + ,`fontSize` = #{fontSize} + ,`shortcut` = #{shortcut} + ,`orderNo` = #{orderNo} + ,`icon` = #{icon} + ,`enable` = #{enable} + ,`resourceId` = #{resourceId} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_shortcut + where `id` = #{id} + + + + delete from cy_pos_set_plan_shortcut + ${condition} + + + + delete from cy_pos_set_plan_shortcut + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PrintImageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PrintImageMapper.xml new file mode 100644 index 0000000..93f9284 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PrintImageMapper.xml @@ -0,0 +1,209 @@ + + + + + + `id`,`tenantId`,`type`,`name`,`width`,`height`,`groupName`,`storageFileName`,`description`,`stopFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_print_image + + `id`,`tenantId` + ,`type` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`description` + ,`stopFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{type} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{description} + ,#{stopFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_print_image + + `tenantId` = #{tenantId} + ,`type` = #{type} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`description` = #{description} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_print_image + where `id` = #{id} + + + + delete from cy_print_image + ${condition} + + + + delete from cy_print_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_print_image + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO cy_print_image_store (tenantId,storeId,imageId) + VALUES (#{tenantId}, #{storeId}, #{imageId}) + + + + + delete from cy_print_image_store + where tenantId=#{tenantId} and imageId=#{imageId} + + + + + delete from cy_print_image_store + where tenantId=#{tenantId} and imageId=#{imageId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockDifferMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockDifferMapper.xml new file mode 100644 index 0000000..3ced754 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockDifferMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`productId`,`productNo`,`specId`,`inventoryUnitId`,`inventoryUnitName`,`offsetBatchNo`,`price`,`quantity`,`amount`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_negative_stock_differ + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`productId` + ,`productNo` + ,`specId` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`offsetBatchNo` + ,`price` + ,`quantity` + ,`amount` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{offsetBatchNo} + ,#{price} + ,#{quantity} + ,#{amount} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_negative_stock_differ + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`offsetBatchNo` = #{offsetBatchNo} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`amount` = #{amount} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock_differ + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock_differ + ${condition} + + + + delete from cy_product_batch_negative_stock_differ + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockMapper.xml new file mode 100644 index 0000000..128aa0c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`ticketType`,`ticketNo`,`productId`,`productNo`,`specId`,`inventoryUnitId`,`inventoryUnitName`,`price`,`quantity`,`offsetBatchNo`,`offsetPrice`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_negative_stock + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`ticketType` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`specId` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`price` + ,`quantity` + ,`offsetBatchNo` + ,`offsetPrice` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{ticketType} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{price} + ,#{quantity} + ,#{offsetBatchNo} + ,#{offsetPrice} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_negative_stock + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`ticketType` = #{ticketType} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`offsetBatchNo` = #{offsetBatchNo} + ,`offsetPrice` = #{offsetPrice} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock + ${condition} + + + + delete from cy_product_batch_negative_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNumberMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNumberMapper.xml new file mode 100644 index 0000000..97e39f7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchNumberMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`batchNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`expiryTime`,`remark`,`status`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_number + + `id`,`tenantId` + ,`batchNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`expiryTime` + ,`remark` + ,`status` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{expiryTime} + ,#{remark} + ,#{status} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_number + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`expiryTime` = #{expiryTime} + ,`remark` = #{remark} + ,`status` = #{status} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_number + where `id` = #{id} + + + + delete from cy_product_batch_number + ${condition} + + + + delete from cy_product_batch_number + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchStockChangeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchStockChangeMapper.xml new file mode 100644 index 0000000..abcc430 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchStockChangeMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`productId`,`productNo`,`specId`,`priceIn`,`price`,`quantity`,`ticketType`,`ticketNo`,`inventoryUnitId`,`inventoryUnitName`,`supplierId`,`supplierNo`,`storeId`,`storeNo`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_stock_change + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`productId` + ,`productNo` + ,`specId` + ,`priceIn` + ,`price` + ,`quantity` + ,`ticketType` + ,`ticketNo` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`supplierId` + ,`supplierNo` + ,`storeId` + ,`storeNo` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{priceIn} + ,#{price} + ,#{quantity} + ,#{ticketType} + ,#{ticketNo} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{supplierId} + ,#{supplierNo} + ,#{storeId} + ,#{storeNo} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_stock_change + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`priceIn` = #{priceIn} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`ticketType` = #{ticketType} + ,`ticketNo` = #{ticketNo} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_stock_change + where `id` = #{id} + + + + delete from cy_product_batch_stock_change + ${condition} + + + + delete from cy_product_batch_stock_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchStockMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchStockMapper.xml new file mode 100644 index 0000000..2e3cbb7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBatchStockMapper.xml @@ -0,0 +1,165 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`productId`,`productNo`,`specId`,`supplierId`,`price`,`quantity`,`remainQuantity`,`ticketType`,`ticketNo`,`inventoryUnitId`,`inventoryUnitName`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_stock + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`productId` + ,`productNo` + ,`specId` + ,`supplierId` + ,`price` + ,`quantity` + ,`remainQuantity` + ,`ticketType` + ,`ticketNo` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{supplierId} + ,#{price} + ,#{quantity} + ,#{remainQuantity} + ,#{ticketType} + ,#{ticketNo} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_stock + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`supplierId` = #{supplierId} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`remainQuantity` = #{remainQuantity} + ,`ticketType` = #{ticketType} + ,`ticketNo` = #{ticketNo} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_stock + where `id` = #{id} + + + + delete from cy_product_batch_stock + ${condition} + + + + delete from cy_product_batch_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBurdenMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBurdenMapper.xml new file mode 100644 index 0000000..08e3a33 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductBurdenMapper.xml @@ -0,0 +1,185 @@ + + + + + + `id`,`tenantId`,`productId`,`specId`,`burdenProductId`,`burdenSpecId`,`salesUnitId`,`salesAmount`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_product_burden + + `id`,`tenantId` + ,`productId` + ,`specId` + ,`burdenProductId` + ,`burdenSpecId` + ,`salesUnitId` + ,`salesAmount` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{specId} + ,#{burdenProductId} + ,#{burdenSpecId} + ,#{salesUnitId} + ,#{salesAmount} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_burden + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`burdenProductId` = #{burdenProductId} + ,`burdenSpecId` = #{burdenSpecId} + ,`salesUnitId` = #{salesUnitId} + ,`salesAmount` = #{salesAmount} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_burden + where `id` = #{id} + + + + delete from cy_product_burden + ${condition} + + + + delete from cy_product_burden + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductImageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductImageMapper.xml new file mode 100644 index 0000000..b1d53eb --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductImageMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`productId`,`width`,`height`,`groupName`,`storageFileName`,`length`,`mimeType`,`orderNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_image + + `id`,`tenantId` + ,`productId` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`length` + ,`mimeType` + ,`orderNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{length} + ,#{mimeType} + ,#{orderNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_image + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`length` = #{length} + ,`mimeType` = #{mimeType} + ,`orderNo` = #{orderNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_image + where `id` = #{id} + + + + delete from cy_product_image + ${condition} + + + + delete from cy_product_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductKdsPlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductKdsPlanMapper.xml new file mode 100644 index 0000000..99a16b9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductKdsPlanMapper.xml @@ -0,0 +1,166 @@ + + + + + + `id`,`tenantId`,`storeId`,`productId`,`chuxianFlag`,`chuxian`,`chuxianTime`,`chupinFlag`,`chupin`,`chupinTime`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_kds_plan + + `id`,`tenantId` + ,`storeId` + ,`productId` + ,`chuxianFlag` + ,`chuxian` + ,`chuxianTime` + ,`chupinFlag` + ,`chupin` + ,`chupinTime` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{productId} + ,#{chuxianFlag} + ,#{chuxian} + ,#{chuxianTime} + ,#{chupinFlag} + ,#{chupin} + ,#{chupinTime} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_kds_plan + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`chuxianFlag` = #{chuxianFlag} + ,`chuxian` = #{chuxian} + ,`chuxianTime` = #{chuxianTime} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`chupinTime` = #{chupinTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_kds_plan + where `id` = #{id} + + + + delete from cy_product_kds_plan + ${condition} + + + + delete from cy_product_kds_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + update cy_product_kds_plan + + `tenantId` = #{tenantId} + ,`chuxianFlag` = #{chuxianFlag} + ,`chuxian` = #{chuxian} + ,`chuxianTime` = #{chuxianTime} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`chupinTime` = #{chupinTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `productId` = #{productId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductKitPlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductKitPlanMapper.xml new file mode 100644 index 0000000..b586512 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductKitPlanMapper.xml @@ -0,0 +1,172 @@ + + + + + + `id`,`tenantId`,`storeId`,`productId`,`chudaFlag`,`chuda`,`chupinFlag`,`chupin`,`labelFlag`,`labelValue`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_kit_plan + + `id`,`tenantId` + ,`storeId` + ,`productId` + ,`chudaFlag` + ,`chuda` + ,`chupinFlag` + ,`chupin` + ,`labelFlag` + ,`labelValue` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{productId} + ,#{chudaFlag} + ,#{chuda} + ,#{chupinFlag} + ,#{chupin} + ,#{labelFlag} + ,#{labelValue} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_kit_plan + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`chudaFlag` = #{chudaFlag} + ,`chuda` = #{chuda} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`labelFlag` = #{labelFlag} + ,`labelValue` = #{labelValue} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_kit_plan + where `id` = #{id} + + + + delete from cy_product_kit_plan + ${condition} + + + + delete from cy_product_kit_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + update cy_product_kit_plan + + `tenantId` = #{tenantId} + ,`chudaFlag` = #{chudaFlag} + ,`chuda` = #{chuda} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `productId` = #{productId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeMapper.xml new file mode 100644 index 0000000..b08dbaf --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeMapper.xml @@ -0,0 +1,104 @@ + + + + + + `tenantId`,`productId`,`makeId` + + + + + + + + + + + + + + + + + + + + insert into cy_product_make + + `id`,`tenantId` + ,`productId` + ,`makeId` + + + #{id},#{tenantId} + ,#{productId} + ,#{makeId} + + + + + update cy_product_make + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`makeId` = #{makeId} + + where `id` = #{id} + + + + delete from cy_product_make + where `id` = #{id} + + + + delete from cy_product_make + ${condition} + + + + delete from cy_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateDetailMapper.xml new file mode 100644 index 0000000..a251f5a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateDetailMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`templateId`,`makeId`,`addPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_make_template_detail + + `id`,`tenantId` + ,`templateId` + ,`makeId` + ,`addPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{makeId} + ,#{addPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_make_template_detail + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`makeId` = #{makeId} + ,`addPrice` = #{addPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_make_template_detail + where `id` = #{id} + + + + delete from cy_product_make_template_detail + ${condition} + + + + delete from cy_product_make_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateMapper.xml new file mode 100644 index 0000000..8a13993 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_make_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_make_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_make_template + where `id` = #{id} + + + + delete from cy_product_make_template + ${condition} + + + + delete from cy_product_make_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMapper.xml new file mode 100644 index 0000000..b261ba4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductMapper.xml @@ -0,0 +1,455 @@ + + + + + + `id`,`tenantId`,`brandId`,`typeId`,`typePath`,`no`,`name`,`spell`,`assistNo`,`barCode`,`otherNo`,`english`,`shortName`,`spec`,`unitId`,`description`,`commissionType`,`commissionValue`,`discountFlag`,`tapleFlag`,`weighFlag`,`currentFlag`,`labelPrintFlag`,`suitFlag`,`mebDiscountFlag`,`giveFlag`,`promotionFlag`,`type`,`stockFlag`,`pointType`,`pointValue`,`purchaseTax`,`saleTax`,`lyRate`,`groupName`,`picture`,`stopFlag`,`deleteFlag`,`noType`,`zcFlag`,`erpCategoryCode`,`erpSyncFlag`,`selfFlag`,`storeId`,`storageId`,`kdsFlag`,`ext1`,`ext2`,`ext3`,`lineFlag`,`minCount`,`orderNo`,`isNew`,`monthSaleCount`,`praise`,`saleTimeType`,`saleTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product + + `id`,`tenantId` + ,`brandId` + ,`typeId` + ,`typePath` + ,`no` + ,`name` + ,`spell` + ,`assistNo` + ,`barCode` + ,`otherNo` + ,`english` + ,`shortName` + ,`spec` + ,`unitId` + ,`description` + ,`commissionType` + ,`commissionValue` + ,`discountFlag` + ,`tapleFlag` + ,`weighFlag` + ,`currentFlag` + ,`labelPrintFlag` + ,`suitFlag` + ,`mebDiscountFlag` + ,`giveFlag` + ,`promotionFlag` + ,`type` + ,`stockFlag` + ,`pointType` + ,`pointValue` + ,`purchaseTax` + ,`saleTax` + ,`lyRate` + ,`groupName` + ,`picture` + ,`stopFlag` + ,`deleteFlag` + ,`noType` + ,`zcFlag` + ,`erpCategoryCode` + ,`erpSyncFlag` + ,`selfFlag` + ,`storeId` + ,`storageId` + ,`kdsFlag` + ,`ext1` + ,`ext2` + ,`ext3` + ,`lineFlag` + ,`minCount` + ,`orderNo` + ,`isNew` + ,`monthSaleCount` + ,`praise` + ,`saleTimeType` + ,`saleTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{brandId} + ,#{typeId} + ,#{typePath} + ,#{no} + ,#{name} + ,#{spell} + ,#{assistNo} + ,#{barCode} + ,#{otherNo} + ,#{english} + ,#{shortName} + ,#{spec} + ,#{unitId} + ,#{description} + ,#{commissionType} + ,#{commissionValue} + ,#{discountFlag} + ,#{tapleFlag} + ,#{weighFlag} + ,#{currentFlag} + ,#{labelPrintFlag} + ,#{suitFlag} + ,#{mebDiscountFlag} + ,#{giveFlag} + ,#{promotionFlag} + ,#{type} + ,#{stockFlag} + ,#{pointType} + ,#{pointValue} + ,#{purchaseTax} + ,#{saleTax} + ,#{lyRate} + ,#{groupName} + ,#{picture} + ,#{stopFlag} + ,#{deleteFlag} + ,#{noType} + ,#{zcFlag} + ,#{erpCategoryCode} + ,#{erpSyncFlag} + ,#{selfFlag} + ,#{storeId} + ,#{storageId} + ,#{kdsFlag} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{lineFlag} + ,#{minCount} + ,#{orderNo} + ,#{isNew} + ,#{monthSaleCount} + ,#{praise} + ,#{saleTimeType} + ,#{saleTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_product + + `tenantId` = #{tenantId} + ,`brandId` = #{brandId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`no` = #{no} + ,`name` = #{name} + ,`spell` = #{spell} + ,`assistNo` = #{assistNo} + ,`barCode` = #{barCode} + ,`otherNo` = #{otherNo} + ,`english` = #{english} + ,`shortName` = #{shortName} + ,`spec` = #{spec} + ,`unitId` = #{unitId} + ,`description` = #{description} + ,`commissionType` = #{commissionType} + ,`commissionValue` = #{commissionValue} + ,`discountFlag` = #{discountFlag} + ,`tapleFlag` = #{tapleFlag} + ,`weighFlag` = #{weighFlag} + ,`currentFlag` = #{currentFlag} + ,`labelPrintFlag` = #{labelPrintFlag} + ,`suitFlag` = #{suitFlag} + ,`mebDiscountFlag` = #{mebDiscountFlag} + ,`giveFlag` = #{giveFlag} + ,`promotionFlag` = #{promotionFlag} + ,`type` = #{type} + ,`stockFlag` = #{stockFlag} + ,`pointType` = #{pointType} + ,`pointValue` = #{pointValue} + ,`purchaseTax` = #{purchaseTax} + ,`saleTax` = #{saleTax} + ,`lyRate` = #{lyRate} + ,`groupName` = #{groupName} + ,`picture` = #{picture} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`zcFlag` = #{zcFlag} + ,`erpCategoryCode` = #{erpCategoryCode} + ,`erpSyncFlag` = #{erpSyncFlag} + ,`selfFlag` = #{selfFlag} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`kdsFlag` = #{kdsFlag} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`lineFlag` = #{lineFlag} + ,`minCount` = #{minCount} + ,`orderNo` = #{orderNo} + ,`isNew` = #{isNew} + ,`monthSaleCount` = #{monthSaleCount} + ,`praise` = #{praise} + ,`saleTimeType` = #{saleTimeType} + ,`saleTime` = #{saleTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product + where `id` = #{id} + + + + delete from cy_product + ${condition} + + + + delete from cy_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_product + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductRatioMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductRatioMapper.xml new file mode 100644 index 0000000..1fd03dc --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductRatioMapper.xml @@ -0,0 +1,214 @@ + + + + + + `id`,`tenantId`,`productId`,`dispatchUnitId`,`purchaseUnitId`,`pdScale`,`packUnitId`,`dpScale`,`salesUnitId`,`psScale`,`maxStock`,`minStock`,`thUseLevel`,`realThUseLevel`,`cost`,`costType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_ratio + + `id`,`tenantId` + ,`productId` + ,`dispatchUnitId` + ,`purchaseUnitId` + ,`pdScale` + ,`packUnitId` + ,`dpScale` + ,`salesUnitId` + ,`psScale` + ,`maxStock` + ,`minStock` + ,`thUseLevel` + ,`realThUseLevel` + ,`cost` + ,`costType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{dispatchUnitId} + ,#{purchaseUnitId} + ,#{pdScale} + ,#{packUnitId} + ,#{dpScale} + ,#{salesUnitId} + ,#{psScale} + ,#{maxStock} + ,#{minStock} + ,#{thUseLevel} + ,#{realThUseLevel} + ,#{cost} + ,#{costType} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_ratio + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`pdScale` = #{pdScale} + ,`packUnitId` = #{packUnitId} + ,`dpScale` = #{dpScale} + ,`salesUnitId` = #{salesUnitId} + ,`psScale` = #{psScale} + ,`maxStock` = #{maxStock} + ,`minStock` = #{minStock} + ,`thUseLevel` = #{thUseLevel} + ,`realThUseLevel` = #{realThUseLevel} + ,`cost` = #{cost} + ,`costType` = #{costType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_ratio + where `id` = #{id} + + + + delete from cy_product_ratio + ${condition} + + + + delete from cy_product_ratio + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSpecMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSpecMapper.xml new file mode 100644 index 0000000..55c42f1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSpecMapper.xml @@ -0,0 +1,506 @@ + + + + + + `id`,`tenantId`,`productId`,`no`,`name`,`price`,`minPrice`,`memberPrice`,`wprice`,`wmemberPrice`,`boxPrice`,`otherPrice`,`costPrice`,`purchasePrice`,`dispatchPrice`,`materialRate`,`isdefault`,`deleteFlag`,`erpCode`,`erpSyncStatus`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_spec + + `id`,`tenantId` + ,`productId` + ,`no` + ,`name` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`wprice` + ,`wmemberPrice` + ,`boxPrice` + ,`otherPrice` + ,`costPrice` + ,`purchasePrice` + ,`dispatchPrice` + ,`materialRate` + ,`isdefault` + ,`deleteFlag` + ,`erpCode` + ,`erpSyncStatus` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{no} + ,#{name} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{wprice} + ,#{wmemberPrice} + ,#{boxPrice} + ,#{otherPrice} + ,#{costPrice} + ,#{purchasePrice} + ,#{dispatchPrice} + ,#{materialRate} + ,#{isdefault} + ,#{deleteFlag} + ,#{erpCode} + ,#{erpSyncStatus} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_spec + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`no` = #{no} + ,`name` = #{name} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`boxPrice` = #{boxPrice} + ,`otherPrice` = #{otherPrice} + ,`costPrice` = #{costPrice} + ,`purchasePrice` = #{purchasePrice} + ,`dispatchPrice` = #{dispatchPrice} + ,`materialRate` = #{materialRate} + ,`isdefault` = #{isdefault} + ,`deleteFlag` = #{deleteFlag} + ,`erpCode` = #{erpCode} + ,`erpSyncStatus` = #{erpSyncStatus} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_spec + where `id` = #{id} + + + + delete from cy_product_spec + ${condition} + + + + delete from cy_product_spec + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_product_spec + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStockLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStockLogMapper.xml new file mode 100644 index 0000000..aed1b48 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStockLogMapper.xml @@ -0,0 +1,185 @@ + + + + + + `id`,`tenantId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`operationType`,`orderNo`,`orderType`,`orderTypeName`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`preAmount`,`amount`,`afterAmount`,`price`,`money`,`costAmount`,`supplierId`,`supplierNo`,`storeId`,`storeNo`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_stock_log + + `id`,`tenantId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`operationType` + ,`orderNo` + ,`orderType` + ,`orderTypeName` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`preAmount` + ,`amount` + ,`afterAmount` + ,`price` + ,`money` + ,`costAmount` + ,`supplierId` + ,`supplierNo` + ,`storeId` + ,`storeNo` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{operationType} + ,#{orderNo} + ,#{orderType} + ,#{orderTypeName} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{preAmount} + ,#{amount} + ,#{afterAmount} + ,#{price} + ,#{money} + ,#{costAmount} + ,#{supplierId} + ,#{supplierNo} + ,#{storeId} + ,#{storeNo} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_stock_log + + `tenantId` = #{tenantId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`operationType` = #{operationType} + ,`orderNo` = #{orderNo} + ,`orderType` = #{orderType} + ,`orderTypeName` = #{orderTypeName} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`preAmount` = #{preAmount} + ,`amount` = #{amount} + ,`afterAmount` = #{afterAmount} + ,`price` = #{price} + ,`money` = #{money} + ,`costAmount` = #{costAmount} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_stock_log + where `id` = #{id} + + + + delete from cy_product_stock_log + ${condition} + + + + delete from cy_product_stock_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStockMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStockMapper.xml new file mode 100644 index 0000000..2052dd8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStockMapper.xml @@ -0,0 +1,164 @@ + + + + + + `id`,`tenantId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`stockAmount`,`stockCost`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_stock + + `id`,`tenantId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`stockAmount` + ,`stockCost` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{stockAmount} + ,#{stockCost} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_stock + + `tenantId` = #{tenantId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`stockAmount` = #{stockAmount} + ,`stockCost` = #{stockCost} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_stock + where `id` = #{id} + + + + delete from cy_product_stock + ${condition} + + + + delete from cy_product_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreOutCollectDayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreOutCollectDayMapper.xml new file mode 100644 index 0000000..c0512dd --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreOutCollectDayMapper.xml @@ -0,0 +1,184 @@ + + + + + + `id`,`tenantId`,`storeId`,`orderType`,`productId`,`productNo`,`productName`,`typeId`,`specName`,`productDescription`,`price`,`packUnitId`,`packUnitName`,`specId`,`totalAmount`,`type`,`no`,`createUser`,`createDate`,`modifyUser`,`modifyDate`,`systemDate` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_product_store_out_collect_day + + `id`,`tenantId` + ,`storeId` + ,`orderType` + ,`productId` + ,`productNo` + ,`productName` + ,`typeId` + ,`specName` + ,`productDescription` + ,`price` + ,`packUnitId` + ,`packUnitName` + ,`specId` + ,`totalAmount` + ,`type` + ,`no` + ,`createUser` + ,`createDate` + ,`systemDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{orderType} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{typeId} + ,#{specName} + ,#{productDescription} + ,#{price} + ,#{packUnitId} + ,#{packUnitName} + ,#{specId} + ,#{totalAmount} + ,#{type} + ,#{no} + ,#{createUser} + ,#{createDate} + ,#{systemDate} + + + + + update cy_product_store_out_collect_day + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`orderType` = #{orderType} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`typeId` = #{typeId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`price` = #{price} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`specId` = #{specId} + ,`totalAmount` = #{totalAmount} + ,`type` = #{type} + ,`no` = #{no} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + ,`systemDate` = #{systemDate} + + where `id` = #{id} + + + + delete from cy_product_store_out_collect_day + where `id` = #{id} + + + + delete from cy_product_store_out_collect_day + ${condition} + + + + delete from cy_product_store_out_collect_day + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreStockLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreStockLogMapper.xml new file mode 100644 index 0000000..57af94f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreStockLogMapper.xml @@ -0,0 +1,195 @@ + + + + + + `id`,`tenantId`,`storeId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`orderNo`,`orderType`,`orderTypeName`,`dispatchUnitId`,`dispatchUnitName`,`packUnitId`,`packUnitName`,`preAmount`,`amount`,`afterAmount`,`price`,`money`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_store_stock_log + + `id`,`tenantId` + ,`storeId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`orderNo` + ,`orderType` + ,`orderTypeName` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`packUnitId` + ,`packUnitName` + ,`preAmount` + ,`amount` + ,`afterAmount` + ,`price` + ,`money` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{orderNo} + ,#{orderType} + ,#{orderTypeName} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{packUnitId} + ,#{packUnitName} + ,#{preAmount} + ,#{amount} + ,#{afterAmount} + ,#{price} + ,#{money} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_store_stock_log + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`orderNo` = #{orderNo} + ,`orderType` = #{orderType} + ,`orderTypeName` = #{orderTypeName} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`preAmount` = #{preAmount} + ,`amount` = #{amount} + ,`afterAmount` = #{afterAmount} + ,`price` = #{price} + ,`money` = #{money} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_store_stock_log + where `id` = #{id} + + + + delete from cy_product_store_stock_log_bak + ${condition} + + + + delete from cy_product_store_stock_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreStockMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreStockMapper.xml new file mode 100644 index 0000000..5daa842 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductStoreStockMapper.xml @@ -0,0 +1,189 @@ + + + + + + `id`,`tenantId`,`storeId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`packUnitId`,`packUnitName`,`stockAmount`,`stockCost`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into cy_product_store_stock + + `id`,`tenantId` + ,`storeId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`packUnitId` + ,`packUnitName` + ,`stockAmount` + ,`stockCost` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{packUnitId} + ,#{packUnitName} + ,#{stockAmount} + ,#{stockCost} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_store_stock + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`stockAmount` = #{stockAmount} + ,`stockCost` = #{stockCost} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_store_stock + where `id` = #{id} + + + + delete from cy_product_store_stock + ${condition} + + + + delete from cy_product_store_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSuitDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSuitDetailMapper.xml new file mode 100644 index 0000000..2dfd70e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSuitDetailMapper.xml @@ -0,0 +1,166 @@ + + + + + + `id`,`tenantId`,`suitId`,`productId`,`specId`,`quantity`,`addPrice`,`defaultflag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_suit_detail + + `id`,`tenantId` + ,`suitId` + ,`productId` + ,`specId` + ,`quantity` + ,`addPrice` + ,`defaultflag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{suitId} + ,#{productId} + ,#{specId} + ,#{quantity} + ,#{addPrice} + ,#{defaultflag} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_suit_detail + + `tenantId` = #{tenantId} + ,`suitId` = #{suitId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`quantity` = #{quantity} + ,`addPrice` = #{addPrice} + ,`defaultflag` = #{defaultflag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_suit_detail + where `id` = #{id} + + + + delete from cy_product_suit_detail + ${condition} + + + + delete from cy_product_suit_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSuitMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSuitMapper.xml new file mode 100644 index 0000000..53e45d9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductSuitMapper.xml @@ -0,0 +1,139 @@ + + + + + + `id`,`tenantId`,`productId`,`no`,`name`,`quantity`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_suit + + `id`,`tenantId` + ,`productId` + ,`no` + ,`name` + ,`quantity` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{no} + ,#{name} + ,#{quantity} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_suit + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`no` = #{no} + ,`name` = #{name} + ,`quantity` = #{quantity} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_suit + where `id` = #{id} + + + + delete from cy_product_suit + ${condition} + + + + delete from cy_product_suit + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTemplateDetailMapper.xml new file mode 100644 index 0000000..5d3785b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTemplateDetailMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`templateId`,`productId`,`specId`,`price`,`minPrice`,`memberPrice`,`otherPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_template_detail + + `id`,`tenantId` + ,`templateId` + ,`productId` + ,`specId` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`otherPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{otherPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_template_detail + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`otherPrice` = #{otherPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_template_detail + where `id` = #{id} + + + + delete from cy_product_template_detail + ${condition} + + + + delete from cy_product_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTemplateMapper.xml new file mode 100644 index 0000000..6634ab2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_template + where `id` = #{id} + + + + delete from cy_product_template + ${condition} + + + + delete from cy_product_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTypeLabelInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTypeLabelInfoMapper.xml new file mode 100644 index 0000000..4ffb7aa --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTypeLabelInfoMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`color`,`imageName`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_type_label_info + + `id`,`tenantId` + ,`no` + ,`name` + ,`color` + ,`imageName` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{color} + ,#{imageName} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_type_label_info + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`color` = #{color} + ,`imageName` = #{imageName} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_type_label_info + where `id` = #{id} + + + + delete from cy_product_type_label_info + ${condition} + + + + delete from cy_product_type_label_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_product_type_label (tenantId,labelId,typeId) VALUES (#{tenantId},#{id},#{typeId}) + + + + update cy_product_type_label_info + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + DELETE FROM cy_product_type_label where `tenantId` = #{tenantId} and `labelId` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTypeMapper.xml new file mode 100644 index 0000000..df404c4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductTypeMapper.xml @@ -0,0 +1,251 @@ + + + + + + `id`,`tenantId`,`parentId`,`path`,`no`,`name`,`color`,`deleteFlag`,`sign`,`english`,`stopFlag`,`width`,`height`,`groupName`,`storageFileName`,`length`,`mimeType`,`orderNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_type + + `id`,`tenantId` + ,`parentId` + ,`path` + ,`no` + ,`name` + ,`color` + ,`deleteFlag` + ,`sign` + ,`english` + ,`stopFlag` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`length` + ,`mimeType` + ,`orderNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{parentId} + ,#{path} + ,#{no} + ,#{name} + ,#{color} + ,#{deleteFlag} + ,#{sign} + ,#{english} + ,#{stopFlag} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{length} + ,#{mimeType} + ,#{orderNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_type + + `tenantId` = #{tenantId} + ,`parentId` = #{parentId} + ,`path` = #{path} + ,`no` = #{no} + ,`name` = #{name} + ,`color` = #{color} + ,`deleteFlag` = #{deleteFlag} + ,`sign` = #{sign} + ,`english` = #{english} + ,`stopFlag` = #{stopFlag} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`length` = #{length} + ,`mimeType` = #{mimeType} + ,`orderNo` = #{orderNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_type + where `id` = #{id} + + + + delete from cy_product_type + ${condition} + + + + delete from cy_product_type + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + + update cy_product_type + set + `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where + `tenantId` = #{tenantId} and `id` = #{id} + + + + INSERT INTO + cy_product_type_brand (`tenantId`,`typeId`,`brandId`) VALUES + (#{tenantId},#{id},#{brandId}) + + + + + + DELETE FROM cy_product_type_brand + ${condition} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductUnitMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductUnitMapper.xml new file mode 100644 index 0000000..8dc25ee --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProductUnitMapper.xml @@ -0,0 +1,126 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`deleteFlag`,`noType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_unit + + `id`,`tenantId` + ,`no` + ,`name` + ,`deleteFlag` + ,`noType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{deleteFlag} + ,#{noType} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_unit + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_unit + where `id` = #{id} + + + + delete from cy_product_unit + ${condition} + + + + delete from cy_product_unit + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_product_unit + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdPictureMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdPictureMapper.xml new file mode 100644 index 0000000..2a74c9a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdPictureMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`programId`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_ad_picture + + `id`,`tenantId` + ,`programId` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_ad_picture + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_ad_picture + where `id` = #{id} + + + + delete from cy_program_ad_picture + ${condition} + + + + delete from cy_program_ad_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_program_ad_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceProductMapper.xml new file mode 100644 index 0000000..b33130b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceProductMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`programId`,`ticketId`,`ticketNo`,`productId`,`specId`,`wprice`,`wmemberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_adjust_price_product + + `id`,`tenantId` + ,`programId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`specId` + ,`wprice` + ,`wmemberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{specId} + ,#{wprice} + ,#{wmemberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_adjust_price_product + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_adjust_price_product + where `id` = #{id} + + + + delete from cy_program_adjust_price_product + ${condition} + + + + delete from cy_program_adjust_price_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceStoreMapper.xml new file mode 100644 index 0000000..9a931bf --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceStoreMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`programId`,`ticketId`,`ticketNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_adjust_price_store + + `id`,`tenantId` + ,`programId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_adjust_price_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_adjust_price_store + where `id` = #{id} + + + + delete from cy_program_adjust_price_store + ${condition} + + + + delete from cy_program_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceTicketMapper.xml new file mode 100644 index 0000000..e806fdb --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`programId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_adjust_price_ticket + + `id`,`tenantId` + ,`programId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_program_adjust_price_ticket + ${condition} + + + + delete from cy_program_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramDeliverAddressMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramDeliverAddressMapper.xml new file mode 100644 index 0000000..a206384 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramDeliverAddressMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`programId`,`memberId`,`openId`,`mobile`,`receiveName`,`receiveMobile`,`receiveAddress`,`receiveDoor`,`latitude`,`longitude`,`defaultFlag`,`addressType`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_deliver_address + + `id`,`tenantId` + ,`programId` + ,`memberId` + ,`openId` + ,`mobile` + ,`receiveName` + ,`receiveMobile` + ,`receiveAddress` + ,`receiveDoor` + ,`latitude` + ,`longitude` + ,`defaultFlag` + ,`addressType` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{receiveName} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{receiveDoor} + ,#{latitude} + ,#{longitude} + ,#{defaultFlag} + ,#{addressType} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_deliver_address + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`receiveName` = #{receiveName} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`receiveDoor` = #{receiveDoor} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`defaultFlag` = #{defaultFlag} + ,`addressType` = #{addressType} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_deliver_address + where `id` = #{id} + + + + delete from cy_program_deliver_address + ${condition} + + + + delete from cy_program_deliver_address + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateImageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateImageMapper.xml new file mode 100644 index 0000000..cdd05bb --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateImageMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`evaluateId`,`width`,`height`,`groupName`,`storageFileName`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_evaluate_image + + `id`,`tenantId` + ,`evaluateId` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{evaluateId} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_evaluate_image + + `tenantId` = #{tenantId} + ,`evaluateId` = #{evaluateId} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_evaluate_image + where `id` = #{id} + + + + delete from cy_program_evaluate_image + ${condition} + + + + delete from cy_program_evaluate_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateMapper.xml new file mode 100644 index 0000000..8a5f530 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`programId`,`memberId`,`openId`,`mobile`,`storeId`,`storeNo`,`storeName`,`touxiang`,`memberName`,`memo`,`storeLevel`,`productLevel`,`serverLevel`,`tickingTime`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_evaluate + + `id`,`tenantId` + ,`programId` + ,`memberId` + ,`openId` + ,`mobile` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`touxiang` + ,`memberName` + ,`memo` + ,`storeLevel` + ,`productLevel` + ,`serverLevel` + ,`tickingTime` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{touxiang} + ,#{memberName} + ,#{memo} + ,#{storeLevel} + ,#{productLevel} + ,#{serverLevel} + ,#{tickingTime} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_evaluate + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`touxiang` = #{touxiang} + ,`memberName` = #{memberName} + ,`memo` = #{memo} + ,`storeLevel` = #{storeLevel} + ,`productLevel` = #{productLevel} + ,`serverLevel` = #{serverLevel} + ,`tickingTime` = #{tickingTime} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_evaluate + where `id` = #{id} + + + + delete from cy_program_evaluate + ${condition} + + + + delete from cy_program_evaluate + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramIndexPictureMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramIndexPictureMapper.xml new file mode 100644 index 0000000..ef328fe --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramIndexPictureMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`programId`,`path`,`indexPictureType`,`funcName`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_index_picture + + `id`,`tenantId` + ,`programId` + ,`path` + ,`indexPictureType` + ,`funcName` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{path} + ,#{indexPictureType} + ,#{funcName} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_index_picture + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`path` = #{path} + ,`indexPictureType` = #{indexPictureType} + ,`funcName` = #{funcName} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_index_picture + where `id` = #{id} + + + + delete from cy_program_index_picture + ${condition} + + + + delete from cy_program_index_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPaymentParameterMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPaymentParameterMapper.xml new file mode 100644 index 0000000..1881ed4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPaymentParameterMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`programId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_payment_parameter + + `id`,`tenantId` + ,`programId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_payment_parameter + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_payment_parameter + where `id` = #{id} + + + + delete from cy_program_payment_parameter + ${condition} + + + + delete from cy_program_payment_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_program_payment_parameter_store (`tenantId`,`storeId`,`parameterId`,`programId`) + VALUES (#{tenantId},#{storeId},#{id},#{programId}) + + + + + + delete from cy_program_payment_parameter_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductCategoryMapper.xml new file mode 100644 index 0000000..05a68fc --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductCategoryMapper.xml @@ -0,0 +1,150 @@ + + + + + + `id`,`tenantId`,`programId`,`name`,`description`,`orderNo`,`path`,`deleteFlag`,`nameEn`,`typePath`,`typeId`,`typeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_category + + `id`,`tenantId` + ,`programId` + ,`name` + ,`description` + ,`orderNo` + ,`path` + ,`deleteFlag` + ,`nameEn` + ,`typePath` + ,`typeId` + ,`typeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{name} + ,#{description} + ,#{orderNo} + ,#{path} + ,#{deleteFlag} + ,#{nameEn} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_category + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`name` = #{name} + ,`description` = #{description} + ,`orderNo` = #{orderNo} + ,`path` = #{path} + ,`deleteFlag` = #{deleteFlag} + ,`nameEn` = #{nameEn} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_category + where `id` = #{id} + + + + delete from cy_program_product_category + ${condition} + + + + delete from cy_program_product_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_program_product_category + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductMakeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductMakeMapper.xml new file mode 100644 index 0000000..589c915 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductMakeMapper.xml @@ -0,0 +1,115 @@ + + + + + + `tenantId`,`programId`,`productId`,`typeId`,`makeId`,`addPrice` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_make + + `tenantId` + ,`programId` + ,`productId` + ,`typeId` + ,`makeId` + ,`addPrice` + + + #{tenantId} + ,#{programId} + ,#{productId} + ,#{typeId} + ,#{makeId} + ,#{addPrice} + + + + + update cy_program_product_make + + `tenantId` = #{tenantId} + ,`addPrice` = #{addPrice} + + where `makeId` = #{makeId} AND `productId` = #{productId} + + + + delete from cy_program_product_make + where `id` = #{id} + + + + delete from cy_program_product_make + ${condition} + + + + delete from cy_program_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductMapper.xml new file mode 100644 index 0000000..b5cd09f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductMapper.xml @@ -0,0 +1,268 @@ + + + + + + `id`,`tenantId`,`programId`,`categoryId`,`categoryPath`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`description`,`price`,`memberPrice`,`wprice`,`wmemberPrice`,`minCount`,`orderNo`,`isNew`,`suitFlag`,`boxPrice`,`nameEn`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`marketPrice`,`monthSaleCount`,`praise`,`saleTimeType`,`saleTime`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_program_product + + `id`,`tenantId` + ,`programId` + ,`categoryId` + ,`categoryPath` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`description` + ,`price` + ,`memberPrice` + ,`wprice` + ,`wmemberPrice` + ,`minCount` + ,`orderNo` + ,`isNew` + ,`suitFlag` + ,`boxPrice` + ,`nameEn` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`marketPrice` + ,`monthSaleCount` + ,`praise` + ,`saleTimeType` + ,`saleTime` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{categoryId} + ,#{categoryPath} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{description} + ,#{price} + ,#{memberPrice} + ,#{wprice} + ,#{wmemberPrice} + ,#{minCount} + ,#{orderNo} + ,#{isNew} + ,#{suitFlag} + ,#{boxPrice} + ,#{nameEn} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{marketPrice} + ,#{monthSaleCount} + ,#{praise} + ,#{saleTimeType} + ,#{saleTime} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`description` = #{description} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`minCount` = #{minCount} + ,`orderNo` = #{orderNo} + ,`isNew` = #{isNew} + ,`suitFlag` = #{suitFlag} + ,`boxPrice` = #{boxPrice} + ,`nameEn` = #{nameEn} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`marketPrice` = #{marketPrice} + ,`monthSaleCount` = #{monthSaleCount} + ,`praise` = #{praise} + ,`saleTimeType` = #{saleTimeType} + ,`saleTime` = #{saleTime} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product + where `id` = #{id} + + + + delete from cy_program_product + ${condition} + + + + delete from cy_program_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_program_product + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateDetailMapper.xml new file mode 100644 index 0000000..b91757f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateDetailMapper.xml @@ -0,0 +1,139 @@ + + + + + + `id`,`tenantId`,`programId`,`templateId`,`templateNo`,`productId`,`specId`,`wprice`,`wmemberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_template_detail + + `id`,`tenantId` + ,`programId` + ,`templateId` + ,`templateNo` + ,`productId` + ,`specId` + ,`wprice` + ,`wmemberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{templateId} + ,#{templateNo} + ,#{productId} + ,#{specId} + ,#{wprice} + ,#{wmemberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_template_detail + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_template_detail + where `id` = #{id} + + + + delete from cy_program_product_template_detail + ${condition} + + + + delete from cy_program_product_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateMapper.xml new file mode 100644 index 0000000..9fd7b80 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_template + + `id`,`tenantId` + ,`programId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_template + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_template + where `id` = #{id} + + + + delete from cy_program_product_template + ${condition} + + + + delete from cy_program_product_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateStoreMapper.xml new file mode 100644 index 0000000..27dbd18 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateStoreMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`programId`,`templateId`,`templateNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_template_store + + `id`,`tenantId` + ,`programId` + ,`templateId` + ,`templateNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{templateId} + ,#{templateNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_template_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_template_store + where `id` = #{id} + + + + delete from cy_program_product_template_store + ${condition} + + + + delete from cy_program_product_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListGoodsMapper.xml new file mode 100644 index 0000000..6182caf --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListGoodsMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`programId`,`tenantId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_black_list_goods + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_black_list_goods + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_goods + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_goods + ${condition} + + + + delete from cy_program_promotion_black_list_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreAreaMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreAreaMapper.xml new file mode 100644 index 0000000..9638363 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreAreaMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_black_list_store_area + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_black_list_store_area + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store_area + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store_area + ${condition} + + + + delete from cy_program_promotion_black_list_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreMapper.xml new file mode 100644 index 0000000..fce99d1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_black_list_store + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_black_list_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store + ${condition} + + + + delete from cy_program_promotion_black_list_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionCategoryMapper.xml new file mode 100644 index 0000000..6a2785b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionCategoryMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`typeId`,`typeNo`,`typeName`,`discountType`,`discount`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_category + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`discountType` + ,`discount` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{discountType} + ,#{discount} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_category + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_category + where `id` = #{id} + + + + delete from cy_program_promotion_category + ${condition} + + + + delete from cy_program_promotion_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionGoodsMapper.xml new file mode 100644 index 0000000..9fcb8ff --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionGoodsMapper.xml @@ -0,0 +1,154 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`salePrice`,`specialPrice`,`discountType`,`discount`,`limitNum`,`allLimitNum`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_goods + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`salePrice` + ,`specialPrice` + ,`discountType` + ,`discount` + ,`limitNum` + ,`allLimitNum` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{salePrice} + ,#{specialPrice} + ,#{discountType} + ,#{discount} + ,#{limitNum} + ,#{allLimitNum} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_goods + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`salePrice` = #{salePrice} + ,`specialPrice` = #{specialPrice} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`limitNum` = #{limitNum} + ,`allLimitNum` = #{allLimitNum} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_goods + where `id` = #{id} + + + + delete from cy_program_promotion_goods + ${condition} + + + + delete from cy_program_promotion_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionSchemeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionSchemeMapper.xml new file mode 100644 index 0000000..588a20b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionSchemeMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`programId`,`sn`,`promotionId`,`promotionSn`,`type`,`rule`,`memo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_scheme + + `id`,`tenantId` + ,`programId` + ,`sn` + ,`promotionId` + ,`promotionSn` + ,`type` + ,`rule` + ,`memo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{sn} + ,#{promotionId} + ,#{promotionSn} + ,#{type} + ,#{rule} + ,#{memo} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_scheme + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`sn` = #{sn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`type` = #{type} + ,`rule` = #{rule} + ,`memo` = #{memo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_scheme + where `id` = #{id} + + + + delete from cy_program_promotion_scheme + ${condition} + + + + delete from cy_program_promotion_scheme + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreAreaMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreAreaMapper.xml new file mode 100644 index 0000000..7e6281f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreAreaMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_store_area + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_store_area + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_store_area + where `id` = #{id} + + + + delete from cy_program_promotion_store_area + ${condition} + + + + delete from cy_program_promotion_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreMapper.xml new file mode 100644 index 0000000..abd266b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_store + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_store + where `id` = #{id} + + + + delete from cy_program_promotion_store + ${condition} + + + + delete from cy_program_promotion_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTaskMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTaskMapper.xml new file mode 100644 index 0000000..ae99237 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTaskMapper.xml @@ -0,0 +1,219 @@ + + + + + + `id`,`tenantId`,`programId`,`sn`,`promotionId`,`promotionSn`,`promotionType`,`storeId`,`valueType`,`valueId`,`valueNo`,`valueName`,`valueExt1`,`valueExt2`,`schemeId`,`schemeSn`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isRepeatDiscount`,`isAll`,`goodsBlackList`,`discountType`,`discountValue`,`rule`,`setMan`,`setTime`,`status`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_task + + `id`,`tenantId` + ,`programId` + ,`sn` + ,`promotionId` + ,`promotionSn` + ,`promotionType` + ,`storeId` + ,`valueType` + ,`valueId` + ,`valueNo` + ,`valueName` + ,`valueExt1` + ,`valueExt2` + ,`schemeId` + ,`schemeSn` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isRepeatDiscount` + ,`isAll` + ,`goodsBlackList` + ,`discountType` + ,`discountValue` + ,`rule` + ,`setMan` + ,`setTime` + ,`status` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{sn} + ,#{promotionId} + ,#{promotionSn} + ,#{promotionType} + ,#{storeId} + ,#{valueType} + ,#{valueId} + ,#{valueNo} + ,#{valueName} + ,#{valueExt1} + ,#{valueExt2} + ,#{schemeId} + ,#{schemeSn} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isRepeatDiscount} + ,#{isAll} + ,#{goodsBlackList} + ,#{discountType} + ,#{discountValue} + ,#{rule} + ,#{setMan} + ,#{setTime} + ,#{status} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_task + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`sn` = #{sn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`promotionType` = #{promotionType} + ,`storeId` = #{storeId} + ,`valueType` = #{valueType} + ,`valueId` = #{valueId} + ,`valueNo` = #{valueNo} + ,`valueName` = #{valueName} + ,`valueExt1` = #{valueExt1} + ,`valueExt2` = #{valueExt2} + ,`schemeId` = #{schemeId} + ,`schemeSn` = #{schemeSn} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isAll` = #{isAll} + ,`goodsBlackList` = #{goodsBlackList} + ,`discountType` = #{discountType} + ,`discountValue` = #{discountValue} + ,`rule` = #{rule} + ,`setMan` = #{setMan} + ,`setTime` = #{setTime} + ,`status` = #{status} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_task + where `id` = #{id} + + + + delete from cy_program_promotion_task + ${condition} + + + + delete from cy_program_promotion_task + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + UPDATE cy_program_promotion_task SET `status` = 2 WHERE `tenantId` = #{tenantId} + AND `status` IN (0,1) AND `promotionId` = #{promotionId} + + + + UPDATE cy_program_promotion_task SET `status` = #{status} WHERE `tenantId` = #{tenantId} + AND `status` = 2 AND `promotionId` = #{promotionId} + + + + UPDATE cy_program_promotion_task SET `status` = 1 WHERE `tenantId` = #{tenantId} + AND `status` = 0 AND `startDate` = #{today} + + + + + UPDATE cy_program_promotion_task SET `status` = 3 WHERE `tenantId` = #{tenantId} + AND `status` = 1 AND `endDate` #{yesterDay} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTicketMapper.xml new file mode 100644 index 0000000..5e8ea84 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTicketMapper.xml @@ -0,0 +1,198 @@ + + + + + + `id`,`tenantId`,`programId`,`sn`,`type`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isAll`,`isAllStore`,`isRepeatDiscount`,`isGoods`,`isCategory`,`isStore`,`isStoreArea`,`isAreaBlack`,`isStoreBlack`,`isGoodsBlack`,`status`,`memo`,`confirmUser`,`confirmDate`,`confirmStatus`,`lastTaskDate`,`lastTaskNo`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_ticket + + `id`,`tenantId` + ,`programId` + ,`sn` + ,`type` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isAll` + ,`isAllStore` + ,`isRepeatDiscount` + ,`isGoods` + ,`isCategory` + ,`isStore` + ,`isStoreArea` + ,`isAreaBlack` + ,`isStoreBlack` + ,`isGoodsBlack` + ,`status` + ,`memo` + ,`confirmUser` + ,`confirmDate` + ,`confirmStatus` + ,`lastTaskDate` + ,`lastTaskNo` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{sn} + ,#{type} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isAll} + ,#{isAllStore} + ,#{isRepeatDiscount} + ,#{isGoods} + ,#{isCategory} + ,#{isStore} + ,#{isStoreArea} + ,#{isAreaBlack} + ,#{isStoreBlack} + ,#{isGoodsBlack} + ,#{status} + ,#{memo} + ,#{confirmUser} + ,#{confirmDate} + ,#{confirmStatus} + ,#{lastTaskDate} + ,#{lastTaskNo} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_ticket + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`sn` = #{sn} + ,`type` = #{type} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isAll` = #{isAll} + ,`isAllStore` = #{isAllStore} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isGoods` = #{isGoods} + ,`isCategory` = #{isCategory} + ,`isStore` = #{isStore} + ,`isStoreArea` = #{isStoreArea} + ,`isAreaBlack` = #{isAreaBlack} + ,`isStoreBlack` = #{isStoreBlack} + ,`isGoodsBlack` = #{isGoodsBlack} + ,`status` = #{status} + ,`memo` = #{memo} + ,`confirmUser` = #{confirmUser} + ,`confirmDate` = #{confirmDate} + ,`confirmStatus` = #{confirmStatus} + ,`lastTaskDate` = #{lastTaskDate} + ,`lastTaskNo` = #{lastTaskNo} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_ticket + where `id` = #{id} + + + + delete from cy_program_promotion_ticket + ${condition} + + + + delete from cy_program_promotion_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramSettingMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramSettingMapper.xml new file mode 100644 index 0000000..aaa6c31 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramSettingMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`name`,`type`,`color`,`memberFlag`,`lineFlag`,`indexStyle`,`wxStatus`,`wxBoday`,`aliStatus`,`aliBoday`,`wxTemplate`,`aliTemplate`,`cyApi`,`cardApi`,`description`,`wid`,`enableFlag`,`dataVersion`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_setting + + `id`,`tenantId` + ,`name` + ,`type` + ,`color` + ,`memberFlag` + ,`lineFlag` + ,`indexStyle` + ,`wxStatus` + ,`wxBoday` + ,`aliStatus` + ,`aliBoday` + ,`wxTemplate` + ,`aliTemplate` + ,`cyApi` + ,`cardApi` + ,`description` + ,`wid` + ,`enableFlag` + ,`dataVersion` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{type} + ,#{color} + ,#{memberFlag} + ,#{lineFlag} + ,#{indexStyle} + ,#{wxStatus} + ,#{wxBoday} + ,#{aliStatus} + ,#{aliBoday} + ,#{wxTemplate} + ,#{aliTemplate} + ,#{cyApi} + ,#{cardApi} + ,#{description} + ,#{wid} + ,#{enableFlag} + ,#{dataVersion} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_setting + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`type` = #{type} + ,`color` = #{color} + ,`memberFlag` = #{memberFlag} + ,`lineFlag` = #{lineFlag} + ,`indexStyle` = #{indexStyle} + ,`wxStatus` = #{wxStatus} + ,`wxBoday` = #{wxBoday} + ,`aliStatus` = #{aliStatus} + ,`aliBoday` = #{aliBoday} + ,`wxTemplate` = #{wxTemplate} + ,`aliTemplate` = #{aliTemplate} + ,`cyApi` = #{cyApi} + ,`cardApi` = #{cardApi} + ,`description` = #{description} + ,`wid` = #{wid} + ,`enableFlag` = #{enableFlag} + ,`dataVersion` = #{dataVersion} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_setting + where `id` = #{id} + + + + delete from cy_program_setting + ${condition} + + + + delete from cy_program_setting + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketDeliverMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketDeliverMapper.xml new file mode 100644 index 0000000..2588d18 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketDeliverMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`programId`,`ticketId`,`busNo`,`orderTel`,`name`,`address`,`latitude`,`longitude`,`deliverType`,`deliverComName`,`deliverFee`,`logisticsDispatcherMobile`,`logisticsDispatcherName`,`logisticsReceiptTime`,`logisticsFetchTime`,`logisticsFinishTime`,`isInvalid`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_business_ticket_deliver + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`programId` + ,`ticketId` + ,`busNo` + ,`orderTel` + ,`name` + ,`address` + ,`latitude` + ,`longitude` + ,`deliverType` + ,`deliverComName` + ,`deliverFee` + ,`logisticsDispatcherMobile` + ,`logisticsDispatcherName` + ,`logisticsReceiptTime` + ,`logisticsFetchTime` + ,`logisticsFinishTime` + ,`isInvalid` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{programId} + ,#{ticketId} + ,#{busNo} + ,#{orderTel} + ,#{name} + ,#{address} + ,#{latitude} + ,#{longitude} + ,#{deliverType} + ,#{deliverComName} + ,#{deliverFee} + ,#{logisticsDispatcherMobile} + ,#{logisticsDispatcherName} + ,#{logisticsReceiptTime} + ,#{logisticsFetchTime} + ,#{logisticsFinishTime} + ,#{isInvalid} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_business_ticket_deliver + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`orderTel` = #{orderTel} + ,`name` = #{name} + ,`address` = #{address} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`deliverType` = #{deliverType} + ,`deliverComName` = #{deliverComName} + ,`deliverFee` = #{deliverFee} + ,`logisticsDispatcherMobile` = #{logisticsDispatcherMobile} + ,`logisticsDispatcherName` = #{logisticsDispatcherName} + ,`logisticsReceiptTime` = #{logisticsReceiptTime} + ,`logisticsFetchTime` = #{logisticsFetchTime} + ,`logisticsFinishTime` = #{logisticsFinishTime} + ,`isInvalid` = #{isInvalid} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_deliver + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_deliver + ${condition} + + + + delete from cy_program_store_business_ticket_deliver + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketInfoMapper.xml new file mode 100644 index 0000000..2553856 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketInfoMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`programId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_business_ticket_info + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`programId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{programId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_business_ticket_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_info + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_info + ${condition} + + + + delete from cy_program_store_business_ticket_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketMapper.xml new file mode 100644 index 0000000..4caa07d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketMapper.xml @@ -0,0 +1,242 @@ + + + + + + `id`,`clientId`,`tenantId`,`memberId`,`openId`,`sourceType`,`touxiang`,`memberName`,`mobile`,`programId`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`deliverStatus`,`refundStatus`,`saleDate`,`tableNo`,`tableName`,`people`,`busMode`,`reserveTime`,`deliverFee`,`packageFee`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`memberNo`,`memberJifen`,`isInvalid`,`seqNo`,`weather`,`weeker`,`deductionRate`,`chargeBack`,`settleFlag`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_business_ticket + + `id`,`tenantId` + ,`clientId` + ,`memberId` + ,`openId` + ,`sourceType` + ,`touxiang` + ,`memberName` + ,`mobile` + ,`programId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`deliverStatus` + ,`refundStatus` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`people` + ,`busMode` + ,`reserveTime` + ,`deliverFee` + ,`packageFee` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`memberNo` + ,`memberJifen` + ,`isInvalid` + ,`seqNo` + ,`weather` + ,`weeker` + ,`deductionRate` + ,`chargeBack` + ,`settleFlag` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{memberId} + ,#{openId} + ,#{sourceType} + ,#{touxiang} + ,#{memberName} + ,#{mobile} + ,#{programId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{deliverStatus} + ,#{refundStatus} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{people} + ,#{busMode} + ,#{reserveTime} + ,#{deliverFee} + ,#{packageFee} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{memberNo} + ,#{memberJifen} + ,#{isInvalid} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{deductionRate} + ,#{chargeBack} + ,#{settleFlag} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_business_ticket + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`sourceType` = #{sourceType} + ,`touxiang` = #{touxiang} + ,`memberName` = #{memberName} + ,`mobile` = #{mobile} + ,`programId` = #{programId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`deliverStatus` = #{deliverStatus} + ,`refundStatus` = #{refundStatus} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`reserveTime` = #{reserveTime} + ,`deliverFee` = #{deliverFee} + ,`packageFee` = #{packageFee} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`memberJifen` = #{memberJifen} + ,`isInvalid` = #{isInvalid} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`deductionRate` = #{deductionRate} + ,`chargeBack` = #{chargeBack} + ,`settleFlag` = #{settleFlag} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_business_ticket + where `id` = #{id} + + + + delete from cy_program_store_business_ticket + ${condition} + + + + delete from cy_program_store_business_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreMapper.xml new file mode 100644 index 0000000..34fd7a8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreMapper.xml @@ -0,0 +1,252 @@ + + + + + + `id`,`tenantId`,`programId`,`storeId`,`storeNo`,`storeName`,`orderTel`,`address`,`latitude`,`longitude`,`noticeInfo`,`isOpen`,`memberPriceEnabled`,`memberPayEnabled`,`storeMakeEnabled`,`paymentParamEnabled`,`openTimeType`,`openTime`,`discomFlag`,`autoDeliveryFlag`,`distributionSelfLimits`,`deliverType`,`deliverParameter`,`deliverFee`,`deliverFeeDiscountType`,`deliverFeeDiscountRule`,`deliverMoney`,`deliverKilometre`,`busModes`,`takeOutBoxFeeFlag`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`memoTags`,`enabled`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store + + `id`,`tenantId` + ,`programId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`orderTel` + ,`address` + ,`latitude` + ,`longitude` + ,`noticeInfo` + ,`isOpen` + ,`memberPriceEnabled` + ,`memberPayEnabled` + ,`storeMakeEnabled` + ,`paymentParamEnabled` + ,`openTimeType` + ,`openTime` + ,`discomFlag` + ,`autoDeliveryFlag` + ,`distributionSelfLimits` + ,`deliverType` + ,`deliverParameter` + ,`deliverFee` + ,`deliverFeeDiscountType` + ,`deliverFeeDiscountRule` + ,`deliverMoney` + ,`deliverKilometre` + ,`busModes` + ,`takeOutBoxFeeFlag` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`memoTags` + ,`enabled` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{orderTel} + ,#{address} + ,#{latitude} + ,#{longitude} + ,#{noticeInfo} + ,#{isOpen} + ,#{memberPriceEnabled} + ,#{memberPayEnabled} + ,#{storeMakeEnabled} + ,#{paymentParamEnabled} + ,#{openTimeType} + ,#{openTime} + ,#{discomFlag} + ,#{autoDeliveryFlag} + ,#{distributionSelfLimits} + ,#{deliverType} + ,#{deliverParameter} + ,#{deliverFee} + ,#{deliverFeeDiscountType} + ,#{deliverFeeDiscountRule} + ,#{deliverMoney} + ,#{deliverKilometre} + ,#{busModes} + ,#{takeOutBoxFeeFlag} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{memoTags} + ,#{enabled} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`orderTel` = #{orderTel} + ,`address` = #{address} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`noticeInfo` = #{noticeInfo} + ,`isOpen` = #{isOpen} + ,`memberPriceEnabled` = #{memberPriceEnabled} + ,`memberPayEnabled` = #{memberPayEnabled} + ,`storeMakeEnabled` = #{storeMakeEnabled} + ,`paymentParamEnabled` = #{paymentParamEnabled} + ,`openTimeType` = #{openTimeType} + ,`openTime` = #{openTime} + ,`discomFlag` = #{discomFlag} + ,`autoDeliveryFlag` = #{autoDeliveryFlag} + ,`distributionSelfLimits` = #{distributionSelfLimits} + ,`deliverType` = #{deliverType} + ,`deliverParameter` = #{deliverParameter} + ,`deliverFee` = #{deliverFee} + ,`deliverFeeDiscountType` = #{deliverFeeDiscountType} + ,`deliverFeeDiscountRule` = #{deliverFeeDiscountRule} + ,`deliverMoney` = #{deliverMoney} + ,`deliverKilometre` = #{deliverKilometre} + ,`busModes` = #{busModes} + ,`takeOutBoxFeeFlag` = #{takeOutBoxFeeFlag} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`memoTags` = #{memoTags} + ,`enabled` = #{enabled} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store + where `id` = #{id} + + + + delete from cy_program_store + ${condition} + + + + delete from cy_program_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductInfoMapper.xml new file mode 100644 index 0000000..c3e4a4e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductInfoMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`clientId`,`programId`,`orderItemId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_order_product_info + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`orderItemId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{orderItemId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_order_product_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_order_product_info + where `id` = #{id} + + + + delete from cy_program_store_order_product_info + ${condition} + + + + delete from cy_program_store_order_product_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMakeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMakeMapper.xml new file mode 100644 index 0000000..7be4150 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMakeMapper.xml @@ -0,0 +1,182 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`orderItemId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`hand`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_order_product_make + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`orderItemId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`hand` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{orderItemId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{hand} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_order_product_make + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`hand` = #{hand} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_order_product_make + where `id` = #{id} + + + + delete from cy_program_store_order_product_make + ${condition} + + + + delete from cy_program_store_order_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMapper.xml new file mode 100644 index 0000000..654f06f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMapper.xml @@ -0,0 +1,260 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`programId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`busMode`,`tableNo`,`tableName`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`productImageUrl`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`saleDate`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`packageFee`,`isMember`,`memberNo`,`isInvalid`,`lineNo`,`seqNo`,`weather`,`weeker`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_order_product + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`programId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`tableName` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`productImageUrl` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`saleDate` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`packageFee` + ,`isMember` + ,`memberNo` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`weather` + ,`weeker` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{programId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{tableName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{productImageUrl} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{saleDate} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{packageFee} + ,#{isMember} + ,#{memberNo} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_order_product + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`productImageUrl` = #{productImageUrl} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`saleDate` = #{saleDate} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`packageFee` = #{packageFee} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_order_product + where `id` = #{id} + + + + delete from cy_program_store_order_product + ${condition} + + + + delete from cy_program_store_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStorePayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStorePayMapper.xml new file mode 100644 index 0000000..adecd67 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStorePayMapper.xml @@ -0,0 +1,215 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`storeId`,`storeNo`,`storeName`,`payNo`,`ticketId`,`busNo`,`busMode`,`tableNo`,`tableName`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`voucherNo`,`payDate`,`cardno`,`cardYe`,`cardJf`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payChannel`,`deductionRate`,`chargeBack`,`settleFlag`,`memo`,`isInvalid`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_pay + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`tableName` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`cardYe` + ,`cardJf` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payChannel` + ,`deductionRate` + ,`chargeBack` + ,`settleFlag` + ,`memo` + ,`isInvalid` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{tableName} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{cardYe} + ,#{cardJf} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payChannel} + ,#{deductionRate} + ,#{chargeBack} + ,#{settleFlag} + ,#{memo} + ,#{isInvalid} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`cardYe` = #{cardYe} + ,`cardJf` = #{cardJf} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payChannel` = #{payChannel} + ,`deductionRate` = #{deductionRate} + ,`chargeBack` = #{chargeBack} + ,`settleFlag` = #{settleFlag} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_pay + where `id` = #{id} + + + + delete from cy_program_store_pay + ${condition} + + + + delete from cy_program_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreProductMapper.xml new file mode 100644 index 0000000..5f4b752 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ProgramStoreProductMapper.xml @@ -0,0 +1,195 @@ + + + + + + `id`,`tenantId`,`programId`,`storeId`,`productId`,`specId`,`productUnitId`,`typeId`,`typePath`,`wprice`,`wmemberPrice`,`totalStock`,`saleStock`,`stock`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_product + + `id`,`tenantId` + ,`programId` + ,`storeId` + ,`productId` + ,`specId` + ,`productUnitId` + ,`typeId` + ,`typePath` + ,`wprice` + ,`wmemberPrice` + ,`totalStock` + ,`saleStock` + ,`stock` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{storeId} + ,#{productId} + ,#{specId} + ,#{productUnitId} + ,#{typeId} + ,#{typePath} + ,#{wprice} + ,#{wmemberPrice} + ,#{totalStock} + ,#{saleStock} + ,#{stock} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_product + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productUnitId` = #{productUnitId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`totalStock` = #{totalStock} + ,`saleStock` = #{saleStock} + ,`stock` = #{stock} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_product + where `id` = #{id} + + + + delete from cy_program_store_product + ${condition} + + + + delete from cy_program_store_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_program_store_product + + `tenantId` = #{tenantId} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `specId` = #{specId} + + + + + + + + update cy_program_store_product set stock = + stock-#{stock} ,saleStock = saleStock+#{stock} where `tenantId` = + #{tenantId} and `storeId` = #{storeId} and `specId` = #{specId} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListGoodsMapper.xml new file mode 100644 index 0000000..9ecb0b9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListGoodsMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_black_list_goods + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_black_list_goods + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_black_list_goods + where `id` = #{id} + + + + delete from cy_promotion_black_list_goods + ${condition} + + + + delete from cy_promotion_black_list_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreAreaMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreAreaMapper.xml new file mode 100644 index 0000000..6e57a6e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreAreaMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_black_list_store_area + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_black_list_store_area + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_black_list_store_area + where `id` = #{id} + + + + delete from cy_promotion_black_list_store_area + ${condition} + + + + delete from cy_promotion_black_list_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreMapper.xml new file mode 100644 index 0000000..ac76436 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_black_list_store + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_black_list_store + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_black_list_store + where `id` = #{id} + + + + delete from cy_promotion_black_list_store + ${condition} + + + + delete from cy_promotion_black_list_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionCategoryMapper.xml new file mode 100644 index 0000000..d2f274a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionCategoryMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`typeId`,`typeNo`,`typeName`,`discountType`,`discount`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_category + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`discountType` + ,`discount` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{discountType} + ,#{discount} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_category + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_category + where `id` = #{id} + + + + delete from cy_promotion_category + ${condition} + + + + delete from cy_promotion_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionGoodsMapper.xml new file mode 100644 index 0000000..20ea012 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionGoodsMapper.xml @@ -0,0 +1,151 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`salePrice`,`specialPrice`,`discountType`,`discount`,`limitNum`,`allLimitNum`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_goods + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`salePrice` + ,`specialPrice` + ,`discountType` + ,`discount` + ,`limitNum` + ,`allLimitNum` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{salePrice} + ,#{specialPrice} + ,#{discountType} + ,#{discount} + ,#{limitNum} + ,#{allLimitNum} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_goods + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`salePrice` = #{salePrice} + ,`specialPrice` = #{specialPrice} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`limitNum` = #{limitNum} + ,`allLimitNum` = #{allLimitNum} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_goods + where `id` = #{id} + + + + delete from cy_promotion_goods + ${condition} + + + + delete from cy_promotion_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionScheduleMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionScheduleMapper.xml new file mode 100644 index 0000000..642a21b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionScheduleMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`sn`,`name`,`startDate`,`endDate`,`status`,`memo`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_schedule + + `id`,`tenantId` + ,`sn` + ,`name` + ,`startDate` + ,`endDate` + ,`status` + ,`memo` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{sn} + ,#{name} + ,#{startDate} + ,#{endDate} + ,#{status} + ,#{memo} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_schedule + + `tenantId` = #{tenantId} + ,`sn` = #{sn} + ,`name` = #{name} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`status` = #{status} + ,`memo` = #{memo} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_schedule + where `id` = #{id} + + + + delete from cy_promotion_schedule + ${condition} + + + + delete from cy_promotion_schedule + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionSchemeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionSchemeMapper.xml new file mode 100644 index 0000000..ebeacb8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionSchemeMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`sn`,`promotionId`,`promotionSn`,`type`,`rule`,`memo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_scheme + + `id`,`tenantId` + ,`sn` + ,`promotionId` + ,`promotionSn` + ,`type` + ,`rule` + ,`memo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{sn} + ,#{promotionId} + ,#{promotionSn} + ,#{type} + ,#{rule} + ,#{memo} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_scheme + + `tenantId` = #{tenantId} + ,`sn` = #{sn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`type` = #{type} + ,`rule` = #{rule} + ,`memo` = #{memo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_scheme + where `id` = #{id} + + + + delete from cy_promotion_scheme + ${condition} + + + + delete from cy_promotion_scheme + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionStoreAreaMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionStoreAreaMapper.xml new file mode 100644 index 0000000..9b31595 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionStoreAreaMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_store_area + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_store_area + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_store_area + where `id` = #{id} + + + + delete from cy_promotion_store_area + ${condition} + + + + delete from cy_promotion_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionStoreMapper.xml new file mode 100644 index 0000000..b1a1487 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionStoreMapper.xml @@ -0,0 +1,118 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_store + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_store + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_store + where `id` = #{id} + + + + delete from cy_promotion_store + ${condition} + + + + delete from cy_promotion_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionTaskMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionTaskMapper.xml new file mode 100644 index 0000000..b685944 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionTaskMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`sn`,`scheduleId`,`scheduleSn`,`promotionId`,`promotionSn`,`promotionType`,`storeId`,`valueType`,`valueId`,`valueNo`,`valueName`,`valueExt1`,`valueExt2`,`schemeId`,`schemeSn`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isRepeatDiscount`,`isAll`,`goodsBlackList`,`discountType`,`discountValue`,`rule`,`setMan`,`setTime`,`status`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_task + + `id`,`tenantId` + ,`sn` + ,`scheduleId` + ,`scheduleSn` + ,`promotionId` + ,`promotionSn` + ,`promotionType` + ,`storeId` + ,`valueType` + ,`valueId` + ,`valueNo` + ,`valueName` + ,`valueExt1` + ,`valueExt2` + ,`schemeId` + ,`schemeSn` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isRepeatDiscount` + ,`isAll` + ,`goodsBlackList` + ,`discountType` + ,`discountValue` + ,`rule` + ,`setMan` + ,`setTime` + ,`status` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{sn} + ,#{scheduleId} + ,#{scheduleSn} + ,#{promotionId} + ,#{promotionSn} + ,#{promotionType} + ,#{storeId} + ,#{valueType} + ,#{valueId} + ,#{valueNo} + ,#{valueName} + ,#{valueExt1} + ,#{valueExt2} + ,#{schemeId} + ,#{schemeSn} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isRepeatDiscount} + ,#{isAll} + ,#{goodsBlackList} + ,#{discountType} + ,#{discountValue} + ,#{rule} + ,#{setMan} + ,#{setTime} + ,#{status} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_task + + `tenantId` = #{tenantId} + ,`sn` = #{sn} + ,`scheduleId` = #{scheduleId} + ,`scheduleSn` = #{scheduleSn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`promotionType` = #{promotionType} + ,`storeId` = #{storeId} + ,`valueType` = #{valueType} + ,`valueId` = #{valueId} + ,`valueNo` = #{valueNo} + ,`valueName` = #{valueName} + ,`valueExt1` = #{valueExt1} + ,`valueExt2` = #{valueExt2} + ,`schemeId` = #{schemeId} + ,`schemeSn` = #{schemeSn} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isAll` = #{isAll} + ,`goodsBlackList` = #{goodsBlackList} + ,`discountType` = #{discountType} + ,`discountValue` = #{discountValue} + ,`rule` = #{rule} + ,`setMan` = #{setMan} + ,`setTime` = #{setTime} + ,`status` = #{status} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_task + where `id` = #{id} + + + + delete from cy_promotion_task + ${condition} + + + + delete from cy_promotion_task + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + UPDATE cy_promotion_task SET `status` = 1 WHERE `tenantId` = #{tenantId} + AND `status` = 0 AND `startDate` = #{today} + + + + + UPDATE cy_promotion_task SET `status` = 3 WHERE `tenantId` = #{tenantId} + AND `status` = 1 AND `endDate` #{yesterDay} + + + + UPDATE cy_promotion_task SET `status` = 2 WHERE `tenantId` = #{tenantId} + AND `status` IN (0,1) AND `promotionId` = #{promotionId} + + + + UPDATE cy_promotion_task SET `status` = #{status} WHERE `tenantId` = #{tenantId} + AND `status` = 2 AND `promotionId` = #{promotionId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionTicketMapper.xml new file mode 100644 index 0000000..896c441 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PromotionTicketMapper.xml @@ -0,0 +1,211 @@ + + + + + + `id`,`tenantId`,`scheduleId`,`scheduleSn`,`sn`,`type`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isAll`,`isAllStore`,`isRepeatDiscount`,`isGoods`,`isCategory`,`isStore`,`isStoreArea`,`isAreaBlack`,`isStoreBlack`,`isGoodsBlack`,`status`,`memo`,`confirmUser`,`confirmDate`,`confirmStatus`,`lastTaskDate`,`lastTaskNo`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_ticket + + `id`,`tenantId` + ,`scheduleId` + ,`scheduleSn` + ,`sn` + ,`type` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isAll` + ,`isAllStore` + ,`isRepeatDiscount` + ,`isGoods` + ,`isCategory` + ,`isStore` + ,`isStoreArea` + ,`isAreaBlack` + ,`isStoreBlack` + ,`isGoodsBlack` + ,`status` + ,`memo` + ,`confirmUser` + ,`confirmDate` + ,`confirmStatus` + ,`lastTaskDate` + ,`lastTaskNo` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{scheduleId} + ,#{scheduleSn} + ,#{sn} + ,#{type} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isAll} + ,#{isAllStore} + ,#{isRepeatDiscount} + ,#{isGoods} + ,#{isCategory} + ,#{isStore} + ,#{isStoreArea} + ,#{isAreaBlack} + ,#{isStoreBlack} + ,#{isGoodsBlack} + ,#{status} + ,#{memo} + ,#{confirmUser} + ,#{confirmDate} + ,#{confirmStatus} + ,#{lastTaskDate} + ,#{lastTaskNo} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_ticket + + `tenantId` = #{tenantId} + ,`scheduleId` = #{scheduleId} + ,`scheduleSn` = #{scheduleSn} + ,`sn` = #{sn} + ,`type` = #{type} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isAll` = #{isAll} + ,`isAllStore` = #{isAllStore} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isGoods` = #{isGoods} + ,`isCategory` = #{isCategory} + ,`isStore` = #{isStore} + ,`isStoreArea` = #{isStoreArea} + ,`isAreaBlack` = #{isAreaBlack} + ,`isStoreBlack` = #{isStoreBlack} + ,`isGoodsBlack` = #{isGoodsBlack} + ,`status` = #{status} + ,`memo` = #{memo} + ,`confirmUser` = #{confirmUser} + ,`confirmDate` = #{confirmDate} + ,`confirmStatus` = #{confirmStatus} + ,`lastTaskDate` = #{lastTaskDate} + ,`lastTaskNo` = #{lastTaskNo} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_ticket + where `id` = #{id} + + + + delete from cy_promotion_ticket + ${condition} + + + + delete from cy_promotion_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + UPDATE cy_promotion_ticket SET `status` = 1 WHERE `tenantId` = #{tenantId} + AND `status` = 0 AND `confirmStatus` = 1 AND `startDate` #{today} + + + + UPDATE cy_promotion_ticket SET `status` = 3 WHERE `tenantId` = #{tenantId} + AND `status` = 1 AND `confirmStatus` = 1 AND `endDate` = ]]> #{yesterDay} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketDetailMapper.xml new file mode 100644 index 0000000..21a7df7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketDetailMapper.xml @@ -0,0 +1,181 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`pdScale`,`amount`,`price`,`money`,`giveUnitId`,`giveUnitName`,`giveAmount`,`description`,`pbNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_storage_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`pdScale` + ,`amount` + ,`price` + ,`money` + ,`giveUnitId` + ,`giveUnitName` + ,`giveAmount` + ,`description` + ,`pbNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{pdScale} + ,#{amount} + ,#{price} + ,#{money} + ,#{giveUnitId} + ,#{giveUnitName} + ,#{giveAmount} + ,#{description} + ,#{pbNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_storage_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`pdScale` = #{pdScale} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`giveUnitId` = #{giveUnitId} + ,`giveUnitName` = #{giveUnitName} + ,`giveAmount` = #{giveAmount} + ,`description` = #{description} + ,`pbNo` = #{pbNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_detail + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_detail + ${condition} + + + + delete from cy_purchase_storage_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketLogMapper.xml new file mode 100644 index 0000000..9f520b9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_storage_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchase_storage_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_log + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_log + ${condition} + + + + delete from cy_purchase_storage_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketMapper.xml new file mode 100644 index 0000000..8e619c4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`no`,`purchaseTicketId`,`purchaseTicketNo`,`supplierId`,`supplierNo`,`supplierName`,`storageId`,`storageName`,`description`,`status`,`purchaseUser`,`stockMan`,`setMan`,`setDate`,`checkMan`,`checkDate`,`orderMoney`,`isPayment`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_storage_ticket + + `id`,`tenantId` + ,`no` + ,`purchaseTicketId` + ,`purchaseTicketNo` + ,`supplierId` + ,`supplierNo` + ,`supplierName` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`purchaseUser` + ,`stockMan` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`orderMoney` + ,`isPayment` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{purchaseTicketId} + ,#{purchaseTicketNo} + ,#{supplierId} + ,#{supplierNo} + ,#{supplierName} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{purchaseUser} + ,#{stockMan} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{orderMoney} + ,#{isPayment} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_storage_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`purchaseTicketId` = #{purchaseTicketId} + ,`purchaseTicketNo` = #{purchaseTicketNo} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`supplierName` = #{supplierName} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`purchaseUser` = #{purchaseUser} + ,`stockMan` = #{stockMan} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`orderMoney` = #{orderMoney} + ,`isPayment` = #{isPayment} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket + ${condition} + + + + delete from cy_purchase_storage_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateDetailMapper.xml new file mode 100644 index 0000000..afd04b8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateDetailMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`dispatchUnitId`,`dispatchUnitName`,`specId`,`specName`,`productDescription`,`purchaseUnitId`,`purchaseUnitName`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`specId` + ,`specName` + ,`productDescription` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_template_detail + where `id` = #{id} + + + + delete from cy_purchase_template_detail + ${condition} + + + + delete from cy_purchase_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateMapper.xml new file mode 100644 index 0000000..7cde27c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`type`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`type` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{type} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`type` = #{type} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_template + where `id` = #{id} + + + + delete from cy_purchase_template + ${condition} + + + + delete from cy_purchase_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketDetailMapper.xml new file mode 100644 index 0000000..c640872 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketDetailMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`stockAmount`,`purchaseUnitId`,`purchaseUnitName`,`pdScale`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`stockAmount` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`pdScale` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{stockAmount} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{pdScale} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`stockAmount` = #{stockAmount} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`pdScale` = #{pdScale} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_ticket_detail + where `id` = #{id} + + + + delete from cy_purchase_ticket_detail + ${condition} + + + + delete from cy_purchase_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketLogMapper.xml new file mode 100644 index 0000000..5cded57 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchase_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchase_ticket_log + where `id` = #{id} + + + + delete from cy_purchase_ticket_log + ${condition} + + + + delete from cy_purchase_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketMapper.xml new file mode 100644 index 0000000..244a705 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchaseTicketMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`no`,`storageId`,`supplierId`,`supplierNo`,`deliveryDate`,`status`,`isUse`,`purchaseUser`,`setMan`,`setDate`,`checkMan`,`checkDate`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_ticket + + `id`,`tenantId` + ,`no` + ,`storageId` + ,`supplierId` + ,`supplierNo` + ,`deliveryDate` + ,`status` + ,`isUse` + ,`purchaseUser` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storageId} + ,#{supplierId} + ,#{supplierNo} + ,#{deliveryDate} + ,#{status} + ,#{isUse} + ,#{purchaseUser} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storageId` = #{storageId} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`deliveryDate` = #{deliveryDate} + ,`status` = #{status} + ,`isUse` = #{isUse} + ,`purchaseUser` = #{purchaseUser} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_ticket + where `id` = #{id} + + + + delete from cy_purchase_ticket + ${condition} + + + + delete from cy_purchase_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceMapper.xml new file mode 100644 index 0000000..d056764 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`supplierId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`purchasePrice`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchaseprice + + `id`,`tenantId` + ,`supplierId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`purchasePrice` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{supplierId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{purchasePrice} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchaseprice + + `tenantId` = #{tenantId} + ,`supplierId` = #{supplierId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`purchasePrice` = #{purchasePrice} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchaseprice + where `id` = #{id} + + + + delete from cy_purchaseprice + ${condition} + + + + delete from cy_purchaseprice + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMapper.xml new file mode 100644 index 0000000..477642a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`makeUser`,`makeDate`,`checkUser`,`checkDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchaseprice_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`makeUser` + ,`makeDate` + ,`checkUser` + ,`checkDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{makeUser} + ,#{makeDate} + ,#{checkUser} + ,#{checkDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchaseprice_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`makeUser` = #{makeUser} + ,`makeDate` = #{makeDate} + ,`checkUser` = #{checkUser} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket + ${condition} + + + + delete from cy_purchaseprice_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMaterialMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMaterialMapper.xml new file mode 100644 index 0000000..b5dc528 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMaterialMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`ticketId`,`supplierId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`purchaseUnitId`,`hpurchasePrice`,`purchasePrice`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchaseprice_ticket_material + + `id`,`tenantId` + ,`ticketId` + ,`supplierId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`purchaseUnitId` + ,`hpurchasePrice` + ,`purchasePrice` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{supplierId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{purchaseUnitId} + ,#{hpurchasePrice} + ,#{purchasePrice} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchaseprice_ticket_material + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`supplierId` = #{supplierId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`hpurchasePrice` = #{hpurchasePrice} + ,`purchasePrice` = #{purchasePrice} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket_material + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket_material + ${condition} + + + + delete from cy_purchaseprice_ticket_material + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceGoodsMapper.xml new file mode 100644 index 0000000..001d95d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceGoodsMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_adjust_price_goods + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_adjust_price_goods + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_goods + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_goods + ${condition} + + + + delete from cy_qimai_adjust_price_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceStoreMapper.xml new file mode 100644 index 0000000..f14cf41 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceStoreMapper.xml @@ -0,0 +1,120 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_adjust_price_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_adjust_price_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_store + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_store + ${condition} + + + + delete from cy_qimai_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceTicketMapper.xml new file mode 100644 index 0000000..b055984 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceTicketMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_adjust_price_ticket + + `id`,`tenantId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_ticket + ${condition} + + + + delete from cy_qimai_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAttributeCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAttributeCategoryMapper.xml new file mode 100644 index 0000000..3e8b7a9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAttributeCategoryMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`specFlag`,`multiId`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_attribute_category + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`specFlag` + ,`multiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{specFlag} + ,#{multiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_attribute_category + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`specFlag` = #{specFlag} + ,`multiId` = #{multiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_attribute_category + where `id` = #{id} + + + + delete from cy_qimai_attribute_category + ${condition} + + + + delete from cy_qimai_attribute_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAttributeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAttributeMapper.xml new file mode 100644 index 0000000..47d6f48 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiAttributeMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`categoryId`,`multiId`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_attribute + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`categoryId` + ,`multiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{categoryId} + ,#{multiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_attribute + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`categoryId` = #{categoryId} + ,`multiId` = #{multiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_attribute + where `id` = #{id} + + + + delete from cy_qimai_attribute + ${condition} + + + + delete from cy_qimai_attribute + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiChargeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiChargeMapper.xml new file mode 100644 index 0000000..17bf9a1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiChargeMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`setId`,`name`,`no`,`makeDetailId`,`multiId`,`type`,`tsPrice`,`wmPrice`,`enabled`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_charge + + `id`,`tenantId` + ,`setId` + ,`name` + ,`no` + ,`makeDetailId` + ,`multiId` + ,`type` + ,`tsPrice` + ,`wmPrice` + ,`enabled` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{name} + ,#{no} + ,#{makeDetailId} + ,#{multiId} + ,#{type} + ,#{tsPrice} + ,#{wmPrice} + ,#{enabled} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_charge + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`name` = #{name} + ,`no` = #{no} + ,`makeDetailId` = #{makeDetailId} + ,`multiId` = #{multiId} + ,`type` = #{type} + ,`tsPrice` = #{tsPrice} + ,`wmPrice` = #{wmPrice} + ,`enabled` = #{enabled} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_charge + where `id` = #{id} + + + + delete from cy_qimai_charge + ${condition} + + + + delete from cy_qimai_charge + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderItemMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderItemMapper.xml new file mode 100644 index 0000000..141442e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderItemMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`orderId`,`dishId`,`name`,`image`,`price`,`minus`,`costPrice`,`num`,`isSend`,`sentAt`,`isGive`,`incomeRate`,`tradeMark`,`incomeRate2`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_order_item + + `id`,`tenantId` + ,`orderId` + ,`dishId` + ,`name` + ,`image` + ,`price` + ,`minus` + ,`costPrice` + ,`num` + ,`isSend` + ,`sentAt` + ,`isGive` + ,`incomeRate` + ,`tradeMark` + ,`incomeRate2` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{dishId} + ,#{name} + ,#{image} + ,#{price} + ,#{minus} + ,#{costPrice} + ,#{num} + ,#{isSend} + ,#{sentAt} + ,#{isGive} + ,#{incomeRate} + ,#{tradeMark} + ,#{incomeRate2} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_order_item + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`dishId` = #{dishId} + ,`name` = #{name} + ,`image` = #{image} + ,`price` = #{price} + ,`minus` = #{minus} + ,`costPrice` = #{costPrice} + ,`num` = #{num} + ,`isSend` = #{isSend} + ,`sentAt` = #{sentAt} + ,`isGive` = #{isGive} + ,`incomeRate` = #{incomeRate} + ,`tradeMark` = #{tradeMark} + ,`incomeRate2` = #{incomeRate2} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_order_item + where `id` = #{id} + + + + delete from cy_qimai_order_item + ${condition} + + + + delete from cy_qimai_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderMapper.xml new file mode 100644 index 0000000..5f42270 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderMapper.xml @@ -0,0 +1,260 @@ + + + + + + `id`,`tenantId`,`message`,`storeId`,`orderId`,`multiStoreName`,`multiStoreId`,`orderNo`,`createdTime`,`payTime`,`status`,`sortNum`,`amount`,`totalAmount`,`minusAmount`,`useCoupon`,`couponType`,`postscript`,`typeCateText`,`userName`,`payUserName`,`source`,`sourceTxt`,`moblie`,`userNameAll`,`goodsName`,`refundOrderId`,`refundOrderStatus`,`refundOrderStatusText`,`goods`,`mutilUser`,`tableNumber`,`freight`,`tablewarePrice`,`finalStatus`,`statusText`,`peopleNumber`,`multiStoreMark`,`completedAt`,`reserveTakeoutTime`,`mealTime`,`express`,`lat`,`lng`,`thirdDelivery`,`acceptName`,`acceptMobile`,`address`,`payModel`,`walletAmount`,`receivableAmount`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_order + + `id`,`tenantId` + ,`message` + ,`storeId` + ,`orderId` + ,`multiStoreName` + ,`multiStoreId` + ,`orderNo` + ,`createdTime` + ,`payTime` + ,`status` + ,`sortNum` + ,`amount` + ,`totalAmount` + ,`minusAmount` + ,`useCoupon` + ,`couponType` + ,`postscript` + ,`typeCateText` + ,`userName` + ,`payUserName` + ,`source` + ,`sourceTxt` + ,`moblie` + ,`userNameAll` + ,`goodsName` + ,`refundOrderId` + ,`refundOrderStatus` + ,`refundOrderStatusText` + ,`goods` + ,`mutilUser` + ,`tableNumber` + ,`freight` + ,`tablewarePrice` + ,`finalStatus` + ,`statusText` + ,`peopleNumber` + ,`multiStoreMark` + ,`completedAt` + ,`reserveTakeoutTime` + ,`mealTime` + ,`express` + ,`lat` + ,`lng` + ,`thirdDelivery` + ,`acceptName` + ,`acceptMobile` + ,`address` + ,`payModel` + ,`walletAmount` + ,`receivableAmount` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{storeId} + ,#{orderId} + ,#{multiStoreName} + ,#{multiStoreId} + ,#{orderNo} + ,#{createdTime} + ,#{payTime} + ,#{status} + ,#{sortNum} + ,#{amount} + ,#{totalAmount} + ,#{minusAmount} + ,#{useCoupon} + ,#{couponType} + ,#{postscript} + ,#{typeCateText} + ,#{userName} + ,#{payUserName} + ,#{source} + ,#{sourceTxt} + ,#{moblie} + ,#{userNameAll} + ,#{goodsName} + ,#{refundOrderId} + ,#{refundOrderStatus} + ,#{refundOrderStatusText} + ,#{goods} + ,#{mutilUser} + ,#{tableNumber} + ,#{freight} + ,#{tablewarePrice} + ,#{finalStatus} + ,#{statusText} + ,#{peopleNumber} + ,#{multiStoreMark} + ,#{completedAt} + ,#{reserveTakeoutTime} + ,#{mealTime} + ,#{express} + ,#{lat} + ,#{lng} + ,#{thirdDelivery} + ,#{acceptName} + ,#{acceptMobile} + ,#{address} + ,#{payModel} + ,#{walletAmount} + ,#{receivableAmount} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_order + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`storeId` = #{storeId} + ,`orderId` = #{orderId} + ,`multiStoreName` = #{multiStoreName} + ,`multiStoreId` = #{multiStoreId} + ,`orderNo` = #{orderNo} + ,`createdTime` = #{createdTime} + ,`payTime` = #{payTime} + ,`status` = #{status} + ,`sortNum` = #{sortNum} + ,`amount` = #{amount} + ,`totalAmount` = #{totalAmount} + ,`minusAmount` = #{minusAmount} + ,`useCoupon` = #{useCoupon} + ,`couponType` = #{couponType} + ,`postscript` = #{postscript} + ,`typeCateText` = #{typeCateText} + ,`userName` = #{userName} + ,`payUserName` = #{payUserName} + ,`source` = #{source} + ,`sourceTxt` = #{sourceTxt} + ,`moblie` = #{moblie} + ,`userNameAll` = #{userNameAll} + ,`goodsName` = #{goodsName} + ,`refundOrderId` = #{refundOrderId} + ,`refundOrderStatus` = #{refundOrderStatus} + ,`refundOrderStatusText` = #{refundOrderStatusText} + ,`goods` = #{goods} + ,`mutilUser` = #{mutilUser} + ,`tableNumber` = #{tableNumber} + ,`freight` = #{freight} + ,`tablewarePrice` = #{tablewarePrice} + ,`finalStatus` = #{finalStatus} + ,`statusText` = #{statusText} + ,`peopleNumber` = #{peopleNumber} + ,`multiStoreMark` = #{multiStoreMark} + ,`completedAt` = #{completedAt} + ,`reserveTakeoutTime` = #{reserveTakeoutTime} + ,`mealTime` = #{mealTime} + ,`express` = #{express} + ,`lat` = #{lat} + ,`lng` = #{lng} + ,`thirdDelivery` = #{thirdDelivery} + ,`acceptName` = #{acceptName} + ,`acceptMobile` = #{acceptMobile} + ,`address` = #{address} + ,`payModel` = #{payModel} + ,`walletAmount` = #{walletAmount} + ,`receivableAmount` = #{receivableAmount} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_order + where `id` = #{id} + + + + delete from cy_qimai_order + ${condition} + + + + delete from cy_qimai_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderPayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderPayMapper.xml new file mode 100644 index 0000000..e44481d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiOrderPayMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`orderId`,`name`,`type`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_order_pay + + `id`,`tenantId` + ,`orderId` + ,`name` + ,`type` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{name} + ,#{type} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_order_pay + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`name` = #{name} + ,`type` = #{type} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_order_pay + where `id` = #{id} + + + + delete from cy_qimai_order_pay + ${condition} + + + + delete from cy_qimai_order_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductAttributeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductAttributeMapper.xml new file mode 100644 index 0000000..1d7cb7c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductAttributeMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`attributeId`,`no`,`name`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_attribute + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`attributeId` + ,`no` + ,`name` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{attributeId} + ,#{no} + ,#{name} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_product_attribute + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`attributeId` = #{attributeId} + ,`no` = #{no} + ,`name` = #{name} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_product_attribute + where `id` = #{id} + + + + delete from cy_qimai_product_attribute + ${condition} + + + + delete from cy_qimai_product_attribute + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductCategoryMapper.xml new file mode 100644 index 0000000..259580f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductCategoryMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`type`,`multiId`,`showPeriod`,`beginDate`,`endDate`,`weeks`,`period`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_category + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`type` + ,`multiId` + ,`showPeriod` + ,`beginDate` + ,`endDate` + ,`weeks` + ,`period` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{type} + ,#{multiId} + ,#{showPeriod} + ,#{beginDate} + ,#{endDate} + ,#{weeks} + ,#{period} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_category + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`multiId` = #{multiId} + ,`showPeriod` = #{showPeriod} + ,`beginDate` = #{beginDate} + ,`endDate` = #{endDate} + ,`weeks` = #{weeks} + ,`period` = #{period} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_category + where `id` = #{id} + + + + delete from cy_qimai_product_category + ${condition} + + + + delete from cy_qimai_product_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductChargeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductChargeMapper.xml new file mode 100644 index 0000000..7936c31 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductChargeMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`qimaiProductId`,`multiId`,`chargeId`,`makeDetailId`,`chargeName`,`chargeMultiId`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_charge + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`qimaiProductId` + ,`multiId` + ,`chargeId` + ,`makeDetailId` + ,`chargeName` + ,`chargeMultiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{qimaiProductId} + ,#{multiId} + ,#{chargeId} + ,#{makeDetailId} + ,#{chargeName} + ,#{chargeMultiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_product_charge + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`qimaiProductId` = #{qimaiProductId} + ,`multiId` = #{multiId} + ,`chargeId` = #{chargeId} + ,`makeDetailId` = #{makeDetailId} + ,`chargeName` = #{chargeName} + ,`chargeMultiId` = #{chargeMultiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_product_charge + where `id` = #{id} + + + + delete from cy_qimai_product_charge + ${condition} + + + + delete from cy_qimai_product_charge + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductMapper.xml new file mode 100644 index 0000000..e4dfba7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductMapper.xml @@ -0,0 +1,310 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`productNo`,`name`,`description`,`multiId`,`categoryId`,`categoryPath`,`useSpec`,`unit`,`sellTimeStatus`,`sellTime`,`productionTime`,`saleType`,`content`,`packCost`,`tsOrgPrice`,`wmOrgPrice`,`tsSalePrice`,`wmSalePrice`,`isCardDiscount`,`shelveStatus`,`pricingMode`,`isSellOffline`,`isSellOnline`,`sellPrice`,`isUseProperty`,`property`,`type`,`coverImg`,`sales`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`productNo` + ,`name` + ,`description` + ,`multiId` + ,`categoryId` + ,`categoryPath` + ,`useSpec` + ,`unit` + ,`sellTimeStatus` + ,`sellTime` + ,`productionTime` + ,`saleType` + ,`content` + ,`packCost` + ,`tsOrgPrice` + ,`wmOrgPrice` + ,`tsSalePrice` + ,`wmSalePrice` + ,`isCardDiscount` + ,`shelveStatus` + ,`pricingMode` + ,`isSellOffline` + ,`isSellOnline` + ,`sellPrice` + ,`isUseProperty` + ,`property` + ,`type` + ,`coverImg` + ,`sales` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{productNo} + ,#{name} + ,#{description} + ,#{multiId} + ,#{categoryId} + ,#{categoryPath} + ,#{useSpec} + ,#{unit} + ,#{sellTimeStatus} + ,#{sellTime} + ,#{productionTime} + ,#{saleType} + ,#{content} + ,#{packCost} + ,#{tsOrgPrice} + ,#{wmOrgPrice} + ,#{tsSalePrice} + ,#{wmSalePrice} + ,#{isCardDiscount} + ,#{shelveStatus} + ,#{pricingMode} + ,#{isSellOffline} + ,#{isSellOnline} + ,#{sellPrice} + ,#{isUseProperty} + ,#{property} + ,#{type} + ,#{coverImg} + ,#{sales} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`name` = #{name} + ,`description` = #{description} + ,`multiId` = #{multiId} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`useSpec` = #{useSpec} + ,`unit` = #{unit} + ,`sellTimeStatus` = #{sellTimeStatus} + ,`sellTime` = #{sellTime} + ,`productionTime` = #{productionTime} + ,`saleType` = #{saleType} + ,`content` = #{content} + ,`packCost` = #{packCost} + ,`tsOrgPrice` = #{tsOrgPrice} + ,`wmOrgPrice` = #{wmOrgPrice} + ,`tsSalePrice` = #{tsSalePrice} + ,`wmSalePrice` = #{wmSalePrice} + ,`isCardDiscount` = #{isCardDiscount} + ,`shelveStatus` = #{shelveStatus} + ,`pricingMode` = #{pricingMode} + ,`isSellOffline` = #{isSellOffline} + ,`isSellOnline` = #{isSellOnline} + ,`sellPrice` = #{sellPrice} + ,`isUseProperty` = #{isUseProperty} + ,`property` = #{property} + ,`type` = #{type} + ,`coverImg` = #{coverImg} + ,`sales` = #{sales} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product + where `id` = #{id} + + + + delete from cy_qimai_product + ${condition} + + + + delete from cy_qimai_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductSpecMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductSpecMapper.xml new file mode 100644 index 0000000..5cdc12a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductSpecMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`attributeId`,`specId`,`no`,`name`,`tsOrgPrice`,`wmOrgPrice`,`tsSalePrice`,`wmSalePrice`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_spec + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`attributeId` + ,`specId` + ,`no` + ,`name` + ,`tsOrgPrice` + ,`wmOrgPrice` + ,`tsSalePrice` + ,`wmSalePrice` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{attributeId} + ,#{specId} + ,#{no} + ,#{name} + ,#{tsOrgPrice} + ,#{wmOrgPrice} + ,#{tsSalePrice} + ,#{wmSalePrice} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_product_spec + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`attributeId` = #{attributeId} + ,`specId` = #{specId} + ,`no` = #{no} + ,`name` = #{name} + ,`tsOrgPrice` = #{tsOrgPrice} + ,`wmOrgPrice` = #{wmOrgPrice} + ,`tsSalePrice` = #{tsSalePrice} + ,`wmSalePrice` = #{wmSalePrice} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_product_spec + where `id` = #{id} + + + + delete from cy_qimai_product_spec + ${condition} + + + + delete from cy_qimai_product_spec + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateDetailMapper.xml new file mode 100644 index 0000000..aa68347 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateDetailMapper.xml @@ -0,0 +1,148 @@ + + + + + + `id`,`tenantId`,`setId`,`templateId`,`templateNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`qimaiProductId`,`qimaiSpecId`,`productMultiId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_template_detail + + `id`,`tenantId` + ,`setId` + ,`templateId` + ,`templateNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`qimaiProductId` + ,`qimaiSpecId` + ,`productMultiId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{templateId} + ,#{templateNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{qimaiProductId} + ,#{qimaiSpecId} + ,#{productMultiId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_template_detail + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`qimaiProductId` = #{qimaiProductId} + ,`qimaiSpecId` = #{qimaiSpecId} + ,`productMultiId` = #{productMultiId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_template_detail + where `id` = #{id} + + + + delete from cy_qimai_product_template_detail + ${condition} + + + + delete from cy_qimai_product_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateMapper.xml new file mode 100644 index 0000000..d7c9ada --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_template + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_template + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_template + where `id` = #{id} + + + + delete from cy_qimai_product_template + ${condition} + + + + delete from cy_qimai_product_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateStoreMapper.xml new file mode 100644 index 0000000..1d467c0 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateStoreMapper.xml @@ -0,0 +1,138 @@ + + + + + + `id`,`tenantId`,`setId`,`templateId`,`templateNo`,`storeId`,`storeNo`,`storeName`,`qimaiStoreId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_template_store + + `id`,`tenantId` + ,`setId` + ,`templateId` + ,`templateNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`qimaiStoreId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{templateId} + ,#{templateNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{qimaiStoreId} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_template_store + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`qimaiStoreId` = #{qimaiStoreId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_template_store + where `id` = #{id} + + + + delete from cy_qimai_product_template_store + ${condition} + + + + delete from cy_qimai_product_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreLableMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreLableMapper.xml new file mode 100644 index 0000000..278a7f3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreLableMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`setId`,`lableId`,`name`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_store_lable + + `id`,`tenantId` + ,`setId` + ,`lableId` + ,`name` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{lableId} + ,#{name} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_store_lable + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`lableId` = #{lableId} + ,`name` = #{name} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_store_lable + where `id` = #{id} + + + + delete from cy_qimai_store_lable + ${condition} + + + + delete from cy_qimai_store_lable + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreMapper.xml new file mode 100644 index 0000000..54e045d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreMapper.xml @@ -0,0 +1,192 @@ + + + + + + `id`,`tenantId`,`setId`,`storeId`,`storeNo`,`storeName`,`multiId`,`provinceId`,`cityId`,`areaId`,`idCard`,`photo`,`linkman`,`street`,`longitude`,`latitude`,`perPrice`,`notice`,`mobile`,`tel`,`status`,`isEat`,`isTakeout`,`isAppoint`,`lable`,`service`,`saletimes`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_store + + `id`,`tenantId` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`multiId` + ,`provinceId` + ,`cityId` + ,`areaId` + ,`idCard` + ,`photo` + ,`linkman` + ,`street` + ,`longitude` + ,`latitude` + ,`perPrice` + ,`notice` + ,`mobile` + ,`tel` + ,`status` + ,`isEat` + ,`isTakeout` + ,`isAppoint` + ,`lable` + ,`service` + ,`saletimes` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{multiId} + ,#{provinceId} + ,#{cityId} + ,#{areaId} + ,#{idCard} + ,#{photo} + ,#{linkman} + ,#{street} + ,#{longitude} + ,#{latitude} + ,#{perPrice} + ,#{notice} + ,#{mobile} + ,#{tel} + ,#{status} + ,#{isEat} + ,#{isTakeout} + ,#{isAppoint} + ,#{lable} + ,#{service} + ,#{saletimes} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_store + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`multiId` = #{multiId} + ,`provinceId` = #{provinceId} + ,`cityId` = #{cityId} + ,`areaId` = #{areaId} + ,`idCard` = #{idCard} + ,`photo` = #{photo} + ,`linkman` = #{linkman} + ,`street` = #{street} + ,`longitude` = #{longitude} + ,`latitude` = #{latitude} + ,`perPrice` = #{perPrice} + ,`notice` = #{notice} + ,`mobile` = #{mobile} + ,`tel` = #{tel} + ,`status` = #{status} + ,`isEat` = #{isEat} + ,`isTakeout` = #{isTakeout} + ,`isAppoint` = #{isAppoint} + ,`lable` = #{lable} + ,`service` = #{service} + ,`saletimes` = #{saletimes} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_store + where `id` = #{id} + + + + delete from cy_qimai_store + ${condition} + + + + delete from cy_qimai_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreProductMapper.xml new file mode 100644 index 0000000..b544b48 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiStoreProductMapper.xml @@ -0,0 +1,173 @@ + + + + + + `id`,`tenantId`,`setId`,`storeId`,`storeNo`,`storeName`,`qimaiStoreId`,`storeMultiId`,`productId`,`productNo`,`productName`,`qimaiProductId`,`productMultiId`,`specId`,`specName`,`qimaiSpecId`,`tsPrice`,`wmPrice`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_store_product + + `id`,`tenantId` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`qimaiStoreId` + ,`storeMultiId` + ,`productId` + ,`productNo` + ,`productName` + ,`qimaiProductId` + ,`productMultiId` + ,`specId` + ,`specName` + ,`qimaiSpecId` + ,`tsPrice` + ,`wmPrice` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{qimaiStoreId} + ,#{storeMultiId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{qimaiProductId} + ,#{productMultiId} + ,#{specId} + ,#{specName} + ,#{qimaiSpecId} + ,#{tsPrice} + ,#{wmPrice} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_store_product + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`qimaiStoreId` = #{qimaiStoreId} + ,`storeMultiId` = #{storeMultiId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`qimaiProductId` = #{qimaiProductId} + ,`productMultiId` = #{productMultiId} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`qimaiSpecId` = #{qimaiSpecId} + ,`tsPrice` = #{tsPrice} + ,`wmPrice` = #{wmPrice} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_store_product + where `id` = #{id} + + + + delete from cy_qimai_store_product + ${condition} + + + + delete from cy_qimai_store_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_qimai_store_product + + `tenantId` = #{tenantId} + ,`tsPrice` = #{tsPrice} + ,`wmPrice` = #{wmPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `specId` = #{specId} AND `productId` = #{productId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiSuitDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiSuitDetailMapper.xml new file mode 100644 index 0000000..da31466 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/QimaiSuitDetailMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`setId`,`qimaiProductId`,`suitId`,`productId`,`productNo`,`name`,`multiId`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_suit_detail + + `id`,`tenantId` + ,`setId` + ,`qimaiProductId` + ,`suitId` + ,`productId` + ,`productNo` + ,`name` + ,`multiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{qimaiProductId} + ,#{suitId} + ,#{productId} + ,#{productNo} + ,#{name} + ,#{multiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_suit_detail + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`qimaiProductId` = #{qimaiProductId} + ,`suitId` = #{suitId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`name` = #{name} + ,`multiId` = #{multiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_suit_detail + where `id` = #{id} + + + + delete from cy_qimai_suit_detail + ${condition} + + + + delete from cy_qimai_suit_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceDetailMapper.xml new file mode 100644 index 0000000..b41add8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceDetailMapper.xml @@ -0,0 +1,212 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`askgoodsAmount`,`dispatchAmount`,`dispatchUnitId`,`dispatchUnitName`,`price`,`money`,`receivegoodsAmount`,`subtotalPrice`,`differenceAmount`,`differencePrice`,`type`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_detail + + `id`,`tenantId` + ,`ticketId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`askgoodsAmount` + ,`dispatchAmount` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`price` + ,`money` + ,`receivegoodsAmount` + ,`subtotalPrice` + ,`differenceAmount` + ,`differencePrice` + ,`type` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{askgoodsAmount} + ,#{dispatchAmount} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{price} + ,#{money} + ,#{receivegoodsAmount} + ,#{subtotalPrice} + ,#{differenceAmount} + ,#{differencePrice} + ,#{type} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_difference_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`askgoodsAmount` = #{askgoodsAmount} + ,`dispatchAmount` = #{dispatchAmount} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`price` = #{price} + ,`money` = #{money} + ,`receivegoodsAmount` = #{receivegoodsAmount} + ,`subtotalPrice` = #{subtotalPrice} + ,`differenceAmount` = #{differenceAmount} + ,`differencePrice` = #{differencePrice} + ,`type` = #{type} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_difference_detail + where `id` = #{id} + + + + delete from cy_receive_difference_detail + ${condition} + + + + delete from cy_receive_difference_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketLogMapper.xml new file mode 100644 index 0000000..200d9e3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_receive_difference_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_log + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_log + ${condition} + + + + delete from cy_receive_difference_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketMapper.xml new file mode 100644 index 0000000..56aae6a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketMapper.xml @@ -0,0 +1,148 @@ + + + + + + `id`,`tenantId`,`no`,`dispatchId`,`dispatchNo`,`storeId`,`storeNo`,`storeName`,`status`,`description`,`operator`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_ticket + + `id`,`tenantId` + ,`no` + ,`dispatchId` + ,`dispatchNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`description` + ,`operator` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{dispatchId} + ,#{dispatchNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{description} + ,#{operator} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_difference_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`description` = #{description} + ,`operator` = #{operator} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_difference_ticket + where `id` = #{id} + + + + delete from cy_receive_difference_ticket + ${condition} + + + + delete from cy_receive_difference_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketPayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketPayMapper.xml new file mode 100644 index 0000000..5b2a434 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketPayMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storeId`,`storeNo`,`storeName`,`description`,`type`,`money`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_ticket_pay + + `id`,`tenantId` + ,`ticketId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`type` + ,`money` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{type} + ,#{money} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_difference_ticket_pay + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`type` = #{type} + ,`money` = #{money} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_pay + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_pay + ${condition} + + + + delete from cy_receive_difference_ticket_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsDetailMapper.xml new file mode 100644 index 0000000..1b115fa --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsDetailMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storageId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`dispatchPrice`,`askgoodsAmount`,`dispatchAmount`,`receiveAmount`,`subtotalPrice`,`differenceAmount`,`differencePrice`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_goods_detail + + `id`,`tenantId` + ,`ticketId` + ,`storageId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`dispatchPrice` + ,`askgoodsAmount` + ,`dispatchAmount` + ,`receiveAmount` + ,`subtotalPrice` + ,`differenceAmount` + ,`differencePrice` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{dispatchPrice} + ,#{askgoodsAmount} + ,#{dispatchAmount} + ,#{receiveAmount} + ,#{subtotalPrice} + ,#{differenceAmount} + ,#{differencePrice} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_goods_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`dispatchPrice` = #{dispatchPrice} + ,`askgoodsAmount` = #{askgoodsAmount} + ,`dispatchAmount` = #{dispatchAmount} + ,`receiveAmount` = #{receiveAmount} + ,`subtotalPrice` = #{subtotalPrice} + ,`differenceAmount` = #{differenceAmount} + ,`differencePrice` = #{differencePrice} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_goods_detail + where `id` = #{id} + + + + delete from cy_receive_goods_detail + ${condition} + + + + delete from cy_receive_goods_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsTicketMapper.xml new file mode 100644 index 0000000..d97001e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsTicketMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`storeId`,`storageId`,`dispatchId`,`dispatchNo`,`no`,`status`,`isUse`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_goods_ticket + + `id`,`tenantId` + ,`storeId` + ,`storageId` + ,`dispatchId` + ,`dispatchNo` + ,`no` + ,`status` + ,`isUse` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storageId} + ,#{dispatchId} + ,#{dispatchNo} + ,#{no} + ,#{status} + ,#{isUse} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_goods_ticket + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`no` = #{no} + ,`status` = #{status} + ,`isUse` = #{isUse} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_goods_ticket + where `id` = #{id} + + + + delete from cy_receive_goods_ticket + ${condition} + + + + delete from cy_receive_goods_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/RechargeParameterMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/RechargeParameterMapper.xml new file mode 100644 index 0000000..33e0227 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/RechargeParameterMapper.xml @@ -0,0 +1,144 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_recharge_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_recharge_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_recharge_parameter + where `id` = #{id} + + + + delete from cy_recharge_parameter + ${condition} + + + + delete from cy_recharge_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + insert into cy_recharge_parameter_store (tenantId,storeId,parameterId) values (#{tenantId},#{storeId},#{id}) + + + + + + delete from cy_recharge_parameter_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/RoleMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/RoleMapper.xml new file mode 100644 index 0000000..a81cc3a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/RoleMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`roleType`,`name`,`isDefault`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_role + + `id`,`tenantId` + ,`roleType` + ,`name` + ,`isDefault` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{roleType} + ,#{name} + ,#{isDefault} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update shared_role + + `tenantId` = #{tenantId} + ,`roleType` = #{roleType} + ,`name` = #{name} + ,`isDefault` = #{isDefault} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_role + where `id` = #{id} + + + + delete from shared_role + ${condition} + + + + delete from shared_role + where `tenantId` = #{tenantId} + and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SaleClearMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SaleClearMapper.xml new file mode 100644 index 0000000..cf5b774 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SaleClearMapper.xml @@ -0,0 +1,227 @@ + + + + + + `id`,`tenantId`,`storeNo`,`storeId`,`posNo`,`brandId`,`typeId`,`typeName`,`productId`,`productNo`,`productName`,`quantity`,`notify`,`sales`,`total`,`startTime`,`endTime`,`stopTime`,`stopUser`,`unitId`,`unitName`,`specId`,`specName`,`suitFlag`,`stopFlag`,`memo`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into pos_sale_clear + + `id`,`tenantId` + ,`storeNo` + ,`storeId` + ,`posNo` + ,`brandId` + ,`typeId` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`quantity` + ,`notify` + ,`sales` + ,`total` + ,`startTime` + ,`endTime` + ,`stopTime` + ,`stopUser` + ,`unitId` + ,`unitName` + ,`specId` + ,`specName` + ,`suitFlag` + ,`stopFlag` + ,`memo` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeNo} + ,#{storeId} + ,#{posNo} + ,#{brandId} + ,#{typeId} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{quantity} + ,#{notify} + ,#{sales} + ,#{total} + ,#{startTime} + ,#{endTime} + ,#{stopTime} + ,#{stopUser} + ,#{unitId} + ,#{unitName} + ,#{specId} + ,#{specName} + ,#{suitFlag} + ,#{stopFlag} + ,#{memo} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update pos_sale_clear + + `tenantId` = #{tenantId} + ,`storeNo` = #{storeNo} + ,`storeId` = #{storeId} + ,`posNo` = #{posNo} + ,`brandId` = #{brandId} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`quantity` = #{quantity} + ,`notify` = #{notify} + ,`sales` = #{sales} + ,`total` = #{total} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`stopTime` = #{stopTime} + ,`stopUser` = #{stopUser} + ,`unitId` = #{unitId} + ,`unitName` = #{unitName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`suitFlag` = #{suitFlag} + ,`stopFlag` = #{stopFlag} + ,`memo` = #{memo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from pos_sale_clear + where `id` = #{id} + + + + delete from pos_sale_clear + ${condition} + + + + delete from pos_sale_clear + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update pos_sale_clear + + `tenantId` = #{tenantId} + ,`storeNo` = #{storeNo} + ,`storeId` = #{storeId} + ,`posNo` = #{posNo} + ,`brandId` = #{brandId} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`quantity` = #{quantity} + ,`notify` = #{notify} + ,`sales` = #{sales} + ,`total` = #{total} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`stopTime` = #{stopTime} + ,`stopUser` = #{stopUser} + ,`unitId` = #{unitId} + ,`unitName` = #{unitName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`suitFlag` = #{suitFlag} + ,`stopFlag` = #{stopFlag} + ,`memo` = #{memo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `productId` = #{productId} + + + + delete from pos_sale_clear + where `tenantId` = #{tenantId} and `endTime` <#{endTime} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ServerDataVersionMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ServerDataVersionMapper.xml new file mode 100644 index 0000000..e0b42c3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ServerDataVersionMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`dataType`,`dataVerion`,`ext1`,`ext2`,`ext3`,`tenantId`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_server_data_version + + `id`,`tenantId` + ,`dataType` + ,`dataVerion` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{dataType} + ,#{dataVerion} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_server_data_version + + `tenantId` = #{tenantId} + ,`dataType` = #{dataType} + ,`dataVerion` = #{dataVerion} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_server_data_version + where `id` = #{id} + + + + delete from cy_server_data_version + ${condition} + + + + delete from cy_server_data_version + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderExtraMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderExtraMapper.xml new file mode 100644 index 0000000..36e0d57 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderExtraMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`orderId`,`reduceFee`,`poiCharge`,`mtCharge`,`remark`,`type`,`actDetailId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_shop_meituan_order_extra + + `id`,`tenantId` + ,`orderId` + ,`reduceFee` + ,`poiCharge` + ,`mtCharge` + ,`remark` + ,`type` + ,`actDetailId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{reduceFee} + ,#{poiCharge} + ,#{mtCharge} + ,#{remark} + ,#{type} + ,#{actDetailId} + ,#{createUser} + ,#{createDate} + + + + + update cy_shop_meituan_order_extra + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`reduceFee` = #{reduceFee} + ,`poiCharge` = #{poiCharge} + ,`mtCharge` = #{mtCharge} + ,`remark` = #{remark} + ,`type` = #{type} + ,`actDetailId` = #{actDetailId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_shop_meituan_order_extra + where `id` = #{id} + + + + delete from cy_shop_meituan_order_extra + ${condition} + + + + delete from cy_shop_meituan_order_extra + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderItemMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderItemMapper.xml new file mode 100644 index 0000000..0ec9b72 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderItemMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`orderId`,`appFoodCode`,`foodName`,`quantity`,`price`,`storeId`,`skuId`,`boxNum`,`boxPrice`,`unit`,`foodDiscount`,`foodProperty`,`cartId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_shop_meituan_order_item + + `id`,`tenantId` + ,`orderId` + ,`appFoodCode` + ,`foodName` + ,`quantity` + ,`price` + ,`storeId` + ,`skuId` + ,`boxNum` + ,`boxPrice` + ,`unit` + ,`foodDiscount` + ,`foodProperty` + ,`cartId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{appFoodCode} + ,#{foodName} + ,#{quantity} + ,#{price} + ,#{storeId} + ,#{skuId} + ,#{boxNum} + ,#{boxPrice} + ,#{unit} + ,#{foodDiscount} + ,#{foodProperty} + ,#{cartId} + ,#{createUser} + ,#{createDate} + + + + + update cy_shop_meituan_order_item + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`appFoodCode` = #{appFoodCode} + ,`foodName` = #{foodName} + ,`quantity` = #{quantity} + ,`price` = #{price} + ,`storeId` = #{storeId} + ,`skuId` = #{skuId} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`unit` = #{unit} + ,`foodDiscount` = #{foodDiscount} + ,`foodProperty` = #{foodProperty} + ,`cartId` = #{cartId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_shop_meituan_order_item + where `id` = #{id} + + + + delete from cy_shop_meituan_order_item + ${condition} + + + + delete from cy_shop_meituan_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderMapper.xml new file mode 100644 index 0000000..cc81375 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderMapper.xml @@ -0,0 +1,303 @@ + + + + + + `id`,`tenantId`,`message`,`orderId`,`orderIdView`,`wmPoiName`,`wmPoiAddress`,`wmPoiPhone`,`storeId`,`recipientAddress`,`recipientPhone`,`backupRecipientPhone`,`recipientName`,`shippingFee`,`total`,`originalPrice`,`caution`,`shipperPhone`,`status`,`cityId`,`hasInvoiced`,`invoiceTitle`,`taxpayerId`,`cTime`,`uTime`,`deliveryTime`,`isThirdShipping`,`payType`,`pickType`,`latitude`,`longitude`,`daySeq`,`isFavorites`,`isPoiFirstOrder`,`dinnersNumber`,`logisticsCode`,`avgSendTime`,`orderSendTime`,`orderReceiveTime`,`orderConfirmTime`,`orderCancelTime`,`orderCompletedTime`,`logisticsStatus`,`logisticsId`,`logisticsName`,`logisticsSendTime`,`logisticsConfirmTime`,`logisticsCancelTime`,`logisticsFetchTime`,`logisticsCompletedTime`,`logisticsDispatcherName`,`logisticsDispatcherMobile`,`channel`,`detail`,`extras`,`poiReceiveDetail`,`cancelReason`,`cancelReasonCode`,`refundReason`,`foodShareFeeChargeByPoi`,`wmPoiReceiveCent`,`refundReasonCode`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_shop_meituan_order + + `id`,`tenantId` + ,`message` + ,`orderId` + ,`orderIdView` + ,`wmPoiName` + ,`wmPoiAddress` + ,`wmPoiPhone` + ,`storeId` + ,`recipientAddress` + ,`recipientPhone` + ,`backupRecipientPhone` + ,`recipientName` + ,`shippingFee` + ,`total` + ,`originalPrice` + ,`caution` + ,`shipperPhone` + ,`status` + ,`cityId` + ,`hasInvoiced` + ,`invoiceTitle` + ,`taxpayerId` + ,`cTime` + ,`uTime` + ,`deliveryTime` + ,`isThirdShipping` + ,`payType` + ,`pickType` + ,`latitude` + ,`longitude` + ,`daySeq` + ,`isFavorites` + ,`isPoiFirstOrder` + ,`dinnersNumber` + ,`logisticsCode` + ,`avgSendTime` + ,`orderSendTime` + ,`orderReceiveTime` + ,`orderConfirmTime` + ,`orderCancelTime` + ,`orderCompletedTime` + ,`logisticsStatus` + ,`logisticsId` + ,`logisticsName` + ,`logisticsSendTime` + ,`logisticsConfirmTime` + ,`logisticsCancelTime` + ,`logisticsFetchTime` + ,`logisticsCompletedTime` + ,`logisticsDispatcherName` + ,`logisticsDispatcherMobile` + ,`channel` + ,`detail` + ,`extras` + ,`poiReceiveDetail` + ,`cancelReason` + ,`cancelReasonCode` + ,`refundReason` + ,`foodShareFeeChargeByPoi` + ,`wmPoiReceiveCent` + ,`refundReasonCode` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{orderId} + ,#{orderIdView} + ,#{wmPoiName} + ,#{wmPoiAddress} + ,#{wmPoiPhone} + ,#{storeId} + ,#{recipientAddress} + ,#{recipientPhone} + ,#{backupRecipientPhone} + ,#{recipientName} + ,#{shippingFee} + ,#{total} + ,#{originalPrice} + ,#{caution} + ,#{shipperPhone} + ,#{status} + ,#{cityId} + ,#{hasInvoiced} + ,#{invoiceTitle} + ,#{taxpayerId} + ,#{cTime} + ,#{uTime} + ,#{deliveryTime} + ,#{isThirdShipping} + ,#{payType} + ,#{pickType} + ,#{latitude} + ,#{longitude} + ,#{daySeq} + ,#{isFavorites} + ,#{isPoiFirstOrder} + ,#{dinnersNumber} + ,#{logisticsCode} + ,#{avgSendTime} + ,#{orderSendTime} + ,#{orderReceiveTime} + ,#{orderConfirmTime} + ,#{orderCancelTime} + ,#{orderCompletedTime} + ,#{logisticsStatus} + ,#{logisticsId} + ,#{logisticsName} + ,#{logisticsSendTime} + ,#{logisticsConfirmTime} + ,#{logisticsCancelTime} + ,#{logisticsFetchTime} + ,#{logisticsCompletedTime} + ,#{logisticsDispatcherName} + ,#{logisticsDispatcherMobile} + ,#{channel} + ,#{detail} + ,#{extras} + ,#{poiReceiveDetail} + ,#{cancelReason} + ,#{cancelReasonCode} + ,#{refundReason} + ,#{foodShareFeeChargeByPoi} + ,#{wmPoiReceiveCent} + ,#{refundReasonCode} + ,#{createUser} + ,#{createDate} + + + + + update cy_shop_meituan_order + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`orderId` = #{orderId} + ,`orderIdView` = #{orderIdView} + ,`wmPoiName` = #{wmPoiName} + ,`wmPoiAddress` = #{wmPoiAddress} + ,`wmPoiPhone` = #{wmPoiPhone} + ,`storeId` = #{storeId} + ,`recipientAddress` = #{recipientAddress} + ,`recipientPhone` = #{recipientPhone} + ,`backupRecipientPhone` = #{backupRecipientPhone} + ,`recipientName` = #{recipientName} + ,`shippingFee` = #{shippingFee} + ,`total` = #{total} + ,`originalPrice` = #{originalPrice} + ,`caution` = #{caution} + ,`shipperPhone` = #{shipperPhone} + ,`status` = #{status} + ,`cityId` = #{cityId} + ,`hasInvoiced` = #{hasInvoiced} + ,`invoiceTitle` = #{invoiceTitle} + ,`taxpayerId` = #{taxpayerId} + ,`cTime` = #{cTime} + ,`uTime` = #{uTime} + ,`deliveryTime` = #{deliveryTime} + ,`isThirdShipping` = #{isThirdShipping} + ,`payType` = #{payType} + ,`pickType` = #{pickType} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`daySeq` = #{daySeq} + ,`isFavorites` = #{isFavorites} + ,`isPoiFirstOrder` = #{isPoiFirstOrder} + ,`dinnersNumber` = #{dinnersNumber} + ,`logisticsCode` = #{logisticsCode} + ,`avgSendTime` = #{avgSendTime} + ,`orderSendTime` = #{orderSendTime} + ,`orderReceiveTime` = #{orderReceiveTime} + ,`orderConfirmTime` = #{orderConfirmTime} + ,`orderCancelTime` = #{orderCancelTime} + ,`orderCompletedTime` = #{orderCompletedTime} + ,`logisticsStatus` = #{logisticsStatus} + ,`logisticsId` = #{logisticsId} + ,`logisticsName` = #{logisticsName} + ,`logisticsSendTime` = #{logisticsSendTime} + ,`logisticsConfirmTime` = #{logisticsConfirmTime} + ,`logisticsCancelTime` = #{logisticsCancelTime} + ,`logisticsFetchTime` = #{logisticsFetchTime} + ,`logisticsCompletedTime` = #{logisticsCompletedTime} + ,`logisticsDispatcherName` = #{logisticsDispatcherName} + ,`logisticsDispatcherMobile` = #{logisticsDispatcherMobile} + ,`channel` = #{channel} + ,`detail` = #{detail} + ,`extras` = #{extras} + ,`poiReceiveDetail` = #{poiReceiveDetail} + ,`cancelReason` = #{cancelReason} + ,`cancelReasonCode` = #{cancelReasonCode} + ,`refundReason` = #{refundReason} + ,`foodShareFeeChargeByPoi` = #{foodShareFeeChargeByPoi} + ,`wmPoiReceiveCent` = #{wmPoiReceiveCent} + ,`refundReasonCode` = #{refundReasonCode} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_shop_meituan_order + where `id` = #{id} + + + + delete from cy_shop_meituan_order + ${condition} + + + + delete from cy_shop_meituan_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitFoodAccountMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitFoodAccountMapper.xml new file mode 100644 index 0000000..93a3880 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitFoodAccountMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`tenantId`,`shopId`,`goodId`,`storeId`,`accountId`,`type`,`status`,`detail`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_split_food_account + + `id`,`tenantId` + ,`shopId` + ,`goodId` + ,`storeId` + ,`accountId` + ,`type` + ,`status` + ,`detail` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{shopId} + ,#{goodId} + ,#{storeId} + ,#{accountId} + ,#{type} + ,#{status} + ,#{detail} + ,#{createUser} + ,#{createDate} + + + + + update cy_split_food_account + + `tenantId` = #{tenantId} + ,`shopId` = #{shopId} + ,`goodId` = #{goodId} + ,`storeId` = #{storeId} + ,`accountId` = #{accountId} + ,`type` = #{type} + ,`status` = #{status} + ,`detail` = #{detail} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_split_food_account + where `id` = #{id} + + + + delete from cy_split_food_account + ${condition} + + + + delete from cy_split_food_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitPayLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitPayLogMapper.xml new file mode 100644 index 0000000..eebd55d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitPayLogMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`splitStoreId`,`storeNo`,`requestDomain`,`requestMessage`,`responseMessage`,`remark1`,`remark2`,`remark3`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_split_pay_log + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`requestDomain` + ,`requestMessage` + ,`responseMessage` + ,`remark1` + ,`remark2` + ,`remark3` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{requestDomain} + ,#{requestMessage} + ,#{responseMessage} + ,#{remark1} + ,#{remark2} + ,#{remark3} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update cy_split_pay_log + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`requestDomain` = #{requestDomain} + ,`requestMessage` = #{requestMessage} + ,`responseMessage` = #{responseMessage} + ,`remark1` = #{remark1} + ,`remark2` = #{remark2} + ,`remark3` = #{remark3} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_split_pay_log + where `id` = #{id} + + + + delete from cy_split_pay_log + ${condition} + + + + delete from cy_split_pay_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitPayResultMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitPayResultMapper.xml new file mode 100644 index 0000000..98b2aaa --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitPayResultMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`splitStoreId`,`storeNo`,`payNo`,`ticketId`,`busNo`,`money`,`ymoney`,`smoney`,`memo`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_split_pay_result + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`money` + ,`ymoney` + ,`smoney` + ,`memo` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{money} + ,#{ymoney} + ,#{smoney} + ,#{memo} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update cy_split_pay_result + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`money` = #{money} + ,`ymoney` = #{ymoney} + ,`smoney` = #{smoney} + ,`memo` = #{memo} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_split_pay_result + where `id` = #{id} + + + + delete from cy_split_pay_result + ${condition} + + + + delete from cy_split_pay_result + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitShopAccountMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitShopAccountMapper.xml new file mode 100644 index 0000000..73ec728 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitShopAccountMapper.xml @@ -0,0 +1,255 @@ + + + + + + `id`,`tenantId`,`shopId`,`bizUserId`,`phone`,`companyName`,`companyAddress`,`authType`,`uniCredit`,`businessLicense`,`organizationCode`,`taxRegister`,`expLicense`,`telephone`,`legalName`,`identityType`,`legalIds`,`legalPhone`,`accountNo`,`parentBankName`,`bankCityNo`,`bankName`,`unionBank`,`province`,`city`,`backUrl`,`memberType`,`isphone`,`iscreate`,`isinfo`,`isvideo`,`isagree`,`istermInfo`,`isvspTermidInfo`,`pictureUrl`,`oppositeidCardUrl`,`frontidCardUrl`,`vspMerchantid`,`vspCusId`,`vspTermid`,`setDate`,`source`,`type`,`status`,`detail`,`totalAmount`,`frozenAmount`,`withdrawableAmount`,`totalTlAmount`,`frozenTlAmount`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_split_shop_account + + `id`,`tenantId` + ,`shopId` + ,`bizUserId` + ,`phone` + ,`companyName` + ,`companyAddress` + ,`authType` + ,`uniCredit` + ,`businessLicense` + ,`organizationCode` + ,`taxRegister` + ,`expLicense` + ,`telephone` + ,`legalName` + ,`identityType` + ,`legalIds` + ,`legalPhone` + ,`accountNo` + ,`parentBankName` + ,`bankCityNo` + ,`bankName` + ,`unionBank` + ,`province` + ,`city` + ,`backUrl` + ,`memberType` + ,`isphone` + ,`iscreate` + ,`isinfo` + ,`isvideo` + ,`isagree` + ,`istermInfo` + ,`isvspTermidInfo` + ,`pictureUrl` + ,`oppositeidCardUrl` + ,`frontidCardUrl` + ,`vspMerchantid` + ,`vspCusId` + ,`vspTermid` + ,`setDate` + ,`source` + ,`type` + ,`status` + ,`detail` + ,`totalAmount` + ,`frozenAmount` + ,`withdrawableAmount` + ,`totalTlAmount` + ,`frozenTlAmount` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{shopId} + ,#{bizUserId} + ,#{phone} + ,#{companyName} + ,#{companyAddress} + ,#{authType} + ,#{uniCredit} + ,#{businessLicense} + ,#{organizationCode} + ,#{taxRegister} + ,#{expLicense} + ,#{telephone} + ,#{legalName} + ,#{identityType} + ,#{legalIds} + ,#{legalPhone} + ,#{accountNo} + ,#{parentBankName} + ,#{bankCityNo} + ,#{bankName} + ,#{unionBank} + ,#{province} + ,#{city} + ,#{backUrl} + ,#{memberType} + ,#{isphone} + ,#{iscreate} + ,#{isinfo} + ,#{isvideo} + ,#{isagree} + ,#{istermInfo} + ,#{isvspTermidInfo} + ,#{pictureUrl} + ,#{oppositeidCardUrl} + ,#{frontidCardUrl} + ,#{vspMerchantid} + ,#{vspCusId} + ,#{vspTermid} + ,#{setDate} + ,#{source} + ,#{type} + ,#{status} + ,#{detail} + ,#{totalAmount} + ,#{frozenAmount} + ,#{withdrawableAmount} + ,#{totalTlAmount} + ,#{frozenTlAmount} + ,#{createUser} + ,#{createDate} + + + + + update cy_split_shop_account + + `tenantId` = #{tenantId} + ,`shopId` = #{shopId} + ,`bizUserId` = #{bizUserId} + ,`phone` = #{phone} + ,`companyName` = #{companyName} + ,`companyAddress` = #{companyAddress} + ,`authType` = #{authType} + ,`uniCredit` = #{uniCredit} + ,`businessLicense` = #{businessLicense} + ,`organizationCode` = #{organizationCode} + ,`taxRegister` = #{taxRegister} + ,`expLicense` = #{expLicense} + ,`telephone` = #{telephone} + ,`legalName` = #{legalName} + ,`identityType` = #{identityType} + ,`legalIds` = #{legalIds} + ,`legalPhone` = #{legalPhone} + ,`accountNo` = #{accountNo} + ,`parentBankName` = #{parentBankName} + ,`bankCityNo` = #{bankCityNo} + ,`bankName` = #{bankName} + ,`unionBank` = #{unionBank} + ,`province` = #{province} + ,`city` = #{city} + ,`backUrl` = #{backUrl} + ,`memberType` = #{memberType} + ,`isphone` = #{isphone} + ,`iscreate` = #{iscreate} + ,`isinfo` = #{isinfo} + ,`isvideo` = #{isvideo} + ,`isagree` = #{isagree} + ,`istermInfo` = #{istermInfo} + ,`isvspTermidInfo` = #{isvspTermidInfo} + ,`pictureUrl` = #{pictureUrl} + ,`oppositeidCardUrl` = #{oppositeidCardUrl} + ,`frontidCardUrl` = #{frontidCardUrl} + ,`vspMerchantid` = #{vspMerchantid} + ,`vspCusId` = #{vspCusId} + ,`vspTermid` = #{vspTermid} + ,`setDate` = #{setDate} + ,`source` = #{source} + ,`type` = #{type} + ,`status` = #{status} + ,`detail` = #{detail} + ,`totalAmount` = #{totalAmount} + ,`frozenAmount` = #{frozenAmount} + ,`withdrawableAmount` = #{withdrawableAmount} + ,`totalTlAmount` = #{totalTlAmount} + ,`frozenTlAmount` = #{frozenTlAmount} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_split_shop_account + where `id` = #{id} + + + + delete from cy_split_shop_account + ${condition} + + + + delete from cy_split_shop_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitShopWithdrawalMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitShopWithdrawalMapper.xml new file mode 100644 index 0000000..2c2de3c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitShopWithdrawalMapper.xml @@ -0,0 +1,157 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`storeId`,`splitStoreId`,`storeNo`,`payTypeNo`,`amount`,`fee`,`receivedAmount`,`payDate`,`cardno`,`ext`,`memo`,`type`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_split_shop_withdrawal + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`payTypeNo` + ,`amount` + ,`fee` + ,`receivedAmount` + ,`payDate` + ,`cardno` + ,`ext` + ,`memo` + ,`type` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{payTypeNo} + ,#{amount} + ,#{fee} + ,#{receivedAmount} + ,#{payDate} + ,#{cardno} + ,#{ext} + ,#{memo} + ,#{type} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update cy_split_shop_withdrawal + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`payTypeNo` = #{payTypeNo} + ,`amount` = #{amount} + ,`fee` = #{fee} + ,`receivedAmount` = #{receivedAmount} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`ext` = #{ext} + ,`memo` = #{memo} + ,`type` = #{type} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_split_shop_withdrawal + where `id` = #{id} + + + + delete from cy_split_shop_withdrawal + ${condition} + + + + delete from cy_split_shop_withdrawal + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitStorePayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitStorePayMapper.xml new file mode 100644 index 0000000..3a3f97b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SplitStorePayMapper.xml @@ -0,0 +1,266 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`storeId`,`splitStoreId`,`storeNo`,`payNo`,`ticketId`,`bizOrderNo`,`busNo`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`voucherNo`,`payDate`,`cardno`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payClientType`,`payChannel`,`deductionRate`,`chargeBack`,`memo`,`isInvalid`,`isRefund`,`refundAmount`,`fromBizUserId`,`orderType`,`unitPrice`,`number`,`rnumber`,`goodId`,`tableNo`,`people`,`workNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser`,`fee` + + + + + + + + + + + + + + + + + + + + insert into cy_split_store_pay + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`payNo` + ,`ticketId` + ,`bizOrderNo` + ,`busNo` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payClientType` + ,`payChannel` + ,`deductionRate` + ,`chargeBack` + ,`memo` + ,`isInvalid` + ,`isRefund` + ,`refundAmount` + ,`fromBizUserId` + ,`orderType` + ,`unitPrice` + ,`number` + ,`rnumber` + ,`goodId` + ,`tableNo` + ,`people` + ,`workNo` + ,`createDate` + ,`createUser` + ,`fee` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{payNo} + ,#{ticketId} + ,#{bizOrderNo} + ,#{busNo} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payClientType} + ,#{payChannel} + ,#{deductionRate} + ,#{chargeBack} + ,#{memo} + ,#{isInvalid} + ,#{isRefund} + ,#{refundAmount} + ,#{fromBizUserId} + ,#{orderType} + ,#{unitPrice} + ,#{number} + ,#{rnumber} + ,#{goodId} + ,#{tableNo} + ,#{people} + ,#{workNo} + ,#{createDate} + ,#{createUser} + ,#{fee} + + + + + update cy_split_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`bizOrderNo` = #{bizOrderNo} + ,`busNo` = #{busNo} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payClientType` = #{payClientType} + ,`payChannel` = #{payChannel} + ,`deductionRate` = #{deductionRate} + ,`chargeBack` = #{chargeBack} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`isRefund` = #{isRefund} + ,`refundAmount` = #{refundAmount} + ,`fromBizUserId` = #{fromBizUserId} + ,`orderType` = #{orderType} + ,`unitPrice` = #{unitPrice} + ,`number` = #{number} + ,`rnumber` = #{rnumber} + ,`goodId` = #{goodId} + ,`tableNo` = #{tableNo} + ,`people` = #{people} + ,`workNo` = #{workNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + ,`fee` = #{fee} + + where `id` = #{id} + + + + delete from cy_split_store_pay + where `id` = #{id} + + + + delete from cy_split_store_pay + ${condition} + + + + delete from cy_split_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorageMapper.xml new file mode 100644 index 0000000..2b5ea6c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorageMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`typeId`,`name`,`no`,`manager`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_storage + + `id`,`tenantId` + ,`typeId` + ,`name` + ,`no` + ,`manager` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{typeId} + ,#{name} + ,#{no} + ,#{manager} + ,#{createUser} + ,#{createDate} + + + + + update cy_storage + + `tenantId` = #{tenantId} + ,`typeId` = #{typeId} + ,`name` = #{name} + ,`no` = #{no} + ,`manager` = #{manager} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_storage + where `id` = #{id} + + + + delete from cy_storage + ${condition} + + + + delete from cy_storage + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_storage set typeId=NULL + where tenantId=#{tenantId} and typeId=#{typeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorageTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorageTypeMapper.xml new file mode 100644 index 0000000..28402e1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorageTypeMapper.xml @@ -0,0 +1,114 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_storage_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{createDate} + ,#{createUser} + + + + + update cy_storage_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storage_type + where `id` = #{id} + + + + delete from cy_storage_type + ${condition} + + + + delete from cy_storage_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountDetailMapper.xml new file mode 100644 index 0000000..ce6cea3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountDetailMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`accountId`,`storeId`,`storeNo`,`type`,`busType`,`busNo`,`busTime`,`payType`,`voucherNo`,`status`,`amount`,`aftAmount`,`workerNo`,`posNo`,`sourceSign`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account_detail + + `id`,`tenantId` + ,`accountId` + ,`storeId` + ,`storeNo` + ,`type` + ,`busType` + ,`busNo` + ,`busTime` + ,`payType` + ,`voucherNo` + ,`status` + ,`amount` + ,`aftAmount` + ,`workerNo` + ,`posNo` + ,`sourceSign` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{accountId} + ,#{storeId} + ,#{storeNo} + ,#{type} + ,#{busType} + ,#{busNo} + ,#{busTime} + ,#{payType} + ,#{voucherNo} + ,#{status} + ,#{amount} + ,#{aftAmount} + ,#{workerNo} + ,#{posNo} + ,#{sourceSign} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_account_detail + + `tenantId` = #{tenantId} + ,`accountId` = #{accountId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`type` = #{type} + ,`busType` = #{busType} + ,`busNo` = #{busNo} + ,`busTime` = #{busTime} + ,`payType` = #{payType} + ,`voucherNo` = #{voucherNo} + ,`status` = #{status} + ,`amount` = #{amount} + ,`aftAmount` = #{aftAmount} + ,`workerNo` = #{workerNo} + ,`posNo` = #{posNo} + ,`sourceSign` = #{sourceSign} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_account_detail + where `id` = #{id} + + + + delete from cy_store_account_detail + ${condition} + + + + delete from cy_store_account_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountMapper.xml new file mode 100644 index 0000000..3a3fb6e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountMapper.xml @@ -0,0 +1,132 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`status`,`payPwd`,`description`,`amount`,`freezeAmount`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`status` + ,`payPwd` + ,`description` + ,`amount` + ,`freezeAmount` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{status} + ,#{payPwd} + ,#{description} + ,#{amount} + ,#{freezeAmount} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_account + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`status` = #{status} + ,`payPwd` = #{payPwd} + ,`description` = #{description} + ,`amount` = #{amount} + ,`freezeAmount` = #{freezeAmount} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_account + where `id` = #{id} + + + + delete from cy_store_account + ${condition} + + + + delete from cy_store_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeParameterMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeParameterMapper.xml new file mode 100644 index 0000000..a0a01e6 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeParameterMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account_recharge_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_account_recharge_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_account_recharge_parameter + where `id` = #{id} + + + + delete from cy_store_account_recharge_parameter + ${condition} + + + + delete from cy_store_account_recharge_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeRecordMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeRecordMapper.xml new file mode 100644 index 0000000..b6ed87e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeRecordMapper.xml @@ -0,0 +1,167 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`accountId`,`sourceSign`,`ticketNo`,`amount`,`status`,`rechargeStatus`,`description`,`payType`,`payVoucherNo`,`payDate`,`payAccount`,`title`,`content`,`deviceInfo`,`attach`,`reqStr`,`respStr`,`notifySign`,`notifyData`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account_recharge_record + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`accountId` + ,`sourceSign` + ,`ticketNo` + ,`amount` + ,`status` + ,`rechargeStatus` + ,`description` + ,`payType` + ,`payVoucherNo` + ,`payDate` + ,`payAccount` + ,`title` + ,`content` + ,`deviceInfo` + ,`attach` + ,`reqStr` + ,`respStr` + ,`notifySign` + ,`notifyData` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{accountId} + ,#{sourceSign} + ,#{ticketNo} + ,#{amount} + ,#{status} + ,#{rechargeStatus} + ,#{description} + ,#{payType} + ,#{payVoucherNo} + ,#{payDate} + ,#{payAccount} + ,#{title} + ,#{content} + ,#{deviceInfo} + ,#{attach} + ,#{reqStr} + ,#{respStr} + ,#{notifySign} + ,#{notifyData} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_account_recharge_record + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`accountId` = #{accountId} + ,`sourceSign` = #{sourceSign} + ,`ticketNo` = #{ticketNo} + ,`amount` = #{amount} + ,`status` = #{status} + ,`rechargeStatus` = #{rechargeStatus} + ,`description` = #{description} + ,`payType` = #{payType} + ,`payVoucherNo` = #{payVoucherNo} + ,`payDate` = #{payDate} + ,`payAccount` = #{payAccount} + ,`title` = #{title} + ,`content` = #{content} + ,`deviceInfo` = #{deviceInfo} + ,`attach` = #{attach} + ,`reqStr` = #{reqStr} + ,`respStr` = #{respStr} + ,`notifySign` = #{notifySign} + ,`notifyData` = #{notifyData} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_account_recharge_record + where `id` = #{id} + + + + delete from cy_store_account_recharge_record + ${condition} + + + + delete from cy_store_account_recharge_record + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAreaMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAreaMapper.xml new file mode 100644 index 0000000..a0caa3f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreAreaMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`parentId`,`no`,`name`,`path`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_area + + `id`,`tenantId` + ,`parentId` + ,`no` + ,`name` + ,`path` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{parentId} + ,#{no} + ,#{name} + ,#{path} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_area + + `tenantId` = #{tenantId} + ,`parentId` = #{parentId} + ,`no` = #{no} + ,`name` = #{name} + ,`path` = #{path} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_area + where `id` = #{id} + + + + delete from cy_store_area + ${condition} + + + + delete from cy_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store_area + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketCheckMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketCheckMapper.xml new file mode 100644 index 0000000..0b345a2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketCheckMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`storeId`,`busNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_check + + `id`,`tenantId` + ,`storeId` + ,`busNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{busNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_check + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`busNo` = #{busNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_check + where `id` = #{id} + + + + delete from cy_store_business_ticket_check + ${condition} + + + + delete from cy_store_business_ticket_check + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketDeliveryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketDeliveryMapper.xml new file mode 100644 index 0000000..9345d55 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketDeliveryMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`isInvalid`,`orderTime`,`visitorName`,`orderTel`,`recipientName`,`recipientPhone`,`recipientAddress`,`deliveryWorkerNo`,`deliveryWorkerName`,`advanceAmount`,`distributionFee`,`deliveryBeginTime`,`deliveryEndTime`,`settlementTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_delivery + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`isInvalid` + ,`orderTime` + ,`visitorName` + ,`orderTel` + ,`recipientName` + ,`recipientPhone` + ,`recipientAddress` + ,`deliveryWorkerNo` + ,`deliveryWorkerName` + ,`advanceAmount` + ,`distributionFee` + ,`deliveryBeginTime` + ,`deliveryEndTime` + ,`settlementTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{isInvalid} + ,#{orderTime} + ,#{visitorName} + ,#{orderTel} + ,#{recipientName} + ,#{recipientPhone} + ,#{recipientAddress} + ,#{deliveryWorkerNo} + ,#{deliveryWorkerName} + ,#{advanceAmount} + ,#{distributionFee} + ,#{deliveryBeginTime} + ,#{deliveryEndTime} + ,#{settlementTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_delivery + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`isInvalid` = #{isInvalid} + ,`orderTime` = #{orderTime} + ,`visitorName` = #{visitorName} + ,`orderTel` = #{orderTel} + ,`recipientName` = #{recipientName} + ,`recipientPhone` = #{recipientPhone} + ,`recipientAddress` = #{recipientAddress} + ,`deliveryWorkerNo` = #{deliveryWorkerNo} + ,`deliveryWorkerName` = #{deliveryWorkerName} + ,`advanceAmount` = #{advanceAmount} + ,`distributionFee` = #{distributionFee} + ,`deliveryBeginTime` = #{deliveryBeginTime} + ,`deliveryEndTime` = #{deliveryEndTime} + ,`settlementTime` = #{settlementTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_delivery + where `id` = #{id} + + + + delete from cy_store_business_ticket_delivery + ${condition} + + + + delete from cy_store_business_ticket_delivery + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketInfoMapper.xml new file mode 100644 index 0000000..8cd5434 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketInfoMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_info + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_info + where `id` = #{id} + + + + delete from cy_store_business_ticket_info + ${condition} + + + + delete from cy_store_business_ticket_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketMapper.xml new file mode 100644 index 0000000..ae8a5f3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketMapper.xml @@ -0,0 +1,385 @@ + + + + + + `id`,`clientId`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`workNo`,`saleDate`,`tableNo`,`people`,`busMode`,`shiftNo`,`shiftName`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`memberNo`,`memberJifen`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`isInvalid`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket + + `id`,`tenantId` + ,`clientId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`workNo` + ,`saleDate` + ,`tableNo` + ,`people` + ,`busMode` + ,`shiftNo` + ,`shiftName` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`memberNo` + ,`memberJifen` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`isInvalid` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{workNo} + ,#{saleDate} + ,#{tableNo} + ,#{people} + ,#{busMode} + ,#{shiftNo} + ,#{shiftName} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{memberNo} + ,#{memberJifen} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{isInvalid} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`workNo` = #{workNo} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`memberJifen` = #{memberJifen} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`isInvalid` = #{isInvalid} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket + where `id` = #{id} + + + + delete from cy_store_business_ticket + ${condition} + + + + delete from cy_store_business_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + update cy_store_business_ticket + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{ticketId} + + + + + update cy_store_business_ticket_info + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `ticketId` = #{ticketId} + + + + + update cy_store_order_product + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_order_product_info + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_order_product_make + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_pay + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_business_ticket_delivery + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_business_ticket_table + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketTableMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketTableMapper.xml new file mode 100644 index 0000000..18cc21e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketTableMapper.xml @@ -0,0 +1,215 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`isInvalid`,`tableId`,`tableNo`,`tableName`,`typeId`,`typeNo`,`typeName`,`areaId`,`areaNo`,`areaName`,`tableStatus`,`openTime`,`openUser`,`serialNo`,`seatNumber`,`peopleNumber`,`excessFlag`,`totalAmount`,`totalRefund`,`totalQuantity`,`discountAmount`,`discountRate`,`receivableAmount`,`paidAmount`,`malingAmount`,`masterTable`,`perCapitaAmount`,`posNo`,`payNo`,`finishTime`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_table + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`isInvalid` + ,`tableId` + ,`tableNo` + ,`tableName` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`areaId` + ,`areaNo` + ,`areaName` + ,`tableStatus` + ,`openTime` + ,`openUser` + ,`serialNo` + ,`seatNumber` + ,`peopleNumber` + ,`excessFlag` + ,`totalAmount` + ,`totalRefund` + ,`totalQuantity` + ,`discountAmount` + ,`discountRate` + ,`receivableAmount` + ,`paidAmount` + ,`malingAmount` + ,`masterTable` + ,`perCapitaAmount` + ,`posNo` + ,`payNo` + ,`finishTime` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{isInvalid} + ,#{tableId} + ,#{tableNo} + ,#{tableName} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{areaId} + ,#{areaNo} + ,#{areaName} + ,#{tableStatus} + ,#{openTime} + ,#{openUser} + ,#{serialNo} + ,#{seatNumber} + ,#{peopleNumber} + ,#{excessFlag} + ,#{totalAmount} + ,#{totalRefund} + ,#{totalQuantity} + ,#{discountAmount} + ,#{discountRate} + ,#{receivableAmount} + ,#{paidAmount} + ,#{malingAmount} + ,#{masterTable} + ,#{perCapitaAmount} + ,#{posNo} + ,#{payNo} + ,#{finishTime} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_table + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`isInvalid` = #{isInvalid} + ,`tableId` = #{tableId} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`areaId` = #{areaId} + ,`areaNo` = #{areaNo} + ,`areaName` = #{areaName} + ,`tableStatus` = #{tableStatus} + ,`openTime` = #{openTime} + ,`openUser` = #{openUser} + ,`serialNo` = #{serialNo} + ,`seatNumber` = #{seatNumber} + ,`peopleNumber` = #{peopleNumber} + ,`excessFlag` = #{excessFlag} + ,`totalAmount` = #{totalAmount} + ,`totalRefund` = #{totalRefund} + ,`totalQuantity` = #{totalQuantity} + ,`discountAmount` = #{discountAmount} + ,`discountRate` = #{discountRate} + ,`receivableAmount` = #{receivableAmount} + ,`paidAmount` = #{paidAmount} + ,`malingAmount` = #{malingAmount} + ,`masterTable` = #{masterTable} + ,`perCapitaAmount` = #{perCapitaAmount} + ,`posNo` = #{posNo} + ,`payNo` = #{payNo} + ,`finishTime` = #{finishTime} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_table + where `id` = #{id} + + + + delete from cy_store_business_ticket_table + ${condition} + + + + delete from cy_store_business_ticket_table + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostManageLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostManageLogMapper.xml new file mode 100644 index 0000000..d922ad3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostManageLogMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`feeId`,`feeName`,`storeNos`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_cost_manage_log + + `id`,`tenantId` + ,`feeId` + ,`feeName` + ,`storeNos` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{feeId} + ,#{feeName} + ,#{storeNos} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_cost_manage_log + + `tenantId` = #{tenantId} + ,`feeId` = #{feeId} + ,`feeName` = #{feeName} + ,`storeNos` = #{storeNos} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_cost_manage_log + where `id` = #{id} + + + + delete from cy_store_cost_manage_log + ${condition} + + + + delete from cy_store_cost_manage_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostManageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostManageMapper.xml new file mode 100644 index 0000000..f78351c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostManageMapper.xml @@ -0,0 +1,183 @@ + + + + + + `id`,`tenantId`,`feeType`,`no`,`name`,`money`,`cutPaymentType`,`cutPaymentTime`,`cronTime`,`startTime`,`endTime`,`status`,`exeStatus`,`isEnable`,`beforeMoney`,`beforeCronTime`,`checkMan`,`checkTime`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_cost_manage + + `id`,`tenantId` + ,`feeType` + ,`no` + ,`name` + ,`money` + ,`cutPaymentType` + ,`cutPaymentTime` + ,`cronTime` + ,`startTime` + ,`endTime` + ,`status` + ,`exeStatus` + ,`isEnable` + ,`beforeMoney` + ,`beforeCronTime` + ,`checkMan` + ,`checkTime` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{feeType} + ,#{no} + ,#{name} + ,#{money} + ,#{cutPaymentType} + ,#{cutPaymentTime} + ,#{cronTime} + ,#{startTime} + ,#{endTime} + ,#{status} + ,#{exeStatus} + ,#{isEnable} + ,#{beforeMoney} + ,#{beforeCronTime} + ,#{checkMan} + ,#{checkTime} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_cost_manage + + `tenantId` = #{tenantId} + ,`feeType` = #{feeType} + ,`no` = #{no} + ,`name` = #{name} + ,`money` = #{money} + ,`cutPaymentType` = #{cutPaymentType} + ,`cutPaymentTime` = #{cutPaymentTime} + ,`cronTime` = #{cronTime} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`status` = #{status} + ,`exeStatus` = #{exeStatus} + ,`isEnable` = #{isEnable} + ,`beforeMoney` = #{beforeMoney} + ,`beforeCronTime` = #{beforeCronTime} + ,`checkMan` = #{checkMan} + ,`checkTime` = #{checkTime} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_cost_manage + where `id` = #{id} + + + + delete from cy_store_cost_manage + ${condition} + + + + delete from cy_store_cost_manage + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + insert into cy_store_cost_manage_store + + `tenantId`,`feeId`,`storeId` + ,`storeNo` + ,`storeName` + + + #{tenantId},#{id},#{storeId} + ,#{storeNo} + ,#{storeName} + + + + + + + + + DELETE FROM cy_store_cost_manage_store where `tenantId` = #{tenantId} and `feeId` = #{feeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostRevenueMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostRevenueMapper.xml new file mode 100644 index 0000000..01325f3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreCostRevenueMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`workId`,`workNo`,`workName`,`shiftNo`,`shiftName`,`name`,`money`,`type`,`description`,`memo`,`inputDate`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_cost_revenue + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`workId` + ,`workNo` + ,`workName` + ,`shiftNo` + ,`shiftName` + ,`name` + ,`money` + ,`type` + ,`description` + ,`memo` + ,`inputDate` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{workId} + ,#{workNo} + ,#{workName} + ,#{shiftNo} + ,#{shiftName} + ,#{name} + ,#{money} + ,#{type} + ,#{description} + ,#{memo} + ,#{inputDate} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_cost_revenue + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`workId` = #{workId} + ,`workNo` = #{workNo} + ,`workName` = #{workName} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`name` = #{name} + ,`money` = #{money} + ,`type` = #{type} + ,`description` = #{description} + ,`memo` = #{memo} + ,`inputDate` = #{inputDate} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_cost_revenue + where `id` = #{id} + + + + delete from cy_store_cost_revenue + ${condition} + + + + delete from cy_store_cost_revenue + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderItemMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderItemMapper.xml new file mode 100644 index 0000000..1b69c48 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderItemMapper.xml @@ -0,0 +1,227 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`workerNo`,`saleDate`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isInvalid`,`lineNo`,`seqNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_delivery_order_item + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`workerNo` + ,`saleDate` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{workerNo} + ,#{saleDate} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_delivery_order_item + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`workerNo` = #{workerNo} + ,`saleDate` = #{saleDate} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_delivery_order_item + where `id` = #{id} + + + + delete from cy_store_delivery_order_item + ${condition} + + + + delete from cy_store_delivery_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderMapper.xml new file mode 100644 index 0000000..cf9812c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderMapper.xml @@ -0,0 +1,200 @@ + + + + + + `id`,`clientId`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`workNo`,`saleDate`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`isInvalid`,`orderTime`,`visitorName`,`orderTel`,`recipientName`,`recipientPhone`,`recipientAddress`,`deliveryWorkerNo`,`deliveryWorkerName`,`advanceAmount`,`distributionFee`,`deliveryBeginTime`,`deliveryEndTime`,`settlementTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_delivery_order + + `id`,`tenantId` + ,`clientId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`workNo` + ,`saleDate` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`isInvalid` + ,`orderTime` + ,`visitorName` + ,`orderTel` + ,`recipientName` + ,`recipientPhone` + ,`recipientAddress` + ,`deliveryWorkerNo` + ,`deliveryWorkerName` + ,`advanceAmount` + ,`distributionFee` + ,`deliveryBeginTime` + ,`deliveryEndTime` + ,`settlementTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{workNo} + ,#{saleDate} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{isInvalid} + ,#{orderTime} + ,#{visitorName} + ,#{orderTel} + ,#{recipientName} + ,#{recipientPhone} + ,#{recipientAddress} + ,#{deliveryWorkerNo} + ,#{deliveryWorkerName} + ,#{advanceAmount} + ,#{distributionFee} + ,#{deliveryBeginTime} + ,#{deliveryEndTime} + ,#{settlementTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_delivery_order + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`workNo` = #{workNo} + ,`saleDate` = #{saleDate} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`isInvalid` = #{isInvalid} + ,`orderTime` = #{orderTime} + ,`visitorName` = #{visitorName} + ,`orderTel` = #{orderTel} + ,`recipientName` = #{recipientName} + ,`recipientPhone` = #{recipientPhone} + ,`recipientAddress` = #{recipientAddress} + ,`deliveryWorkerNo` = #{deliveryWorkerNo} + ,`deliveryWorkerName` = #{deliveryWorkerName} + ,`advanceAmount` = #{advanceAmount} + ,`distributionFee` = #{distributionFee} + ,`deliveryBeginTime` = #{deliveryBeginTime} + ,`deliveryEndTime` = #{deliveryEndTime} + ,`settlementTime` = #{settlementTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_delivery_order + where `id` = #{id} + + + + delete from cy_store_delivery_order + ${condition} + + + + delete from cy_store_delivery_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDepartmentMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDepartmentMapper.xml new file mode 100644 index 0000000..227c297 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDepartmentMapper.xml @@ -0,0 +1,138 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`manager`,`phone`,`email`,`enabled`,`description`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_department + + `id`,`tenantId` + ,`no` + ,`name` + ,`manager` + ,`phone` + ,`email` + ,`enabled` + ,`description` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{manager} + ,#{phone} + ,#{email} + ,#{enabled} + ,#{description} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_department + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`manager` = #{manager} + ,`phone` = #{phone} + ,`email` = #{email} + ,`enabled` = #{enabled} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_department + where `id` = #{id} + + + + delete from cy_store_department + ${condition} + + + + delete from cy_store_department + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store_department + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountLogMapper.xml new file mode 100644 index 0000000..404d6c6 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountLogMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`storeId`,`preBalance`,`balance`,`afterBalance`,`type`,`ticketNo`,`setMan`,`setDate`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_dispatch_account_log + + `id`,`tenantId` + ,`storeId` + ,`preBalance` + ,`balance` + ,`afterBalance` + ,`type` + ,`ticketNo` + ,`setMan` + ,`setDate` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{preBalance} + ,#{balance} + ,#{afterBalance} + ,#{type} + ,#{ticketNo} + ,#{setMan} + ,#{setDate} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_dispatch_account_log + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`preBalance` = #{preBalance} + ,`balance` = #{balance} + ,`afterBalance` = #{afterBalance} + ,`type` = #{type} + ,`ticketNo` = #{ticketNo} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_dispatch_account_log + where `id` = #{id} + + + + delete from cy_store_dispatch_account_log + ${condition} + + + + delete from cy_store_dispatch_account_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountMapper.xml new file mode 100644 index 0000000..6423c85 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`storeId`,`balance`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_dispatch_account + + `id`,`tenantId` + ,`storeId` + ,`balance` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{balance} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_dispatch_account + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`balance` = #{balance} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_dispatch_account + where `id` = #{id} + + + + delete from cy_store_dispatch_account + ${condition} + + + + delete from cy_store_dispatch_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordLogMapper.xml new file mode 100644 index 0000000..621c2fd --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordLogMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`recordId`,`type`,`status`,`sourceSign`,`workerNo`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_enchashment_record_log + + `id`,`tenantId` + ,`recordId` + ,`type` + ,`status` + ,`sourceSign` + ,`workerNo` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{recordId} + ,#{type} + ,#{status} + ,#{sourceSign} + ,#{workerNo} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_enchashment_record_log + + `tenantId` = #{tenantId} + ,`recordId` = #{recordId} + ,`type` = #{type} + ,`status` = #{status} + ,`sourceSign` = #{sourceSign} + ,`workerNo` = #{workerNo} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_enchashment_record_log + where `id` = #{id} + + + + delete from cy_store_enchashment_record_log + ${condition} + + + + delete from cy_store_enchashment_record_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordMapper.xml new file mode 100644 index 0000000..036d63d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordMapper.xml @@ -0,0 +1,167 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`accountId`,`busType`,`amount`,`status`,`payType`,`voucherNo`,`aftAmount`,`applyWorkerNo`,`applyDate`,`description`,`sourceSign`,`cancelWorkerNo`,`cancelReason`,`cancelDate`,`auditWorkerNo`,`auditReason`,`auditDate`,`settleWorkerNo`,`settleDate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_enchashment_record + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`accountId` + ,`busType` + ,`amount` + ,`status` + ,`payType` + ,`voucherNo` + ,`aftAmount` + ,`applyWorkerNo` + ,`applyDate` + ,`description` + ,`sourceSign` + ,`cancelWorkerNo` + ,`cancelReason` + ,`cancelDate` + ,`auditWorkerNo` + ,`auditReason` + ,`auditDate` + ,`settleWorkerNo` + ,`settleDate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{accountId} + ,#{busType} + ,#{amount} + ,#{status} + ,#{payType} + ,#{voucherNo} + ,#{aftAmount} + ,#{applyWorkerNo} + ,#{applyDate} + ,#{description} + ,#{sourceSign} + ,#{cancelWorkerNo} + ,#{cancelReason} + ,#{cancelDate} + ,#{auditWorkerNo} + ,#{auditReason} + ,#{auditDate} + ,#{settleWorkerNo} + ,#{settleDate} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_enchashment_record + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`accountId` = #{accountId} + ,`busType` = #{busType} + ,`amount` = #{amount} + ,`status` = #{status} + ,`payType` = #{payType} + ,`voucherNo` = #{voucherNo} + ,`aftAmount` = #{aftAmount} + ,`applyWorkerNo` = #{applyWorkerNo} + ,`applyDate` = #{applyDate} + ,`description` = #{description} + ,`sourceSign` = #{sourceSign} + ,`cancelWorkerNo` = #{cancelWorkerNo} + ,`cancelReason` = #{cancelReason} + ,`cancelDate` = #{cancelDate} + ,`auditWorkerNo` = #{auditWorkerNo} + ,`auditReason` = #{auditReason} + ,`auditDate` = #{auditDate} + ,`settleWorkerNo` = #{settleWorkerNo} + ,`settleDate` = #{settleDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_enchashment_record + where `id` = #{id} + + + + delete from cy_store_enchashment_record + ${condition} + + + + delete from cy_store_enchashment_record + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreFeeCutLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreFeeCutLogMapper.xml new file mode 100644 index 0000000..bb5cbda --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreFeeCutLogMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`accountId`,`storeId`,`storeNo`,`storeName`,`feeType`,`feeName`,`cutPaymentType`,`status`,`amount`,`aftAmount`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_fee_cut_log + + `id`,`tenantId` + ,`accountId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`feeType` + ,`feeName` + ,`cutPaymentType` + ,`status` + ,`amount` + ,`aftAmount` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{accountId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{feeType} + ,#{feeName} + ,#{cutPaymentType} + ,#{status} + ,#{amount} + ,#{aftAmount} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_fee_cut_log + + `tenantId` = #{tenantId} + ,`accountId` = #{accountId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`feeType` = #{feeType} + ,`feeName` = #{feeName} + ,`cutPaymentType` = #{cutPaymentType} + ,`status` = #{status} + ,`amount` = #{amount} + ,`aftAmount` = #{aftAmount} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_fee_cut_log + where `id` = #{id} + + + + delete from cy_store_fee_cut_log + ${condition} + + + + delete from cy_store_fee_cut_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailMapper.xml new file mode 100644 index 0000000..6b382c7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`payModeNo`,`payModeName`,`count`,`money`,`handsMoney`,`cardCount`,`cardMoney`,`sumMoney`,`isInvalid`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover_detail + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`payModeNo` + ,`payModeName` + ,`count` + ,`money` + ,`handsMoney` + ,`cardCount` + ,`cardMoney` + ,`sumMoney` + ,`isInvalid` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{payModeNo} + ,#{payModeName} + ,#{count} + ,#{money} + ,#{handsMoney} + ,#{cardCount} + ,#{cardMoney} + ,#{sumMoney} + ,#{isInvalid} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover_detail + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`payModeNo` = #{payModeNo} + ,`payModeName` = #{payModeName} + ,`count` = #{count} + ,`money` = #{money} + ,`handsMoney` = #{handsMoney} + ,`cardCount` = #{cardCount} + ,`cardMoney` = #{cardMoney} + ,`sumMoney` = #{sumMoney} + ,`isInvalid` = #{isInvalid} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover_detail + where `id` = #{id} + + + + delete from cy_store_handover_detail + ${condition} + + + + delete from cy_store_handover_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPartMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPartMapper.xml new file mode 100644 index 0000000..2c8e0a8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPartMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`specName`,`preCount`,`count`,`handsCount`,`difCount`,`isInvalid`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover_detail_part + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`specName` + ,`preCount` + ,`count` + ,`handsCount` + ,`difCount` + ,`isInvalid` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{specName} + ,#{preCount} + ,#{count} + ,#{handsCount} + ,#{difCount} + ,#{isInvalid} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover_detail_part + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`specName` = #{specName} + ,`preCount` = #{preCount} + ,`count` = #{count} + ,`handsCount` = #{handsCount} + ,`difCount` = #{difCount} + ,`isInvalid` = #{isInvalid} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover_detail_part + where `id` = #{id} + + + + delete from cy_store_handover_detail_part + ${condition} + + + + delete from cy_store_handover_detail_part + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPayMapper.xml new file mode 100644 index 0000000..bc25831 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPayMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`payModeNo`,`payModeName`,`busMode`,`money`,`count`,`busType`,`isInvalid`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover_detail_pay + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`payModeNo` + ,`payModeName` + ,`busMode` + ,`money` + ,`count` + ,`busType` + ,`isInvalid` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{payModeNo} + ,#{payModeName} + ,#{busMode} + ,#{money} + ,#{count} + ,#{busType} + ,#{isInvalid} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover_detail_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`payModeNo` = #{payModeNo} + ,`payModeName` = #{payModeName} + ,`busMode` = #{busMode} + ,`money` = #{money} + ,`count` = #{count} + ,`busType` = #{busType} + ,`isInvalid` = #{isInvalid} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover_detail_pay + where `id` = #{id} + + + + delete from cy_store_handover_detail_pay + ${condition} + + + + delete from cy_store_handover_detail_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverMapper.xml new file mode 100644 index 0000000..b142d60 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreHandoverMapper.xml @@ -0,0 +1,260 @@ + + + + + + `id`,`clientId`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`workId`,`workNo`,`workName`,`shiftNo`,`shiftName`,`datetimeBegin`,`datetimeEnd`,`datetimeShift`,`acceptWorkerNo`,`posNo`,`memo`,`peopleCount`,`dealTicketCount`,`dealAmount`,`backTicketCount`,`backAmount`,`ticketCount`,`amount`,`discountMoney`,`couponDiscountMoney`,`otherDiscountMoney`,`receivable`,`maling`,`paid`,`cardCount`,`cardRealMoney`,`cardRefundCount`,`cardRefundMoney`,`sumRealMoney`,`inmoney`,`outmoney`,`distributionFee`,`shiftAmount`,`imprest`,`deviceName`,`deviceMac`,`deviceIp`,`isInvalid`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover + + `id`,`tenantId` + ,`clientId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`workId` + ,`workNo` + ,`workName` + ,`shiftNo` + ,`shiftName` + ,`datetimeBegin` + ,`datetimeEnd` + ,`datetimeShift` + ,`acceptWorkerNo` + ,`posNo` + ,`memo` + ,`peopleCount` + ,`dealTicketCount` + ,`dealAmount` + ,`backTicketCount` + ,`backAmount` + ,`ticketCount` + ,`amount` + ,`discountMoney` + ,`couponDiscountMoney` + ,`otherDiscountMoney` + ,`receivable` + ,`maling` + ,`paid` + ,`cardCount` + ,`cardRealMoney` + ,`cardRefundCount` + ,`cardRefundMoney` + ,`sumRealMoney` + ,`inmoney` + ,`outmoney` + ,`distributionFee` + ,`shiftAmount` + ,`imprest` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`isInvalid` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{workId} + ,#{workNo} + ,#{workName} + ,#{shiftNo} + ,#{shiftName} + ,#{datetimeBegin} + ,#{datetimeEnd} + ,#{datetimeShift} + ,#{acceptWorkerNo} + ,#{posNo} + ,#{memo} + ,#{peopleCount} + ,#{dealTicketCount} + ,#{dealAmount} + ,#{backTicketCount} + ,#{backAmount} + ,#{ticketCount} + ,#{amount} + ,#{discountMoney} + ,#{couponDiscountMoney} + ,#{otherDiscountMoney} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{cardCount} + ,#{cardRealMoney} + ,#{cardRefundCount} + ,#{cardRefundMoney} + ,#{sumRealMoney} + ,#{inmoney} + ,#{outmoney} + ,#{distributionFee} + ,#{shiftAmount} + ,#{imprest} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{isInvalid} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`workId` = #{workId} + ,`workNo` = #{workNo} + ,`workName` = #{workName} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`datetimeBegin` = #{datetimeBegin} + ,`datetimeEnd` = #{datetimeEnd} + ,`datetimeShift` = #{datetimeShift} + ,`acceptWorkerNo` = #{acceptWorkerNo} + ,`posNo` = #{posNo} + ,`memo` = #{memo} + ,`peopleCount` = #{peopleCount} + ,`dealTicketCount` = #{dealTicketCount} + ,`dealAmount` = #{dealAmount} + ,`backTicketCount` = #{backTicketCount} + ,`backAmount` = #{backAmount} + ,`ticketCount` = #{ticketCount} + ,`amount` = #{amount} + ,`discountMoney` = #{discountMoney} + ,`couponDiscountMoney` = #{couponDiscountMoney} + ,`otherDiscountMoney` = #{otherDiscountMoney} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`cardCount` = #{cardCount} + ,`cardRealMoney` = #{cardRealMoney} + ,`cardRefundCount` = #{cardRefundCount} + ,`cardRefundMoney` = #{cardRefundMoney} + ,`sumRealMoney` = #{sumRealMoney} + ,`inmoney` = #{inmoney} + ,`outmoney` = #{outmoney} + ,`distributionFee` = #{distributionFee} + ,`shiftAmount` = #{shiftAmount} + ,`imprest` = #{imprest} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`isInvalid` = #{isInvalid} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover + where `id` = #{id} + + + + delete from cy_store_handover + ${condition} + + + + delete from cy_store_handover + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreLoginLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreLoginLogMapper.xml new file mode 100644 index 0000000..358abcf --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreLoginLogMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`workerNo`,`storeNo`,`storeName`,`loginTime`,`type`,`posNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_login_log + + `id`,`tenantId` + ,`workerNo` + ,`storeNo` + ,`storeName` + ,`loginTime` + ,`type` + ,`posNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{workerNo} + ,#{storeNo} + ,#{storeName} + ,#{loginTime} + ,#{type} + ,#{posNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_login_log + + `tenantId` = #{tenantId} + ,`workerNo` = #{workerNo} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`loginTime` = #{loginTime} + ,`type` = #{type} + ,`posNo` = #{posNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_login_log + where `id` = #{id} + + + + delete from cy_store_login_log + ${condition} + + + + delete from cy_store_login_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreMapper.xml new file mode 100644 index 0000000..d010e3d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreMapper.xml @@ -0,0 +1,306 @@ + + + + + + `id`,`tenantId`,`areaId`,`areaPath`,`typeId`,`no`,`name`,`manager`,`tel`,`mobile`,`orderTel`,`printName`,`address`,`mail`,`square`,`deskAmount`,`seatAmount`,`registerFlag`,`stapleFlag`,`enabled`,`deleteFlag`,`width`,`height`,`groupName`,`storageFileName`,`authFlag`,`latitude`,`longitude`,`noType`,`maxOffLine`,`productFlag`,`thirdNo`,`ext1`,`ext2`,`groupId`,`groupNo`,`deductionRate`,`status`,`singleFlag`,`description`,`logoUrl`,`defaultFlag`,`storeTaxRateFlag`,`saleTax`,`lyRate`,`storeRate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store + + `id`,`tenantId` + ,`areaId` + ,`areaPath` + ,`typeId` + ,`no` + ,`name` + ,`manager` + ,`tel` + ,`mobile` + ,`orderTel` + ,`printName` + ,`address` + ,`mail` + ,`square` + ,`deskAmount` + ,`seatAmount` + ,`registerFlag` + ,`stapleFlag` + ,`enabled` + ,`deleteFlag` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`authFlag` + ,`latitude` + ,`longitude` + ,`noType` + ,`maxOffLine` + ,`productFlag` + ,`thirdNo` + ,`ext1` + ,`ext2` + ,`groupId` + ,`groupNo` + ,`deductionRate` + ,`status` + ,`singleFlag` + ,`description` + ,`logoUrl` + ,`defaultFlag` + ,`storeTaxRateFlag` + ,`saleTax` + ,`lyRate` + ,`storeRate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{areaId} + ,#{areaPath} + ,#{typeId} + ,#{no} + ,#{name} + ,#{manager} + ,#{tel} + ,#{mobile} + ,#{orderTel} + ,#{printName} + ,#{address} + ,#{mail} + ,#{square} + ,#{deskAmount} + ,#{seatAmount} + ,#{registerFlag} + ,#{stapleFlag} + ,#{enabled} + ,#{deleteFlag} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{authFlag} + ,#{latitude} + ,#{longitude} + ,#{noType} + ,#{maxOffLine} + ,#{productFlag} + ,#{thirdNo} + ,#{ext1} + ,#{ext2} + ,#{groupId} + ,#{groupNo} + ,#{deductionRate} + ,#{status} + ,#{singleFlag} + ,#{description} + ,#{logoUrl} + ,#{defaultFlag} + ,#{storeTaxRateFlag} + ,#{saleTax} + ,#{lyRate} + ,#{storeRate} + ,#{createDate} + ,#{createUser} + + + + + update cy_store + + `tenantId` = #{tenantId} + ,`areaId` = #{areaId} + ,`areaPath` = #{areaPath} + ,`typeId` = #{typeId} + ,`no` = #{no} + ,`name` = #{name} + ,`manager` = #{manager} + ,`tel` = #{tel} + ,`mobile` = #{mobile} + ,`orderTel` = #{orderTel} + ,`printName` = #{printName} + ,`address` = #{address} + ,`mail` = #{mail} + ,`square` = #{square} + ,`deskAmount` = #{deskAmount} + ,`seatAmount` = #{seatAmount} + ,`registerFlag` = #{registerFlag} + ,`stapleFlag` = #{stapleFlag} + ,`enabled` = #{enabled} + ,`deleteFlag` = #{deleteFlag} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`authFlag` = #{authFlag} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`noType` = #{noType} + ,`maxOffLine` = #{maxOffLine} + ,`productFlag` = #{productFlag} + ,`thirdNo` = #{thirdNo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`groupId` = #{groupId} + ,`groupNo` = #{groupNo} + ,`deductionRate` = #{deductionRate} + ,`status` = #{status} + ,`singleFlag` = #{singleFlag} + ,`description` = #{description} + ,`logoUrl` = #{logoUrl} + ,`defaultFlag` = #{defaultFlag} + ,`storeTaxRateFlag` = #{storeTaxRateFlag} + ,`saleTax` = #{saleTax} + ,`lyRate` = #{lyRate} + ,`storeRate` = #{storeRate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store + where `id` = #{id} + + + + delete from cy_store + ${condition} + + + + delete from cy_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + insert into cy_store_brand (`tenantId`,`brandId`,`storeId`) + values + (#{tenantId},#{brandId},#{storeId}) + + + + + + + + delete from cy_store_brand + where `tenantId`=#{tenantId} and storeId=#{storeId} + + + + + + + + + + + + + + + + + + + update cy_store set `groupId` = #{groupId}, `groupNo` = #{groupNo} + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOperationLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOperationLogMapper.xml new file mode 100644 index 0000000..2baa527 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOperationLogMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`workerNo`,`shiftNo`,`shiftName`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`operationTime`,`type`,`typeTxt`,`memo`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_operation_log + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`workerNo` + ,`shiftNo` + ,`shiftName` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`operationTime` + ,`type` + ,`typeTxt` + ,`memo` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{workerNo} + ,#{shiftNo} + ,#{shiftName} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{operationTime} + ,#{type} + ,#{typeTxt} + ,#{memo} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_operation_log + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`workerNo` = #{workerNo} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`operationTime` = #{operationTime} + ,`type` = #{type} + ,`typeTxt` = #{typeTxt} + ,`memo` = #{memo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_operation_log + where `id` = #{id} + + + + delete from cy_store_operation_log + ${condition} + + + + delete from cy_store_operation_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductInfoMapper.xml new file mode 100644 index 0000000..4a4f3b2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductInfoMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`clientId`,`orderItemId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_order_product_info + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_order_product_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_order_product_info + where `id` = #{id} + + + + delete from cy_store_order_product_info + ${condition} + + + + delete from cy_store_order_product_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMakeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMakeMapper.xml new file mode 100644 index 0000000..135ba87 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMakeMapper.xml @@ -0,0 +1,193 @@ + + + + + + `id`,`clientId`,`tenantId`,`orderItemId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`hand`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_order_product_make + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`hand` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{hand} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_order_product_make + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`hand` = #{hand} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_order_product_make + where `id` = #{id} + + + + delete from cy_store_order_product_make + ${condition} + + + + delete from cy_store_order_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMapper.xml new file mode 100644 index 0000000..2fd40b9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMapper.xml @@ -0,0 +1,340 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`busMode`,`tableNo`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`workerNo`,`saleDate`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isMember`,`memberNo`,`isInvalid`,`lineNo`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_order_product + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`workerNo` + ,`saleDate` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isMember` + ,`memberNo` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{workerNo} + ,#{saleDate} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isMember} + ,#{memberNo} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_order_product + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + + + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`workerNo` = #{workerNo} + ,`saleDate` = #{saleDate} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} and `ticketId` = #{ticketId} + + + + delete from cy_store_order_product + where `id` = #{id} + + + + delete from cy_store_order_product + ${condition} + + + + delete from cy_store_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorePayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorePayMapper.xml new file mode 100644 index 0000000..289d886 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StorePayMapper.xml @@ -0,0 +1,268 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`payNo`,`ticketId`,`busNo`,`busMode`,`tableNo`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`workNo`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`voucherNo`,`payDate`,`cardno`,`cardYe`,`cardJf`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payChannel`,`memo`,`isInvalid`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + + insert into cy_store_pay + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`workNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`cardYe` + ,`cardJf` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payChannel` + ,`memo` + ,`isInvalid` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{workNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{cardYe} + ,#{cardJf} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payChannel} + ,#{memo} + ,#{isInvalid} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`workNo` = #{workNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`cardYe` = #{cardYe} + ,`cardJf` = #{cardJf} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payChannel` = #{payChannel} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_pay + where `id` = #{id} + + + + delete from cy_store_pay + ${condition} + + + + delete from cy_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreProductMapper.xml new file mode 100644 index 0000000..a8f6cea --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreProductMapper.xml @@ -0,0 +1,233 @@ + + + + + + `id`,`tenantId`,`storeId`,`productId`,`specId`,`productUnitId`,`typeId`,`typePath`,`price`,`minPrice`,`memberPrice`,`otherPrice`,`costPrice`,`purchasePrice`,`dispatchPrice`,`thUseLevel`,`realThUseLevel`,`cost`,`wprice`,`wmemberPrice`,`totalStock`,`saleStock`,`stock`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_product + + `id`,`tenantId` + ,`storeId` + ,`productId` + ,`specId` + ,`productUnitId` + ,`typeId` + ,`typePath` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`otherPrice` + ,`costPrice` + ,`purchasePrice` + ,`dispatchPrice` + ,`thUseLevel` + ,`realThUseLevel` + ,`cost` + ,`wprice` + ,`wmemberPrice` + ,`totalStock` + ,`saleStock` + ,`stock` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{productId} + ,#{specId} + ,#{productUnitId} + ,#{typeId} + ,#{typePath} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{otherPrice} + ,#{costPrice} + ,#{purchasePrice} + ,#{dispatchPrice} + ,#{thUseLevel} + ,#{realThUseLevel} + ,#{cost} + ,#{wprice} + ,#{wmemberPrice} + ,#{totalStock} + ,#{saleStock} + ,#{stock} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_product + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productUnitId` = #{productUnitId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`otherPrice` = #{otherPrice} + ,`costPrice` = #{costPrice} + ,`purchasePrice` = #{purchasePrice} + ,`dispatchPrice` = #{dispatchPrice} + ,`thUseLevel` = #{thUseLevel} + ,`realThUseLevel` = #{realThUseLevel} + ,`cost` = #{cost} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`totalStock` = #{totalStock} + ,`saleStock` = #{saleStock} + ,`stock` = #{stock} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_product + where `id` = #{id} + + + + delete from cy_store_product + ${condition} + + + + delete from cy_store_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + + update cy_store_product set stock = stock-#{stock} ,saleStock = saleStock+#{stock} where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `specId` = #{specId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreProductSaleStockMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreProductSaleStockMapper.xml new file mode 100644 index 0000000..7cbd830 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreProductSaleStockMapper.xml @@ -0,0 +1,227 @@ + + + + + + `id`,`tenantId`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`sepcName`,`productUnitId`,`productUnitName`,`storeId`,`storeNo`,`storeName`,`totalStock`,`saleStock`,`stock`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_product_sale_stock + + `id`,`tenantId` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`sepcName` + ,`productUnitId` + ,`productUnitName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`totalStock` + ,`saleStock` + ,`stock` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{sepcName} + ,#{productUnitId} + ,#{productUnitName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{totalStock} + ,#{saleStock} + ,#{stock} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_product_sale_stock + + `tenantId` = #{tenantId} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`sepcName` = #{sepcName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`totalStock` = #{totalStock} + ,`saleStock` = #{saleStock} + ,`stock` = #{stock} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_product_sale_stock + where `id` = + #{id} + + + + update cy_store_product_sale_stock set stock = + stock-#{stock} ,saleStock = saleStock+#{stock} where `tenantId` = + #{tenantId} and `storeId` = #{storeId} and `specId` = #{specId} + + + + delete from cy_store_product_sale_stock + ${condition} + + + + delete from cy_store_product_sale_stock + where + `tenantId` = #{tenantId} and ${property}=#{value} + + + + + INSERT INTO cy_store_product_sale_stock (id,specId,tenantId,productId,storeId,createUser,typePath,typeId,productUnitId,seriesId,seriesName,typeName,productNo,productName,sepcName,productUnitName,storeNo,storeName,totalStock,saleStock,stock,modifyUser,createDate,modifyDate) + SELECT id,specId,tenantId,productId,storeId,'${modifyUserName}',typePath,typeId,productUnitId,(SUBSTRING_INDEX(typePath, ",", 1)), + (SELECT NAME FROM cy_product_type WHERE id = SUBSTRING_INDEX(typePath, ",", 1) and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product_type WHERE id = typeId and `tenantId` = #{tenantId}), + (SELECT NO FROM cy_product WHERE id = productId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product WHERE id = productId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product_spec WHERE id = specId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product_unit WHERE id = productUnitId and `tenantId` = #{tenantId}), + (SELECT NO FROM cy_store WHERE id = storeId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_store WHERE id = storeId and `tenantId` = #{tenantId}), + ${totalStock}, ${stock}, ${totalStock}, '${modifyUserName}', (now()), (now()) + FROM + (SELECT id,specId,tenantId,productId,storeId,createUser,typePath,typeId,productUnitId FROM cy_store_product_sale_stock AS a1 + WHERE a1.`tenantId` = #{tenantId} + UNION ALL + SELECT id,specId,tenantId,productId,storeId,createUser,typePath,typeId,productUnitId FROM cy_store_product AS a2 + WHERE a2.`tenantId` = #{tenantId} ) tbl + GROUP BY id HAVING count(*) = 1 ORDER BY id; + + + + + + + + + + + update cy_store_product_sale_stock + set `totalStock` = #{totalStock},stock=#{totalStock}-saleStock + where + `tenantId` =#{tenantId} and `productId` = #{productId} and `specId` = #{specId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateDetailMapper.xml new file mode 100644 index 0000000..722d5ef --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateDetailMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_template_detail + where `id` = #{id} + + + + delete from cy_store_stock_check_template_detail + ${condition} + + + + delete from cy_store_stock_check_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateMapper.xml new file mode 100644 index 0000000..e83185b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateMapper.xml @@ -0,0 +1,141 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_template + where `id` = #{id} + + + + delete from cy_store_stock_check_template + ${condition} + + + + delete from cy_store_stock_check_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + INSERT INTO cy_store_stock_check_template_store (`tenantId`,`ticketId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + DELETE FROM cy_store_stock_check_template_store + ${condition} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketDetailMapper.xml new file mode 100644 index 0000000..dc7e681 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketDetailMapper.xml @@ -0,0 +1,188 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`sysPrice`,`sysAmount`,`checkAmount`,`differenceAmount`,`sysMoney`,`checkMoney`,`differenceMoney`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`sysPrice` + ,`sysAmount` + ,`checkAmount` + ,`differenceAmount` + ,`sysMoney` + ,`checkMoney` + ,`differenceMoney` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{sysPrice} + ,#{sysAmount} + ,#{checkAmount} + ,#{differenceAmount} + ,#{sysMoney} + ,#{checkMoney} + ,#{differenceMoney} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`sysPrice` = #{sysPrice} + ,`sysAmount` = #{sysAmount} + ,`checkAmount` = #{checkAmount} + ,`differenceAmount` = #{differenceAmount} + ,`sysMoney` = #{sysMoney} + ,`checkMoney` = #{checkMoney} + ,`differenceMoney` = #{differenceMoney} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_detail + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_detail + ${condition} + + + + delete from cy_store_stock_check_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketLogMapper.xml new file mode 100644 index 0000000..fdadd6a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_stock_check_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_log + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_log + ${condition} + + + + delete from cy_store_stock_check_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketMapper.xml new file mode 100644 index 0000000..737589d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`storeId`,`no`,`status`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_ticket + + `id`,`tenantId` + ,`storeId` + ,`no` + ,`status` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{no} + ,#{status} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_ticket + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`no` = #{no} + ,`status` = #{status} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket + ${condition} + + + + delete from cy_store_stock_check_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageMapper.xml new file mode 100644 index 0000000..1f683e2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageMapper.xml @@ -0,0 +1,147 @@ + + + + + + `id`,`tenantId`,`name`,`no`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage + + `id`,`tenantId` + ,`name` + ,`no` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{no} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`no` = #{no} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage + where `id` = #{id} + + + + delete from cy_store_storage + ${condition} + + + + delete from cy_store_storage + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + insert into cy_storage_store + + `tenantId` + ,`storeId` + ,`storageId` + + + #{tenantId} + ,#{storeId} + ,#{id} + + + + + + + delete from cy_storage_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketDetailMapper.xml new file mode 100644 index 0000000..29cae48 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketDetailMapper.xml @@ -0,0 +1,166 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_out_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_out_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_detail + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_detail + ${condition} + + + + delete from cy_store_storage_out_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketLogMapper.xml new file mode 100644 index 0000000..daf6fd7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_out_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_storage_out_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_log + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_log + ${condition} + + + + delete from cy_store_storage_out_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketMapper.xml new file mode 100644 index 0000000..60f33f4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`type`,`storageId`,`storageName`,`description`,`status`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_out_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_out_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket + ${condition} + + + + delete from cy_store_storage_out_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketDetailMapper.xml new file mode 100644 index 0000000..f5b49cf --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketDetailMapper.xml @@ -0,0 +1,160 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_ticket_detail + where `id` = #{id} + + + + delete from cy_store_storage_ticket_detail + ${condition} + + + + delete from cy_store_storage_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketLogMapper.xml new file mode 100644 index 0000000..9a2e3e7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_storage_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_storage_ticket_log + where `id` = #{id} + + + + delete from cy_store_storage_ticket_log + ${condition} + + + + delete from cy_store_storage_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketMapper.xml new file mode 100644 index 0000000..eb56882 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`type`,`storageId`,`storageName`,`description`,`status`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_ticket + where `id` = #{id} + + + + delete from cy_store_storage_ticket + ${condition} + + + + delete from cy_store_storage_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreTypeMapper.xml new file mode 100644 index 0000000..038f61e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreTypeMapper.xml @@ -0,0 +1,126 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_type + where `id` = #{id} + + + + delete from cy_store_type + ${condition} + + + + delete from cy_store_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store_type + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreWorkerExtMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreWorkerExtMapper.xml new file mode 100644 index 0000000..aacd267 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreWorkerExtMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`workerId`,`workerNo`,`storeId`,`storeNo`,`passwd`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_worker_ext + + `id`,`tenantId` + ,`workerId` + ,`workerNo` + ,`storeId` + ,`storeNo` + ,`passwd` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{workerId} + ,#{workerNo} + ,#{storeId} + ,#{storeNo} + ,#{passwd} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_worker_ext + + `tenantId` = #{tenantId} + ,`workerId` = #{workerId} + ,`workerNo` = #{workerNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`passwd` = #{passwd} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_worker_ext + where `id` = #{id} + + + + delete from cy_store_worker_ext + ${condition} + + + + delete from cy_store_worker_ext + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreWorkerMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreWorkerMapper.xml new file mode 100644 index 0000000..c1856c0 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoreWorkerMapper.xml @@ -0,0 +1,226 @@ + + + + + + `id`,`tenantId`,`storeId`,`departmentId`,`no`,`name`,`sex`,`birthday`,`email`,`mobile`,`isAdmin`,`passwd`,`enabled`,`description`,`deleteFlag`,`noType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_store_worker + + `id`,`tenantId` + ,`storeId` + ,`departmentId` + ,`no` + ,`name` + ,`sex` + ,`birthday` + ,`email` + ,`mobile` + ,`isAdmin` + ,`passwd` + ,`enabled` + ,`description` + ,`deleteFlag` + ,`noType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{departmentId} + ,#{no} + ,#{name} + ,#{sex} + ,#{birthday} + ,#{email} + ,#{mobile} + ,#{isAdmin} + ,#{passwd} + ,#{enabled} + ,#{description} + ,#{deleteFlag} + ,#{noType} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_worker + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`departmentId` = #{departmentId} + ,`no` = #{no} + ,`name` = #{name} + ,`sex` = #{sex} + ,`birthday` = #{birthday} + ,`email` = #{email} + ,`mobile` = #{mobile} + ,`isAdmin` = #{isAdmin} + ,`passwd` = #{passwd} + ,`enabled` = #{enabled} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_worker + where `id` = #{id} + + + + delete from cy_store_worker + ${condition} + + + + delete from cy_store_worker + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + update cy_store_worker + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + insert into cy_worker_store (`tenantId`,`workerId`,`storeId`) + values + (#{tenantId},#{workerId},#{storeId}) + + + + + + + + + + + + + delete from cy_worker_store + where `tenantId`=#{tenantId} and workerId=#{workerId} + + + + + + + + delete from cy_store_worker_role + where `tenantId`=#{tenantId} and workerId=#{workerId} + + + + + insert into cy_store_worker_role (tenantId, workerId, roleId) + values + (#{tenantId}, #{workerId}, #{roleId}) + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableAreaMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableAreaMapper.xml new file mode 100644 index 0000000..07b8f15 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableAreaMapper.xml @@ -0,0 +1,130 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_storetable_area + + `id`,`tenantId` + ,`no` + ,`name` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_storetable_area + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storetable_area + where `id` = #{id} + + + + delete from cy_storetable_area + ${condition} + + + + delete from cy_storetable_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_storetable_area + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableMapper.xml new file mode 100644 index 0000000..0a38201 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`tenantId`,`storeId`,`areaId`,`typeId`,`no`,`name`,`number`,`deleteFlag`,`aliasName`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_storetable + + `id`,`tenantId` + ,`storeId` + ,`areaId` + ,`typeId` + ,`no` + ,`name` + ,`number` + ,`deleteFlag` + ,`aliasName` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{areaId} + ,#{typeId} + ,#{no} + ,#{name} + ,#{number} + ,#{deleteFlag} + ,#{aliasName} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_storetable + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`areaId` = #{areaId} + ,`typeId` = #{typeId} + ,`no` = #{no} + ,`name` = #{name} + ,`number` = #{number} + ,`deleteFlag` = #{deleteFlag} + ,`aliasName` = #{aliasName} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storetable + where `id` = #{id} + + + + delete from cy_storetable + ${condition} + + + + delete from cy_storetable + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_storetable + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableTypeMapper.xml new file mode 100644 index 0000000..7bfb973 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/StoretableTypeMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`color`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_storetable_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`color` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{color} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_storetable_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`color` = #{color} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storetable_type + where `id` = #{id} + + + + delete from cy_storetable_type + ${condition} + + + + delete from cy_storetable_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_storetable_type + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SupplierMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SupplierMapper.xml new file mode 100644 index 0000000..0615f79 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SupplierMapper.xml @@ -0,0 +1,164 @@ + + + + + + `id`,`tenantId`,`typeId`,`no`,`name`,`shortName`,`enterpriseNature`,`status`,`address`,`linkMan`,`mobile`,`fax`,`code`,`email`,`depositBank`,`reputationLevel`,`bankAccount`,`registerDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_supplier + + `id`,`tenantId` + ,`typeId` + ,`no` + ,`name` + ,`shortName` + ,`enterpriseNature` + ,`status` + ,`address` + ,`linkMan` + ,`mobile` + ,`fax` + ,`code` + ,`email` + ,`depositBank` + ,`reputationLevel` + ,`bankAccount` + ,`registerDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{typeId} + ,#{no} + ,#{name} + ,#{shortName} + ,#{enterpriseNature} + ,#{status} + ,#{address} + ,#{linkMan} + ,#{mobile} + ,#{fax} + ,#{code} + ,#{email} + ,#{depositBank} + ,#{reputationLevel} + ,#{bankAccount} + ,#{registerDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_supplier + + `tenantId` = #{tenantId} + ,`typeId` = #{typeId} + ,`no` = #{no} + ,`name` = #{name} + ,`shortName` = #{shortName} + ,`enterpriseNature` = #{enterpriseNature} + ,`status` = #{status} + ,`address` = #{address} + ,`linkMan` = #{linkMan} + ,`mobile` = #{mobile} + ,`fax` = #{fax} + ,`code` = #{code} + ,`email` = #{email} + ,`depositBank` = #{depositBank} + ,`reputationLevel` = #{reputationLevel} + ,`bankAccount` = #{bankAccount} + ,`registerDate` = #{registerDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_supplier + where `id` = #{id} + + + + delete from cy_supplier + ${condition} + + + + delete from cy_supplier + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_supplier set typeId=NULL + where tenantId=#{tenantId} and typeId=#{typeId} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SupplierTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SupplierTypeMapper.xml new file mode 100644 index 0000000..aabeb4b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/SupplierTypeMapper.xml @@ -0,0 +1,114 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_supplier_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{createDate} + ,#{createUser} + + + + + update cy_supplier_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_supplier_type + where `id` = #{id} + + + + delete from cy_supplier_type + ${condition} + + + + delete from cy_supplier_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/TaskScheduleMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/TaskScheduleMapper.xml new file mode 100644 index 0000000..f995156 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/TaskScheduleMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`groupSign`,`sign`,`jobDesc`,`jobCron`,`executorHandler`,`executorParam`,`alarmEmail`,`author`,`status`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_task_schedule + + `id`,`tenantId` + ,`groupSign` + ,`sign` + ,`jobDesc` + ,`jobCron` + ,`executorHandler` + ,`executorParam` + ,`alarmEmail` + ,`author` + ,`status` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{groupSign} + ,#{sign} + ,#{jobDesc} + ,#{jobCron} + ,#{executorHandler} + ,#{executorParam} + ,#{alarmEmail} + ,#{author} + ,#{status} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_task_schedule + + `tenantId` = #{tenantId} + ,`groupSign` = #{groupSign} + ,`sign` = #{sign} + ,`jobDesc` = #{jobDesc} + ,`jobCron` = #{jobCron} + ,`executorHandler` = #{executorHandler} + ,`executorParam` = #{executorParam} + ,`alarmEmail` = #{alarmEmail} + ,`author` = #{author} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_task_schedule + where `id` = #{id} + + + + delete from cy_task_schedule + ${condition} + + + + delete from cy_task_schedule + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMapper.xml new file mode 100644 index 0000000..5ec56f8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`makeUser`,`makeDate`,`checkUser`,`checkDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_thuselevel_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`makeUser` + ,`makeDate` + ,`checkUser` + ,`checkDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{makeUser} + ,#{makeDate} + ,#{checkUser} + ,#{checkDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_thuselevel_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`makeUser` = #{makeUser} + ,`makeDate` = #{makeDate} + ,`checkUser` = #{checkUser} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_thuselevel_ticket + where `id` = #{id} + + + + delete from cy_thuselevel_ticket + ${condition} + + + + delete from cy_thuselevel_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMaterialMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMaterialMapper.xml new file mode 100644 index 0000000..c71e6e1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMaterialMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`packUnitId`,`packUnit`,`thUseLevel`,`cost`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_thuselevel_ticket_material + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`packUnitId` + ,`packUnit` + ,`thUseLevel` + ,`cost` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{packUnitId} + ,#{packUnit} + ,#{thUseLevel} + ,#{cost} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_thuselevel_ticket_material + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`packUnitId` = #{packUnitId} + ,`packUnit` = #{packUnit} + ,`thUseLevel` = #{thUseLevel} + ,`cost` = #{cost} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_material + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_material + ${condition} + + + + delete from cy_thuselevel_ticket_material + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketStoreMapper.xml new file mode 100644 index 0000000..c2a78e9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketStoreMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storeId`,`storeNo`,`storeName`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_thuselevel_ticket_store + + `id`,`tenantId` + ,`ticketId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createDate} + ,#{createUser} + + + + + update cy_thuselevel_ticket_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_store + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_store + ${condition} + + + + delete from cy_thuselevel_ticket_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/TicketPrintSettingMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/TicketPrintSettingMapper.xml new file mode 100644 index 0000000..026ff29 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/TicketPrintSettingMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`ticketSign`,`key`,`value`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_ticket_print_setting + + `id`,`tenantId` + ,`ticketSign` + ,`key` + ,`value` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketSign} + ,#{key} + ,#{value} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_ticket_print_setting + + `tenantId` = #{tenantId} + ,`ticketSign` = #{ticketSign} + ,`key` = #{key} + ,`value` = #{value} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_ticket_print_setting + where `id` = #{id} + + + + delete from cy_ticket_print_setting + ${condition} + + + + delete from cy_ticket_print_setting + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/UserMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/UserMapper.xml new file mode 100644 index 0000000..e72652f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/UserMapper.xml @@ -0,0 +1,191 @@ + + + + + + `id`,`tenantId`,`userName`,`passwd`,`email`,`nickName`,`realName`,`sex`,`mobile`,`birthday`,`status`,`identityFlag`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into shared_user + + `id`,`tenantId` + ,`userName` + ,`passwd` + ,`email` + ,`nickName` + ,`realName` + ,`sex` + ,`mobile` + ,`birthday` + ,`status` + ,`identityFlag` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{userName} + ,#{passwd} + ,#{email} + ,#{nickName} + ,#{realName} + ,#{sex} + ,#{mobile} + ,#{birthday} + ,#{status} + ,#{identityFlag} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update shared_user + + `tenantId` = #{tenantId} + ,`userName` = #{userName} + ,`passwd` = #{passwd} + ,`email` = #{email} + ,`nickName` = #{nickName} + ,`realName` = #{realName} + ,`sex` = #{sex} + ,`mobile` = #{mobile} + ,`birthday` = #{birthday} + ,`status` = #{status} + ,`identityFlag` = #{identityFlag} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + + update shared_user set passwd = #{passwd} where + `tenantId` = #{tenantId} and `id` = #{id} + + + + delete from shared_user + where `id` = #{id} + + + + delete from shared_user + ${condition} + + + + delete from shared_user + where `tenantId` = #{tenantId} + and ${property}=#{value} + + + + + + + + + + + insert into shared_user_role (tenantId,userId, roleId) + values + (#{tenantId}, #{userId}, #{roleId}) + + + + + delete from shared_user_role + where `tenantId` = #{tenantId} + and userId = #{userId} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorAddressMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorAddressMapper.xml new file mode 100644 index 0000000..2ac90ed --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorAddressMapper.xml @@ -0,0 +1,139 @@ + + + + + + `id`,`tenantId`,`storeId`,`visitorId`,`name`,`telephone`,`areaName`,`address`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_visitor_address + + `id`,`tenantId` + ,`storeId` + ,`visitorId` + ,`name` + ,`telephone` + ,`areaName` + ,`address` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{visitorId} + ,#{name} + ,#{telephone} + ,#{areaName} + ,#{address} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_visitor_address + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`visitorId` = #{visitorId} + ,`name` = #{name} + ,`telephone` = #{telephone} + ,`areaName` = #{areaName} + ,`address` = #{address} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_visitor_address + where `id` = #{id} + + + + delete from cy_visitor_address + ${condition} + + + + delete from cy_visitor_address + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorMapper.xml new file mode 100644 index 0000000..7fe9fd0 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorMapper.xml @@ -0,0 +1,154 @@ + + + + + + `id`,`tenantId`,`storeId`,`no`,`tel`,`name`,`spell`,`sex`,`title`,`position`,`fphone`,`sphone`,`description`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_visitor + + `id`,`tenantId` + ,`storeId` + ,`no` + ,`tel` + ,`name` + ,`spell` + ,`sex` + ,`title` + ,`position` + ,`fphone` + ,`sphone` + ,`description` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{no} + ,#{tel} + ,#{name} + ,#{spell} + ,#{sex} + ,#{title} + ,#{position} + ,#{fphone} + ,#{sphone} + ,#{description} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_visitor + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`no` = #{no} + ,`tel` = #{tel} + ,`name` = #{name} + ,`spell` = #{spell} + ,`sex` = #{sex} + ,`title` = #{title} + ,`position` = #{position} + ,`fphone` = #{fphone} + ,`sphone` = #{sphone} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_visitor + where `id` = #{id} + + + + delete from cy_visitor + ${condition} + + + + delete from cy_visitor + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_visitor + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorTagMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorTagMapper.xml new file mode 100644 index 0000000..666eb4e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VisitorTagMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`storeId`,`visitorId`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_visitor_tag + + `id`,`tenantId` + ,`storeId` + ,`visitorId` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{visitorId} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update cy_visitor_tag + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`visitorId` = #{visitorId} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_visitor_tag + where `id` = #{id} + + + + delete from cy_visitor_tag + ${condition} + + + + delete from cy_visitor_tag + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposAdPictureMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposAdPictureMapper.xml new file mode 100644 index 0000000..8fd8b84 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposAdPictureMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`type`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_ad_picture + + `id`,`tenantId` + ,`type` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{type} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_ad_picture + + `tenantId` = #{tenantId} + ,`type` = #{type} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_ad_picture + where `id` = #{id} + + + + delete from cy_vpos_ad_picture + ${condition} + + + + delete from cy_vpos_ad_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_vpos_ad_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposCcbfzAccountMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposCcbfzAccountMapper.xml new file mode 100644 index 0000000..52784f6 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposCcbfzAccountMapper.xml @@ -0,0 +1,127 @@ + + + + + + `id`,`tenantId`,`seriesId`,`receiveNoType`,`receiveNo`,`acountType`,`feeName`,`refundSign`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_ccbfz_account + + `id`,`tenantId` + ,`seriesId` + ,`receiveNoType` + ,`receiveNo` + ,`acountType` + ,`feeName` + ,`refundSign` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{seriesId} + ,#{receiveNoType} + ,#{receiveNo} + ,#{acountType} + ,#{feeName} + ,#{refundSign} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_ccbfz_account + + `tenantId` = #{tenantId} + ,`seriesId` = #{seriesId} + ,`receiveNoType` = #{receiveNoType} + ,`receiveNo` = #{receiveNo} + ,`acountType` = #{acountType} + ,`feeName` = #{feeName} + ,`refundSign` = #{refundSign} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_ccbfz_account + where `id` = #{id} + + + + delete from cy_vpos_ccbfz_account + ${condition} + + + + delete from cy_vpos_ccbfz_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateImageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateImageMapper.xml new file mode 100644 index 0000000..4af6a97 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateImageMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`evaluateId`,`width`,`height`,`groupName`,`storageFileName`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_product_evaluate_image + + `id`,`tenantId` + ,`evaluateId` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{evaluateId} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_product_evaluate_image + + `tenantId` = #{tenantId} + ,`evaluateId` = #{evaluateId} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate_image + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate_image + ${condition} + + + + delete from cy_vpos_product_evaluate_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateMapper.xml new file mode 100644 index 0000000..d732cc1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateMapper.xml @@ -0,0 +1,178 @@ + + + + + + `id`,`tenantId`,`memberId`,`openId`,`mobile`,`storeId`,`storeNo`,`storeName`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`productId`,`productNo`,`productName`,`touxiang`,`memberName`,`memo`,`type`,`level`,`tickingTime`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_product_evaluate + + `id`,`tenantId` + ,`memberId` + ,`openId` + ,`mobile` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`touxiang` + ,`memberName` + ,`memo` + ,`type` + ,`level` + ,`tickingTime` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{touxiang} + ,#{memberName} + ,#{memo} + ,#{type} + ,#{level} + ,#{tickingTime} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_product_evaluate + + `tenantId` = #{tenantId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`touxiang` = #{touxiang} + ,`memberName` = #{memberName} + ,`memo` = #{memo} + ,`type` = #{type} + ,`level` = #{level} + ,`tickingTime` = #{tickingTime} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate + ${condition} + + + + delete from cy_vpos_product_evaluate + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketInfoMapper.xml new file mode 100644 index 0000000..0f668ba --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketInfoMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_business_ticket_info + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_business_ticket_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket_info + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket_info + ${condition} + + + + delete from cy_vpos_store_business_ticket_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketMapper.xml new file mode 100644 index 0000000..479f75c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketMapper.xml @@ -0,0 +1,250 @@ + + + + + + `id`,`clientId`,`tenantId`,`memberId`,`openId`,`mobile`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`workNo`,`saleDate`,`tableNo`,`people`,`busMode`,`shiftNo`,`shiftName`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`memberNo`,`memberJifen`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`isInvalid`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_business_ticket + + `id`,`tenantId` + ,`clientId` + ,`memberId` + ,`openId` + ,`mobile` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`workNo` + ,`saleDate` + ,`tableNo` + ,`people` + ,`busMode` + ,`shiftNo` + ,`shiftName` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`memberNo` + ,`memberJifen` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`isInvalid` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{workNo} + ,#{saleDate} + ,#{tableNo} + ,#{people} + ,#{busMode} + ,#{shiftNo} + ,#{shiftName} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{memberNo} + ,#{memberJifen} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{isInvalid} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_business_ticket + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`workNo` = #{workNo} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`memberJifen` = #{memberJifen} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`isInvalid` = #{isInvalid} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket + ${condition} + + + + delete from cy_vpos_store_business_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductInfoMapper.xml new file mode 100644 index 0000000..08e67fb --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductInfoMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`clientId`,`orderItemId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_order_product_info + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_order_product_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_info + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_info + ${condition} + + + + delete from cy_vpos_store_order_product_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMakeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMakeMapper.xml new file mode 100644 index 0000000..4fb64f7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMakeMapper.xml @@ -0,0 +1,179 @@ + + + + + + `id`,`clientId`,`tenantId`,`orderItemId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`hand`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_order_product_make + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`hand` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{hand} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_order_product_make + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`hand` = #{hand} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_make + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_make + ${condition} + + + + delete from cy_vpos_store_order_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMapper.xml new file mode 100644 index 0000000..e12ca18 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMapper.xml @@ -0,0 +1,314 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`busMode`,`tableNo`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`productImageUrl`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`workerNo`,`saleDate`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isMember`,`memberNo`,`isInvalid`,`lineNo`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_order_product + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`productImageUrl` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`workerNo` + ,`saleDate` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isMember` + ,`memberNo` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{productImageUrl} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{workerNo} + ,#{saleDate} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isMember} + ,#{memberNo} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_order_product + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`productImageUrl` = #{productImageUrl} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`workerNo` = #{workerNo} + ,`saleDate` = #{saleDate} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_order_product + where `id` = #{id} + + + + delete from cy_vpos_store_order_product + ${condition} + + + + delete from cy_vpos_store_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStorePayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStorePayMapper.xml new file mode 100644 index 0000000..90b8cb6 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposStorePayMapper.xml @@ -0,0 +1,212 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`payNo`,`ticketId`,`busNo`,`busMode`,`tableNo`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`workNo`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`voucherNo`,`payDate`,`cardno`,`cardYe`,`cardJf`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payChannel`,`memo`,`isInvalid`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_pay + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`workNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`cardYe` + ,`cardJf` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payChannel` + ,`memo` + ,`isInvalid` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{workNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{cardYe} + ,#{cardJf} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payChannel} + ,#{memo} + ,#{isInvalid} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`workNo` = #{workNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`cardYe` = #{cardYe} + ,`cardJf` = #{cardJf} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payChannel` = #{payChannel} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_pay + where `id` = #{id} + + + + delete from cy_vpos_store_pay + ${condition} + + + + delete from cy_vpos_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposUserMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposUserMapper.xml new file mode 100644 index 0000000..3a55da1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposUserMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sex`,`birthday`,`email`,`mobile`,`isLogin`,`passwd`,`enable`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_user + + `id`,`tenantId` + ,`no` + ,`name` + ,`sex` + ,`birthday` + ,`email` + ,`mobile` + ,`isLogin` + ,`passwd` + ,`enable` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sex} + ,#{birthday} + ,#{email} + ,#{mobile} + ,#{isLogin} + ,#{passwd} + ,#{enable} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_user + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sex` = #{sex} + ,`birthday` = #{birthday} + ,`email` = #{email} + ,`mobile` = #{mobile} + ,`isLogin` = #{isLogin} + ,`passwd` = #{passwd} + ,`enable` = #{enable} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_user + where `id` = #{id} + + + + delete from cy_vpos_user + ${condition} + + + + delete from cy_vpos_user + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposUserSeriesMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposUserSeriesMapper.xml new file mode 100644 index 0000000..2e3a20d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/VposUserSeriesMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`userId`,`seriesId`,`seriesNo`,`seriesName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_user_series + + `id`,`tenantId` + ,`userId` + ,`seriesId` + ,`seriesNo` + ,`seriesName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{userId} + ,#{seriesId} + ,#{seriesNo} + ,#{seriesName} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_user_series + + `tenantId` = #{tenantId} + ,`userId` = #{userId} + ,`seriesId` = #{seriesId} + ,`seriesNo` = #{seriesNo} + ,`seriesName` = #{seriesName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_user_series + where `id` = #{id} + + + + delete from cy_vpos_user_series + ${condition} + + + + delete from cy_vpos_user_series + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdPictureMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdPictureMapper.xml new file mode 100644 index 0000000..9e7e9b2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdPictureMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_ad_picture + + `id`,`tenantId` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_ad_picture + + `tenantId` = #{tenantId} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_ad_picture + where `id` = #{id} + + + + delete from cy_wx_ad_picture + ${condition} + + + + delete from cy_wx_ad_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_ad_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceGoodsMapper.xml new file mode 100644 index 0000000..c6243b8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceGoodsMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_adjust_price_goods + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_adjust_price_goods + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_adjust_price_goods + where `id` = #{id} + + + + delete from cy_wx_adjust_price_goods + ${condition} + + + + delete from cy_wx_adjust_price_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceStoreMapper.xml new file mode 100644 index 0000000..6232a4e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceStoreMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_adjust_price_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_adjust_price_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_adjust_price_store + where `id` = #{id} + + + + delete from cy_wx_adjust_price_store + ${condition} + + + + delete from cy_wx_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceTicketMapper.xml new file mode 100644 index 0000000..bcb9d92 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceTicketMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_adjust_price_ticket + + `id`,`tenantId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_wx_adjust_price_ticket + ${condition} + + + + delete from cy_wx_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsCategoryMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsCategoryMapper.xml new file mode 100644 index 0000000..5c3213d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsCategoryMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`name`,`description`,`orderNo`,`path`,`deleteFlag`,`nameEn`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_category + + `id`,`tenantId` + ,`name` + ,`description` + ,`orderNo` + ,`path` + ,`deleteFlag` + ,`nameEn` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{description} + ,#{orderNo} + ,#{path} + ,#{deleteFlag} + ,#{nameEn} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_category + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`description` = #{description} + ,`orderNo` = #{orderNo} + ,`path` = #{path} + ,`deleteFlag` = #{deleteFlag} + ,`nameEn` = #{nameEn} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_category + where `id` = #{id} + + + + delete from cy_wx_goods_category + ${condition} + + + + delete from cy_wx_goods_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_goods_category + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsMakeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsMakeMapper.xml new file mode 100644 index 0000000..363be9d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsMakeMapper.xml @@ -0,0 +1,109 @@ + + + + + + `tenantId`,`productId`,`typeId`,`makeId`,`addPrice` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_make + + `tenantId` + ,`productId` + ,`typeId` + ,`makeId` + ,`addPrice` + + + #{tenantId} + ,#{productId} + ,#{typeId} + ,#{makeId} + ,#{addPrice} + + + + + delete from cy_wx_goods_make + where `id` = #{id} + + + + delete from cy_wx_goods_make + ${condition} + + + + delete from cy_wx_goods_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsMapper.xml new file mode 100644 index 0000000..4b32b23 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsMapper.xml @@ -0,0 +1,190 @@ + + + + + + `id`,`tenantId`,`productId`,`productNo`,`specId`,`name`,`specName`,`description`,`categoryId`,`categoryPath`,`orderNo`,`isNew`,`price`,`memberPrice`,`minCount`,`limitCount`,`suitFlag`,`deleteFlag`,`boxPrice`,`nameEn`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods + + `id`,`tenantId` + ,`productId` + ,`productNo` + ,`specId` + ,`name` + ,`specName` + ,`description` + ,`categoryId` + ,`categoryPath` + ,`orderNo` + ,`isNew` + ,`price` + ,`memberPrice` + ,`minCount` + ,`limitCount` + ,`suitFlag` + ,`deleteFlag` + ,`boxPrice` + ,`nameEn` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{name} + ,#{specName} + ,#{description} + ,#{categoryId} + ,#{categoryPath} + ,#{orderNo} + ,#{isNew} + ,#{price} + ,#{memberPrice} + ,#{minCount} + ,#{limitCount} + ,#{suitFlag} + ,#{deleteFlag} + ,#{boxPrice} + ,#{nameEn} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`name` = #{name} + ,`specName` = #{specName} + ,`description` = #{description} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`orderNo` = #{orderNo} + ,`isNew` = #{isNew} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`minCount` = #{minCount} + ,`limitCount` = #{limitCount} + ,`suitFlag` = #{suitFlag} + ,`deleteFlag` = #{deleteFlag} + ,`boxPrice` = #{boxPrice} + ,`nameEn` = #{nameEn} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods + where `id` = #{id} + + + + delete from cy_wx_goods + ${condition} + + + + delete from cy_wx_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_goods + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateDetailMapper.xml new file mode 100644 index 0000000..f097451 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateDetailMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`templateId`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_template_detail + + `id`,`tenantId` + ,`templateId` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_template_detail + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_template_detail + where `id` = #{id} + + + + delete from cy_wx_goods_template_detail + ${condition} + + + + delete from cy_wx_goods_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateMapper.xml new file mode 100644 index 0000000..b0e3d4d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_template + where `id` = #{id} + + + + delete from cy_wx_goods_template + ${condition} + + + + delete from cy_wx_goods_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateStoreMapper.xml new file mode 100644 index 0000000..cb5f2a5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateStoreMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`templateId`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_template_store + + `id`,`tenantId` + ,`templateId` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_template_store + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_template_store + where `id` = #{id} + + + + delete from cy_wx_goods_template_store + ${condition} + + + + delete from cy_wx_goods_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxPaymentParameterMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxPaymentParameterMapper.xml new file mode 100644 index 0000000..0bc6a7d --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxPaymentParameterMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_payment_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_payment_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_payment_parameter + where `id` = #{id} + + + + delete from cy_wx_payment_parameter + ${condition} + + + + delete from cy_wx_payment_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_wx_payment_parameter_store (`tenantId`,`storeId`,`wxStoreId`,`parameterId`) + VALUES (#{tenantId},#{storeId},#{wxStoreId},#{id}) + + + + + + DELETE FROM cy_wx_payment_parameter_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxQrcodeSettingMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxQrcodeSettingMapper.xml new file mode 100644 index 0000000..ce7dbe5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxQrcodeSettingMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`width`,`height`,`linkAddress`,`logoName`,`logoWidth`,`logoHeight`,`groupName`,`storageFileName`,`imgLink`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_qrcode_setting + + `id`,`tenantId` + ,`width` + ,`height` + ,`linkAddress` + ,`logoName` + ,`logoWidth` + ,`logoHeight` + ,`groupName` + ,`storageFileName` + ,`imgLink` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{width} + ,#{height} + ,#{linkAddress} + ,#{logoName} + ,#{logoWidth} + ,#{logoHeight} + ,#{groupName} + ,#{storageFileName} + ,#{imgLink} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_qrcode_setting + + `tenantId` = #{tenantId} + ,`width` = #{width} + ,`height` = #{height} + ,`linkAddress` = #{linkAddress} + ,`logoName` = #{logoName} + ,`logoWidth` = #{logoWidth} + ,`logoHeight` = #{logoHeight} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`imgLink` = #{imgLink} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_qrcode_setting + where `id` = #{id} + + + + delete from cy_wx_qrcode_setting + ${condition} + + + + delete from cy_wx_qrcode_setting + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMakeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMakeMapper.xml new file mode 100644 index 0000000..cd1ebc2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMakeMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`memberId`,`orderItemId`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`saleDate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_item_make + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`memberId` + ,`orderItemId` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`saleDate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{memberId} + ,#{orderItemId} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{saleDate} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_item_make + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`memberId` = #{memberId} + ,`orderItemId` = #{orderItemId} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`saleDate` = #{saleDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_make + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_make + ${condition} + + + + delete from cy_wx_sales_order_item_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMapper.xml new file mode 100644 index 0000000..7a40891 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMapper.xml @@ -0,0 +1,234 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`memberId`,`tableNo`,`tableName`,`lineNo`,`goodsId`,`goodsName`,`specName`,`categoryId`,`categoryPath`,`categoryName`,`productId`,`productNo`,`specId`,`productUnitId`,`productUnitName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`saleDate`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isMember`,`isSuit`,`suitId`,`parentId`,`boxNum`,`boxPrice`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_item + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`memberId` + ,`tableNo` + ,`tableName` + ,`lineNo` + ,`goodsId` + ,`goodsName` + ,`specName` + ,`categoryId` + ,`categoryPath` + ,`categoryName` + ,`productId` + ,`productNo` + ,`specId` + ,`productUnitId` + ,`productUnitName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`saleDate` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isMember` + ,`isSuit` + ,`suitId` + ,`parentId` + ,`boxNum` + ,`boxPrice` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{memberId} + ,#{tableNo} + ,#{tableName} + ,#{lineNo} + ,#{goodsId} + ,#{goodsName} + ,#{specName} + ,#{categoryId} + ,#{categoryPath} + ,#{categoryName} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{productUnitId} + ,#{productUnitName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{saleDate} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isMember} + ,#{isSuit} + ,#{suitId} + ,#{parentId} + ,#{boxNum} + ,#{boxPrice} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_item + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`memberId` = #{memberId} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`lineNo` = #{lineNo} + ,`goodsId` = #{goodsId} + ,`goodsName` = #{goodsName} + ,`specName` = #{specName} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`categoryName` = #{categoryName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`saleDate` = #{saleDate} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isMember` = #{isMember} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`parentId` = #{parentId} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_item + where `id` = #{id} + + + + delete from cy_wx_sales_order_item + ${condition} + + + + delete from cy_wx_sales_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemPromoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemPromoMapper.xml new file mode 100644 index 0000000..1674c4f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemPromoMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`storeId`,`ticketId`,`busNo`,`orderItemId`,`type`,`info`,`discountMoney`,`saleDate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_item_promo + + `id`,`tenantId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`orderItemId` + ,`type` + ,`info` + ,`discountMoney` + ,`saleDate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{orderItemId} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{saleDate} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_item_promo + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`orderItemId` = #{orderItemId} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`saleDate` = #{saleDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_promo + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_promo + ${condition} + + + + delete from cy_wx_sales_order_item_promo + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderLogMapper.xml new file mode 100644 index 0000000..5166de8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_log + where `id` = #{id} + + + + delete from cy_wx_sales_order_log + ${condition} + + + + delete from cy_wx_sales_order_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderMapper.xml new file mode 100644 index 0000000..8aa9846 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesOrderMapper.xml @@ -0,0 +1,225 @@ + + + + + + `id`,`tenantId`,`no`,`wid`,`memberId`,`phone`,`storeId`,`storeNo`,`storeName`,`daySeq`,`takeNo`,`status`,`refundStatus`,`channel`,`saleDate`,`tableNo`,`tableName`,`people`,`busMode`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`isInvalid`,`description`,`payType`,`payMode`,`payDate`,`cancelDate`,`cancelReason`,`storeReason`,`receiveName`,`receiveMobile`,`receiveAddress`,`boxFee`,`distributionFee`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order + + `id`,`tenantId` + ,`no` + ,`wid` + ,`memberId` + ,`phone` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`daySeq` + ,`takeNo` + ,`status` + ,`refundStatus` + ,`channel` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`people` + ,`busMode` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`isInvalid` + ,`description` + ,`payType` + ,`payMode` + ,`payDate` + ,`cancelDate` + ,`cancelReason` + ,`storeReason` + ,`receiveName` + ,`receiveMobile` + ,`receiveAddress` + ,`boxFee` + ,`distributionFee` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{wid} + ,#{memberId} + ,#{phone} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{daySeq} + ,#{takeNo} + ,#{status} + ,#{refundStatus} + ,#{channel} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{people} + ,#{busMode} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{isInvalid} + ,#{description} + ,#{payType} + ,#{payMode} + ,#{payDate} + ,#{cancelDate} + ,#{cancelReason} + ,#{storeReason} + ,#{receiveName} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{boxFee} + ,#{distributionFee} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`wid` = #{wid} + ,`memberId` = #{memberId} + ,`phone` = #{phone} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`daySeq` = #{daySeq} + ,`takeNo` = #{takeNo} + ,`status` = #{status} + ,`refundStatus` = #{refundStatus} + ,`channel` = #{channel} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`isInvalid` = #{isInvalid} + ,`description` = #{description} + ,`payType` = #{payType} + ,`payMode` = #{payMode} + ,`payDate` = #{payDate} + ,`cancelDate` = #{cancelDate} + ,`cancelReason` = #{cancelReason} + ,`storeReason` = #{storeReason} + ,`receiveName` = #{receiveName} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`boxFee` = #{boxFee} + ,`distributionFee` = #{distributionFee} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order + where `id` = #{id} + + + + delete from cy_wx_sales_order + ${condition} + + + + delete from cy_wx_sales_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesPaymentMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesPaymentMapper.xml new file mode 100644 index 0000000..71d10d6 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxSalesPaymentMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`storeId`,`ticketId`,`busNo`,`memberId`,`payNo`,`payType`,`payMode`,`status`,`paid`,`rchange`,`money`,`voucherNo`,`payDate`,`payAccount`,`memo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_payment + + `id`,`tenantId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`memberId` + ,`payNo` + ,`payType` + ,`payMode` + ,`status` + ,`paid` + ,`rchange` + ,`money` + ,`voucherNo` + ,`payDate` + ,`payAccount` + ,`memo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{memberId} + ,#{payNo} + ,#{payType} + ,#{payMode} + ,#{status} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{voucherNo} + ,#{payDate} + ,#{payAccount} + ,#{memo} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_payment + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`memberId` = #{memberId} + ,`payNo` = #{payNo} + ,`payType` = #{payType} + ,`payMode` = #{payMode} + ,`status` = #{status} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`payAccount` = #{payAccount} + ,`memo` = #{memo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_payment + where `id` = #{id} + + + + delete from cy_wx_sales_payment + ${condition} + + + + delete from cy_wx_sales_payment + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxStoreGoodsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxStoreGoodsMapper.xml new file mode 100644 index 0000000..9104037 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxStoreGoodsMapper.xml @@ -0,0 +1,238 @@ + + + + + + `id`,`tenantId`,`storeId`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`inventoryQuantity`,`saleStatus`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_store_goods + + `id`,`tenantId` + ,`storeId` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`inventoryQuantity` + ,`saleStatus` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{inventoryQuantity} + ,#{saleStatus} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_store_goods + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`inventoryQuantity` = #{inventoryQuantity} + ,`saleStatus` = #{saleStatus} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + update cy_wx_store_goods + set `saleStatus` = #{saleStatus} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} + + + + delete from cy_wx_store_goods + where `id` = #{id} + + + + delete from cy_wx_store_goods + ${condition} + + + + delete from cy_wx_store_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxStoreMapper.xml new file mode 100644 index 0000000..555d2fc --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/WxStoreMapper.xml @@ -0,0 +1,190 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`orderTel`,`address`,`enabled`,`deleteFlag`,`storeId`,`latitude`,`longitude`,`noticeInfo`,`isOpen`,`openTimeType`,`openTime`,`deliverFee`,`deliverFeeDiscountType`,`deliverFeeDiscountRule`,`wid`,`litAppAccountId`,`posNo`,`busModes`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_store + + `id`,`tenantId` + ,`no` + ,`name` + ,`orderTel` + ,`address` + ,`enabled` + ,`deleteFlag` + ,`storeId` + ,`latitude` + ,`longitude` + ,`noticeInfo` + ,`isOpen` + ,`openTimeType` + ,`openTime` + ,`deliverFee` + ,`deliverFeeDiscountType` + ,`deliverFeeDiscountRule` + ,`wid` + ,`litAppAccountId` + ,`posNo` + ,`busModes` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{orderTel} + ,#{address} + ,#{enabled} + ,#{deleteFlag} + ,#{storeId} + ,#{latitude} + ,#{longitude} + ,#{noticeInfo} + ,#{isOpen} + ,#{openTimeType} + ,#{openTime} + ,#{deliverFee} + ,#{deliverFeeDiscountType} + ,#{deliverFeeDiscountRule} + ,#{wid} + ,#{litAppAccountId} + ,#{posNo} + ,#{busModes} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_store + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`orderTel` = #{orderTel} + ,`address` = #{address} + ,`enabled` = #{enabled} + ,`deleteFlag` = #{deleteFlag} + ,`storeId` = #{storeId} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`noticeInfo` = #{noticeInfo} + ,`isOpen` = #{isOpen} + ,`openTimeType` = #{openTimeType} + ,`openTime` = #{openTime} + ,`deliverFee` = #{deliverFee} + ,`deliverFeeDiscountType` = #{deliverFeeDiscountType} + ,`deliverFeeDiscountRule` = #{deliverFeeDiscountRule} + ,`wid` = #{wid} + ,`litAppAccountId` = #{litAppAccountId} + ,`posNo` = #{posNo} + ,`busModes` = #{busModes} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_store + where `id` = #{id} + + + + delete from cy_wx_store + ${condition} + + + + delete from cy_wx_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_store + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/YunposSetMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/YunposSetMapper.xml new file mode 100644 index 0000000..54292dc --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/YunposSetMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`name`,`terminalType`,`description`,`enable`,`pbody`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_yunpos_set + + `id`,`tenantId` + ,`name` + ,`terminalType` + ,`description` + ,`enable` + ,`pbody` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{terminalType} + ,#{description} + ,#{enable} + ,#{pbody} + ,#{createDate} + ,#{createUser} + + + + + update cy_yunpos_set + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`terminalType` = #{terminalType} + ,`description` = #{description} + ,`enable` = #{enable} + ,`pbody` = #{pbody} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_yunpos_set + where `id` = #{id} + + + + delete from cy_yunpos_set + ${condition} + + + + delete from cy_yunpos_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/YunposSetStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/YunposSetStoreMapper.xml new file mode 100644 index 0000000..e859708 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/food/YunposSetStoreMapper.xml @@ -0,0 +1,104 @@ + + + + + + `tenantId`,`storeId`,`setId` + + + + + + + + + + + + + + + + + + + + insert into cy_yunpos_set_store + + `id`,`tenantId` + ,`storeId` + ,`setId` + + + #{id},#{tenantId} + ,#{storeId} + ,#{setId} + + + + + update cy_yunpos_set_store + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`setId` = #{setId} + + where `id` = #{id} + + + + delete from cy_yunpos_set_store + where `id` = #{id} + + + + delete from cy_yunpos_set_store + ${condition} + + + + delete from cy_yunpos_set_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentMapper.xml new file mode 100644 index 0000000..72c7ec3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentMapper.xml @@ -0,0 +1,153 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`topParentId`,`parentId`,`area`,`contacts`,`phone`,`mobile`,`isShare`,`shareData`,`email`,`address`,`memo`,`subInsCd`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into yw_agent + + `id`,`tenantId` + ,`code` + ,`name` + ,`topParentId` + ,`parentId` + ,`area` + ,`contacts` + ,`phone` + ,`mobile` + ,`isShare` + ,`shareData` + ,`email` + ,`address` + ,`memo` + ,`subInsCd` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{topParentId} + ,#{parentId} + ,#{area} + ,#{contacts} + ,#{phone} + ,#{mobile} + ,#{isShare} + ,#{shareData} + ,#{email} + ,#{address} + ,#{memo} + ,#{subInsCd} + ,#{createUser} + ,#{createDate} + + + + + update yw_agent + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`topParentId` = #{topParentId} + ,`parentId` = #{parentId} + ,`area` = #{area} + ,`contacts` = #{contacts} + ,`phone` = #{phone} + ,`mobile` = #{mobile} + ,`isShare` = #{isShare} + ,`shareData` = #{shareData} + ,`email` = #{email} + ,`address` = #{address} + ,`memo` = #{memo} + ,`subInsCd` = #{subInsCd} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_agent + where `id` = #{id} + + + + delete from yw_agent + ${condition} + + + + delete from yw_agent + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketImageMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketImageMapper.xml new file mode 100644 index 0000000..8863f62 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketImageMapper.xml @@ -0,0 +1,154 @@ + + + + + + `id`,`tenantId`,`agentId`,`insCd`,`subInsCd`,`traceId`,`traceNo`,`imageType`,`name`,`mimeType`,`suffix`,`length`,`width`,`height`,`groupName`,`fileName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_agent_sub_fuyou_ticket_image + + `id`,`tenantId` + ,`agentId` + ,`insCd` + ,`subInsCd` + ,`traceId` + ,`traceNo` + ,`imageType` + ,`name` + ,`mimeType` + ,`suffix` + ,`length` + ,`width` + ,`height` + ,`groupName` + ,`fileName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{agentId} + ,#{insCd} + ,#{subInsCd} + ,#{traceId} + ,#{traceNo} + ,#{imageType} + ,#{name} + ,#{mimeType} + ,#{suffix} + ,#{length} + ,#{width} + ,#{height} + ,#{groupName} + ,#{fileName} + ,#{createUser} + ,#{createDate} + + + + + update yw_agent_sub_fuyou_ticket_image + + `tenantId` = #{tenantId} + ,`agentId` = #{agentId} + ,`insCd` = #{insCd} + ,`subInsCd` = #{subInsCd} + ,`traceId` = #{traceId} + ,`traceNo` = #{traceNo} + ,`imageType` = #{imageType} + ,`name` = #{name} + ,`mimeType` = #{mimeType} + ,`suffix` = #{suffix} + ,`length` = #{length} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`fileName` = #{fileName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket_image + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket_image + ${condition} + + + + delete from yw_agent_sub_fuyou_ticket_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketMapper.xml new file mode 100644 index 0000000..65ec68c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketMapper.xml @@ -0,0 +1,317 @@ + + + + + + `id`,`tenantId`,`agentId`,`insCd`,`subInsCd`,`traceNo`,`status`,`retCode`,`retMsg`,`fyMchntCd`,`wxMchntCd`,`wxappMchntCd`,`acntUpdNo`,`acntUpdSt`,`acntUpdMsg`,`tenantCode`,`mchntName`,`mchntShortName`,`realName`,`licenseType`,`licenseNo`,`licenseExpireDt`,`artifNm`,`certifId`,`certifIdExpireDt`,`contactPerson`,`contactPhone`,`contactMobile`,`contactEmail`,`business`,`cityCd`,`countyCd`,`contactAddr`,`acntType`,`bankType`,`acntArtifFlag`,`acntNm`,`acntCertifTp`,`acntCertifId`,`acntCertifExpireDt`,`interBankNo`,`issBankNm`,`acntNo`,`bankType2`,`acntNm2`,`interBankNo2`,`issBankNm2`,`acntNo2`,`setCd`,`settleAmt`,`settleTp`,`txSetCd`,`txFlag`,`thFlag`,`wxFlag`,`wxBusiFlag`,`aliFlag`,`wxSetCd`,`aliSetCd`,`autoBuy`,`qpayFlag`,`qpaySetCd`,`jdpayFlag`,`jdpaySetCd`,`wxappFlag`,`wxappSetCd`,`dailySettleFlag`,`dailySettleSetCd`,`bestpayFlag`,`bestpaySetCd`,`verifyNo`,`contractNo`,`signUrl`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_agent_sub_fuyou_ticket + + `id`,`tenantId` + ,`agentId` + ,`insCd` + ,`subInsCd` + ,`traceNo` + ,`status` + ,`retCode` + ,`retMsg` + ,`fyMchntCd` + ,`wxMchntCd` + ,`wxappMchntCd` + ,`acntUpdNo` + ,`acntUpdSt` + ,`acntUpdMsg` + ,`tenantCode` + ,`mchntName` + ,`mchntShortName` + ,`realName` + ,`licenseType` + ,`licenseNo` + ,`licenseExpireDt` + ,`artifNm` + ,`certifId` + ,`certifIdExpireDt` + ,`contactPerson` + ,`contactPhone` + ,`contactMobile` + ,`contactEmail` + ,`business` + ,`cityCd` + ,`countyCd` + ,`contactAddr` + ,`acntType` + ,`bankType` + ,`acntArtifFlag` + ,`acntNm` + ,`acntCertifTp` + ,`acntCertifId` + ,`acntCertifExpireDt` + ,`interBankNo` + ,`issBankNm` + ,`acntNo` + ,`bankType2` + ,`acntNm2` + ,`interBankNo2` + ,`issBankNm2` + ,`acntNo2` + ,`setCd` + ,`settleAmt` + ,`settleTp` + ,`txSetCd` + ,`txFlag` + ,`thFlag` + ,`wxFlag` + ,`wxBusiFlag` + ,`aliFlag` + ,`wxSetCd` + ,`aliSetCd` + ,`autoBuy` + ,`qpayFlag` + ,`qpaySetCd` + ,`jdpayFlag` + ,`jdpaySetCd` + ,`wxappFlag` + ,`wxappSetCd` + ,`dailySettleFlag` + ,`dailySettleSetCd` + ,`bestpayFlag` + ,`bestpaySetCd` + ,`verifyNo` + ,`contractNo` + ,`signUrl` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{agentId} + ,#{insCd} + ,#{subInsCd} + ,#{traceNo} + ,#{status} + ,#{retCode} + ,#{retMsg} + ,#{fyMchntCd} + ,#{wxMchntCd} + ,#{wxappMchntCd} + ,#{acntUpdNo} + ,#{acntUpdSt} + ,#{acntUpdMsg} + ,#{tenantCode} + ,#{mchntName} + ,#{mchntShortName} + ,#{realName} + ,#{licenseType} + ,#{licenseNo} + ,#{licenseExpireDt} + ,#{artifNm} + ,#{certifId} + ,#{certifIdExpireDt} + ,#{contactPerson} + ,#{contactPhone} + ,#{contactMobile} + ,#{contactEmail} + ,#{business} + ,#{cityCd} + ,#{countyCd} + ,#{contactAddr} + ,#{acntType} + ,#{bankType} + ,#{acntArtifFlag} + ,#{acntNm} + ,#{acntCertifTp} + ,#{acntCertifId} + ,#{acntCertifExpireDt} + ,#{interBankNo} + ,#{issBankNm} + ,#{acntNo} + ,#{bankType2} + ,#{acntNm2} + ,#{interBankNo2} + ,#{issBankNm2} + ,#{acntNo2} + ,#{setCd} + ,#{settleAmt} + ,#{settleTp} + ,#{txSetCd} + ,#{txFlag} + ,#{thFlag} + ,#{wxFlag} + ,#{wxBusiFlag} + ,#{aliFlag} + ,#{wxSetCd} + ,#{aliSetCd} + ,#{autoBuy} + ,#{qpayFlag} + ,#{qpaySetCd} + ,#{jdpayFlag} + ,#{jdpaySetCd} + ,#{wxappFlag} + ,#{wxappSetCd} + ,#{dailySettleFlag} + ,#{dailySettleSetCd} + ,#{bestpayFlag} + ,#{bestpaySetCd} + ,#{verifyNo} + ,#{contractNo} + ,#{signUrl} + ,#{createUser} + ,#{createDate} + + + + + update yw_agent_sub_fuyou_ticket + + `tenantId` = #{tenantId} + ,`agentId` = #{agentId} + ,`insCd` = #{insCd} + ,`subInsCd` = #{subInsCd} + ,`traceNo` = #{traceNo} + ,`status` = #{status} + ,`retCode` = #{retCode} + ,`retMsg` = #{retMsg} + ,`fyMchntCd` = #{fyMchntCd} + ,`wxMchntCd` = #{wxMchntCd} + ,`wxappMchntCd` = #{wxappMchntCd} + ,`acntUpdNo` = #{acntUpdNo} + ,`acntUpdSt` = #{acntUpdSt} + ,`acntUpdMsg` = #{acntUpdMsg} + ,`tenantCode` = #{tenantCode} + ,`mchntName` = #{mchntName} + ,`mchntShortName` = #{mchntShortName} + ,`realName` = #{realName} + ,`licenseType` = #{licenseType} + ,`licenseNo` = #{licenseNo} + ,`licenseExpireDt` = #{licenseExpireDt} + ,`artifNm` = #{artifNm} + ,`certifId` = #{certifId} + ,`certifIdExpireDt` = #{certifIdExpireDt} + ,`contactPerson` = #{contactPerson} + ,`contactPhone` = #{contactPhone} + ,`contactMobile` = #{contactMobile} + ,`contactEmail` = #{contactEmail} + ,`business` = #{business} + ,`cityCd` = #{cityCd} + ,`countyCd` = #{countyCd} + ,`contactAddr` = #{contactAddr} + ,`acntType` = #{acntType} + ,`bankType` = #{bankType} + ,`acntArtifFlag` = #{acntArtifFlag} + ,`acntNm` = #{acntNm} + ,`acntCertifTp` = #{acntCertifTp} + ,`acntCertifId` = #{acntCertifId} + ,`acntCertifExpireDt` = #{acntCertifExpireDt} + ,`interBankNo` = #{interBankNo} + ,`issBankNm` = #{issBankNm} + ,`acntNo` = #{acntNo} + ,`bankType2` = #{bankType2} + ,`acntNm2` = #{acntNm2} + ,`interBankNo2` = #{interBankNo2} + ,`issBankNm2` = #{issBankNm2} + ,`acntNo2` = #{acntNo2} + ,`setCd` = #{setCd} + ,`settleAmt` = #{settleAmt} + ,`settleTp` = #{settleTp} + ,`txSetCd` = #{txSetCd} + ,`txFlag` = #{txFlag} + ,`thFlag` = #{thFlag} + ,`wxFlag` = #{wxFlag} + ,`wxBusiFlag` = #{wxBusiFlag} + ,`aliFlag` = #{aliFlag} + ,`wxSetCd` = #{wxSetCd} + ,`aliSetCd` = #{aliSetCd} + ,`autoBuy` = #{autoBuy} + ,`qpayFlag` = #{qpayFlag} + ,`qpaySetCd` = #{qpaySetCd} + ,`jdpayFlag` = #{jdpayFlag} + ,`jdpaySetCd` = #{jdpaySetCd} + ,`wxappFlag` = #{wxappFlag} + ,`wxappSetCd` = #{wxappSetCd} + ,`dailySettleFlag` = #{dailySettleFlag} + ,`dailySettleSetCd` = #{dailySettleSetCd} + ,`bestpayFlag` = #{bestpayFlag} + ,`bestpaySetCd` = #{bestpaySetCd} + ,`verifyNo` = #{verifyNo} + ,`contractNo` = #{contractNo} + ,`signUrl` = #{signUrl} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket + ${condition} + + + + delete from yw_agent_sub_fuyou_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppBaiduBranchMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppBaiduBranchMapper.xml new file mode 100644 index 0000000..ea52e39 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppBaiduBranchMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`baiduShopId`,`baiduShopName`,`status`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_baidu_branch + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`baiduShopId` + ,`baiduShopName` + ,`status` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{baiduShopId} + ,#{baiduShopName} + ,#{status} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_baidu_branch + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`baiduShopId` = #{baiduShopId} + ,`baiduShopName` = #{baiduShopName} + ,`status` = #{status} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_baidu_branch + where `id` = #{id} + + + + delete from yw_app_baidu_branch + ${condition} + + + + delete from yw_app_baidu_branch + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppGuopanStoreInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppGuopanStoreInfoMapper.xml new file mode 100644 index 0000000..a9914fe --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppGuopanStoreInfoMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`pid`,`name`,`addrCode`,`category`,`ext`,`type`,`apiKey`,`shopId`,`loginUrl`,`usid`,`msid`,`expiryDate`,`status`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_guopan_store_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`pid` + ,`name` + ,`addrCode` + ,`category` + ,`ext` + ,`type` + ,`apiKey` + ,`shopId` + ,`loginUrl` + ,`usid` + ,`msid` + ,`expiryDate` + ,`status` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{pid} + ,#{name} + ,#{addrCode} + ,#{category} + ,#{ext} + ,#{type} + ,#{apiKey} + ,#{shopId} + ,#{loginUrl} + ,#{usid} + ,#{msid} + ,#{expiryDate} + ,#{status} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_guopan_store_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`pid` = #{pid} + ,`name` = #{name} + ,`addrCode` = #{addrCode} + ,`category` = #{category} + ,`ext` = #{ext} + ,`type` = #{type} + ,`apiKey` = #{apiKey} + ,`shopId` = #{shopId} + ,`loginUrl` = #{loginUrl} + ,`usid` = #{usid} + ,`msid` = #{msid} + ,`expiryDate` = #{expiryDate} + ,`status` = #{status} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_guopan_store_info + where `id` = #{id} + + + + delete from yw_app_guopan_store_info + ${condition} + + + + delete from yw_app_guopan_store_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppInfoMapper.xml new file mode 100644 index 0000000..a10e5be --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppInfoMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`name`,`appSign`,`terminalType`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into shared_app_info + + `id`,`tenantId` + ,`name` + ,`appSign` + ,`terminalType` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{appSign} + ,#{terminalType} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update shared_app_info + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from shared_app_info + where `id` = #{id} + + + + delete from shared_app_info + ${condition} + + + + delete from shared_app_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppQimaiSetStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppQimaiSetStoreMapper.xml new file mode 100644 index 0000000..a319e93 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppQimaiSetStoreMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`setId`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_qimai_set_store + + `id`,`tenantId` + ,`tenantCode` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_qimai_set_store + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_qimai_set_store + where `id` = #{id} + + + + delete from yw_app_qimai_set_store + ${condition} + + + + delete from yw_app_qimai_set_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetMapper.xml new file mode 100644 index 0000000..eb6df0e --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`appId`,`appSecret`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_shopmeituan_set + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`appId` + ,`appSecret` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{appId} + ,#{appSecret} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_shopmeituan_set + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`appId` = #{appId} + ,`appSecret` = #{appSecret} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set + ${condition} + + + + delete from yw_app_shopmeituan_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetStoreMapper.xml new file mode 100644 index 0000000..3e0adcd --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetStoreMapper.xml @@ -0,0 +1,124 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`setId`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_shopmeituan_set_store + + `id`,`tenantId` + ,`tenantCode` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_shopmeituan_set_store + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set_store + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set_store + ${condition} + + + + delete from yw_app_shopmeituan_set_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppVersionMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppVersionMapper.xml new file mode 100644 index 0000000..d8473c8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppVersionMapper.xml @@ -0,0 +1,107 @@ + + + + + + `id`,`tenantId`,`appInfoId`,`appSign`,`terminalType`,`versionType`,`versionNum`,`minVersionNum`,`checkNum`,`fileName`,`uploadFile`,`length`,`uploadLog`,`status`,`forceUpload`,`enableWhite`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppWhiteDetailMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppWhiteDetailMapper.xml new file mode 100644 index 0000000..7832a7f --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppWhiteDetailMapper.xml @@ -0,0 +1,64 @@ + + + + + + `id`,`tenantId`,`planId`,`tenantCode`,`storeNo`,`posNo`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppWhitePlanMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppWhitePlanMapper.xml new file mode 100644 index 0000000..b96624a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/AppWhitePlanMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into shared_app_white_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update shared_app_white_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from shared_app_white_plan + where `id` = #{id} + + + + delete from shared_app_white_plan + ${condition} + + + + delete from shared_app_white_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/BankCodeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/BankCodeMapper.xml new file mode 100644 index 0000000..301000c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/BankCodeMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_bank_code + + `id`,`tenantId` + ,`code` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_bank_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_bank_code + where `id` = #{id} + + + + delete from yw_bank_code + ${condition} + + + + delete from yw_bank_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CardReaderInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CardReaderInfoMapper.xml new file mode 100644 index 0000000..fc6baa2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CardReaderInfoMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`name`,`port`,`baudRate`,`cardType`,`memo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_card_reader_info + + `id`,`tenantId` + ,`name` + ,`port` + ,`baudRate` + ,`cardType` + ,`memo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{port} + ,#{baudRate} + ,#{cardType} + ,#{memo} + ,#{createDate} + ,#{createUser} + + + + + update yw_card_reader_info + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`port` = #{port} + ,`baudRate` = #{baudRate} + ,`cardType` = #{cardType} + ,`memo` = #{memo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_card_reader_info + where `id` = #{id} + + + + delete from yw_card_reader_info + ${condition} + + + + delete from yw_card_reader_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CityCodeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CityCodeMapper.xml new file mode 100644 index 0000000..e8a1a71 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CityCodeMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`code`,`parentCode`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_city_code + + `id`,`tenantId` + ,`code` + ,`parentCode` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{parentCode} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_city_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`parentCode` = #{parentCode} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_city_code + where `id` = #{id} + + + + delete from yw_city_code + ${condition} + + + + delete from yw_city_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CityMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CityMapper.xml new file mode 100644 index 0000000..5c2d703 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/CityMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`fullName`,`parentId`,`path`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_city + + `id`,`tenantId` + ,`code` + ,`name` + ,`fullName` + ,`parentId` + ,`path` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{fullName} + ,#{parentId} + ,#{path} + ,#{createUser} + ,#{createDate} + + + + + update shared_city + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`fullName` = #{fullName} + ,`parentId` = #{parentId} + ,`path` = #{path} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_city + where `id` = #{id} + + + + delete from shared_city + ${condition} + + + + delete from shared_city + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ElemeAuthorizeInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ElemeAuthorizeInfoMapper.xml new file mode 100644 index 0000000..2719385 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ElemeAuthorizeInfoMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`clientId`,`responseType`,`redirectUri`,`scope`,`state`,`code`,`grantType`,`accessToken`,`tokenType`,`tokenGetTime`,`refreshToken`,`userId`,`userName`,`expiresIn`,`shopId`,`shopName`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_eleme_authorize_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`clientId` + ,`responseType` + ,`redirectUri` + ,`scope` + ,`state` + ,`code` + ,`grantType` + ,`accessToken` + ,`tokenType` + ,`tokenGetTime` + ,`refreshToken` + ,`userId` + ,`userName` + ,`expiresIn` + ,`shopId` + ,`shopName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{clientId} + ,#{responseType} + ,#{redirectUri} + ,#{scope} + ,#{state} + ,#{code} + ,#{grantType} + ,#{accessToken} + ,#{tokenType} + ,#{tokenGetTime} + ,#{refreshToken} + ,#{userId} + ,#{userName} + ,#{expiresIn} + ,#{shopId} + ,#{shopName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_eleme_authorize_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + + ,`clientId` = #{clientId} + ,`clientId` = NULL + + + ,`responseType` = #{responseType} + ,`responseType` = NULL + + + ,`redirectUri` = #{redirectUri} + ,`redirectUri` = NULL + + + ,`scope` = #{scope} + ,`scope` = NULL + + + ,`state` = #{state} + ,`state` = NULL + + + ,`code` = #{code} + ,`code` = NULL + + + ,`grantType` = #{grantType} + ,`grantType` = NULL + + + ,`accessToken` = #{accessToken} + ,`accessToken` = NULL + + + ,`tokenType` = #{tokenType} + ,`tokenType` = NULL + + + ,`tokenGetTime` = #{tokenGetTime} + ,`tokenGetTime` = NULL + + + ,`refreshToken` = #{refreshToken} + ,`refreshToken` = NULL + + + ,`userId` = #{userId} + ,`userId` = NULL + + + ,`userName` = #{userName} + ,`userName` = NULL + + + ,`expiresIn` = #{expiresIn} + ,`expiresIn` = NULL + + + ,`shopId` = #{shopId} + ,`shopId` = NULL + + + ,`shopName` = #{shopName} + ,`shopName` = NULL + + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_eleme_authorize_info + where `id` = #{id} + + + + delete from yw_app_eleme_authorize_info + ${condition} + + + + delete from yw_app_eleme_authorize_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ErrorInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ErrorInfoMapper.xml new file mode 100644 index 0000000..8db374b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ErrorInfoMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`terminalType`,`versionType`,`versionNum`,`osName`,`storeNo`,`posNo`,`info`,`errorLog`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_error_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`terminalType` + ,`versionType` + ,`versionNum` + ,`osName` + ,`storeNo` + ,`posNo` + ,`info` + ,`errorLog` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{terminalType} + ,#{versionType} + ,#{versionNum} + ,#{osName} + ,#{storeNo} + ,#{posNo} + ,#{info} + ,#{errorLog} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update yw_error_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`versionType` = #{versionType} + ,`versionNum` = #{versionNum} + ,`osName` = #{osName} + ,`storeNo` = #{storeNo} + ,`posNo` = #{posNo} + ,`info` = #{info} + ,`errorLog` = #{errorLog} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_error_info + where `id` = #{id} + + + + delete from yw_error_info + ${condition} + + + + delete from yw_error_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/MeituanBranchMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/MeituanBranchMapper.xml new file mode 100644 index 0000000..1cb10e2 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/MeituanBranchMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`businessId`,`appAuthToken`,`status`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_meituan_branch + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`businessId` + ,`appAuthToken` + ,`status` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{businessId} + ,#{appAuthToken} + ,#{status} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_meituan_branch + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`businessId` = #{businessId} + ,`appAuthToken` = #{appAuthToken} + ,`status` = #{status} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_meituan_branch + where `id` = #{id} + + + + delete from yw_app_meituan_branch + ${condition} + + + + delete from yw_app_meituan_branch + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PosModuleMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PosModuleMapper.xml new file mode 100644 index 0000000..9d8fa60 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PosModuleMapper.xml @@ -0,0 +1,24 @@ + + + + + + `id`,`tenantId`,`typeId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PosModuleTypeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PosModuleTypeMapper.xml new file mode 100644 index 0000000..0035d9a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PosModuleTypeMapper.xml @@ -0,0 +1,24 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PrinterInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PrinterInfoMapper.xml new file mode 100644 index 0000000..9e927ea --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/PrinterInfoMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`tenantId`,`name`,`type`,`port`,`pageWidth`,`baudRate`,`dataNum`,`checkNum`,`stopNum`,`pid`,`vid`,`initCode`,`zbkCode`,`cutCode`,`ptztCode`,`ztbgCode`,`bkbgCode`,`moneyCode`,`driver`,`memo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_printer_info + + `id`,`tenantId` + ,`name` + ,`type` + ,`port` + ,`pageWidth` + ,`baudRate` + ,`dataNum` + ,`checkNum` + ,`stopNum` + ,`pid` + ,`vid` + ,`initCode` + ,`zbkCode` + ,`cutCode` + ,`ptztCode` + ,`ztbgCode` + ,`bkbgCode` + ,`moneyCode` + ,`driver` + ,`memo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{type} + ,#{port} + ,#{pageWidth} + ,#{baudRate} + ,#{dataNum} + ,#{checkNum} + ,#{stopNum} + ,#{pid} + ,#{vid} + ,#{initCode} + ,#{zbkCode} + ,#{cutCode} + ,#{ptztCode} + ,#{ztbgCode} + ,#{bkbgCode} + ,#{moneyCode} + ,#{driver} + ,#{memo} + ,#{createDate} + ,#{createUser} + + + + + update yw_printer_info + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`type` = #{type} + ,`port` = #{port} + ,`pageWidth` = #{pageWidth} + ,`baudRate` = #{baudRate} + ,`dataNum` = #{dataNum} + ,`checkNum` = #{checkNum} + ,`stopNum` = #{stopNum} + ,`pid` = #{pid} + ,`vid` = #{vid} + ,`initCode` = #{initCode} + ,`zbkCode` = #{zbkCode} + ,`cutCode` = #{cutCode} + ,`ptztCode` = #{ptztCode} + ,`ztbgCode` = #{ztbgCode} + ,`bkbgCode` = #{bkbgCode} + ,`moneyCode` = #{moneyCode} + ,`driver` = #{driver} + ,`memo` = #{memo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_printer_info + where `id` = #{id} + + + + delete from yw_printer_info + ${condition} + + + + delete from yw_printer_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ProductPermissionsMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ProductPermissionsMapper.xml new file mode 100644 index 0000000..2b4e7b5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ProductPermissionsMapper.xml @@ -0,0 +1,18 @@ + + + + + + `id`,`tenantId`,`productId`,`moduleId`,`permissions`,`functionIds`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/QimaiSetMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/QimaiSetMapper.xml new file mode 100644 index 0000000..4ebccc5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/QimaiSetMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`status`,`openId`,`grantCode`,`openKey`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_qimai_set + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`status` + ,`openId` + ,`grantCode` + ,`openKey` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{status} + ,#{openId} + ,#{grantCode} + ,#{openKey} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_qimai_set + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`status` = #{status} + ,`openId` = #{openId} + ,`grantCode` = #{grantCode} + ,`openKey` = #{openKey} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_qimai_set + where `id` = #{id} + + + + delete from yw_app_qimai_set + ${condition} + + + + delete from yw_app_qimai_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/SetCodeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/SetCodeMapper.xml new file mode 100644 index 0000000..1126be8 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/SetCodeMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`type`,`code`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_set_code + + `id`,`tenantId` + ,`type` + ,`code` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{type} + ,#{code} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_set_code + + `tenantId` = #{tenantId} + ,`type` = #{type} + ,`code` = #{code} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_set_code + where `id` = #{id} + + + + delete from yw_set_code + ${condition} + + + + delete from yw_set_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantLineProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantLineProductMapper.xml new file mode 100644 index 0000000..0db5972 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantLineProductMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`code`,`productId`,`productSign`,`productCode`,`productName`,`costMode`,`dueDate`,`memo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_tenant_line_product + + `id`,`tenantId` + ,`code` + ,`productId` + ,`productSign` + ,`productCode` + ,`productName` + ,`costMode` + ,`dueDate` + ,`memo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{productId} + ,#{productSign} + ,#{productCode} + ,#{productName} + ,#{costMode} + ,#{dueDate} + ,#{memo} + ,#{createUser} + ,#{createDate} + + + + + update yw_tenant_line_product + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`productId` = #{productId} + ,`productSign` = #{productSign} + ,`productCode` = #{productCode} + ,`productName` = #{productName} + ,`costMode` = #{costMode} + ,`dueDate` = #{dueDate} + ,`memo` = #{memo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_tenant_line_product + where `id` = #{id} + + + + delete from yw_tenant_line_product + ${condition} + + + + delete from yw_tenant_line_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantPosInfoMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantPosInfoMapper.xml new file mode 100644 index 0000000..d01aaf4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantPosInfoMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`terminalType`,`storeId`,`storeNo`,`posNo`,`name`,`MACAddress`,`serialNumber`,`cpuNumber`,`status`,`description`,`deleteFlag`,`os`,`osType`,`softwareVersion`,`memoryTotalSize`,`memoryFreeSize`,`diskName`,`diskTotalSize`,`diskFreeSize`,`cpuSize`,`extend`,`monitorDate`,`lastActiveDate`,`storeName`,`aliasName`,`isTester`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_tenant_pos_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`terminalType` + ,`storeId` + ,`storeNo` + ,`posNo` + ,`name` + ,`MACAddress` + ,`serialNumber` + ,`cpuNumber` + ,`status` + ,`description` + ,`deleteFlag` + ,`os` + ,`osType` + ,`softwareVersion` + ,`memoryTotalSize` + ,`memoryFreeSize` + ,`diskName` + ,`diskTotalSize` + ,`diskFreeSize` + ,`cpuSize` + ,`extend` + ,`monitorDate` + ,`lastActiveDate` + ,`storeName` + ,`aliasName` + ,`isTester` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{terminalType} + ,#{storeId} + ,#{storeNo} + ,#{posNo} + ,#{name} + ,#{MACAddress} + ,#{serialNumber} + ,#{cpuNumber} + ,#{status} + ,#{description} + ,#{deleteFlag} + ,#{os} + ,#{osType} + ,#{softwareVersion} + ,#{memoryTotalSize} + ,#{memoryFreeSize} + ,#{diskName} + ,#{diskTotalSize} + ,#{diskFreeSize} + ,#{cpuSize} + ,#{extend} + ,#{monitorDate} + ,#{lastActiveDate} + ,#{storeName} + ,#{aliasName} + ,#{isTester} + ,#{createDate} + ,#{createUser} + + + + + update yw_tenant_pos_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`posNo` = #{posNo} + ,`name` = #{name} + ,`MACAddress` = #{MACAddress} + ,`serialNumber` = #{serialNumber} + ,`cpuNumber` = #{cpuNumber} + ,`status` = #{status} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`os` = #{os} + ,`osType` = #{osType} + ,`softwareVersion` = #{softwareVersion} + ,`memoryTotalSize` = #{memoryTotalSize} + ,`memoryFreeSize` = #{memoryFreeSize} + ,`diskName` = #{diskName} + ,`diskTotalSize` = #{diskTotalSize} + ,`diskFreeSize` = #{diskFreeSize} + ,`cpuSize` = #{cpuSize} + ,`extend` = #{extend} + ,`monitorDate` = #{monitorDate} + ,`lastActiveDate` = #{lastActiveDate} + ,`storeName` = #{storeName} + ,`aliasName` = #{aliasName} + ,`isTester` = #{isTester} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_tenant_pos_info + where `id` = #{id} + + + + delete from yw_tenant_pos_info + ${condition} + + + + delete from yw_tenant_pos_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update yw_tenant_pos_info + + `os` = #{os} + ,`osType` = #{osType} + ,`softwareVersion` = #{softwareVersion} + ,`memoryTotalSize` = #{memoryTotalSize} + ,`memoryFreeSize` = #{memoryFreeSize} + ,`diskName` = #{diskName} + ,`diskTotalSize` = #{diskTotalSize} + ,`diskFreeSize` = #{diskFreeSize} + ,`cpuSize` = #{cpuSize} + ,`extend` = #{extend} + ,`monitorDate` = #{monitorDate} + ,`lastActiveDate` = #{lastActiveDate} + ,`storeName` = #{storeName} + ,`aliasName` = #{aliasName} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `storeId` = #{storeId} and `posNo` = #{posNo} + + + + update yw_tenant_pos_info + + `lastActiveDate` = #{lastActiveDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `storeId` = #{storeId} and `posNo` = #{posNo} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantPosLoginLogMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantPosLoginLogMapper.xml new file mode 100644 index 0000000..910f5f4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantPosLoginLogMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`terminalType`,`storeId`,`storeNo`,`storeName`,`posNo`,`loginTime`,`logoutTime`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_pos_login_log + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`terminalType` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`posNo` + ,`loginTime` + ,`logoutTime` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{terminalType} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{posNo} + ,#{loginTime} + ,#{logoutTime} + ,#{createUser} + ,#{createDate} + + + + + update yw_pos_login_log + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`posNo` = #{posNo} + ,`loginTime` = #{loginTime} + ,`logoutTime` = #{logoutTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_pos_login_log + where `id` = #{id} + + + + delete from yw_pos_login_log + ${condition} + + + + delete from yw_pos_login_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantProductMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantProductMapper.xml new file mode 100644 index 0000000..7bfe3ee --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantProductMapper.xml @@ -0,0 +1,27 @@ + + + + + + `id`,`tenantId`,`code`,`productId`,`chargeId`,`subDate`,`testEndDate`,`chargingDate`,`payType`,`balance`,`validDate`,`status`,`initFlag`,`dataSourceId`,`memo`,`cancelDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantStoreAuthMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantStoreAuthMapper.xml new file mode 100644 index 0000000..db68240 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/TenantStoreAuthMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`appSign`,`tenantCode`,`agentId`,`agentName`,`storeId`,`storeNo`,`storeName`,`costMode`,`dueDate`,`lastDate`,`description`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_tenant_store_auth + + `id`,`tenantId` + ,`appSign` + ,`tenantCode` + ,`agentId` + ,`agentName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`costMode` + ,`dueDate` + ,`lastDate` + ,`description` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{appSign} + ,#{tenantCode} + ,#{agentId} + ,#{agentName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{costMode} + ,#{dueDate} + ,#{lastDate} + ,#{description} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update yw_tenant_store_auth + + `tenantId` = #{tenantId} + ,`appSign` = #{appSign} + ,`tenantCode` = #{tenantCode} + ,`agentId` = #{agentId} + ,`agentName` = #{agentName} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`costMode` = #{costMode} + ,`dueDate` = #{dueDate} + ,`lastDate` = #{lastDate} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_tenant_store_auth + where `id` = #{id} + + + + delete from yw_tenant_store_auth + ${condition} + + + + delete from yw_tenant_store_auth + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update yw_tenant_store_auth + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradePosMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradePosMapper.xml new file mode 100644 index 0000000..a343872 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradePosMapper.xml @@ -0,0 +1,101 @@ + + + + + + `id`,`tenantId`,`schemeId`,`appSign`,`tenantCode`,`oldTenantCode`,`storeNo`,`storeName`,`oldStoreNo`,`oldStoreName`,`posNo`,`oldPosNo`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_upgrade_pos + + `id`,`tenantId` + ,`schemeId` + ,`appSign` + ,`tenantCode` + ,`oldTenantCode` + ,`storeNo` + ,`storeName` + ,`oldStoreNo` + ,`oldStoreName` + ,`posNo` + ,`oldPosNo` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{schemeId} + ,#{appSign} + ,#{tenantCode} + ,#{oldTenantCode} + ,#{storeNo} + ,#{storeName} + ,#{oldStoreNo} + ,#{oldStoreName} + ,#{posNo} + ,#{oldPosNo} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradeSchemeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradeSchemeMapper.xml new file mode 100644 index 0000000..9f0711a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradeSchemeMapper.xml @@ -0,0 +1,59 @@ + + + + + + `id`,`tenantId`,`appSign`,`tenantCode`,`tenantName`,`oldTenantCode`,`oldTenantName`,`description`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradeStoreMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradeStoreMapper.xml new file mode 100644 index 0000000..0fd6530 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/UpgradeStoreMapper.xml @@ -0,0 +1,59 @@ + + + + + + `id`,`tenantId`,`schemeId`,`appSign`,`storeNo`,`storeName`,`oldStoreNo`,`oldStoreName`,`description`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/WxBusinessCodeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/WxBusinessCodeMapper.xml new file mode 100644 index 0000000..6f03aca --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/WxBusinessCodeMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`code`,`firstType`,`secondType`,`thirdType`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_wx_business_code + + `id`,`tenantId` + ,`code` + ,`firstType` + ,`secondType` + ,`thirdType` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{firstType} + ,#{secondType} + ,#{thirdType} + ,#{createUser} + ,#{createDate} + + + + + update yw_wx_business_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`firstType` = #{firstType} + ,`secondType` = #{secondType} + ,`thirdType` = #{thirdType} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_wx_business_code + where `id` = #{id} + + + + delete from yw_wx_business_code + ${condition} + + + + delete from yw_wx_business_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ZfbBusinessCodeMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ZfbBusinessCodeMapper.xml new file mode 100644 index 0000000..ae13f62 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/ops/ZfbBusinessCodeMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_zfb_business_code + + `id`,`tenantId` + ,`code` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_zfb_business_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_zfb_business_code + where `id` = #{id} + + + + delete from yw_zfb_business_code + ${condition} + + + + delete from yw_zfb_business_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/AppAuthMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/AppAuthMapper.xml new file mode 100644 index 0000000..e5e307a --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/AppAuthMapper.xml @@ -0,0 +1,17 @@ + + + + + + `id`,`appSign`,`tenantCode`,`appCode`,`appId`,`appKey`,`appSecret`,`simpleCode`,`status`,`callLimits`,`callCounter`,`firstCallTime`,`lastCallTime`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/DynamicMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/DynamicMapper.xml new file mode 100644 index 0000000..89a3c71 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/DynamicMapper.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/FunctionMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/FunctionMapper.xml new file mode 100644 index 0000000..e9061ac --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/FunctionMapper.xml @@ -0,0 +1,17 @@ + + + + + + `id`,`tenantId`,`name`,`sign`,`icon`,`style`,`orderNo`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/ModuleMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/ModuleMapper.xml new file mode 100644 index 0000000..f952498 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/ModuleMapper.xml @@ -0,0 +1,28 @@ + + + + + + `id`,`tenantId`,`parentId`,`resourcesId`,`name`,`icon`,`orderNo`,`sign`,`functionIds`,`description`,`moduleType`,`isDefault`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/ResourcesMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/ResourcesMapper.xml new file mode 100644 index 0000000..d41e2eb --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/ResourcesMapper.xml @@ -0,0 +1,17 @@ + + + + + + `id`,`tenantId`,`typeId`,`name`,`url`,`orderNo`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/TenantMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/TenantMapper.xml new file mode 100644 index 0000000..5a751d0 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/shared/TenantMapper.xml @@ -0,0 +1,71 @@ + + + + + + `id`,`tenantId`,`agentId`,`code`,`name`,`shortName`,`areaId`,`areaPath`,`address`,`linker`,`telphone`,`mobile`,`email`,`fax`,`status`,`deleteFlag`,`storeAuthFlag`,`saobeiFlag`,`description`,`encryMode`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinAccountMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinAccountMapper.xml new file mode 100644 index 0000000..b3b7bbf --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinAccountMapper.xml @@ -0,0 +1,218 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`hashids`,`logoUrl`,`name`,`accountType`,`isVerify`,`isOauth`,`appId`,`appSecret`,`token`,`url`,`payType`,`encryptType`,`aesKey`,`cards`,`pays`,`apis`,`templateMsg`,`additionalParams`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser`,`applicationIdentity` + + + + + + + + + + + insert into wx_wxdc_account + + `id`,`tenantId` + ,`tenantCode` + ,`hashids` + ,`logoUrl` + ,`name` + ,`accountType` + ,`isVerify` + ,`isOauth` + ,`appId` + ,`appSecret` + ,`token` + ,`url` + ,`payType` + ,`encryptType` + ,`aesKey` + ,`cards` + ,`pays` + ,`apis` + ,`templateMsg` + ,`additionalParams` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + ,`applicationIdentity` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{hashids} + ,#{logoUrl} + ,#{name} + ,#{accountType} + ,#{isVerify} + ,#{isOauth} + ,#{appId} + ,#{appSecret} + ,#{token} + ,#{url} + ,#{payType} + ,#{encryptType} + ,#{aesKey} + ,#{cards} + ,#{pays} + ,#{apis} + ,#{templateMsg} + ,#{additionalParams} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + ,#{applicationIdentity} + + + + + + insert into wx_weixin_account + + `id`,`tenantId` + ,`tenantCode` + ,`hashids` + ,`logoUrl` + ,`name` + ,`accountType` + ,`isVerify` + ,`isOauth` + ,`appId` + ,`appSecret` + ,`token` + ,`url` + ,`payType` + ,`encryptType` + ,`aesKey` + ,`cards` + ,`pays` + ,`apis` + ,`templateMsg` + ,`additionalParams` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{hashids} + ,#{logoUrl} + ,#{name} + ,#{accountType} + ,#{isVerify} + ,#{isOauth} + ,#{appId} + ,#{appSecret} + ,#{token} + ,#{url} + ,#{payType} + ,#{encryptType} + ,#{aesKey} + ,#{cards} + ,#{pays} + ,#{apis} + ,#{templateMsg} + ,#{additionalParams} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + + update wx_wxdc_account + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`hashids` = #{hashids} + ,`logoUrl` = #{logoUrl} + ,`name` = #{name} + ,`accountType` = #{accountType} + ,`isVerify` = #{isVerify} + ,`isOauth` = #{isOauth} + ,`appId` = #{appId} + ,`appSecret` = #{appSecret} + ,`token` = #{token} + ,`url` = #{url} + ,`payType` = #{payType} + ,`encryptType` = #{encryptType} + ,`aesKey` = #{aesKey} + ,`cards` = #{cards} + ,`pays` = #{pays} + ,`apis` = #{apis} + ,`templateMsg` = #{templateMsg} + ,`additionalParams` = #{additionalParams} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + ,`applicationIdentity` = #{applicationIdentity} + + where `id` = #{id} + + + + update wx_weixin_account + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`hashids` = #{hashids} + ,`logoUrl` = #{logoUrl} + ,`name` = #{name} + ,`accountType` = #{accountType} + ,`isVerify` = #{isVerify} + ,`isOauth` = #{isOauth} + ,`appId` = #{appId} + ,`appSecret` = #{appSecret} + ,`token` = #{token} + ,`url` = #{url} + ,`payType` = #{payType} + ,`encryptType` = #{encryptType} + ,`aesKey` = #{aesKey} + ,`cards` = #{cards} + ,`pays` = #{pays} + ,`apis` = #{apis} + ,`templateMsg` = #{templateMsg} + ,`additionalParams` = #{additionalParams} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from wx_wxdc_account + where `id` = #{id} + + + diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinOrderPayMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinOrderPayMapper.xml new file mode 100644 index 0000000..857f54c --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinOrderPayMapper.xml @@ -0,0 +1,300 @@ + + + + + + `id`,`tenantId`,`wid`,`userId`,`memberId`,`storeId`,`storeNo`,`storeName`,`posNo`,`workerNo`,`openId`,`orderId`,`orderNo`,`outTradeNo`,`busNo`,`payNo`,`payway`,`busMode`,`amount`,`discountAmount`,`memberMoney`,`receiveAmount`,`num`,`details`,`orderTime`,`saleDate`,`tableId`,`tableNo`,`tableName`,`disName`,`disMobile`,`disAddress`,`disTime`,`bookName`,`bookSex`,`bookMobile`,`bookDate`,`bookTime`,`bookNum`,`mode`,`status`,`result`,`description`,`boxFee`,`receiveName`,`receiveMobile`,`receiveAddress`,`distributionFee`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_order_pay + + `id`,`tenantId` + ,`wid` + ,`userId` + ,`memberId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`posNo` + ,`workerNo` + ,`openId` + ,`orderId` + ,`orderNo` + ,`outTradeNo` + ,`busNo` + ,`payNo` + ,`payway` + ,`busMode` + ,`amount` + ,`discountAmount` + ,`memberMoney` + ,`receiveAmount` + ,`num` + ,`details` + ,`orderTime` + ,`saleDate` + ,`tableId` + ,`tableNo` + ,`tableName` + ,`disName` + ,`disMobile` + ,`disAddress` + ,`disTime` + ,`bookName` + ,`bookSex` + ,`bookMobile` + ,`bookDate` + ,`bookTime` + ,`bookNum` + ,`mode` + ,`status` + ,`result` + ,`description` + ,`boxFee` + ,`receiveName` + ,`receiveMobile` + ,`receiveAddress` + ,`distributionFee` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{userId} + ,#{memberId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{posNo} + ,#{workerNo} + ,#{openId} + ,#{orderId} + ,#{orderNo} + ,#{outTradeNo} + ,#{busNo} + ,#{payNo} + ,#{payway} + ,#{busMode} + ,#{amount} + ,#{discountAmount} + ,#{memberMoney} + ,#{receiveAmount} + ,#{num} + ,#{details} + ,#{orderTime} + ,#{saleDate} + ,#{tableId} + ,#{tableNo} + ,#{tableName} + ,#{disName} + ,#{disMobile} + ,#{disAddress} + ,#{disTime} + ,#{bookName} + ,#{bookSex} + ,#{bookMobile} + ,#{bookDate} + ,#{bookTime} + ,#{bookNum} + ,#{mode} + ,#{status} + ,#{result} + ,#{description} + ,#{boxFee} + ,#{receiveName} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{distributionFee} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_order_pay + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`userId` = #{userId} + ,`memberId` = #{memberId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`posNo` = #{posNo} + ,`workerNo` = #{workerNo} + ,`openId` = #{openId} + ,`orderNo` = #{orderNo} + ,`orderId` = #{orderId} + ,`outTradeNo` = #{outTradeNo} + ,`busNo` = #{busNo} + ,`payNo` = #{payNo} + ,`payway` = #{payway} + ,`busMode` = #{busMode} + ,`amount` = #{amount} + ,`discountAmount` = #{discountAmount} + ,`memberMoney` = #{memberMoney} + ,`receiveAmount` = #{receiveAmount} + ,`num` = #{num} + ,`details` = #{details} + ,`orderTime` = #{orderTime} + ,`saleDate` = #{saleDate} + ,`tableId` = #{tableId} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`disName` = #{disName} + ,`disMobile` = #{disMobile} + ,`disAddress` = #{disAddress} + ,`disTime` = #{disTime} + ,`bookName` = #{bookName} + ,`bookSex` = #{bookSex} + ,`bookMobile` = #{bookMobile} + ,`bookDate` = #{bookDate} + ,`bookTime` = #{bookTime} + ,`bookNum` = #{bookNum} + ,`mode` = #{mode} + ,`status` = #{status} + ,`result` = #{result} + ,`description` = #{description} + ,`boxFee` = #{boxFee} + ,`receiveName` = #{receiveName} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`distributionFee` = #{distributionFee} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from wx_wxdc_order_pay + where `id` = #{id} + + + + delete from wx_wxdc_order_pay + ${condition} + + + + delete from wx_wxdc_order_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayResultMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayResultMapper.xml new file mode 100644 index 0000000..8d3daa5 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayResultMapper.xml @@ -0,0 +1,243 @@ + + + + + + `id`,`tenantId`,`wid`,`returnCode`,`returnMsg`,`appId`,`mchId`,`subAppId`,`subMchId`,`deviceInfo`,`nonceStr`,`sign`,`resultCode`,`errCode`,`errCodeDes`,`openId`,`subOpenId`,`isSubscribe`,`tradeType`,`bankType`,`totalFee`,`feeType`,`cashFee`,`cashFeeType`,`couponFee`,`couponCount`,`transactionId`,`outTradeNo`,`attach`,`timeEnd`,`status`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_pay_result + + `id`,`tenantId` + ,`wid` + ,`returnCode` + ,`returnMsg` + ,`appId` + ,`mchId` + ,`subAppId` + ,`subMchId` + ,`deviceInfo` + ,`nonceStr` + ,`sign` + ,`resultCode` + ,`errCode` + ,`errCodeDes` + ,`openId` + ,`subOpenId` + ,`isSubscribe` + ,`tradeType` + ,`bankType` + ,`totalFee` + ,`feeType` + ,`cashFee` + ,`cashFeeType` + ,`couponFee` + ,`couponCount` + ,`transactionId` + ,`outTradeNo` + ,`attach` + ,`timeEnd` + ,`status` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{returnCode} + ,#{returnMsg} + ,#{appId} + ,#{mchId} + ,#{subAppId} + ,#{subMchId} + ,#{deviceInfo} + ,#{nonceStr} + ,#{sign} + ,#{resultCode} + ,#{errCode} + ,#{errCodeDes} + ,#{openId} + ,#{subOpenId} + ,#{isSubscribe} + ,#{tradeType} + ,#{bankType} + ,#{totalFee} + ,#{feeType} + ,#{cashFee} + ,#{cashFeeType} + ,#{couponFee} + ,#{couponCount} + ,#{transactionId} + ,#{outTradeNo} + ,#{attach} + ,#{timeEnd} + ,#{status} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_pay_result + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`returnCode` = #{returnCode} + ,`returnMsg` = #{returnMsg} + ,`appId` = #{appId} + ,`mchId` = #{mchId} + ,`subAppId` = #{subAppId} + ,`subMchId` = #{subMchId} + ,`deviceInfo` = #{deviceInfo} + ,`nonceStr` = #{nonceStr} + ,`sign` = #{sign} + ,`resultCode` = #{resultCode} + ,`errCode` = #{errCode} + ,`errCodeDes` = #{errCodeDes} + ,`openId` = #{openId} + ,`subOpenId` = #{subOpenId} + ,`isSubscribe` = #{isSubscribe} + ,`tradeType` = #{tradeType} + ,`bankType` = #{bankType} + ,`totalFee` = #{totalFee} + ,`feeType` = #{feeType} + ,`cashFee` = #{cashFee} + ,`cashFeeType` = #{cashFeeType} + ,`couponFee` = #{couponFee} + ,`couponCount` = #{couponCount} + ,`transactionId` = #{transactionId} + ,`outTradeNo` = #{outTradeNo} + ,`attach` = #{attach} + ,`timeEnd` = #{timeEnd} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from wx_wxdc_pay_result + where `id` = #{id} + + + + delete from wx_wxdc_pay_result + ${condition} + + + + delete from wx_wxdc_pay_result + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayUnifiedOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayUnifiedOrderMapper.xml new file mode 100644 index 0000000..165512b --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayUnifiedOrderMapper.xml @@ -0,0 +1,249 @@ + + + + + + `id`,`tenantId`,`wid`,`appId`,`mchId`,`subAppId`,`subMchId`,`deviceInfo`,`body`,`detail`,`attach`,`outTradeNo`,`feeType`,`totalFee`,`creaeIp`,`timeStart`,`timeExpire`,`goodsTag`,`notifyUrl`,`tradeType`,`productId`,`limitPay`,`openId`,`subOpenId`,`returnCode`,`returnMsg`,`resultCode`,`errCode`,`errCodeDes`,`prepayId`,`codeUrl`,`status`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_pay_unified_order + + `id`,`tenantId` + ,`wid` + ,`appId` + ,`mchId` + ,`subAppId` + ,`subMchId` + ,`deviceInfo` + ,`body` + ,`detail` + ,`attach` + ,`outTradeNo` + ,`feeType` + ,`totalFee` + ,`creaeIp` + ,`timeStart` + ,`timeExpire` + ,`goodsTag` + ,`notifyUrl` + ,`tradeType` + ,`productId` + ,`limitPay` + ,`openId` + ,`subOpenId` + ,`returnCode` + ,`returnMsg` + ,`resultCode` + ,`errCode` + ,`errCodeDes` + ,`prepayId` + ,`codeUrl` + ,`status` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{appId} + ,#{mchId} + ,#{subAppId} + ,#{subMchId} + ,#{deviceInfo} + ,#{body} + ,#{detail} + ,#{attach} + ,#{outTradeNo} + ,#{feeType} + ,#{totalFee} + ,#{creaeIp} + ,#{timeStart} + ,#{timeExpire} + ,#{goodsTag} + ,#{notifyUrl} + ,#{tradeType} + ,#{productId} + ,#{limitPay} + ,#{openId} + ,#{subOpenId} + ,#{returnCode} + ,#{returnMsg} + ,#{resultCode} + ,#{errCode} + ,#{errCodeDes} + ,#{prepayId} + ,#{codeUrl} + ,#{status} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_pay_unified_order + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`appId` = #{appId} + ,`mchId` = #{mchId} + ,`subAppId` = #{subAppId} + ,`subMchId` = #{subMchId} + ,`deviceInfo` = #{deviceInfo} + ,`body` = #{body} + ,`detail` = #{detail} + ,`attach` = #{attach} + ,`outTradeNo` = #{outTradeNo} + ,`feeType` = #{feeType} + ,`totalFee` = #{totalFee} + ,`creaeIp` = #{creaeIp} + ,`timeStart` = #{timeStart} + ,`timeExpire` = #{timeExpire} + ,`goodsTag` = #{goodsTag} + ,`notifyUrl` = #{notifyUrl} + ,`tradeType` = #{tradeType} + ,`productId` = #{productId} + ,`limitPay` = #{limitPay} + ,`openId` = #{openId} + ,`subOpenId` = #{subOpenId} + ,`returnCode` = #{returnCode} + ,`returnMsg` = #{returnMsg} + ,`resultCode` = #{resultCode} + ,`errCode` = #{errCode} + ,`errCodeDes` = #{errCodeDes} + ,`prepayId` = #{prepayId} + ,`codeUrl` = #{codeUrl} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + + delete from wx_wxdc_pay_unified_order + where `id` = + #{id} + + + + delete from wx_wxdc_pay_unified_order + ${condition} + + + + delete from wx_wxdc_pay_unified_order + where + `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinRechargeOrderMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinRechargeOrderMapper.xml new file mode 100644 index 0000000..526ddc7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinRechargeOrderMapper.xml @@ -0,0 +1,233 @@ + + + + + + `id`, `tenantId`,`wid`,`userId`,`storeId`,`storeNo`,`storeName`,`posNo`,`workerNo`,`tradeNo`,`payVoucherNo`,`memberId`,`cardNo`,`mobile`,`schemeId`,`schemeNo`,`detailId`,`amount`,`giftAmount`,`giftPoint`,`preAmount`,`aftAmount`,`prePoint`,`aftPoint`,`giftDetail`,`batchNo`,`serialNo`,`tradeTime`,`status`,`result`,`description` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_recharge_order + + `id`,`tenantId` + ,`wid` + ,`userId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`posNo` + ,`workerNo` + ,`tradeNo` + ,`payVoucherNo` + ,`memberId` + ,`cardNo` + ,`mobile` + ,`schemeId` + ,`schemeNo` + ,`detailId` + ,`amount` + ,`giftAmount` + ,`giftPoint` + ,`preAmount` + ,`aftAmount` + ,`prePoint` + ,`aftPoint` + ,`giftDetail` + ,`batchNo` + ,`serialNo` + ,`tradeTime` + ,`status` + ,`result` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{userId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{posNo} + ,#{workerNo} + ,#{tradeNo} + ,#{payVoucherNo} + ,#{memberId} + ,#{cardNo} + ,#{mobile} + ,#{schemeId} + ,#{schemeNo} + ,#{detailId} + ,#{amount} + ,#{giftAmount} + ,#{giftPoint} + ,#{preAmount} + ,#{aftAmount} + ,#{prePoint} + ,#{aftPoint} + ,#{giftDetail} + ,#{batchNo} + ,#{serialNo} + ,#{tradeTime} + ,#{status} + ,#{result} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_recharge_order + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`userId` = #{userId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`posNo` = #{posNo} + ,`workerNo` = #{workerNo} + ,`tradeNo` = #{tradeNo} + ,`payVoucherNo` = #{payVoucherNo} + ,`memberId` = #{memberId} + ,`cardNo` = #{cardNo} + ,`mobile` = #{mobile} + ,`schemeId` = #{schemeId} + ,`schemeNo` = #{schemeNo} + ,`detailId` = #{detailId} + ,`amount` = #{amount} + ,`giftAmount` = #{giftAmount} + ,`giftPoint` = #{giftPoint} + ,`preAmount` = #{preAmount} + ,`aftAmount` = #{aftAmount} + ,`prePoint` = #{prePoint} + ,`aftPoint` = #{aftPoint} + ,`giftDetail` = #{giftDetail} + ,`batchNo` = #{batchNo} + ,`serialNo` = #{serialNo} + ,`tradeTime` = #{tradeTime} + ,`status` = #{status} + ,`result` = #{result} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from wx_wxdc_recharge_order + where `id` = #{id} + + + + delete from wx_wxdc_recharge_order + ${condition} + + + + delete from wx_wxdc_recharge_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinUserMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinUserMapper.xml new file mode 100644 index 0000000..087eea3 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WeixinUserMapper.xml @@ -0,0 +1,124 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`wid`,`openid`,`unionid`,`loginFlag`,`lastLoginTime`,`nickname`,`mobile`,`vipMobile`,`sex`,`province`,`city`,`country`,`language`,`latitude`,`longitude`,`wprecision`,`headimgurl`,`isSubscribe`,`subscribeTime`,`groupid`,`remark`,`status`,`description`,`extendInfo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + insert into wx_wxdc_user + + `id`,`tenantId` + ,`tenantCode` + ,`wid` + ,`openid` + ,`unionid` + ,`loginFlag` + ,`lastLoginTime` + ,`nickname` + ,`mobile` + ,`vipMobile` + ,`sex` + ,`province` + ,`city` + ,`country` + ,`language` + ,`latitude` + ,`longitude` + ,`wprecision` + ,`headimgurl` + ,`isSubscribe` + ,`subscribeTime` + ,`groupid` + ,`remark` + ,`status` + ,`description` + ,`extendInfo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{wid} + ,#{openid} + ,#{unionid} + ,#{loginFlag} + ,#{lastLoginTime} + ,#{nickname} + ,#{mobile} + ,#{vipMobile} + ,#{sex} + ,#{province} + ,#{city} + ,#{country} + ,#{language} + ,#{latitude} + ,#{longitude} + ,#{wprecision} + ,#{headimgurl} + ,#{isSubscribe} + ,#{subscribeTime} + ,#{groupid} + ,#{remark} + ,#{status} + ,#{description} + ,#{extendInfo} + ,#{createDate} + ,#{createUser} + + + + + update wx_wxdc_user + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`wid` = #{wid} + ,`openid` = #{openid} + ,`unionid` = #{unionid} + ,`loginFlag` = #{loginFlag} + ,`lastLoginTime` = #{lastLoginTime} + ,`nickname` = #{nickname} + ,`mobile` = #{mobile} + ,`vipMobile` = #{vipMobile} + ,`sex` = #{sex} + ,`province` = #{province} + ,`city` = #{city} + ,`country` = #{country} + ,`language` = #{language} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`wprecision` = #{wprecision} + ,`headimgurl` = #{headimgurl} + ,`isSubscribe` = #{isSubscribe} + ,`subscribeTime` = #{subscribeTime} + ,`groupid` = #{groupid} + ,`remark` = #{remark} + ,`status` = #{status} + ,`description` = #{description} + ,`extendInfo` = #{extendInfo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionAddressMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionAddressMapper.xml new file mode 100644 index 0000000..1675a39 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionAddressMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`wid`,`openId`,`name`,`sex`,`mobile`,`receiveMobile`,`receiveAddress`,`isDefault`,`addressLabel`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into mc_wxdc_distribution_address + + `id`,`tenantId` + ,`wid` + ,`openId` + ,`name` + ,`sex` + ,`mobile` + ,`receiveMobile` + ,`receiveAddress` + ,`isDefault` + ,`addressLabel` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{openId} + ,#{name} + ,#{sex} + ,#{mobile} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{isDefault} + ,#{addressLabel} + ,#{createUser} + ,#{createDate} + + + + + update mc_wxdc_distribution_address + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`openId` = #{openId} + ,`name` = #{name} + ,`sex` = #{sex} + ,`mobile` = #{mobile} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`isDefault` = #{isDefault} + ,`addressLabel` = #{addressLabel} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from mc_wxdc_distribution_address + where `id` = #{id} + + + + delete from mc_wxdc_distribution_address + ${condition} + + + + delete from mc_wxdc_distribution_address + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionMapper.xml new file mode 100644 index 0000000..9582233 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`busNo`,`wid`,`shopNo`,`shopName`,`serialNo`,`referNo`,`tradeNo`,`mobile`,`receiveMobile`,`receiveAddress`,`distributionFee`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into mc_wxdc_distribution + + `id`,`tenantId` + ,`busNo` + ,`wid` + ,`shopNo` + ,`shopName` + ,`serialNo` + ,`referNo` + ,`tradeNo` + ,`mobile` + ,`receiveMobile` + ,`receiveAddress` + ,`distributionFee` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{busNo} + ,#{wid} + ,#{shopNo} + ,#{shopName} + ,#{serialNo} + ,#{referNo} + ,#{tradeNo} + ,#{mobile} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{distributionFee} + ,#{createUser} + ,#{createDate} + + + + + update mc_wxdc_distribution + + `tenantId` = #{tenantId} + ,`busNo` = #{busNo} + ,`wid` = #{wid} + ,`shopNo` = #{shopNo} + ,`shopName` = #{shopName} + ,`serialNo` = #{serialNo} + ,`referNo` = #{referNo} + ,`tradeNo` = #{tradeNo} + ,`mobile` = #{mobile} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`distributionFee` = #{distributionFee} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from mc_wxdc_distribution + where `id` = #{id} + + + + delete from mc_wxdc_distribution + ${condition} + + + + delete from mc_wxdc_distribution + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxyh/WeixinUserMapper.xml b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxyh/WeixinUserMapper.xml new file mode 100644 index 0000000..fab57d7 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mapper/mysql/wxyh/WeixinUserMapper.xml @@ -0,0 +1,94 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`openid`,`workerId`,`workerNo`,`workerName`,`storeId`,`storeNo`,`storeName`,`nickName`,`mobile`,`sex`,`province`,`city`,`country`,`language`,`headimgurl`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + insert into wx_wxyh_user + + `id`,`tenantId` + ,`openid` + ,`workerId` + ,`workerNo` + ,`workerName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`nickName` + ,`mobile` + ,`sex` + ,`province` + ,`city` + ,`country` + ,`language` + ,`headimgurl` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{openid} + ,#{workerId} + ,#{workerNo} + ,#{workerName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{nickName} + ,#{mobile} + ,#{sex} + ,#{province} + ,#{city} + ,#{country} + ,#{language} + ,#{headimgurl} + ,#{createDate} + ,#{createUser} + + + + + update wx_wxyh_user + + `tenantId` = #{tenantId} + ,`openid` = #{openid} + ,`workerId` = #{workerId} + ,`workerNo` = #{workerNo} + ,`workerName` = #{workerName} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`nickName` = #{nickName} + ,`mobile` = #{mobile} + ,`sex` = #{sex} + ,`province` = #{province} + ,`city` = #{city} + ,`country` = #{country} + ,`language` = #{language} + ,`headimgurl` = #{headimgurl} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + diff --git a/food-server/src/main/resources/META-INF/mybatis/mybatis-config.xml b/food-server/src/main/resources/META-INF/mybatis/mybatis-config.xml new file mode 100644 index 0000000..7679f62 --- /dev/null +++ b/food-server/src/main/resources/META-INF/mybatis/mybatis-config.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-cache.xml b/food-server/src/main/resources/META-INF/spring/spring-cache.xml new file mode 100644 index 0000000..32838bf --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-cache.xml @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/food-server/src/main/resources/META-INF/spring/spring-dao.xml b/food-server/src/main/resources/META-INF/spring/spring-dao.xml new file mode 100644 index 0000000..7f5a628 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dao.xml @@ -0,0 +1,51 @@ + + + + 系统默认数据源 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-agent.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-agent.xml new file mode 100644 index 0000000..8ad0ebc --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-agent.xml @@ -0,0 +1,24 @@ + + + + 总部代理商相关服务接口定义 + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-coupon.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-coupon.xml new file mode 100644 index 0000000..cbdf68f --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-coupon.xml @@ -0,0 +1,44 @@ + + + + 商品优惠券相关服务接口定义 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-dispatch.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-dispatch.xml new file mode 100644 index 0000000..2f02421 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-dispatch.xml @@ -0,0 +1,110 @@ + + + + 总部配送相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-operation.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-operation.xml new file mode 100644 index 0000000..e4d9fb1 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-operation.xml @@ -0,0 +1,120 @@ + + + + 运维相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-product.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-product.xml new file mode 100644 index 0000000..b49865f --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-product.xml @@ -0,0 +1,156 @@ + + + + 商品相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-storage.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-storage.xml new file mode 100644 index 0000000..8827e48 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-storage.xml @@ -0,0 +1,277 @@ + + + + 库存相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-store-storage.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-store-storage.xml new file mode 100644 index 0000000..23cd1d4 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-store-storage.xml @@ -0,0 +1,112 @@ + + + + 门店库存相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-store.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-store.xml new file mode 100644 index 0000000..961c299 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-store.xml @@ -0,0 +1,454 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-supplier.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-supplier.xml new file mode 100644 index 0000000..205a0e9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-supplier.xml @@ -0,0 +1,24 @@ + + + + 供应商相关服务接口定义 + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-waimai.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-waimai.xml new file mode 100644 index 0000000..5bdf46b --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-waimai.xml @@ -0,0 +1,201 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-weixin.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-weixin.xml new file mode 100644 index 0000000..529245e --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-weixin.xml @@ -0,0 +1,114 @@ + + + + 微信点餐相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-wxdc.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-wxdc.xml new file mode 100644 index 0000000..a553db9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-wxdc.xml @@ -0,0 +1,220 @@ + + + + 微信点餐账户和用户相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-wxyh.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-wxyh.xml new file mode 100644 index 0000000..7c8c8db --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food-wxyh.xml @@ -0,0 +1,25 @@ + + + + 小程序要货账户和用户相关服务接口定义 + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-food.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food.xml new file mode 100644 index 0000000..905a656 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-food.xml @@ -0,0 +1,94 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-hello.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-hello.xml new file mode 100644 index 0000000..29d3e18 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-hello.xml @@ -0,0 +1,19 @@ + + + + 服务接口定义 + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-manager.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-manager.xml new file mode 100644 index 0000000..b78eb14 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-manager.xml @@ -0,0 +1,84 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo-shared.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo-shared.xml new file mode 100644 index 0000000..ba22ca9 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo-shared.xml @@ -0,0 +1,39 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-dubbo.xml b/food-server/src/main/resources/META-INF/spring/spring-dubbo.xml new file mode 100644 index 0000000..471ed22 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-dubbo.xml @@ -0,0 +1,24 @@ + + + + dubbo服务接口定义 + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-mybatis.xml b/food-server/src/main/resources/META-INF/spring/spring-mybatis.xml new file mode 100644 index 0000000..d97804d --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-mybatis.xml @@ -0,0 +1,69 @@ + + + + MyBatis数据源模式 + + + + + + + + + + + + + + + + + + + com.jwsaas.mybatis.support.MySQLDialect + true + 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring-tx.xml b/food-server/src/main/resources/META-INF/spring/spring-tx.xml new file mode 100644 index 0000000..9b931b6 --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring-tx.xml @@ -0,0 +1,66 @@ + + + + 数据库事务管理 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/spring/spring.xml b/food-server/src/main/resources/META-INF/spring/spring.xml new file mode 100644 index 0000000..8ed2e4a --- /dev/null +++ b/food-server/src/main/resources/META-INF/spring/spring.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + classpath*:config.properties + + + + + + + + + + + + + + + ../temp/ + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/META-INF/template/datainit/init.base.sql.ftl b/food-server/src/main/resources/META-INF/template/datainit/init.base.sql.ftl new file mode 100644 index 0000000..6467c2d --- /dev/null +++ b/food-server/src/main/resources/META-INF/template/datainit/init.base.sql.ftl @@ -0,0 +1,11 @@ +/*系统管理员*/ +insert into `shared_user` (`id`, `tenantId`, `userName`, `passwd`, `email`, `nickName`, `realName`, `sex`, `identityFlag`, `status`, `description`, `createUser`) values ('${userId}','${tenantCode}','${userName}','${userPwd}',NULL,'系统管理员','系统管理员','1', '0','1','','system'); + +/*系统管理员角色*/ +insert into `shared_role` (`id`, `tenantId`, `name`, `roleType`, `isDefault`, `description`, `createUser`) values ('${roleId}','${tenantCode}','系统管理员','HEADQUARTER','1','系统管理员','system'); + +/*系统管理员分配管理员角色*/ +insert into `shared_user_role` (`tenantId`, `userId`, `roleId`) values('${tenantCode}','${userId}','${roleId}'); + +/*系统管理员角色对应的权限信息*/ +; diff --git a/food-server/src/main/resources/META-INF/template/datainit/tenant_db_config.xml.ftl b/food-server/src/main/resources/META-INF/template/datainit/tenant_db_config.xml.ftl new file mode 100644 index 0000000..ce4a519 --- /dev/null +++ b/food-server/src/main/resources/META-INF/template/datainit/tenant_db_config.xml.ftl @@ -0,0 +1,56 @@ + + + 租户[${tenantCode}]数据源 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/src/main/resources/config.properties b/food-server/src/main/resources/config.properties new file mode 100644 index 0000000..f1c4f52 --- /dev/null +++ b/food-server/src/main/resources/config.properties @@ -0,0 +1,40 @@ +application.name=middleware-server +application.owner= + +zk.connect=zookeeper://127.0.0.1:2181 +# curator or zkclient +zk.client=curator + +protocol.host=0.0.0.0 +protocol.port=20880 + +service.version=2.0.0 +service.group=default +service.timeout=600000 +service.retries=0 + +#dubbo cache address +dubbo.cache.address=/home/project/boduo/food/dubbo/food-server.cache + +#redis +redis.type=single +redis.url=127.0.0.1:6379 +redis.auth=123456 +redis.database=4 +redis.timeout=5000 +redis.poolsize=10 +redis.subpoolsize=5 + + +#jdbc +jdbc.master.url=jdbc:mysql://47.92.83.179:3306/jw_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC +jdbc.master.username=root +jdbc.master.password=Zsx235679@ + +jdbc.standby.url=jdbc:mysql://47.92.83.179:3306/jw_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC +jdbc.standby.username=root +jdbc.standby.password=Zsx235679@ + +id.worker=1 +id.center=1 +id.sequence=1 \ No newline at end of file diff --git a/food-server/src/main/resources/logback.xml b/food-server/src/main/resources/logback.xml new file mode 100644 index 0000000..3efa631 --- /dev/null +++ b/food-server/src/main/resources/logback.xml @@ -0,0 +1,18 @@ + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] %logger{120} - %msg%n + + UTF-8 + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/dubbo/com.alibaba.dubbo.rpc.Filter b/food-server/target/classes/META-INF/dubbo/com.alibaba.dubbo.rpc.Filter new file mode 100644 index 0000000..0a76408 --- /dev/null +++ b/food-server/target/classes/META-INF/dubbo/com.alibaba.dubbo.rpc.Filter @@ -0,0 +1 @@ +serverDataVersionFilter=com.jwsaas.Filters.ServerDataVersionFilter \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceProductMapper.xml new file mode 100644 index 0000000..240acd0 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceProductMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`specId`,`oldPrice`,`oldMinPrice`,`oldMemberPrice`,`oldOtherPrice`,`price`,`minPrice`,`memberPrice`,`otherPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_adjust_price_product + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`specId` + ,`oldPrice` + ,`oldMinPrice` + ,`oldMemberPrice` + ,`oldOtherPrice` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`otherPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{specId} + ,#{oldPrice} + ,#{oldMinPrice} + ,#{oldMemberPrice} + ,#{oldOtherPrice} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{otherPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_adjust_price_product + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`oldPrice` = #{oldPrice} + ,`oldMinPrice` = #{oldMinPrice} + ,`oldMemberPrice` = #{oldMemberPrice} + ,`oldOtherPrice` = #{oldOtherPrice} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`otherPrice` = #{otherPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_adjust_price_product + where `id` = #{id} + + + + delete from cy_adjust_price_product + ${condition} + + + + delete from cy_adjust_price_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceStoreMapper.xml new file mode 100644 index 0000000..f673c31 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceStoreMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_adjust_price_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_adjust_price_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_adjust_price_store + where `id` = #{id} + + + + delete from cy_adjust_price_store + ${condition} + + + + delete from cy_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceTicketMapper.xml new file mode 100644 index 0000000..e0bf524 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdjustPriceTicketMapper.xml @@ -0,0 +1,130 @@ + + + + + + `id`,`tenantId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into cy_adjust_price_ticket + + `id`,`tenantId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_adjust_price_ticket + ${condition} + + + + delete from cy_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdvertCaptionMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdvertCaptionMapper.xml new file mode 100644 index 0000000..42c1e64 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdvertCaptionMapper.xml @@ -0,0 +1,194 @@ + + + + + + `id`,`tenantId`,`name`,`content`,`stopFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_advert_caption + + `id`,`tenantId` + ,`name` + ,`content` + ,`stopFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{content} + ,#{stopFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_advert_caption + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`content` = #{content} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_advert_caption + where `id` = #{id} + + + + delete from cy_advert_caption + ${condition} + + + + delete from cy_advert_caption + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_advert_caption + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO cy_advert_caption_store (tenantId,storeId,captionId) + VALUES (#{tenantId}, #{storeId}, #{captionId}) + + + + + delete from cy_advert_caption_store + where tenantId=#{tenantId} and captionId=#{captionId} + + + + + delete from cy_advert_caption_store + where tenantId=#{tenantId} and captionId=#{captionId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdvertPictureMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdvertPictureMapper.xml new file mode 100644 index 0000000..a5bffe9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AdvertPictureMapper.xml @@ -0,0 +1,206 @@ + + + + + + `id`,`tenantId`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`stopFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_advert_picture + + `id`,`tenantId` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`stopFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{stopFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_advert_picture + + `tenantId` = #{tenantId} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_advert_picture + where `id` = #{id} + + + + delete from cy_advert_picture + ${condition} + + + + delete from cy_advert_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_advert_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO cy_advert_picture_store (tenantId,storeId,pictureId) + VALUES (#{tenantId}, #{storeId}, #{pictureId}) + + + + + delete from cy_advert_picture_store + where tenantId=#{tenantId} and pictureId=#{pictureId} + + + + + delete from cy_advert_picture_store + where tenantId=#{tenantId} and pictureId=#{pictureId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AgentMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AgentMapper.xml new file mode 100644 index 0000000..13d7857 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AgentMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sex`,`birthday`,`email`,`mobile`,`isLogin`,`passwd`,`enable`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_agent + + `id`,`tenantId` + ,`no` + ,`name` + ,`sex` + ,`birthday` + ,`email` + ,`mobile` + ,`isLogin` + ,`passwd` + ,`enable` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sex} + ,#{birthday} + ,#{email} + ,#{mobile} + ,#{isLogin} + ,#{passwd} + ,#{enable} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_agent + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sex` = #{sex} + ,`birthday` = #{birthday} + ,`email` = #{email} + ,`mobile` = #{mobile} + ,`isLogin` = #{isLogin} + ,`passwd` = #{passwd} + ,`enable` = #{enable} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_agent + where `id` = #{id} + + + + delete from cy_agent + ${condition} + + + + delete from cy_agent + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AgentStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AgentStoreMapper.xml new file mode 100644 index 0000000..ad76d34 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AgentStoreMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`agentId`,`valueType`,`valueId`,`valueNo`,`valueName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_agent_store + + `id`,`tenantId` + ,`agentId` + ,`valueType` + ,`valueId` + ,`valueNo` + ,`valueName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{agentId} + ,#{valueType} + ,#{valueId} + ,#{valueNo} + ,#{valueName} + ,#{createUser} + ,#{createDate} + + + + + update cy_agent_store + + `tenantId` = #{tenantId} + ,`agentId` = #{agentId} + ,`valueType` = #{valueType} + ,`valueId` = #{valueId} + ,`valueNo` = #{valueNo} + ,`valueName` = #{valueName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_agent_store + where `id` = #{id} + + + + delete from cy_agent_store + ${condition} + + + + delete from cy_agent_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsDetailMapper.xml new file mode 100644 index 0000000..033059d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsDetailMapper.xml @@ -0,0 +1,198 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`packUnitId`,`packUnitName`,`packUnitAmount`,`dispatchUnitId`,`dispatchUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`packUnitId` + ,`packUnitName` + ,`packUnitAmount` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{packUnitId} + ,#{packUnitName} + ,#{packUnitAmount} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`packUnitAmount` = #{packUnitAmount} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_detail + where `id` = #{id} + + + + delete from cy_ask_goods_detail + ${condition} + + + + delete from cy_ask_goods_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateDetailMapper.xml new file mode 100644 index 0000000..d20b7e2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateDetailMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_template_detail + where `id` = #{id} + + + + delete from cy_ask_goods_template_detail + ${condition} + + + + delete from cy_ask_goods_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateMapper.xml new file mode 100644 index 0000000..1cc7f98 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`selfFlag`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`selfFlag` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{selfFlag} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`selfFlag` = #{selfFlag} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_template + where `id` = #{id} + + + + delete from cy_ask_goods_template + ${condition} + + + + delete from cy_ask_goods_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateStoreMapper.xml new file mode 100644 index 0000000..ab3efe2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTemplateStoreMapper.xml @@ -0,0 +1,110 @@ + + + + + + `tenantId`,`storeId`,`ticketId` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_template_store + + `tenantId` + ,`storeId` + ,`ticketId` + + + #{tenantId} + ,#{storeId} + ,#{ticketId} + + + + + update cy_ask_goods_template_store + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + + where `id` = #{id} + + + + delete from cy_ask_goods_template_store + where `id` = #{id} + + + + delete from cy_ask_goods_template_store + ${condition} + + + + delete from cy_ask_goods_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketLogMapper.xml new file mode 100644 index 0000000..29e1461 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketLogMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`payStatus`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`payStatus` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{payStatus} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_ask_goods_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`payStatus` = #{payStatus} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_log + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_log + ${condition} + + + + delete from cy_ask_goods_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketMapper.xml new file mode 100644 index 0000000..6b5897a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketMapper.xml @@ -0,0 +1,194 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`description`,`status`,`payStatus`,`productMoney`,`dispatchMoney`,`totalMoney`,`isUse`,`setMan`,`setDate`,`checkMan`,`checkDate`,`dispatchDate`,`reason`,`sourceSign`,`deliveryMode`,`deliveryModeDesc`,`barCodeNo`,`erpToExamine`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`status` + ,`payStatus` + ,`productMoney` + ,`dispatchMoney` + ,`totalMoney` + ,`isUse` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`dispatchDate` + ,`reason` + ,`sourceSign` + ,`deliveryMode` + ,`deliveryModeDesc` + ,`barCodeNo` + ,`erpToExamine` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{status} + ,#{payStatus} + ,#{productMoney} + ,#{dispatchMoney} + ,#{totalMoney} + ,#{isUse} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{dispatchDate} + ,#{reason} + ,#{sourceSign} + ,#{deliveryMode} + ,#{deliveryModeDesc} + ,#{barCodeNo} + ,#{erpToExamine} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`status` = #{status} + ,`payStatus` = #{payStatus} + ,`productMoney` = #{productMoney} + ,`dispatchMoney` = #{dispatchMoney} + ,`totalMoney` = #{totalMoney} + ,`isUse` = #{isUse} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + + ,`checkMan` = #{checkMan} + ,`checkMan` = NULL + + + ,`checkDate` = #{checkDate} + ,`checkDate` = NULL + + ,`dispatchDate` = #{dispatchDate} + ,`reason` = #{reason} + ,`sourceSign` = #{sourceSign} + ,`deliveryMode` = #{deliveryMode} + ,`deliveryModeDesc` = #{deliveryModeDesc} + ,`barCodeNo` = #{barCodeNo} + ,`erpToExamine` = #{erpToExamine} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_ticket + where `id` = #{id} + + + + delete from cy_ask_goods_ticket + ${condition} + + + + delete from cy_ask_goods_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketPayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketPayMapper.xml new file mode 100644 index 0000000..33219a3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/AskGoodsTicketPayMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`description`,`type`,`money`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_ask_goods_ticket_pay + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`type` + ,`money` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{type} + ,#{money} + ,#{createUser} + ,#{createDate} + + + + + update cy_ask_goods_ticket_pay + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`type` = #{type} + ,`money` = #{money} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_pay + where `id` = #{id} + + + + delete from cy_ask_goods_ticket_pay + ${condition} + + + + delete from cy_ask_goods_ticket_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduFoodMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduFoodMapper.xml new file mode 100644 index 0000000..a6fb2ba --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduFoodMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryName`,`dishId`,`dishName`,`dishSkuId`,`spec`,`description`,`price`,`boxNum`,`boxPrice`,`isBind`,`erpProductId`,`erpProduct`,`erpSpecId`,`erpSpec`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_baidu_food + + `id`,`tenantId` + ,`storeId` + ,`categoryName` + ,`dishId` + ,`dishName` + ,`dishSkuId` + ,`spec` + ,`description` + ,`price` + ,`boxNum` + ,`boxPrice` + ,`isBind` + ,`erpProductId` + ,`erpProduct` + ,`erpSpecId` + ,`erpSpec` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryName} + ,#{dishId} + ,#{dishName} + ,#{dishSkuId} + ,#{spec} + ,#{description} + ,#{price} + ,#{boxNum} + ,#{boxPrice} + ,#{isBind} + ,#{erpProductId} + ,#{erpProduct} + ,#{erpSpecId} + ,#{erpSpec} + ,#{createUser} + ,#{createDate} + + + + + update cy_baidu_food + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryName` = #{categoryName} + ,`dishId` = #{dishId} + ,`dishName` = #{dishName} + ,`dishSkuId` = #{dishSkuId} + ,`spec` = #{spec} + ,`description` = #{description} + ,`price` = #{price} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`isBind` = #{isBind} + ,`erpProductId` = #{erpProductId} + ,`erpProduct` = #{erpProduct} + ,`erpSpecId` = #{erpSpecId} + ,`erpSpec` = #{erpSpec} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_baidu_food + where `id` = #{id} + + + + delete from cy_baidu_food + ${condition} + + + + delete from cy_baidu_food + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduOrderMapper.xml new file mode 100644 index 0000000..6e244c8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduOrderMapper.xml @@ -0,0 +1,218 @@ + + + + + + `id`,`tenantId`,`source`,`shopId`,`body`,`baiduShopId`,`baiduShopName`,`orderId`,`sendImmediately`,`orderIndex`,`status`,`expectTimeMode`,`sendTime`,`pickupTime`,`atshopTime`,`deliveryTime`,`deliveryPhone`,`finishedTime`,`confirmTime`,`cancelTime`,`sendFee`,`packageFee`,`discountFee`,`shopFee`,`totalFee`,`userFee`,`payType`,`needInvoice`,`invoiceTitle`,`remark`,`deliveryParty`,`createTime`,`mealNum`,`responsibleParty`,`commission`,`user`,`shop`,`products`,`discount`,`partRefundInfo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_baidu_order + + `id`,`tenantId` + ,`source` + ,`shopId` + ,`body` + ,`baiduShopId` + ,`baiduShopName` + ,`orderId` + ,`sendImmediately` + ,`orderIndex` + ,`status` + ,`expectTimeMode` + ,`sendTime` + ,`pickupTime` + ,`atshopTime` + ,`deliveryTime` + ,`deliveryPhone` + ,`finishedTime` + ,`confirmTime` + ,`cancelTime` + ,`sendFee` + ,`packageFee` + ,`discountFee` + ,`shopFee` + ,`totalFee` + ,`userFee` + ,`payType` + ,`needInvoice` + ,`invoiceTitle` + ,`remark` + ,`deliveryParty` + ,`createTime` + ,`mealNum` + ,`responsibleParty` + ,`commission` + ,`user` + ,`shop` + ,`products` + ,`discount` + ,`partRefundInfo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{source} + ,#{shopId} + ,#{body} + ,#{baiduShopId} + ,#{baiduShopName} + ,#{orderId} + ,#{sendImmediately} + ,#{orderIndex} + ,#{status} + ,#{expectTimeMode} + ,#{sendTime} + ,#{pickupTime} + ,#{atshopTime} + ,#{deliveryTime} + ,#{deliveryPhone} + ,#{finishedTime} + ,#{confirmTime} + ,#{cancelTime} + ,#{sendFee} + ,#{packageFee} + ,#{discountFee} + ,#{shopFee} + ,#{totalFee} + ,#{userFee} + ,#{payType} + ,#{needInvoice} + ,#{invoiceTitle} + ,#{remark} + ,#{deliveryParty} + ,#{createTime} + ,#{mealNum} + ,#{responsibleParty} + ,#{commission} + ,#{user} + ,#{shop} + ,#{products} + ,#{discount} + ,#{partRefundInfo} + ,#{createUser} + ,#{createDate} + + + + + update cy_baidu_order + + `tenantId` = #{tenantId} + ,`source` = #{source} + ,`shopId` = #{shopId} + ,`body` = #{body} + ,`baiduShopId` = #{baiduShopId} + ,`baiduShopName` = #{baiduShopName} + ,`orderId` = #{orderId} + ,`sendImmediately` = #{sendImmediately} + ,`orderIndex` = #{orderIndex} + ,`status` = #{status} + ,`expectTimeMode` = #{expectTimeMode} + ,`sendTime` = #{sendTime} + ,`pickupTime` = #{pickupTime} + ,`atshopTime` = #{atshopTime} + ,`deliveryTime` = #{deliveryTime} + ,`deliveryPhone` = #{deliveryPhone} + ,`finishedTime` = #{finishedTime} + ,`confirmTime` = #{confirmTime} + ,`cancelTime` = #{cancelTime} + ,`sendFee` = #{sendFee} + ,`packageFee` = #{packageFee} + ,`discountFee` = #{discountFee} + ,`shopFee` = #{shopFee} + ,`totalFee` = #{totalFee} + ,`userFee` = #{userFee} + ,`payType` = #{payType} + ,`needInvoice` = #{needInvoice} + ,`invoiceTitle` = #{invoiceTitle} + ,`remark` = #{remark} + ,`deliveryParty` = #{deliveryParty} + ,`createTime` = #{createTime} + ,`mealNum` = #{mealNum} + ,`responsibleParty` = #{responsibleParty} + ,`commission` = #{commission} + ,`user` = #{user} + ,`shop` = #{shop} + ,`products` = #{products} + ,`discount` = #{discount} + ,`partRefundInfo` = #{partRefundInfo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_baidu_order + where `id` = #{id} + + + + delete from cy_baidu_order + ${condition} + + + + delete from cy_baidu_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduOrderProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduOrderProductMapper.xml new file mode 100644 index 0000000..bcf7bd2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BaiduOrderProductMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`tenantId`,`orderId`,`baiduProductId`,`otherDishId`,`productId`,`upc`,`productType`,`productName`,`productAmount`,`productPrice`,`productAttr`,`baiduAttrId`,`attrId`,`option`,`productFeatures`,`productFee`,`packageFee`,`packagePrice`,`packageAmount`,`totalFee`,`productCustomIndex`,`isFixedPrice`,`group`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_baidu_order_product + + `id`,`tenantId` + ,`orderId` + ,`baiduProductId` + ,`otherDishId` + ,`productId` + ,`upc` + ,`productType` + ,`productName` + ,`productAmount` + ,`productPrice` + ,`productAttr` + ,`baiduAttrId` + ,`attrId` + ,`option` + ,`productFeatures` + ,`productFee` + ,`packageFee` + ,`packagePrice` + ,`packageAmount` + ,`totalFee` + ,`productCustomIndex` + ,`isFixedPrice` + ,`group` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{baiduProductId} + ,#{otherDishId} + ,#{productId} + ,#{upc} + ,#{productType} + ,#{productName} + ,#{productAmount} + ,#{productPrice} + ,#{productAttr} + ,#{baiduAttrId} + ,#{attrId} + ,#{option} + ,#{productFeatures} + ,#{productFee} + ,#{packageFee} + ,#{packagePrice} + ,#{packageAmount} + ,#{totalFee} + ,#{productCustomIndex} + ,#{isFixedPrice} + ,#{group} + ,#{createUser} + ,#{createDate} + + + + + update cy_baidu_order_product + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`baiduProductId` = #{baiduProductId} + ,`otherDishId` = #{otherDishId} + ,`productId` = #{productId} + ,`upc` = #{upc} + ,`productType` = #{productType} + ,`productName` = #{productName} + ,`productAmount` = #{productAmount} + ,`productPrice` = #{productPrice} + ,`productAttr` = #{productAttr} + ,`baiduAttrId` = #{baiduAttrId} + ,`attrId` = #{attrId} + ,`option` = #{option} + ,`productFeatures` = #{productFeatures} + ,`productFee` = #{productFee} + ,`packageFee` = #{packageFee} + ,`packagePrice` = #{packagePrice} + ,`packageAmount` = #{packageAmount} + ,`totalFee` = #{totalFee} + ,`productCustomIndex` = #{productCustomIndex} + ,`isFixedPrice` = #{isFixedPrice} + ,`group` = #{group} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_baidu_order_product + where `id` = #{id} + + + + delete from cy_baidu_order_product + ${condition} + + + + delete from cy_baidu_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BrandMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BrandMapper.xml new file mode 100644 index 0000000..f62f242 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BrandMapper.xml @@ -0,0 +1,148 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`deleteFlag`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_brand + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`deleteFlag` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{deleteFlag} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_brand + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_brand + where `id` = #{id} + + + + delete from cy_brand + ${condition} + + + + delete from cy_brand + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_brand + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BusinessPlanDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BusinessPlanDetailMapper.xml new file mode 100644 index 0000000..75933a0 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BusinessPlanDetailMapper.xml @@ -0,0 +1,129 @@ + + + + + + `id`,`tenantId`,`planId`,`name`,`startType`,`startTime`,`endType`,`endTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_business_plan_detail + + `id`,`tenantId` + ,`planId` + ,`name` + ,`startType` + ,`startTime` + ,`endType` + ,`endTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{name} + ,#{startType} + ,#{startTime} + ,#{endType} + ,#{endTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_business_plan_detail + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`name` = #{name} + ,`startType` = #{startType} + ,`startTime` = #{startTime} + ,`endType` = #{endType} + ,`endTime` = #{endTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_business_plan_detail + where `id` = #{id} + + + + delete from cy_business_plan_detail + ${condition} + + + + delete from cy_business_plan_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BusinessPlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BusinessPlanMapper.xml new file mode 100644 index 0000000..b7038a3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/BusinessPlanMapper.xml @@ -0,0 +1,195 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`startType`,`startTime`,`endType`,`endTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_business_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`startType` + ,`startTime` + ,`endType` + ,`endTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{startType} + ,#{startTime} + ,#{endType} + ,#{endTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_business_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`startType` = #{startType} + ,`startTime` = #{startTime} + ,`endType` = #{endType} + ,`endTime` = #{endTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_business_plan + where `id` = #{id} + + + + delete from cy_business_plan + ${condition} + + + + delete from cy_business_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + insert into cy_business_plan_store (tenantId, planId, storeId) + values + (#{tenantId}, #{planId}, #{storeId}) + + + + + delete from cy_business_plan_store + where `tenantId` = #{tenantId} and planId=#{planId} and storeId=#{storeId} + + + + + delete from cy_business_plan_store + where `tenantId` = #{tenantId} and planId=#{planId} + + + + + delete from cy_business_plan_store + where `tenantId` = #{tenantId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CandaoStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CandaoStoreMapper.xml new file mode 100644 index 0000000..9a411b1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CandaoStoreMapper.xml @@ -0,0 +1,236 @@ + + + + + + `id`,`tenantId`,`groupId`,`brandId`,`brandName`,`waimaiType`,`storeId`,`subStoreId`,`storeNo`,`storeName`,`provinceId`,`provinceName`,`cityId`,`cityName`,`districtId`,`districtName`,`townName`,`tradeArea`,`saleArea`,`address`,`latitude`,`longitude`,`announcement`,`logo`,`phoneList`,`customerPhone`,`contactEmail`,`deliverFee`,`businessTimes`,`orderType`,`avgProductTime`,`waitTime`,`appointment`,`takeSelf`,`payType`,`onLinePayType`,`isInvoice`,`eleDelivery`,`autoChangeDeliver`,`busy`,`sharedOrder`,`enabled`,`isSync`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_candao_store + + `id`,`tenantId` + ,`groupId` + ,`brandId` + ,`brandName` + ,`waimaiType` + ,`storeId` + ,`subStoreId` + ,`storeNo` + ,`storeName` + ,`provinceId` + ,`provinceName` + ,`cityId` + ,`cityName` + ,`districtId` + ,`districtName` + ,`townName` + ,`tradeArea` + ,`saleArea` + ,`address` + ,`latitude` + ,`longitude` + ,`announcement` + ,`logo` + ,`phoneList` + ,`customerPhone` + ,`contactEmail` + ,`deliverFee` + ,`businessTimes` + ,`orderType` + ,`avgProductTime` + ,`waitTime` + ,`appointment` + ,`takeSelf` + ,`payType` + ,`onLinePayType` + ,`isInvoice` + ,`eleDelivery` + ,`autoChangeDeliver` + ,`busy` + ,`sharedOrder` + ,`enabled` + ,`isSync` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{groupId} + ,#{brandId} + ,#{brandName} + ,#{waimaiType} + ,#{storeId} + ,#{subStoreId} + ,#{storeNo} + ,#{storeName} + ,#{provinceId} + ,#{provinceName} + ,#{cityId} + ,#{cityName} + ,#{districtId} + ,#{districtName} + ,#{townName} + ,#{tradeArea} + ,#{saleArea} + ,#{address} + ,#{latitude} + ,#{longitude} + ,#{announcement} + ,#{logo} + ,#{phoneList} + ,#{customerPhone} + ,#{contactEmail} + ,#{deliverFee} + ,#{businessTimes} + ,#{orderType} + ,#{avgProductTime} + ,#{waitTime} + ,#{appointment} + ,#{takeSelf} + ,#{payType} + ,#{onLinePayType} + ,#{isInvoice} + ,#{eleDelivery} + ,#{autoChangeDeliver} + ,#{busy} + ,#{sharedOrder} + ,#{enabled} + ,#{isSync} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_candao_store + + `tenantId` = #{tenantId} + ,`groupId` = #{groupId} + ,`brandId` = #{brandId} + ,`brandName` = #{brandName} + ,`waimaiType` = #{waimaiType} + ,`storeId` = #{storeId} + ,`subStoreId` = #{subStoreId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`provinceId` = #{provinceId} + ,`provinceName` = #{provinceName} + ,`cityId` = #{cityId} + ,`cityName` = #{cityName} + ,`districtId` = #{districtId} + ,`districtName` = #{districtName} + ,`townName` = #{townName} + ,`tradeArea` = #{tradeArea} + ,`saleArea` = #{saleArea} + ,`address` = #{address} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`announcement` = #{announcement} + ,`logo` = #{logo} + ,`phoneList` = #{phoneList} + ,`customerPhone` = #{customerPhone} + ,`contactEmail` = #{contactEmail} + ,`deliverFee` = #{deliverFee} + ,`businessTimes` = #{businessTimes} + ,`orderType` = #{orderType} + ,`avgProductTime` = #{avgProductTime} + ,`waitTime` = #{waitTime} + ,`appointment` = #{appointment} + ,`takeSelf` = #{takeSelf} + ,`payType` = #{payType} + ,`onLinePayType` = #{onLinePayType} + ,`isInvoice` = #{isInvoice} + ,`eleDelivery` = #{eleDelivery} + ,`autoChangeDeliver` = #{autoChangeDeliver} + ,`busy` = #{busy} + ,`sharedOrder` = #{sharedOrder} + ,`enabled` = #{enabled} + ,`isSync` = #{isSync} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_candao_store + where `id` = #{id} + + + + delete from cy_candao_store + ${condition} + + + + delete from cy_candao_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_candao_store + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CategoryMapper.xml new file mode 100644 index 0000000..5f18fc8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CategoryMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`name`,`enabled`,`sign`,`orderNo`,`parentId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_category + + `id`,`tenantId` + ,`name` + ,`enabled` + ,`sign` + ,`orderNo` + ,`parentId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{enabled} + ,#{sign} + ,#{orderNo} + ,#{parentId} + ,#{createUser} + ,#{createDate} + + + + + update cy_category + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`enabled` = #{enabled} + ,`sign` = #{sign} + ,`orderNo` = #{orderNo} + ,`parentId` = #{parentId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_category + where `id` = #{id} + + + + delete from cy_category + ${condition} + + + + delete from cy_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTemplateDetailMapper.xml new file mode 100644 index 0000000..09e902d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTemplateDetailMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_template_detail + where `id` = #{id} + + + + delete from cy_check_template_detail + ${condition} + + + + delete from cy_check_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTemplateMapper.xml new file mode 100644 index 0000000..8b9825f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_template + where `id` = #{id} + + + + delete from cy_check_template + ${condition} + + + + delete from cy_check_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketDetailMapper.xml new file mode 100644 index 0000000..fafe275 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketDetailMapper.xml @@ -0,0 +1,180 @@ + + + + + + `id`,`tenantId`,`storageId`,`storageName`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`sysAmount`,`checkAmount`,`differenceAmount`,`sysMoney`,`checkMoney`,`differenceMoney`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_ticket_detail + + `id`,`tenantId` + ,`storageId` + ,`storageName` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`sysAmount` + ,`checkAmount` + ,`differenceAmount` + ,`sysMoney` + ,`checkMoney` + ,`differenceMoney` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storageId} + ,#{storageName} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{sysAmount} + ,#{checkAmount} + ,#{differenceAmount} + ,#{sysMoney} + ,#{checkMoney} + ,#{differenceMoney} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_ticket_detail + + `tenantId` = #{tenantId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`sysAmount` = #{sysAmount} + ,`checkAmount` = #{checkAmount} + ,`differenceAmount` = #{differenceAmount} + ,`sysMoney` = #{sysMoney} + ,`checkMoney` = #{checkMoney} + ,`differenceMoney` = #{differenceMoney} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_ticket_detail + where `id` = #{id} + + + + delete from cy_check_ticket_detail + ${condition} + + + + delete from cy_check_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketLogMapper.xml new file mode 100644 index 0000000..71b4e20 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_check_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_check_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_check_ticket_log + where `id` = #{id} + + + + delete from cy_check_ticket_log + ${condition} + + + + delete from cy_check_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketMapper.xml new file mode 100644 index 0000000..290f3e9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CheckTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_check_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_check_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_check_ticket + where `id` = #{id} + + + + delete from cy_check_ticket + ${condition} + + + + delete from cy_check_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostFeeItemMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostFeeItemMapper.xml new file mode 100644 index 0000000..5265e9c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostFeeItemMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`typeId`,`typePath`,`no`,`name`,`type`,`enabled`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_fee_item + + `id`,`tenantId` + ,`typeId` + ,`typePath` + ,`no` + ,`name` + ,`type` + ,`enabled` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{typeId} + ,#{typePath} + ,#{no} + ,#{name} + ,#{type} + ,#{enabled} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_fee_item + + `tenantId` = #{tenantId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`enabled` = #{enabled} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_fee_item + where `id` = #{id} + + + + delete from cy_cost_fee_item + ${condition} + + + + delete from cy_cost_fee_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostFeeTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostFeeTypeMapper.xml new file mode 100644 index 0000000..98cd00b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostFeeTypeMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`parentId`,`path`,`no`,`name`,`type`,`enabled`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_fee_type + + `id`,`tenantId` + ,`parentId` + ,`path` + ,`no` + ,`name` + ,`type` + ,`enabled` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{parentId} + ,#{path} + ,#{no} + ,#{name} + ,#{type} + ,#{enabled} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_fee_type + + `tenantId` = #{tenantId} + ,`parentId` = #{parentId} + ,`path` = #{path} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`enabled` = #{enabled} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_fee_type + where `id` = #{id} + + + + delete from cy_cost_fee_type + ${condition} + + + + delete from cy_cost_fee_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketMapper.xml new file mode 100644 index 0000000..428b588 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`description`,`status`,`amount`,`discountAmount`,`receivableAmount`,`boxAmount`,`workerAmount`,`summaryDate`,`checkPeople`,`checkDate`,`ticketCount`,`peoplePrice`,`profit`,`totalCost`,`difTotalCost`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`status` + ,`amount` + ,`discountAmount` + ,`receivableAmount` + ,`boxAmount` + ,`workerAmount` + ,`summaryDate` + ,`checkPeople` + ,`checkDate` + ,`ticketCount` + ,`peoplePrice` + ,`profit` + ,`totalCost` + ,`difTotalCost` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{status} + ,#{amount} + ,#{discountAmount} + ,#{receivableAmount} + ,#{boxAmount} + ,#{workerAmount} + ,#{summaryDate} + ,#{checkPeople} + ,#{checkDate} + ,#{ticketCount} + ,#{peoplePrice} + ,#{profit} + ,#{totalCost} + ,#{difTotalCost} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`status` = #{status} + ,`amount` = #{amount} + ,`discountAmount` = #{discountAmount} + ,`receivableAmount` = #{receivableAmount} + ,`boxAmount` = #{boxAmount} + ,`workerAmount` = #{workerAmount} + ,`summaryDate` = #{summaryDate} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`ticketCount` = #{ticketCount} + ,`peoplePrice` = #{peoplePrice} + ,`profit` = #{profit} + ,`totalCost` = #{totalCost} + ,`difTotalCost` = #{difTotalCost} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket + where `id` = #{id} + + + + delete from cy_cost_ticket + ${condition} + + + + delete from cy_cost_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketPayTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketPayTypeMapper.xml new file mode 100644 index 0000000..058da2a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketPayTypeMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`payTypeNo`,`payTypeName`,`otherRateType`,`otherRateValue`,`money`,`realMoney`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_pay_type + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`payTypeNo` + ,`payTypeName` + ,`otherRateType` + ,`otherRateValue` + ,`money` + ,`realMoney` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{payTypeNo} + ,#{payTypeName} + ,#{otherRateType} + ,#{otherRateValue} + ,#{money} + ,#{realMoney} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_pay_type + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`payTypeNo` = #{payTypeNo} + ,`payTypeName` = #{payTypeName} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`money` = #{money} + ,`realMoney` = #{realMoney} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_pay_type + where `id` = #{id} + + + + delete from cy_cost_ticket_pay_type + ${condition} + + + + delete from cy_cost_ticket_pay_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductChangeMapper.xml new file mode 100644 index 0000000..119b167 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductChangeMapper.xml @@ -0,0 +1,197 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`yeterdayStock`,`todayIn`,`todayStock`,`todayLoss`,`todayUse`,`posUse`,`difUse`,`difMoney`,`cost`,`salePro`,`standard`,`difStandard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`yeterdayStock` + ,`todayIn` + ,`todayStock` + ,`todayLoss` + ,`todayUse` + ,`posUse` + ,`difUse` + ,`difMoney` + ,`cost` + ,`salePro` + ,`standard` + ,`difStandard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{yeterdayStock} + ,#{todayIn} + ,#{todayStock} + ,#{todayLoss} + ,#{todayUse} + ,#{posUse} + ,#{difUse} + ,#{difMoney} + ,#{cost} + ,#{salePro} + ,#{standard} + ,#{difStandard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`yeterdayStock` = #{yeterdayStock} + ,`todayIn` = #{todayIn} + ,`todayStock` = #{todayStock} + ,`todayLoss` = #{todayLoss} + ,`todayUse` = #{todayUse} + ,`posUse` = #{posUse} + ,`difUse` = #{difUse} + ,`difMoney` = #{difMoney} + ,`cost` = #{cost} + ,`salePro` = #{salePro} + ,`standard` = #{standard} + ,`difStandard` = #{difStandard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_change + ${condition} + + + + delete from cy_cost_ticket_product_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductFixedChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductFixedChangeMapper.xml new file mode 100644 index 0000000..076763a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductFixedChangeMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_fixed_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_fixed_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_fixed_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_fixed_change + ${condition} + + + + delete from cy_cost_ticket_product_fixed_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductMoreChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductMoreChangeMapper.xml new file mode 100644 index 0000000..927104b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductMoreChangeMapper.xml @@ -0,0 +1,197 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`yeterdayStock`,`todayIn`,`todayStock`,`todayLoss`,`todayUse`,`posUse`,`difUse`,`difMoney`,`cost`,`salePro`,`standard`,`difStandard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_more_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`yeterdayStock` + ,`todayIn` + ,`todayStock` + ,`todayLoss` + ,`todayUse` + ,`posUse` + ,`difUse` + ,`difMoney` + ,`cost` + ,`salePro` + ,`standard` + ,`difStandard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{yeterdayStock} + ,#{todayIn} + ,#{todayStock} + ,#{todayLoss} + ,#{todayUse} + ,#{posUse} + ,#{difUse} + ,#{difMoney} + ,#{cost} + ,#{salePro} + ,#{standard} + ,#{difStandard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_more_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`yeterdayStock` = #{yeterdayStock} + ,`todayIn` = #{todayIn} + ,`todayStock` = #{todayStock} + ,`todayLoss` = #{todayLoss} + ,`todayUse` = #{todayUse} + ,`posUse` = #{posUse} + ,`difUse` = #{difUse} + ,`difMoney` = #{difMoney} + ,`cost` = #{cost} + ,`salePro` = #{salePro} + ,`standard` = #{standard} + ,`difStandard` = #{difStandard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_more_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_more_change + ${condition} + + + + delete from cy_cost_ticket_product_more_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductOtherChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductOtherChangeMapper.xml new file mode 100644 index 0000000..d48c0dd --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductOtherChangeMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_other_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_other_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_other_change + where `id` = #{id} + + + + delete from cy_cost_ticket_product_other_change + ${condition} + + + + delete from cy_cost_ticket_product_other_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductTypeMapper.xml new file mode 100644 index 0000000..1e3c8a5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketProductTypeMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`storeName`,`summaryDate`,`typeId`,`typeNo`,`typeName`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_product_type + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`summaryDate` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{summaryDate} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_product_type + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`summaryDate` = #{summaryDate} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_product_type + where `id` = #{id} + + + + delete from cy_cost_ticket_product_type + ${condition} + + + + delete from cy_cost_ticket_product_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateMapper.xml new file mode 100644 index 0000000..19d4e7f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template + where `id` = #{id} + + + + delete from cy_cost_ticket_template + ${condition} + + + + delete from cy_cost_ticket_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_cost_ticket_template_store (`tenantId`,`ticketId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + DELETE FROM cy_cost_ticket_template_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductChangeMapper.xml new file mode 100644 index 0000000..1690de0 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductChangeMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`cost`,`standard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`cost` + ,`standard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{cost} + ,#{standard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`cost` = #{cost} + ,`standard` = #{standard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_change + ${condition} + + + + delete from cy_cost_ticket_template_product_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductFixedChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductFixedChangeMapper.xml new file mode 100644 index 0000000..e18124b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductFixedChangeMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_fixed_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_fixed_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_fixed_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_fixed_change + ${condition} + + + + delete from cy_cost_ticket_template_product_fixed_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductMoreChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductMoreChangeMapper.xml new file mode 100644 index 0000000..dc8137c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductMoreChangeMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typeNo`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`packUnitId`,`costType`,`cost`,`standard`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_more_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`packUnitId` + ,`costType` + ,`cost` + ,`standard` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{packUnitId} + ,#{costType} + ,#{cost} + ,#{standard} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_more_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`packUnitId` = #{packUnitId} + ,`costType` = #{costType} + ,`cost` = #{cost} + ,`standard` = #{standard} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_more_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_more_change + ${condition} + + + + delete from cy_cost_ticket_template_product_more_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductOtherChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductOtherChangeMapper.xml new file mode 100644 index 0000000..9a8a333 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CostTicketTemplateProductOtherChangeMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`typeId`,`typePath`,`typeNo`,`typeName`,`itemId`,`no`,`name`,`type`,`money`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_cost_ticket_template_product_other_change + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`typeId` + ,`typePath` + ,`typeNo` + ,`typeName` + ,`itemId` + ,`no` + ,`name` + ,`type` + ,`money` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{typeId} + ,#{typePath} + ,#{typeNo} + ,#{typeName} + ,#{itemId} + ,#{no} + ,#{name} + ,#{type} + ,#{money} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_cost_ticket_template_product_other_change + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`itemId` = #{itemId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`money` = #{money} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_other_change + where `id` = #{id} + + + + delete from cy_cost_ticket_template_product_other_change + ${condition} + + + + delete from cy_cost_ticket_template_product_other_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponCodeDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponCodeDetailMapper.xml new file mode 100644 index 0000000..3633d3d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponCodeDetailMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`couponId`,`couponCode`,`status`,`beginDateTime`,`endDateTime`,`storeId`,`storeName`,`storeNo`,`checkTime`,`workerNo`,`posNo`,`busNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_code_detail + + `id`,`tenantId` + ,`couponId` + ,`couponCode` + ,`status` + ,`beginDateTime` + ,`endDateTime` + ,`storeId` + ,`storeName` + ,`storeNo` + ,`checkTime` + ,`workerNo` + ,`posNo` + ,`busNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{couponId} + ,#{couponCode} + ,#{status} + ,#{beginDateTime} + ,#{endDateTime} + ,#{storeId} + ,#{storeName} + ,#{storeNo} + ,#{checkTime} + ,#{workerNo} + ,#{posNo} + ,#{busNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_code_detail + + `tenantId` = #{tenantId} + ,`couponId` = #{couponId} + ,`couponCode` = #{couponCode} + ,`status` = #{status} + ,`beginDateTime` = #{beginDateTime} + ,`endDateTime` = #{endDateTime} + ,`storeId` = #{storeId} + ,`storeName` = #{storeName} + ,`storeNo` = #{storeNo} + ,`checkTime` = #{checkTime} + ,`workerNo` = #{workerNo} + ,`posNo` = #{posNo} + ,`busNo` = #{busNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_code_detail + where `id` = #{id} + + + + delete from cy_coupon_code_detail + ${condition} + + + + delete from cy_coupon_code_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponMapper.xml new file mode 100644 index 0000000..ea792ca --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`tenantId`,`name`,`startDate`,`endDate`,`startTime`,`endTime`,`weekDays`,`validMonth`,`description`,`type`,`rule`,`allStore`,`allBrand`,`allCategory`,`allGoods`,`status`,`voucherFlag`,`putNum`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon + + `id`,`tenantId` + ,`name` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`weekDays` + ,`validMonth` + ,`description` + ,`type` + ,`rule` + ,`allStore` + ,`allBrand` + ,`allCategory` + ,`allGoods` + ,`status` + ,`voucherFlag` + ,`putNum` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{weekDays} + ,#{validMonth} + ,#{description} + ,#{type} + ,#{rule} + ,#{allStore} + ,#{allBrand} + ,#{allCategory} + ,#{allGoods} + ,#{status} + ,#{voucherFlag} + ,#{putNum} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`weekDays` = #{weekDays} + ,`validMonth` = #{validMonth} + ,`description` = #{description} + ,`type` = #{type} + ,`rule` = #{rule} + ,`allStore` = #{allStore} + ,`allBrand` = #{allBrand} + ,`allCategory` = #{allCategory} + ,`allGoods` = #{allGoods} + ,`status` = #{status} + ,`voucherFlag` = #{voucherFlag} + ,`putNum` = #{putNum} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon + where `id` = #{id} + + + + delete from cy_coupon + ${condition} + + + + delete from cy_coupon + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponStoreMapper.xml new file mode 100644 index 0000000..6302ac5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponStoreMapper.xml @@ -0,0 +1,120 @@ + + + + + + `id`,`tenantId`,`couponId`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_store + + `id`,`tenantId` + ,`couponId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{couponId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_store + + `tenantId` = #{tenantId} + ,`couponId` = #{couponId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_store + where `id` = #{id} + + + + delete from cy_coupon_store + ${condition} + + + + delete from cy_coupon_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketMapper.xml new file mode 100644 index 0000000..a7b9dc4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`startDate`,`endDate`,`startTime`,`endTime`,`weekDays`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_ticket + + `id`,`tenantId` + ,`no` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`weekDays` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{weekDays} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`weekDays` = #{weekDays} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_ticket + where `id` = #{id} + + + + delete from cy_coupon_ticket + ${condition} + + + + delete from cy_coupon_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketProductMapper.xml new file mode 100644 index 0000000..8882bdd --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketProductMapper.xml @@ -0,0 +1,136 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`specId`,`couponPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_ticket_product + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`specId` + ,`couponPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{specId} + ,#{couponPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_ticket_product + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`couponPrice` = #{couponPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_ticket_product + where `id` = #{id} + + + + delete from cy_coupon_ticket_product + ${condition} + + + + delete from cy_coupon_ticket_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketStoreMapper.xml new file mode 100644 index 0000000..2d26b9a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/CouponTicketStoreMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`storeNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_coupon_ticket_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`storeNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{storeNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_coupon_ticket_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_coupon_ticket_store + where `id` = #{id} + + + + delete from cy_coupon_ticket_store + ${condition} + + + + delete from cy_coupon_ticket_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DeliverMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DeliverMapper.xml new file mode 100644 index 0000000..5a33a55 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DeliverMapper.xml @@ -0,0 +1,129 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`isJob`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_deliver + + `id`,`tenantId` + ,`no` + ,`name` + ,`isJob` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{isJob} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_deliver + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`isJob` = #{isJob} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_deliver + where `id` = #{id} + + + + delete from cy_deliver + ${condition} + + + + delete from cy_deliver + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + INSERT INTO cy_deliver_store (`tenantId`,`deliverId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + DELETE FROM cy_deliver_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DfsFileMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DfsFileMapper.xml new file mode 100644 index 0000000..5300ca8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DfsFileMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`name`,`mimeType`,`suffix`,`length`,`isImage`,`width`,`height`,`type`,`groupName`,`fileName`,`useCount`,`deleteCount`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_dfs_file + + `id`,`tenantId` + ,`name` + ,`mimeType` + ,`suffix` + ,`length` + ,`isImage` + ,`width` + ,`height` + ,`type` + ,`groupName` + ,`fileName` + ,`useCount` + ,`deleteCount` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{mimeType} + ,#{suffix} + ,#{length} + ,#{isImage} + ,#{width} + ,#{height} + ,#{type} + ,#{groupName} + ,#{fileName} + ,#{useCount} + ,#{deleteCount} + ,#{createUser} + ,#{createDate} + + + + + update shared_dfs_file + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`mimeType` = #{mimeType} + ,`suffix` = #{suffix} + ,`length` = #{length} + ,`isImage` = #{isImage} + ,`width` = #{width} + ,`height` = #{height} + ,`type` = #{type} + ,`groupName` = #{groupName} + ,`fileName` = #{fileName} + ,`useCount` = #{useCount} + ,`deleteCount` = #{deleteCount} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_dfs_file + where `id` = #{id} + + + + delete from shared_dfs_file + ${condition} + + + + delete from shared_dfs_file + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + update shared_dfs_file set `useCount` = `useCount` + 1 ,`modifyUser` = + #{modifyUser} ,`modifyDate` = now() where `tenantId` = #{tenantId} and + `groupName` = #{groupName} and `fileName` = #{fileName} + + + + + update shared_dfs_file set `deleteCount` = `deleteCount` + 1 ,`modifyUser` = + #{modifyUser} ,`modifyDate` = now() where `tenantId` = #{tenantId} and + `groupName` = #{groupName} and `fileName` = #{fileName} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanMapper.xml new file mode 100644 index 0000000..e69a440 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanMapper.xml @@ -0,0 +1,151 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`balanceMode`,`creditType`,`advanceType`,`advanceValue`,`wxdcFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_settle_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`balanceMode` + ,`creditType` + ,`advanceType` + ,`advanceValue` + ,`wxdcFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{balanceMode} + ,#{creditType} + ,#{advanceType} + ,#{advanceValue} + ,#{wxdcFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_dispatch_settle_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`balanceMode` = #{balanceMode} + ,`creditType` = #{creditType} + ,`advanceType` = #{advanceType} + ,`advanceValue` = #{advanceValue} + ,`wxdcFlag` = #{wxdcFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan + ${condition} + + + + delete from cy_dispatch_settle_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + insert into cy_dispatch_settle_plan_store (`tenantId`,`storeId`,`planId`) values (#{tenantId},#{storeId},#{id}) + + + + + + delete from cy_dispatch_settle_plan_store + where `planId` = #{id} + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanPayModeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanPayModeMapper.xml new file mode 100644 index 0000000..645d88b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchSettlePlanPayModeMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`planId`,`no`,`name`,`incomeFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_settle_plan_pay_mode + + `id`,`tenantId` + ,`planId` + ,`no` + ,`name` + ,`incomeFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{no} + ,#{name} + ,#{incomeFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_settle_plan_pay_mode + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`no` = #{no} + ,`name` = #{name} + ,`incomeFlag` = #{incomeFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan_pay_mode + where `id` = #{id} + + + + delete from cy_dispatch_settle_plan_pay_mode + ${condition} + + + + delete from cy_dispatch_settle_plan_pay_mode + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_dispatch_settle_plan_pay_mode + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketDetailMapper.xml new file mode 100644 index 0000000..6e26ef7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketDetailMapper.xml @@ -0,0 +1,216 @@ + + + + + + `id`,`tenantId`,`dispatchId`,`dispatchNo`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`askgoodsAmount`,`dispatchAmount`,`dispatchUnitId`,`dispatchUnitName`,`price`,`money`,`description`,`packUnitId`,`packUnitName`,`dpScale`,`receiveAmount`,`differenceAmount`,`differenceMoney`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_ticket_detail + + `id`,`tenantId` + ,`dispatchId` + ,`dispatchNo` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`askgoodsAmount` + ,`dispatchAmount` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`price` + ,`money` + ,`description` + ,`packUnitId` + ,`packUnitName` + ,`dpScale` + ,`receiveAmount` + ,`differenceAmount` + ,`differenceMoney` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{dispatchId} + ,#{dispatchNo} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{askgoodsAmount} + ,#{dispatchAmount} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{price} + ,#{money} + ,#{description} + ,#{packUnitId} + ,#{packUnitName} + ,#{dpScale} + ,#{receiveAmount} + ,#{differenceAmount} + ,#{differenceMoney} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_ticket_detail + + `tenantId` = #{tenantId} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`askgoodsAmount` = #{askgoodsAmount} + ,`dispatchAmount` = #{dispatchAmount} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`dpScale` = #{dpScale} + ,`receiveAmount` = #{receiveAmount} + ,`differenceAmount` = #{differenceAmount} + ,`differenceMoney` = #{differenceMoney} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_ticket_detail + where `id` = #{id} + + + + delete from cy_dispatch_ticket_detail + ${condition} + + + + delete from cy_dispatch_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketLogMapper.xml new file mode 100644 index 0000000..77c584e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`dispatchId`,`dispatchNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_ticket_log + + `id`,`tenantId` + ,`dispatchId` + ,`dispatchNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{dispatchId} + ,#{dispatchNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_ticket_log + + `tenantId` = #{tenantId} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_ticket_log + where `id` = #{id} + + + + delete from cy_dispatch_ticket_log + ${condition} + + + + delete from cy_dispatch_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketMapper.xml new file mode 100644 index 0000000..02d0bff --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchTicketMapper.xml @@ -0,0 +1,199 @@ + + + + + + `id`,`tenantId`,`askgoodsId`,`askgoodsNo`,`storeId`,`no`,`status`,`isUse`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`deliveryDate`,`arrivalDate`,`address`,`linkMan`,`linkTelephone`,`logisticsNo`,`logisticsName`,`logisticsFee`,`orderMoney`,`otherFee`,`money`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatch_ticket + + `id`,`tenantId` + ,`askgoodsId` + ,`askgoodsNo` + ,`storeId` + ,`no` + ,`status` + ,`isUse` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`deliveryDate` + ,`arrivalDate` + ,`address` + ,`linkMan` + ,`linkTelephone` + ,`logisticsNo` + ,`logisticsName` + ,`logisticsFee` + ,`orderMoney` + ,`otherFee` + ,`money` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{askgoodsId} + ,#{askgoodsNo} + ,#{storeId} + ,#{no} + ,#{status} + ,#{isUse} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{deliveryDate} + ,#{arrivalDate} + ,#{address} + ,#{linkMan} + ,#{linkTelephone} + ,#{logisticsNo} + ,#{logisticsName} + ,#{logisticsFee} + ,#{orderMoney} + ,#{otherFee} + ,#{money} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatch_ticket + + `tenantId` = #{tenantId} + ,`askgoodsId` = #{askgoodsId} + ,`askgoodsNo` = #{askgoodsNo} + ,`storeId` = #{storeId} + ,`no` = #{no} + ,`status` = #{status} + ,`isUse` = #{isUse} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`deliveryDate` = #{deliveryDate} + ,`arrivalDate` = #{arrivalDate} + ,`address` = #{address} + ,`linkMan` = #{linkMan} + ,`linkTelephone` = #{linkTelephone} + ,`logisticsNo` = #{logisticsNo} + ,`logisticsName` = #{logisticsName} + ,`logisticsFee` = #{logisticsFee} + ,`orderMoney` = #{orderMoney} + ,`otherFee` = #{otherFee} + ,`money` = #{money} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatch_ticket + where `id` = #{id} + + + + delete from cy_dispatch_ticket + ${condition} + + + + delete from cy_dispatch_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMapper.xml new file mode 100644 index 0000000..54948ab --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`makeUser`,`makeDate`,`checkUser`,`checkDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatchprice_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`makeUser` + ,`makeDate` + ,`checkUser` + ,`checkDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{makeUser} + ,#{makeDate} + ,#{checkUser} + ,#{checkDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatchprice_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`makeUser` = #{makeUser} + ,`makeDate` = #{makeDate} + ,`checkUser` = #{checkUser} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket + ${condition} + + + + delete from cy_dispatchprice_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMaterialMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMaterialMapper.xml new file mode 100644 index 0000000..63e67fa --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketMaterialMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`hdispatchPrice`,`dispatchPrice`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatchprice_ticket_material + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`hdispatchPrice` + ,`dispatchPrice` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{hdispatchPrice} + ,#{dispatchPrice} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatchprice_ticket_material + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`hdispatchPrice` = #{hdispatchPrice} + ,`dispatchPrice` = #{dispatchPrice} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_material + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_material + ${condition} + + + + delete from cy_dispatchprice_ticket_material + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketStoreMapper.xml new file mode 100644 index 0000000..d5c1814 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/DispatchpriceTicketStoreMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storeId`,`storeNo`,`storeName`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_dispatchprice_ticket_store + + `id`,`tenantId` + ,`ticketId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createDate} + ,#{createUser} + + + + + update cy_dispatchprice_ticket_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_store + where `id` = #{id} + + + + delete from cy_dispatchprice_ticket_store + ${condition} + + + + delete from cy_dispatchprice_ticket_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeCategoryFoodMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeCategoryFoodMapper.xml new file mode 100644 index 0000000..c3e9531 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeCategoryFoodMapper.xml @@ -0,0 +1,169 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryId`,`foodId`,`foodName`,`description`,`isValid`,`specId`,`specName`,`price`,`packingFee`,`isBind`,`erpProductId`,`erpProduct`,`erpSpecId`,`erpSpec`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_category_food + + `id`,`tenantId` + ,`storeId` + ,`categoryId` + ,`foodId` + ,`foodName` + ,`description` + ,`isValid` + ,`specId` + ,`specName` + ,`price` + ,`packingFee` + ,`isBind` + ,`erpProductId` + ,`erpProduct` + ,`erpSpecId` + ,`erpSpec` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryId} + ,#{foodId} + ,#{foodName} + ,#{description} + ,#{isValid} + ,#{specId} + ,#{specName} + ,#{price} + ,#{packingFee} + ,#{isBind} + ,#{erpProductId} + ,#{erpProduct} + ,#{erpSpecId} + ,#{erpSpec} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_category_food + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryId` = #{categoryId} + ,`foodId` = #{foodId} + ,`foodName` = #{foodName} + ,`description` = #{description} + ,`isValid` = #{isValid} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`price` = #{price} + ,`packingFee` = #{packingFee} + ,`isBind` = #{isBind} + + ,`erpProductId` = #{erpProductId} + ,`erpProductId` = NULL + + + ,`erpProduct` = #{erpProduct} + ,`erpProduct` = NULL + + + ,`erpSpecId` = #{erpSpecId} + ,`erpSpecId` = NULL + + + ,`erpSpec` = #{erpSpec} + ,`erpSpec` = NULL + + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_category_food + where `id` = #{id} + + + + delete from cy_eleme_category_food + ${condition} + + + + delete from cy_eleme_category_food + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeFoodCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeFoodCategoryMapper.xml new file mode 100644 index 0000000..c5d46d3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeFoodCategoryMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryId`,`name`,`isValid`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_food_category + + `id`,`tenantId` + ,`storeId` + ,`categoryId` + ,`name` + ,`isValid` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryId} + ,#{name} + ,#{isValid} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_food_category + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryId` = #{categoryId} + ,`name` = #{name} + ,`isValid` = #{isValid} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_food_category + where `id` = #{id} + + + + delete from cy_eleme_food_category + ${condition} + + + + delete from cy_eleme_food_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailGroupMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailGroupMapper.xml new file mode 100644 index 0000000..80d1244 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailGroupMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`orderId`,`groupName`,`groupType`,`specId`,`skuId`,`categoryId`,`name`,`price`,`quantity`,`total`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_order_detail_group + + `id`,`tenantId` + ,`orderId` + ,`groupName` + ,`groupType` + ,`specId` + ,`skuId` + ,`categoryId` + ,`name` + ,`price` + ,`quantity` + ,`total` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{groupName} + ,#{groupType} + ,#{specId} + ,#{skuId} + ,#{categoryId} + ,#{name} + ,#{price} + ,#{quantity} + ,#{total} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_order_detail_group + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`groupName` = #{groupName} + ,`groupType` = #{groupType} + ,`specId` = #{specId} + ,`skuId` = #{skuId} + ,`categoryId` = #{categoryId} + ,`name` = #{name} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`total` = #{total} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_order_detail_group + where `id` = #{id} + + + + delete from cy_eleme_order_detail_group + ${condition} + + + + delete from cy_eleme_order_detail_group + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailMapper.xml new file mode 100644 index 0000000..73dc70f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ElemeOrderDetailMapper.xml @@ -0,0 +1,214 @@ + + + + + + `id`,`tenantId`,`message`,`storeId`,`orderId`,`address`,`createdAt`,`activeAt`,`deliverFee`,`deliverTime`,`description`,`invoice`,`isBook`,`isOnlinePaid`,`phoneList`,`shopId`,`shopName`,`daySn`,`status`,`refundStatus`,`userId`,`totalPrice`,`originalPrice`,`consignee`,`deliveryGeo`,`deliveryPoiAddress`,`invoiced`,`income`,`serviceRate`,`serviceFee`,`hongbao`,`packageFee`,`activityTotal`,`shopPart`,`elemePart`,`downgraded`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_eleme_order_detail + + `id`,`tenantId` + ,`message` + ,`storeId` + ,`orderId` + ,`address` + ,`createdAt` + ,`activeAt` + ,`deliverFee` + ,`deliverTime` + ,`description` + ,`invoice` + ,`isBook` + ,`isOnlinePaid` + ,`phoneList` + ,`shopId` + ,`shopName` + ,`daySn` + ,`status` + ,`refundStatus` + ,`userId` + ,`totalPrice` + ,`originalPrice` + ,`consignee` + ,`deliveryGeo` + ,`deliveryPoiAddress` + ,`invoiced` + ,`income` + ,`serviceRate` + ,`serviceFee` + ,`hongbao` + ,`packageFee` + ,`activityTotal` + ,`shopPart` + ,`elemePart` + ,`downgraded` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{storeId} + ,#{orderId} + ,#{address} + ,#{createdAt} + ,#{activeAt} + ,#{deliverFee} + ,#{deliverTime} + ,#{description} + ,#{invoice} + ,#{isBook} + ,#{isOnlinePaid} + ,#{phoneList} + ,#{shopId} + ,#{shopName} + ,#{daySn} + ,#{status} + ,#{refundStatus} + ,#{userId} + ,#{totalPrice} + ,#{originalPrice} + ,#{consignee} + ,#{deliveryGeo} + ,#{deliveryPoiAddress} + ,#{invoiced} + ,#{income} + ,#{serviceRate} + ,#{serviceFee} + ,#{hongbao} + ,#{packageFee} + ,#{activityTotal} + ,#{shopPart} + ,#{elemePart} + ,#{downgraded} + ,#{createUser} + ,#{createDate} + + + + + update cy_eleme_order_detail + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`storeId` = #{storeId} + ,`orderId` = #{orderId} + ,`address` = #{address} + ,`createdAt` = #{createdAt} + ,`activeAt` = #{activeAt} + ,`deliverFee` = #{deliverFee} + ,`deliverTime` = #{deliverTime} + ,`description` = #{description} + ,`invoice` = #{invoice} + ,`isBook` = #{isBook} + ,`isOnlinePaid` = #{isOnlinePaid} + ,`phoneList` = #{phoneList} + ,`shopId` = #{shopId} + ,`shopName` = #{shopName} + ,`daySn` = #{daySn} + ,`status` = #{status} + ,`refundStatus` = #{refundStatus} + ,`userId` = #{userId} + ,`totalPrice` = #{totalPrice} + ,`originalPrice` = #{originalPrice} + ,`consignee` = #{consignee} + ,`deliveryGeo` = #{deliveryGeo} + ,`deliveryPoiAddress` = #{deliveryPoiAddress} + ,`invoiced` = #{invoiced} + ,`income` = #{income} + ,`serviceRate` = #{serviceRate} + ,`serviceFee` = #{serviceFee} + ,`hongbao` = #{hongbao} + ,`packageFee` = #{packageFee} + ,`activityTotal` = #{activityTotal} + ,`shopPart` = #{shopPart} + ,`elemePart` = #{elemePart} + ,`downgraded` = #{downgraded} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_eleme_order_detail + where `id` = #{id} + + + + delete from cy_eleme_order_detail + ${condition} + + + + delete from cy_eleme_order_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ErpPosSetMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ErpPosSetMapper.xml new file mode 100644 index 0000000..ce04296 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ErpPosSetMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`storeId`,`posNo`,`pbody`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_erp_pos_set + + `id`,`tenantId` + ,`storeId` + ,`posNo` + ,`pbody` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{posNo} + ,#{pbody} + ,#{createDate} + ,#{createUser} + + + + + update cy_erp_pos_set + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`posNo` = #{posNo} + ,`pbody` = #{pbody} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_erp_pos_set + where `id` = #{id} + + + + delete from cy_erp_pos_set + ${condition} + + + + delete from cy_erp_pos_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/FeeItemMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/FeeItemMapper.xml new file mode 100644 index 0000000..796ed8c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/FeeItemMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`name`,`type`,`enabled`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_fee_item + + `id`,`tenantId` + ,`name` + ,`type` + ,`enabled` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{type} + ,#{enabled} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_fee_item + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`type` = #{type} + ,`enabled` = #{enabled} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_fee_item + where `id` = #{id} + + + + delete from cy_fee_item + ${condition} + + + + delete from cy_fee_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/KdsPlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/KdsPlanMapper.xml new file mode 100644 index 0000000..09cc1a6 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/KdsPlanMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_kds_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_kds_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_kds_plan + where `id` = #{id} + + + + delete from cy_kds_plan + ${condition} + + + + delete from cy_kds_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + insert into cy_kds_plan_store (`tenantId`,`planId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + DELETE FROM cy_kds_plan_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/KitPlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/KitPlanMapper.xml new file mode 100644 index 0000000..7a7db76 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/KitPlanMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`type`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_kit_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`type` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{type} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + + insert into cy_kit_plan_store (`tenantId`,`planId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + update cy_kit_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_kit_plan + where `id` = #{id} + + + + delete from cy_kit_plan + ${condition} + + + + delete from cy_kit_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + DELETE FROM cy_kit_plan_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeBurdenMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeBurdenMapper.xml new file mode 100644 index 0000000..e572a4e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeBurdenMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`makeId`,`burdenProductId`,`burdenSpecId`,`salesUnitId`,`salesAmount`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_make_burden + + `id`,`tenantId` + ,`makeId` + ,`burdenProductId` + ,`burdenSpecId` + ,`salesUnitId` + ,`salesAmount` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{makeId} + ,#{burdenProductId} + ,#{burdenSpecId} + ,#{salesUnitId} + ,#{salesAmount} + ,#{createDate} + ,#{createUser} + + + + + update cy_make_burden + + `tenantId` = #{tenantId} + ,`makeId` = #{makeId} + ,`burdenProductId` = #{burdenProductId} + ,`burdenSpecId` = #{burdenSpecId} + ,`salesUnitId` = #{salesUnitId} + ,`salesAmount` = #{salesAmount} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_make_burden + where `id` = #{id} + + + + delete from cy_make_burden + ${condition} + + + + delete from cy_make_burden + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeDetailMapper.xml new file mode 100644 index 0000000..e73987e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeDetailMapper.xml @@ -0,0 +1,198 @@ + + + + + + `id`,`tenantId`,`no`,`typeId`,`description`,`spell`,`addPrice`,`qtyFlag`,`orderNo`,`color`,`prvFlag`,`deleteFlag`,`noType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_make_detail + + `id`,`tenantId` + ,`no` + ,`typeId` + ,`description` + ,`spell` + ,`addPrice` + ,`qtyFlag` + ,`orderNo` + ,`color` + ,`prvFlag` + ,`deleteFlag` + ,`noType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{typeId} + ,#{description} + ,#{spell} + ,#{addPrice} + ,#{qtyFlag} + ,#{orderNo} + ,#{color} + ,#{prvFlag} + ,#{deleteFlag} + ,#{noType} + ,#{createDate} + ,#{createUser} + + + + + update cy_make_detail + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`typeId` = #{typeId} + ,`description` = #{description} + ,`spell` = #{spell} + ,`addPrice` = #{addPrice} + ,`qtyFlag` = #{qtyFlag} + ,`orderNo` = #{orderNo} + ,`color` = #{color} + ,`prvFlag` = #{prvFlag} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_make_detail + where `id` = #{id} + + + + delete from cy_make_detail + ${condition} + + + + delete from cy_make_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_make_detail + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + delete from cy_product_make + ${condition} + + + + insert into cy_product_make (`tenantId`,`productId`,`makeId`) + values (#{tenantId}, #{productId}, #{makeId}) + + + + delete from cy_product_make_store + ${condition} + + + + insert into cy_product_make_store (`tenantId`,`storeId`,`makeId`,`addPrice`) + values (#{tenantId}, #{storeId}, #{makeId}, #{addPrice}) + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeTypeMapper.xml new file mode 100644 index 0000000..eb2d320 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MakeTypeMapper.xml @@ -0,0 +1,141 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`isRadio`,`type`,`seqNo`,`color`,`deleteFlag`,`noType`,`isMust`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_make_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`isRadio` + ,`type` + ,`seqNo` + ,`color` + ,`deleteFlag` + ,`noType` + ,`isMust` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{isRadio} + ,#{type} + ,#{seqNo} + ,#{color} + ,#{deleteFlag} + ,#{noType} + ,#{isMust} + ,#{createDate} + ,#{createUser} + + + + + update cy_make_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`isRadio` = #{isRadio} + ,`type` = #{type} + ,`seqNo` = #{seqNo} + ,`color` = #{color} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`isMust` = #{isMust} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_make_type + where `id` = #{id} + + + + delete from cy_make_type + ${condition} + + + + delete from cy_make_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_make_type + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanFoodCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanFoodCategoryMapper.xml new file mode 100644 index 0000000..d4d9e6d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanFoodCategoryMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`storeId`,`name`,`sequence`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_food_category + + `id`,`tenantId` + ,`storeId` + ,`name` + ,`sequence` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{name} + ,#{sequence} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_food_category + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`name` = #{name} + ,`sequence` = #{sequence} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_food_category + where `id` = #{id} + + + + delete from cy_meituan_food_category + ${condition} + + + + delete from cy_meituan_food_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanFoodMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanFoodMapper.xml new file mode 100644 index 0000000..2a164a7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanFoodMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`tenantId`,`storeId`,`categoryName`,`dishId`,`dishName`,`dishSkuId`,`spec`,`description`,`price`,`boxNum`,`boxPrice`,`isBind`,`erpProductId`,`erpProduct`,`erpSpecId`,`erpSpec`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_food + + `id`,`tenantId` + ,`storeId` + ,`categoryName` + ,`dishId` + ,`dishName` + ,`dishSkuId` + ,`spec` + ,`description` + ,`price` + ,`boxNum` + ,`boxPrice` + ,`isBind` + ,`erpProductId` + ,`erpProduct` + ,`erpSpecId` + ,`erpSpec` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{categoryName} + ,#{dishId} + ,#{dishName} + ,#{dishSkuId} + ,#{spec} + ,#{description} + ,#{price} + ,#{boxNum} + ,#{boxPrice} + ,#{isBind} + ,#{erpProductId} + ,#{erpProduct} + ,#{erpSpecId} + ,#{erpSpec} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_food + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`categoryName` = #{categoryName} + ,`dishId` = #{dishId} + ,`dishName` = #{dishName} + ,`dishSkuId` = #{dishSkuId} + ,`spec` = #{spec} + ,`description` = #{description} + ,`price` = #{price} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`isBind` = #{isBind} + + ,`erpProductId` = #{erpProductId} + ,`erpProductId` = NULL + + + ,`erpProduct` = #{erpProduct} + ,`erpProduct` = NULL + + + ,`erpSpecId` = #{erpSpecId} + ,`erpSpecId` = NULL + + + ,`erpSpec` = #{erpSpec} + ,`erpSpec` = NULL + + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_food + where `id` = #{id} + + + + delete from cy_meituan_food + ${condition} + + + + delete from cy_meituan_food + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderExtraMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderExtraMapper.xml new file mode 100644 index 0000000..96712a5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderExtraMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`orderId`,`mtCharge`,`poiCharge`,`reduceFee`,`remark`,`type`,`actDetailId`,`avgSendTime`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_order_extra + + `id`,`tenantId` + ,`orderId` + ,`mtCharge` + ,`poiCharge` + ,`reduceFee` + ,`remark` + ,`type` + ,`actDetailId` + ,`avgSendTime` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{mtCharge} + ,#{poiCharge} + ,#{reduceFee} + ,#{remark} + ,#{type} + ,#{actDetailId} + ,#{avgSendTime} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_order_extra + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`mtCharge` = #{mtCharge} + ,`poiCharge` = #{poiCharge} + ,`reduceFee` = #{reduceFee} + ,`remark` = #{remark} + ,`type` = #{type} + ,`actDetailId` = #{actDetailId} + ,`avgSendTime` = #{avgSendTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_order_extra + where `id` = #{id} + + + + delete from cy_meituan_order_extra + ${condition} + + + + delete from cy_meituan_order_extra + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderItemMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderItemMapper.xml new file mode 100644 index 0000000..525ec08 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderItemMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`orderId`,`eDishCode`,`boxNum`,`boxPrice`,`dishName`,`price`,`skuId`,`quantity`,`unit`,`discount`,`spec`,`property`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_order_item + + `id`,`tenantId` + ,`orderId` + ,`eDishCode` + ,`boxNum` + ,`boxPrice` + ,`dishName` + ,`price` + ,`skuId` + ,`quantity` + ,`unit` + ,`discount` + ,`spec` + ,`property` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{eDishCode} + ,#{boxNum} + ,#{boxPrice} + ,#{dishName} + ,#{price} + ,#{skuId} + ,#{quantity} + ,#{unit} + ,#{discount} + ,#{spec} + ,#{property} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_order_item + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`eDishCode` = #{eDishCode} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`dishName` = #{dishName} + ,`price` = #{price} + ,`skuId` = #{skuId} + ,`quantity` = #{quantity} + ,`unit` = #{unit} + ,`discount` = #{discount} + ,`spec` = #{spec} + ,`property` = #{property} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_order_item + where `id` = #{id} + + + + delete from cy_meituan_order_item + ${condition} + + + + delete from cy_meituan_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderMapper.xml new file mode 100644 index 0000000..77bb212 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/MeituanOrderMapper.xml @@ -0,0 +1,266 @@ + + + + + + `id`,`tenantId`,`message`,`storeId`,`orderId`,`cTime`,`caution`,`deliveryTime`,`detail`,`cityId`,`extras`,`hasInvoiced`,`invoiceTitle`,`isPre`,`isThirdShipping`,`latitude`,`longitude`,`poiReceiveDetail`,`logisticsCode`,`logisticsCompletedTime`,`logisticsConfirmTime`,`logisticsDispatcherMobile`,`logisticsDispatcherName`,`logisticsFetchTime`,`logisticsId`,`logisticsName`,`logisticsSendTime`,`logisticsStatus`,`orderCompletedTime`,`orderConfirmTime`,`orderCancelTime`,`orderIdView`,`orderSendTime`,`originalPrice`,`payType`,`pickType`,`poiAddress`,`poiId`,`poiName`,`poiPhone`,`recipientAddress`,`recipientName`,`recipientPhone`,`shipperPhone`,`shippingFee`,`status`,`total`,`uTime`,`daySeq`,`dinnersNumber`,`cancelReason`,`cancelReasonCode`,`refundReason`,`foodShareFeeChargeByPoi`,`wmPoiReceiveCent`,`refundReasonCode`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_meituan_order + + `id`,`tenantId` + ,`message` + ,`storeId` + ,`orderId` + ,`cTime` + ,`caution` + ,`deliveryTime` + ,`detail` + ,`cityId` + ,`extras` + ,`hasInvoiced` + ,`invoiceTitle` + ,`isPre` + ,`isThirdShipping` + ,`latitude` + ,`longitude` + ,`poiReceiveDetail` + ,`logisticsCode` + ,`logisticsCompletedTime` + ,`logisticsConfirmTime` + ,`logisticsDispatcherMobile` + ,`logisticsDispatcherName` + ,`logisticsFetchTime` + ,`logisticsId` + ,`logisticsName` + ,`logisticsSendTime` + ,`logisticsStatus` + ,`orderCompletedTime` + ,`orderConfirmTime` + ,`orderCancelTime` + ,`orderIdView` + ,`orderSendTime` + ,`originalPrice` + ,`payType` + ,`pickType` + ,`poiAddress` + ,`poiId` + ,`poiName` + ,`poiPhone` + ,`recipientAddress` + ,`recipientName` + ,`recipientPhone` + ,`shipperPhone` + ,`shippingFee` + ,`status` + ,`total` + ,`uTime` + ,`daySeq` + ,`dinnersNumber` + ,`cancelReason` + ,`cancelReasonCode` + ,`refundReason` + ,`foodShareFeeChargeByPoi` + ,`wmPoiReceiveCent` + ,`refundReasonCode` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{storeId} + ,#{orderId} + ,#{cTime} + ,#{caution} + ,#{deliveryTime} + ,#{detail} + ,#{cityId} + ,#{extras} + ,#{hasInvoiced} + ,#{invoiceTitle} + ,#{isPre} + ,#{isThirdShipping} + ,#{latitude} + ,#{longitude} + ,#{poiReceiveDetail} + ,#{logisticsCode} + ,#{logisticsCompletedTime} + ,#{logisticsConfirmTime} + ,#{logisticsDispatcherMobile} + ,#{logisticsDispatcherName} + ,#{logisticsFetchTime} + ,#{logisticsId} + ,#{logisticsName} + ,#{logisticsSendTime} + ,#{logisticsStatus} + ,#{orderCompletedTime} + ,#{orderConfirmTime} + ,#{orderCancelTime} + ,#{orderIdView} + ,#{orderSendTime} + ,#{originalPrice} + ,#{payType} + ,#{pickType} + ,#{poiAddress} + ,#{poiId} + ,#{poiName} + ,#{poiPhone} + ,#{recipientAddress} + ,#{recipientName} + ,#{recipientPhone} + ,#{shipperPhone} + ,#{shippingFee} + ,#{status} + ,#{total} + ,#{uTime} + ,#{daySeq} + ,#{dinnersNumber} + ,#{cancelReason} + ,#{cancelReasonCode} + ,#{refundReason} + ,#{foodShareFeeChargeByPoi} + ,#{wmPoiReceiveCent} + ,#{refundReasonCode} + ,#{createUser} + ,#{createDate} + + + + + update cy_meituan_order + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`storeId` = #{storeId} + ,`orderId` = #{orderId} + ,`cTime` = #{cTime} + ,`caution` = #{caution} + ,`deliveryTime` = #{deliveryTime} + ,`detail` = #{detail} + ,`cityId` = #{cityId} + ,`extras` = #{extras} + ,`hasInvoiced` = #{hasInvoiced} + ,`invoiceTitle` = #{invoiceTitle} + ,`isPre` = #{isPre} + ,`isThirdShipping` = #{isThirdShipping} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`poiReceiveDetail` = #{poiReceiveDetail} + ,`logisticsCode` = #{logisticsCode} + ,`logisticsCompletedTime` = #{logisticsCompletedTime} + ,`logisticsConfirmTime` = #{logisticsConfirmTime} + ,`logisticsDispatcherMobile` = #{logisticsDispatcherMobile} + ,`logisticsDispatcherName` = #{logisticsDispatcherName} + ,`logisticsFetchTime` = #{logisticsFetchTime} + ,`logisticsId` = #{logisticsId} + ,`logisticsName` = #{logisticsName} + ,`logisticsSendTime` = #{logisticsSendTime} + ,`logisticsStatus` = #{logisticsStatus} + ,`orderCompletedTime` = #{orderCompletedTime} + ,`orderConfirmTime` = #{orderConfirmTime} + ,`orderCancelTime` = #{orderCancelTime} + ,`orderIdView` = #{orderIdView} + ,`orderSendTime` = #{orderSendTime} + ,`originalPrice` = #{originalPrice} + ,`payType` = #{payType} + ,`pickType` = #{pickType} + ,`poiAddress` = #{poiAddress} + ,`poiId` = #{poiId} + ,`poiName` = #{poiName} + ,`poiPhone` = #{poiPhone} + ,`recipientAddress` = #{recipientAddress} + ,`recipientName` = #{recipientName} + ,`recipientPhone` = #{recipientPhone} + ,`shipperPhone` = #{shipperPhone} + ,`shippingFee` = #{shippingFee} + ,`status` = #{status} + ,`total` = #{total} + ,`uTime` = #{uTime} + ,`daySeq` = #{daySeq} + ,`dinnersNumber` = #{dinnersNumber} + ,`cancelReason` = #{cancelReason} + ,`cancelReasonCode` = #{cancelReasonCode} + ,`refundReason` = #{refundReason} + ,`foodShareFeeChargeByPoi` = #{foodShareFeeChargeByPoi} + ,`wmPoiReceiveCent` = #{wmPoiReceiveCent} + ,`refundReasonCode` = #{refundReasonCode} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_meituan_order + where `id` = #{id} + + + + delete from cy_meituan_order + ${condition} + + + + delete from cy_meituan_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketDetailMapper.xml new file mode 100644 index 0000000..5e5e85b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketDetailMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_out_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_out_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_detail + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_detail + ${condition} + + + + delete from cy_other_storage_out_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketLogMapper.xml new file mode 100644 index 0000000..be1e787 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_out_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_other_storage_out_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_log + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket_log + ${condition} + + + + delete from cy_other_storage_out_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketMapper.xml new file mode 100644 index 0000000..025ad20 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageOutTicketMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`no`,`type`,`storageId`,`storageName`,`description`,`status`,`stockMan`,`linkMan`,`linkTelephone`,`logisticsNo`,`logisticsName`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_out_ticket + + `id`,`tenantId` + ,`no` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`stockMan` + ,`linkMan` + ,`linkTelephone` + ,`logisticsNo` + ,`logisticsName` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{stockMan} + ,#{linkMan} + ,#{linkTelephone} + ,#{logisticsNo} + ,#{logisticsName} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_out_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`stockMan` = #{stockMan} + ,`linkMan` = #{linkMan} + ,`linkTelephone` = #{linkTelephone} + ,`logisticsNo` = #{logisticsNo} + ,`logisticsName` = #{logisticsName} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket + where `id` = #{id} + + + + delete from cy_other_storage_out_ticket + ${condition} + + + + delete from cy_other_storage_out_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketDetailMapper.xml new file mode 100644 index 0000000..18254c7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketDetailMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`batchNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`stockAmount`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`batchNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`stockAmount` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{batchNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{stockAmount} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`batchNo` = #{batchNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`stockAmount` = #{stockAmount} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_ticket_detail + where `id` = #{id} + + + + delete from cy_other_storage_ticket_detail + ${condition} + + + + delete from cy_other_storage_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketLogMapper.xml new file mode 100644 index 0000000..6fc3086 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_other_storage_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_other_storage_ticket_log + where `id` = #{id} + + + + delete from cy_other_storage_ticket_log + ${condition} + + + + delete from cy_other_storage_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketMapper.xml new file mode 100644 index 0000000..28b355e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/OtherStorageTicketMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`no`,`type`,`storageId`,`storageName`,`description`,`status`,`stockMan`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_other_storage_ticket + + `id`,`tenantId` + ,`no` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`stockMan` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{stockMan} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_other_storage_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`stockMan` = #{stockMan} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_other_storage_ticket + where `id` = #{id} + + + + delete from cy_other_storage_ticket + ${condition} + + + + delete from cy_other_storage_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayModeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayModeMapper.xml new file mode 100644 index 0000000..6f89346 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayModeMapper.xml @@ -0,0 +1,191 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`typeId`,`shortcut`,`pointFlag`,`frontFlag`,`rechargeFlag`,`fixeAmount`,`discount`,`otherRateType`,`otherRateValue`,`incomeFlag`,`deleteFlag`,`otherNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pay_mode + + `id`,`tenantId` + ,`no` + ,`name` + ,`typeId` + ,`shortcut` + ,`pointFlag` + ,`frontFlag` + ,`rechargeFlag` + ,`fixeAmount` + ,`discount` + ,`otherRateType` + ,`otherRateValue` + ,`incomeFlag` + ,`deleteFlag` + ,`otherNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{typeId} + ,#{shortcut} + ,#{pointFlag} + ,#{frontFlag} + ,#{rechargeFlag} + ,#{fixeAmount} + ,#{discount} + ,#{otherRateType} + ,#{otherRateValue} + ,#{incomeFlag} + ,#{deleteFlag} + ,#{otherNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_pay_mode + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`typeId` = #{typeId} + ,`shortcut` = #{shortcut} + ,`pointFlag` = #{pointFlag} + ,`frontFlag` = #{frontFlag} + ,`rechargeFlag` = #{rechargeFlag} + ,`fixeAmount` = #{fixeAmount} + ,`discount` = #{discount} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`incomeFlag` = #{incomeFlag} + ,`deleteFlag` = #{deleteFlag} + ,`otherNo` = #{otherNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pay_mode + where `id` = #{id} + + + + delete from cy_pay_mode + ${condition} + + + + delete from cy_pay_mode + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + delete from cy_pay_mode_store + ${condition} + + + + insert into cy_pay_mode_store (tenantId,storeId,modeId,shortcut,pointFlag,frontFlag,fixeAmount,discount,otherRateType,otherRateValue,periodDiscount) + values (#{tenantId},#{storeId},#{modeId},#{shortcut},#{pointFlag},#{frontFlag},#{fixeAmount},#{discount},#{otherRateType},#{otherRateValue},#{periodDiscount}) + + + + + + + + + + update cy_pay_mode + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayModeStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayModeStoreMapper.xml new file mode 100644 index 0000000..dcb44e3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayModeStoreMapper.xml @@ -0,0 +1,143 @@ + + + + + + `tenantId`,`storeId`,`modeId`,`shortcut`,`pointFlag`,`frontFlag`,`fixeAmount`,`discount`,`otherRateType`,`otherRateValue`,`periodDiscount` + + + + + + + + + + + + + + + + + + + + insert into cy_pay_mode_store + + `tenantId` + ,`storeId` + ,`modeId` + ,`shortcut` + ,`pointFlag` + ,`frontFlag` + ,`fixeAmount` + ,`discount` + ,`otherRateType` + ,`otherRateValue` + ,`periodDiscount` + + + #{tenantId} + ,#{storeId} + ,#{modeId} + ,#{shortcut} + ,#{pointFlag} + ,#{frontFlag} + ,#{fixeAmount} + ,#{discount} + ,#{otherRateType} + ,#{otherRateValue} + ,#{periodDiscount} + + + + + update cy_pay_mode_store + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`modeId` = #{modeId} + ,`shortcut` = #{shortcut} + ,`pointFlag` = #{pointFlag} + ,`frontFlag` = #{frontFlag} + ,`fixeAmount` = #{fixeAmount} + ,`discount` = #{discount} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`periodDiscount` = #{periodDiscount} + + where `id` = #{id} + + + + delete from cy_pay_mode_store + where `id` = #{id} + + + + delete from cy_pay_mode_store + ${condition} + + + + delete from cy_pay_mode_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayTypeMapper.xml new file mode 100644 index 0000000..180d505 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PayTypeMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pay_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{createDate} + ,#{createUser} + + + + + update cy_pay_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pay_type + where `id` = #{id} + + + + delete from cy_pay_type + ${condition} + + + + delete from cy_pay_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PaymentParameterMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PaymentParameterMapper.xml new file mode 100644 index 0000000..943f480 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PaymentParameterMapper.xml @@ -0,0 +1,151 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into cy_payment_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_payment_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_payment_parameter + where `id` = #{id} + + + + delete from cy_payment_parameter + ${condition} + + + + delete from cy_payment_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + insert into cy_payment_parameter_store (tenantId,storeId,parameterId) values (#{tenantId},#{storeId},#{id}) + + + + + + delete from cy_payment_parameter_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PermissionsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PermissionsMapper.xml new file mode 100644 index 0000000..da7fa13 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PermissionsMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`roleId`,`moduleId`,`permissions`,`functionIds`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_permissions + + `id`,`tenantId` + ,`roleId` + ,`moduleId` + ,`permissions` + ,`functionIds` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{roleId} + ,#{moduleId} + ,#{permissions} + ,#{functionIds} + ,#{createUser} + ,#{createDate} + + + + + update shared_permissions + + `tenantId` = #{tenantId} + ,`roleId` = #{roleId} + ,`moduleId` = #{moduleId} + ,`permissions` = #{permissions} + ,`functionIds` = #{functionIds} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_permissions + where `id` = #{id} + + + + delete from shared_permissions + ${condition} + + + + delete from shared_permissions + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + delete from + shared_permissions + where tenantId = #{tenantId} and roleId = #{roleId} + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosInfoMapper.xml new file mode 100644 index 0000000..6907616 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosInfoMapper.xml @@ -0,0 +1,160 @@ + + + + + + `id`,`tenantId`,`appSign`,`terminalType`,`storeId`,`storeNo`,`posNo`,`name`,`MACAddress`,`serialNumber`,`cpuNumber`,`status`,`pollCode`,`appSecret`,`appKey`,`description`,`deleteFlag`,`aliasName`,`isTester`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_info + + `id`,`tenantId` + ,`appSign` + ,`terminalType` + ,`storeId` + ,`storeNo` + ,`posNo` + ,`name` + ,`MACAddress` + ,`serialNumber` + ,`cpuNumber` + ,`status` + ,`pollCode` + ,`appSecret` + ,`appKey` + ,`description` + ,`deleteFlag` + ,`aliasName` + ,`isTester` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{appSign} + ,#{terminalType} + ,#{storeId} + ,#{storeNo} + ,#{posNo} + ,#{name} + ,#{MACAddress} + ,#{serialNumber} + ,#{cpuNumber} + ,#{status} + ,#{pollCode} + ,#{appSecret} + ,#{appKey} + ,#{description} + ,#{deleteFlag} + ,#{aliasName} + ,#{isTester} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_info + + `tenantId` = #{tenantId} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`posNo` = #{posNo} + ,`name` = #{name} + ,`MACAddress` = #{MACAddress} + ,`serialNumber` = #{serialNumber} + ,`cpuNumber` = #{cpuNumber} + ,`status` = #{status} + ,`pollCode` = #{pollCode} + ,`appSecret` = #{appSecret} + ,`appKey` = #{appKey} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`aliasName` = #{aliasName} + ,`isTester` = #{isTester} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_info + where `id` = #{id} + + + + delete from cy_pos_info + ${condition} + + + + delete from cy_pos_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosPollcodeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosPollcodeMapper.xml new file mode 100644 index 0000000..ce1280a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosPollcodeMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`pollCode`,`storeId`,`storeNo`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_pollcode + + `id`,`tenantId` + ,`pollCode` + ,`storeId` + ,`storeNo` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{pollCode} + ,#{storeId} + ,#{storeNo} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_pollcode + + `tenantId` = #{tenantId} + ,`pollCode` = #{pollCode} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_pollcode + where `id` = #{id} + + + + delete from cy_pos_pollcode + ${condition} + + + + delete from cy_pos_pollcode + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosRoleMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosRoleMapper.xml new file mode 100644 index 0000000..52329d7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosRoleMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`discount`,`free`,`description`,`type`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_role + + `id`,`tenantId` + ,`no` + ,`name` + ,`discount` + ,`free` + ,`description` + ,`type` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{discount} + ,#{free} + ,#{description} + ,#{type} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_pos_role + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`discount` = #{discount} + ,`free` = #{free} + ,`description` = #{description} + ,`type` = #{type} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_pos_role + where `id` = #{id} + + + + delete from cy_pos_role + ${condition} + + + + delete from cy_pos_role + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_pos_role + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + delete from cy_pos_role_module + where `tenantId` = #{tenantId} and roleId = #{roleId} + + + + + insert into cy_pos_role_module (`tenantId`,`roleId`,`moduleNo`) + values + (#{tenantId},#{roleId}, #{moduleNo}) + + + + + + + + + + + + + + + + + + + insert into cy_store_worker_role (tenantId, workerId, roleId) + values + (#{tenantId}, #{workerId}, #{roleId}) + + + + + delete from cy_store_worker_role + where `tenantId`=#{tenantId} and roleId=#{roleId} and workerId=#{workerId} + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanConfigMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanConfigMapper.xml new file mode 100644 index 0000000..2cc52d7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanConfigMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`group`,`keys`,`values`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_config + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`group` + ,`keys` + ,`values` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{group} + ,#{keys} + ,#{values} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_config + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`group` = #{group} + ,`keys` = #{keys} + ,`values` = #{values} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_config + where `id` = #{id} + + + + delete from cy_pos_set_plan_config + ${condition} + + + + delete from cy_pos_set_plan_config + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanMapper.xml new file mode 100644 index 0000000..834db9b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`name`,`terminalType`,`description`,`enable`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan + + `id`,`tenantId` + ,`name` + ,`terminalType` + ,`description` + ,`enable` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{terminalType} + ,#{description} + ,#{enable} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`terminalType` = #{terminalType} + ,`description` = #{description} + ,`enable` = #{enable} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan + where `id` = #{id} + + + + delete from cy_pos_set_plan + ${condition} + + + + delete from cy_pos_set_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_pos_set_plan_store (`tenantId`,`planId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + + + DELETE FROM cy_pos_set_plan_store + ${condition} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanModuleMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanModuleMapper.xml new file mode 100644 index 0000000..5589bca --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanModuleMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`area`,`parentId`,`name`,`alias`,`keycode`,`keydata`,`color1`,`color2`,`color3`,`fontSize`,`shortcut`,`orderNo`,`icon`,`enable`,`resourceId`,`layout`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_module + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`area` + ,`parentId` + ,`name` + ,`alias` + ,`keycode` + ,`keydata` + ,`color1` + ,`color2` + ,`color3` + ,`fontSize` + ,`shortcut` + ,`orderNo` + ,`icon` + ,`enable` + ,`resourceId` + ,`layout` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{area} + ,#{parentId} + ,#{name} + ,#{alias} + ,#{keycode} + ,#{keydata} + ,#{color1} + ,#{color2} + ,#{color3} + ,#{fontSize} + ,#{shortcut} + ,#{orderNo} + ,#{icon} + ,#{enable} + ,#{resourceId} + ,#{layout} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_module + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`area` = #{area} + ,`parentId` = #{parentId} + ,`name` = #{name} + ,`alias` = #{alias} + ,`keycode` = #{keycode} + ,`keydata` = #{keydata} + ,`color1` = #{color1} + ,`color2` = #{color2} + ,`color3` = #{color3} + ,`fontSize` = #{fontSize} + ,`shortcut` = #{shortcut} + ,`orderNo` = #{orderNo} + ,`icon` = #{icon} + ,`enable` = #{enable} + ,`resourceId` = #{resourceId} + ,`layout` = #{layout} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_module + where `id` = #{id} + + + + delete from cy_pos_set_plan_module + ${condition} + + + + delete from cy_pos_set_plan_module + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanResourcesMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanResourcesMapper.xml new file mode 100644 index 0000000..3ae7a39 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanResourcesMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`group`,`name`,`keycode`,`keydata`,`enable`,`permission`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_resources + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`group` + ,`name` + ,`keycode` + ,`keydata` + ,`enable` + ,`permission` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{group} + ,#{name} + ,#{keycode} + ,#{keydata} + ,#{enable} + ,#{permission} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_resources + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`group` = #{group} + ,`name` = #{name} + ,`keycode` = #{keycode} + ,`keydata` = #{keydata} + ,`enable` = #{enable} + ,`permission` = #{permission} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_resources + where `id` = #{id} + + + + delete from cy_pos_set_plan_resources + ${condition} + + + + delete from cy_pos_set_plan_resources + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanShortcutMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanShortcutMapper.xml new file mode 100644 index 0000000..7f58593 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PosSetPlanShortcutMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`planId`,`clientId`,`area`,`parentId`,`name`,`alias`,`keycode`,`keydata`,`color1`,`color2`,`color3`,`fontSize`,`shortcut`,`orderNo`,`icon`,`enable`,`resourceId`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_pos_set_plan_shortcut + + `id`,`tenantId` + ,`planId` + ,`clientId` + ,`area` + ,`parentId` + ,`name` + ,`alias` + ,`keycode` + ,`keydata` + ,`color1` + ,`color2` + ,`color3` + ,`fontSize` + ,`shortcut` + ,`orderNo` + ,`icon` + ,`enable` + ,`resourceId` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{planId} + ,#{clientId} + ,#{area} + ,#{parentId} + ,#{name} + ,#{alias} + ,#{keycode} + ,#{keydata} + ,#{color1} + ,#{color2} + ,#{color3} + ,#{fontSize} + ,#{shortcut} + ,#{orderNo} + ,#{icon} + ,#{enable} + ,#{resourceId} + ,#{createDate} + ,#{createUser} + + + + + update cy_pos_set_plan_shortcut + + `tenantId` = #{tenantId} + ,`planId` = #{planId} + ,`clientId` = #{clientId} + ,`area` = #{area} + ,`parentId` = #{parentId} + ,`name` = #{name} + ,`alias` = #{alias} + ,`keycode` = #{keycode} + ,`keydata` = #{keydata} + ,`color1` = #{color1} + ,`color2` = #{color2} + ,`color3` = #{color3} + ,`fontSize` = #{fontSize} + ,`shortcut` = #{shortcut} + ,`orderNo` = #{orderNo} + ,`icon` = #{icon} + ,`enable` = #{enable} + ,`resourceId` = #{resourceId} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_pos_set_plan_shortcut + where `id` = #{id} + + + + delete from cy_pos_set_plan_shortcut + ${condition} + + + + delete from cy_pos_set_plan_shortcut + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PrintImageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PrintImageMapper.xml new file mode 100644 index 0000000..93f9284 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PrintImageMapper.xml @@ -0,0 +1,209 @@ + + + + + + `id`,`tenantId`,`type`,`name`,`width`,`height`,`groupName`,`storageFileName`,`description`,`stopFlag`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_print_image + + `id`,`tenantId` + ,`type` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`description` + ,`stopFlag` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{type} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{description} + ,#{stopFlag} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_print_image + + `tenantId` = #{tenantId} + ,`type` = #{type} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`description` = #{description} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_print_image + where `id` = #{id} + + + + delete from cy_print_image + ${condition} + + + + delete from cy_print_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_print_image + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO cy_print_image_store (tenantId,storeId,imageId) + VALUES (#{tenantId}, #{storeId}, #{imageId}) + + + + + delete from cy_print_image_store + where tenantId=#{tenantId} and imageId=#{imageId} + + + + + delete from cy_print_image_store + where tenantId=#{tenantId} and imageId=#{imageId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockDifferMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockDifferMapper.xml new file mode 100644 index 0000000..3ced754 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockDifferMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`productId`,`productNo`,`specId`,`inventoryUnitId`,`inventoryUnitName`,`offsetBatchNo`,`price`,`quantity`,`amount`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_negative_stock_differ + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`productId` + ,`productNo` + ,`specId` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`offsetBatchNo` + ,`price` + ,`quantity` + ,`amount` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{offsetBatchNo} + ,#{price} + ,#{quantity} + ,#{amount} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_negative_stock_differ + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`offsetBatchNo` = #{offsetBatchNo} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`amount` = #{amount} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock_differ + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock_differ + ${condition} + + + + delete from cy_product_batch_negative_stock_differ + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockMapper.xml new file mode 100644 index 0000000..128aa0c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNegativeStockMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`ticketType`,`ticketNo`,`productId`,`productNo`,`specId`,`inventoryUnitId`,`inventoryUnitName`,`price`,`quantity`,`offsetBatchNo`,`offsetPrice`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_negative_stock + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`ticketType` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`specId` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`price` + ,`quantity` + ,`offsetBatchNo` + ,`offsetPrice` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{ticketType} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{price} + ,#{quantity} + ,#{offsetBatchNo} + ,#{offsetPrice} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_negative_stock + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`ticketType` = #{ticketType} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`offsetBatchNo` = #{offsetBatchNo} + ,`offsetPrice` = #{offsetPrice} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock + where `id` = #{id} + + + + delete from cy_product_batch_negative_stock + ${condition} + + + + delete from cy_product_batch_negative_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNumberMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNumberMapper.xml new file mode 100644 index 0000000..97e39f7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchNumberMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`batchNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`expiryTime`,`remark`,`status`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_number + + `id`,`tenantId` + ,`batchNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`expiryTime` + ,`remark` + ,`status` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{expiryTime} + ,#{remark} + ,#{status} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_number + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`expiryTime` = #{expiryTime} + ,`remark` = #{remark} + ,`status` = #{status} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_number + where `id` = #{id} + + + + delete from cy_product_batch_number + ${condition} + + + + delete from cy_product_batch_number + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchStockChangeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchStockChangeMapper.xml new file mode 100644 index 0000000..abcc430 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchStockChangeMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`productId`,`productNo`,`specId`,`priceIn`,`price`,`quantity`,`ticketType`,`ticketNo`,`inventoryUnitId`,`inventoryUnitName`,`supplierId`,`supplierNo`,`storeId`,`storeNo`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_stock_change + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`productId` + ,`productNo` + ,`specId` + ,`priceIn` + ,`price` + ,`quantity` + ,`ticketType` + ,`ticketNo` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`supplierId` + ,`supplierNo` + ,`storeId` + ,`storeNo` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{priceIn} + ,#{price} + ,#{quantity} + ,#{ticketType} + ,#{ticketNo} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{supplierId} + ,#{supplierNo} + ,#{storeId} + ,#{storeNo} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_stock_change + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`priceIn` = #{priceIn} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`ticketType` = #{ticketType} + ,`ticketNo` = #{ticketNo} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_stock_change + where `id` = #{id} + + + + delete from cy_product_batch_stock_change + ${condition} + + + + delete from cy_product_batch_stock_change + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchStockMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchStockMapper.xml new file mode 100644 index 0000000..2e3cbb7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBatchStockMapper.xml @@ -0,0 +1,165 @@ + + + + + + `id`,`tenantId`,`batchNo`,`storageId`,`productId`,`productNo`,`specId`,`supplierId`,`price`,`quantity`,`remainQuantity`,`ticketType`,`ticketNo`,`inventoryUnitId`,`inventoryUnitName`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_batch_stock + + `id`,`tenantId` + ,`batchNo` + ,`storageId` + ,`productId` + ,`productNo` + ,`specId` + ,`supplierId` + ,`price` + ,`quantity` + ,`remainQuantity` + ,`ticketType` + ,`ticketNo` + ,`inventoryUnitId` + ,`inventoryUnitName` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{batchNo} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{supplierId} + ,#{price} + ,#{quantity} + ,#{remainQuantity} + ,#{ticketType} + ,#{ticketNo} + ,#{inventoryUnitId} + ,#{inventoryUnitName} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_batch_stock + + `tenantId` = #{tenantId} + ,`batchNo` = #{batchNo} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`supplierId` = #{supplierId} + ,`price` = #{price} + ,`quantity` = #{quantity} + ,`remainQuantity` = #{remainQuantity} + ,`ticketType` = #{ticketType} + ,`ticketNo` = #{ticketNo} + ,`inventoryUnitId` = #{inventoryUnitId} + ,`inventoryUnitName` = #{inventoryUnitName} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_batch_stock + where `id` = #{id} + + + + delete from cy_product_batch_stock + ${condition} + + + + delete from cy_product_batch_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBurdenMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBurdenMapper.xml new file mode 100644 index 0000000..08e3a33 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductBurdenMapper.xml @@ -0,0 +1,185 @@ + + + + + + `id`,`tenantId`,`productId`,`specId`,`burdenProductId`,`burdenSpecId`,`salesUnitId`,`salesAmount`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_product_burden + + `id`,`tenantId` + ,`productId` + ,`specId` + ,`burdenProductId` + ,`burdenSpecId` + ,`salesUnitId` + ,`salesAmount` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{specId} + ,#{burdenProductId} + ,#{burdenSpecId} + ,#{salesUnitId} + ,#{salesAmount} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_burden + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`burdenProductId` = #{burdenProductId} + ,`burdenSpecId` = #{burdenSpecId} + ,`salesUnitId` = #{salesUnitId} + ,`salesAmount` = #{salesAmount} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_burden + where `id` = #{id} + + + + delete from cy_product_burden + ${condition} + + + + delete from cy_product_burden + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductImageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductImageMapper.xml new file mode 100644 index 0000000..b1d53eb --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductImageMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`productId`,`width`,`height`,`groupName`,`storageFileName`,`length`,`mimeType`,`orderNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_image + + `id`,`tenantId` + ,`productId` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`length` + ,`mimeType` + ,`orderNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{length} + ,#{mimeType} + ,#{orderNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_image + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`length` = #{length} + ,`mimeType` = #{mimeType} + ,`orderNo` = #{orderNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_image + where `id` = #{id} + + + + delete from cy_product_image + ${condition} + + + + delete from cy_product_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductKdsPlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductKdsPlanMapper.xml new file mode 100644 index 0000000..99a16b9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductKdsPlanMapper.xml @@ -0,0 +1,166 @@ + + + + + + `id`,`tenantId`,`storeId`,`productId`,`chuxianFlag`,`chuxian`,`chuxianTime`,`chupinFlag`,`chupin`,`chupinTime`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_kds_plan + + `id`,`tenantId` + ,`storeId` + ,`productId` + ,`chuxianFlag` + ,`chuxian` + ,`chuxianTime` + ,`chupinFlag` + ,`chupin` + ,`chupinTime` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{productId} + ,#{chuxianFlag} + ,#{chuxian} + ,#{chuxianTime} + ,#{chupinFlag} + ,#{chupin} + ,#{chupinTime} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_kds_plan + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`chuxianFlag` = #{chuxianFlag} + ,`chuxian` = #{chuxian} + ,`chuxianTime` = #{chuxianTime} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`chupinTime` = #{chupinTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_kds_plan + where `id` = #{id} + + + + delete from cy_product_kds_plan + ${condition} + + + + delete from cy_product_kds_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + update cy_product_kds_plan + + `tenantId` = #{tenantId} + ,`chuxianFlag` = #{chuxianFlag} + ,`chuxian` = #{chuxian} + ,`chuxianTime` = #{chuxianTime} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`chupinTime` = #{chupinTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `productId` = #{productId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductKitPlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductKitPlanMapper.xml new file mode 100644 index 0000000..b586512 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductKitPlanMapper.xml @@ -0,0 +1,172 @@ + + + + + + `id`,`tenantId`,`storeId`,`productId`,`chudaFlag`,`chuda`,`chupinFlag`,`chupin`,`labelFlag`,`labelValue`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_kit_plan + + `id`,`tenantId` + ,`storeId` + ,`productId` + ,`chudaFlag` + ,`chuda` + ,`chupinFlag` + ,`chupin` + ,`labelFlag` + ,`labelValue` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{productId} + ,#{chudaFlag} + ,#{chuda} + ,#{chupinFlag} + ,#{chupin} + ,#{labelFlag} + ,#{labelValue} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_kit_plan + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`chudaFlag` = #{chudaFlag} + ,`chuda` = #{chuda} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`labelFlag` = #{labelFlag} + ,`labelValue` = #{labelValue} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_kit_plan + where `id` = #{id} + + + + delete from cy_product_kit_plan + ${condition} + + + + delete from cy_product_kit_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + update cy_product_kit_plan + + `tenantId` = #{tenantId} + ,`chudaFlag` = #{chudaFlag} + ,`chuda` = #{chuda} + ,`chupinFlag` = #{chupinFlag} + ,`chupin` = #{chupin} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `productId` = #{productId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeMapper.xml new file mode 100644 index 0000000..b08dbaf --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeMapper.xml @@ -0,0 +1,104 @@ + + + + + + `tenantId`,`productId`,`makeId` + + + + + + + + + + + + + + + + + + + + insert into cy_product_make + + `id`,`tenantId` + ,`productId` + ,`makeId` + + + #{id},#{tenantId} + ,#{productId} + ,#{makeId} + + + + + update cy_product_make + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`makeId` = #{makeId} + + where `id` = #{id} + + + + delete from cy_product_make + where `id` = #{id} + + + + delete from cy_product_make + ${condition} + + + + delete from cy_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateDetailMapper.xml new file mode 100644 index 0000000..a251f5a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateDetailMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`templateId`,`makeId`,`addPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_make_template_detail + + `id`,`tenantId` + ,`templateId` + ,`makeId` + ,`addPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{makeId} + ,#{addPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_make_template_detail + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`makeId` = #{makeId} + ,`addPrice` = #{addPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_make_template_detail + where `id` = #{id} + + + + delete from cy_product_make_template_detail + ${condition} + + + + delete from cy_product_make_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateMapper.xml new file mode 100644 index 0000000..8a13993 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMakeTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_make_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_make_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_make_template + where `id` = #{id} + + + + delete from cy_product_make_template + ${condition} + + + + delete from cy_product_make_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMapper.xml new file mode 100644 index 0000000..b261ba4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductMapper.xml @@ -0,0 +1,455 @@ + + + + + + `id`,`tenantId`,`brandId`,`typeId`,`typePath`,`no`,`name`,`spell`,`assistNo`,`barCode`,`otherNo`,`english`,`shortName`,`spec`,`unitId`,`description`,`commissionType`,`commissionValue`,`discountFlag`,`tapleFlag`,`weighFlag`,`currentFlag`,`labelPrintFlag`,`suitFlag`,`mebDiscountFlag`,`giveFlag`,`promotionFlag`,`type`,`stockFlag`,`pointType`,`pointValue`,`purchaseTax`,`saleTax`,`lyRate`,`groupName`,`picture`,`stopFlag`,`deleteFlag`,`noType`,`zcFlag`,`erpCategoryCode`,`erpSyncFlag`,`selfFlag`,`storeId`,`storageId`,`kdsFlag`,`ext1`,`ext2`,`ext3`,`lineFlag`,`minCount`,`orderNo`,`isNew`,`monthSaleCount`,`praise`,`saleTimeType`,`saleTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product + + `id`,`tenantId` + ,`brandId` + ,`typeId` + ,`typePath` + ,`no` + ,`name` + ,`spell` + ,`assistNo` + ,`barCode` + ,`otherNo` + ,`english` + ,`shortName` + ,`spec` + ,`unitId` + ,`description` + ,`commissionType` + ,`commissionValue` + ,`discountFlag` + ,`tapleFlag` + ,`weighFlag` + ,`currentFlag` + ,`labelPrintFlag` + ,`suitFlag` + ,`mebDiscountFlag` + ,`giveFlag` + ,`promotionFlag` + ,`type` + ,`stockFlag` + ,`pointType` + ,`pointValue` + ,`purchaseTax` + ,`saleTax` + ,`lyRate` + ,`groupName` + ,`picture` + ,`stopFlag` + ,`deleteFlag` + ,`noType` + ,`zcFlag` + ,`erpCategoryCode` + ,`erpSyncFlag` + ,`selfFlag` + ,`storeId` + ,`storageId` + ,`kdsFlag` + ,`ext1` + ,`ext2` + ,`ext3` + ,`lineFlag` + ,`minCount` + ,`orderNo` + ,`isNew` + ,`monthSaleCount` + ,`praise` + ,`saleTimeType` + ,`saleTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{brandId} + ,#{typeId} + ,#{typePath} + ,#{no} + ,#{name} + ,#{spell} + ,#{assistNo} + ,#{barCode} + ,#{otherNo} + ,#{english} + ,#{shortName} + ,#{spec} + ,#{unitId} + ,#{description} + ,#{commissionType} + ,#{commissionValue} + ,#{discountFlag} + ,#{tapleFlag} + ,#{weighFlag} + ,#{currentFlag} + ,#{labelPrintFlag} + ,#{suitFlag} + ,#{mebDiscountFlag} + ,#{giveFlag} + ,#{promotionFlag} + ,#{type} + ,#{stockFlag} + ,#{pointType} + ,#{pointValue} + ,#{purchaseTax} + ,#{saleTax} + ,#{lyRate} + ,#{groupName} + ,#{picture} + ,#{stopFlag} + ,#{deleteFlag} + ,#{noType} + ,#{zcFlag} + ,#{erpCategoryCode} + ,#{erpSyncFlag} + ,#{selfFlag} + ,#{storeId} + ,#{storageId} + ,#{kdsFlag} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{lineFlag} + ,#{minCount} + ,#{orderNo} + ,#{isNew} + ,#{monthSaleCount} + ,#{praise} + ,#{saleTimeType} + ,#{saleTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_product + + `tenantId` = #{tenantId} + ,`brandId` = #{brandId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`no` = #{no} + ,`name` = #{name} + ,`spell` = #{spell} + ,`assistNo` = #{assistNo} + ,`barCode` = #{barCode} + ,`otherNo` = #{otherNo} + ,`english` = #{english} + ,`shortName` = #{shortName} + ,`spec` = #{spec} + ,`unitId` = #{unitId} + ,`description` = #{description} + ,`commissionType` = #{commissionType} + ,`commissionValue` = #{commissionValue} + ,`discountFlag` = #{discountFlag} + ,`tapleFlag` = #{tapleFlag} + ,`weighFlag` = #{weighFlag} + ,`currentFlag` = #{currentFlag} + ,`labelPrintFlag` = #{labelPrintFlag} + ,`suitFlag` = #{suitFlag} + ,`mebDiscountFlag` = #{mebDiscountFlag} + ,`giveFlag` = #{giveFlag} + ,`promotionFlag` = #{promotionFlag} + ,`type` = #{type} + ,`stockFlag` = #{stockFlag} + ,`pointType` = #{pointType} + ,`pointValue` = #{pointValue} + ,`purchaseTax` = #{purchaseTax} + ,`saleTax` = #{saleTax} + ,`lyRate` = #{lyRate} + ,`groupName` = #{groupName} + ,`picture` = #{picture} + ,`stopFlag` = #{stopFlag} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`zcFlag` = #{zcFlag} + ,`erpCategoryCode` = #{erpCategoryCode} + ,`erpSyncFlag` = #{erpSyncFlag} + ,`selfFlag` = #{selfFlag} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`kdsFlag` = #{kdsFlag} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`lineFlag` = #{lineFlag} + ,`minCount` = #{minCount} + ,`orderNo` = #{orderNo} + ,`isNew` = #{isNew} + ,`monthSaleCount` = #{monthSaleCount} + ,`praise` = #{praise} + ,`saleTimeType` = #{saleTimeType} + ,`saleTime` = #{saleTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product + where `id` = #{id} + + + + delete from cy_product + ${condition} + + + + delete from cy_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_product + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductRatioMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductRatioMapper.xml new file mode 100644 index 0000000..1fd03dc --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductRatioMapper.xml @@ -0,0 +1,214 @@ + + + + + + `id`,`tenantId`,`productId`,`dispatchUnitId`,`purchaseUnitId`,`pdScale`,`packUnitId`,`dpScale`,`salesUnitId`,`psScale`,`maxStock`,`minStock`,`thUseLevel`,`realThUseLevel`,`cost`,`costType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_ratio + + `id`,`tenantId` + ,`productId` + ,`dispatchUnitId` + ,`purchaseUnitId` + ,`pdScale` + ,`packUnitId` + ,`dpScale` + ,`salesUnitId` + ,`psScale` + ,`maxStock` + ,`minStock` + ,`thUseLevel` + ,`realThUseLevel` + ,`cost` + ,`costType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{dispatchUnitId} + ,#{purchaseUnitId} + ,#{pdScale} + ,#{packUnitId} + ,#{dpScale} + ,#{salesUnitId} + ,#{psScale} + ,#{maxStock} + ,#{minStock} + ,#{thUseLevel} + ,#{realThUseLevel} + ,#{cost} + ,#{costType} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_ratio + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`pdScale` = #{pdScale} + ,`packUnitId` = #{packUnitId} + ,`dpScale` = #{dpScale} + ,`salesUnitId` = #{salesUnitId} + ,`psScale` = #{psScale} + ,`maxStock` = #{maxStock} + ,`minStock` = #{minStock} + ,`thUseLevel` = #{thUseLevel} + ,`realThUseLevel` = #{realThUseLevel} + ,`cost` = #{cost} + ,`costType` = #{costType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_ratio + where `id` = #{id} + + + + delete from cy_product_ratio + ${condition} + + + + delete from cy_product_ratio + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSpecMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSpecMapper.xml new file mode 100644 index 0000000..55c42f1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSpecMapper.xml @@ -0,0 +1,506 @@ + + + + + + `id`,`tenantId`,`productId`,`no`,`name`,`price`,`minPrice`,`memberPrice`,`wprice`,`wmemberPrice`,`boxPrice`,`otherPrice`,`costPrice`,`purchasePrice`,`dispatchPrice`,`materialRate`,`isdefault`,`deleteFlag`,`erpCode`,`erpSyncStatus`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_spec + + `id`,`tenantId` + ,`productId` + ,`no` + ,`name` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`wprice` + ,`wmemberPrice` + ,`boxPrice` + ,`otherPrice` + ,`costPrice` + ,`purchasePrice` + ,`dispatchPrice` + ,`materialRate` + ,`isdefault` + ,`deleteFlag` + ,`erpCode` + ,`erpSyncStatus` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{no} + ,#{name} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{wprice} + ,#{wmemberPrice} + ,#{boxPrice} + ,#{otherPrice} + ,#{costPrice} + ,#{purchasePrice} + ,#{dispatchPrice} + ,#{materialRate} + ,#{isdefault} + ,#{deleteFlag} + ,#{erpCode} + ,#{erpSyncStatus} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_spec + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`no` = #{no} + ,`name` = #{name} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`boxPrice` = #{boxPrice} + ,`otherPrice` = #{otherPrice} + ,`costPrice` = #{costPrice} + ,`purchasePrice` = #{purchasePrice} + ,`dispatchPrice` = #{dispatchPrice} + ,`materialRate` = #{materialRate} + ,`isdefault` = #{isdefault} + ,`deleteFlag` = #{deleteFlag} + ,`erpCode` = #{erpCode} + ,`erpSyncStatus` = #{erpSyncStatus} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_spec + where `id` = #{id} + + + + delete from cy_product_spec + ${condition} + + + + delete from cy_product_spec + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_product_spec + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStockLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStockLogMapper.xml new file mode 100644 index 0000000..aed1b48 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStockLogMapper.xml @@ -0,0 +1,185 @@ + + + + + + `id`,`tenantId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`operationType`,`orderNo`,`orderType`,`orderTypeName`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`preAmount`,`amount`,`afterAmount`,`price`,`money`,`costAmount`,`supplierId`,`supplierNo`,`storeId`,`storeNo`,`pNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_stock_log + + `id`,`tenantId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`operationType` + ,`orderNo` + ,`orderType` + ,`orderTypeName` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`preAmount` + ,`amount` + ,`afterAmount` + ,`price` + ,`money` + ,`costAmount` + ,`supplierId` + ,`supplierNo` + ,`storeId` + ,`storeNo` + ,`pNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{operationType} + ,#{orderNo} + ,#{orderType} + ,#{orderTypeName} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{preAmount} + ,#{amount} + ,#{afterAmount} + ,#{price} + ,#{money} + ,#{costAmount} + ,#{supplierId} + ,#{supplierNo} + ,#{storeId} + ,#{storeNo} + ,#{pNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_stock_log + + `tenantId` = #{tenantId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`operationType` = #{operationType} + ,`orderNo` = #{orderNo} + ,`orderType` = #{orderType} + ,`orderTypeName` = #{orderTypeName} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`preAmount` = #{preAmount} + ,`amount` = #{amount} + ,`afterAmount` = #{afterAmount} + ,`price` = #{price} + ,`money` = #{money} + ,`costAmount` = #{costAmount} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`pNo` = #{pNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_stock_log + where `id` = #{id} + + + + delete from cy_product_stock_log + ${condition} + + + + delete from cy_product_stock_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStockMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStockMapper.xml new file mode 100644 index 0000000..2052dd8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStockMapper.xml @@ -0,0 +1,164 @@ + + + + + + `id`,`tenantId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`stockAmount`,`stockCost`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_stock + + `id`,`tenantId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`stockAmount` + ,`stockCost` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{stockAmount} + ,#{stockCost} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_stock + + `tenantId` = #{tenantId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`stockAmount` = #{stockAmount} + ,`stockCost` = #{stockCost} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_stock + where `id` = #{id} + + + + delete from cy_product_stock + ${condition} + + + + delete from cy_product_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreOutCollectDayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreOutCollectDayMapper.xml new file mode 100644 index 0000000..c0512dd --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreOutCollectDayMapper.xml @@ -0,0 +1,184 @@ + + + + + + `id`,`tenantId`,`storeId`,`orderType`,`productId`,`productNo`,`productName`,`typeId`,`specName`,`productDescription`,`price`,`packUnitId`,`packUnitName`,`specId`,`totalAmount`,`type`,`no`,`createUser`,`createDate`,`modifyUser`,`modifyDate`,`systemDate` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_product_store_out_collect_day + + `id`,`tenantId` + ,`storeId` + ,`orderType` + ,`productId` + ,`productNo` + ,`productName` + ,`typeId` + ,`specName` + ,`productDescription` + ,`price` + ,`packUnitId` + ,`packUnitName` + ,`specId` + ,`totalAmount` + ,`type` + ,`no` + ,`createUser` + ,`createDate` + ,`systemDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{orderType} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{typeId} + ,#{specName} + ,#{productDescription} + ,#{price} + ,#{packUnitId} + ,#{packUnitName} + ,#{specId} + ,#{totalAmount} + ,#{type} + ,#{no} + ,#{createUser} + ,#{createDate} + ,#{systemDate} + + + + + update cy_product_store_out_collect_day + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`orderType` = #{orderType} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`typeId` = #{typeId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`price` = #{price} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`specId` = #{specId} + ,`totalAmount` = #{totalAmount} + ,`type` = #{type} + ,`no` = #{no} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + ,`systemDate` = #{systemDate} + + where `id` = #{id} + + + + delete from cy_product_store_out_collect_day + where `id` = #{id} + + + + delete from cy_product_store_out_collect_day + ${condition} + + + + delete from cy_product_store_out_collect_day + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreStockLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreStockLogMapper.xml new file mode 100644 index 0000000..57af94f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreStockLogMapper.xml @@ -0,0 +1,195 @@ + + + + + + `id`,`tenantId`,`storeId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`orderNo`,`orderType`,`orderTypeName`,`dispatchUnitId`,`dispatchUnitName`,`packUnitId`,`packUnitName`,`preAmount`,`amount`,`afterAmount`,`price`,`money`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_store_stock_log + + `id`,`tenantId` + ,`storeId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`orderNo` + ,`orderType` + ,`orderTypeName` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`packUnitId` + ,`packUnitName` + ,`preAmount` + ,`amount` + ,`afterAmount` + ,`price` + ,`money` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{orderNo} + ,#{orderType} + ,#{orderTypeName} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{packUnitId} + ,#{packUnitName} + ,#{preAmount} + ,#{amount} + ,#{afterAmount} + ,#{price} + ,#{money} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_store_stock_log + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`orderNo` = #{orderNo} + ,`orderType` = #{orderType} + ,`orderTypeName` = #{orderTypeName} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`preAmount` = #{preAmount} + ,`amount` = #{amount} + ,`afterAmount` = #{afterAmount} + ,`price` = #{price} + ,`money` = #{money} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_store_stock_log + where `id` = #{id} + + + + delete from cy_product_store_stock_log_bak + ${condition} + + + + delete from cy_product_store_stock_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreStockMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreStockMapper.xml new file mode 100644 index 0000000..5daa842 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductStoreStockMapper.xml @@ -0,0 +1,189 @@ + + + + + + `id`,`tenantId`,`storeId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`packUnitId`,`packUnitName`,`stockAmount`,`stockCost`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into cy_product_store_stock + + `id`,`tenantId` + ,`storeId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`packUnitId` + ,`packUnitName` + ,`stockAmount` + ,`stockCost` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{packUnitId} + ,#{packUnitName} + ,#{stockAmount} + ,#{stockCost} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_store_stock + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`packUnitId` = #{packUnitId} + ,`packUnitName` = #{packUnitName} + ,`stockAmount` = #{stockAmount} + ,`stockCost` = #{stockCost} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_store_stock + where `id` = #{id} + + + + delete from cy_product_store_stock + ${condition} + + + + delete from cy_product_store_stock + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSuitDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSuitDetailMapper.xml new file mode 100644 index 0000000..2dfd70e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSuitDetailMapper.xml @@ -0,0 +1,166 @@ + + + + + + `id`,`tenantId`,`suitId`,`productId`,`specId`,`quantity`,`addPrice`,`defaultflag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_suit_detail + + `id`,`tenantId` + ,`suitId` + ,`productId` + ,`specId` + ,`quantity` + ,`addPrice` + ,`defaultflag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{suitId} + ,#{productId} + ,#{specId} + ,#{quantity} + ,#{addPrice} + ,#{defaultflag} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_suit_detail + + `tenantId` = #{tenantId} + ,`suitId` = #{suitId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`quantity` = #{quantity} + ,`addPrice` = #{addPrice} + ,`defaultflag` = #{defaultflag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_suit_detail + where `id` = #{id} + + + + delete from cy_product_suit_detail + ${condition} + + + + delete from cy_product_suit_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSuitMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSuitMapper.xml new file mode 100644 index 0000000..53e45d9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductSuitMapper.xml @@ -0,0 +1,139 @@ + + + + + + `id`,`tenantId`,`productId`,`no`,`name`,`quantity`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_suit + + `id`,`tenantId` + ,`productId` + ,`no` + ,`name` + ,`quantity` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{productId} + ,#{no} + ,#{name} + ,#{quantity} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_suit + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`no` = #{no} + ,`name` = #{name} + ,`quantity` = #{quantity} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_suit + where `id` = #{id} + + + + delete from cy_product_suit + ${condition} + + + + delete from cy_product_suit + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTemplateDetailMapper.xml new file mode 100644 index 0000000..5d3785b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTemplateDetailMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`templateId`,`productId`,`specId`,`price`,`minPrice`,`memberPrice`,`otherPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_template_detail + + `id`,`tenantId` + ,`templateId` + ,`productId` + ,`specId` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`otherPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{otherPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_template_detail + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`otherPrice` = #{otherPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_template_detail + where `id` = #{id} + + + + delete from cy_product_template_detail + ${condition} + + + + delete from cy_product_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTemplateMapper.xml new file mode 100644 index 0000000..6634ab2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_product_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_product_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_product_template + where `id` = #{id} + + + + delete from cy_product_template + ${condition} + + + + delete from cy_product_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTypeLabelInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTypeLabelInfoMapper.xml new file mode 100644 index 0000000..4ffb7aa --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTypeLabelInfoMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`color`,`imageName`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_type_label_info + + `id`,`tenantId` + ,`no` + ,`name` + ,`color` + ,`imageName` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{color} + ,#{imageName} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_type_label_info + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`color` = #{color} + ,`imageName` = #{imageName} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_type_label_info + where `id` = #{id} + + + + delete from cy_product_type_label_info + ${condition} + + + + delete from cy_product_type_label_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_product_type_label (tenantId,labelId,typeId) VALUES (#{tenantId},#{id},#{typeId}) + + + + update cy_product_type_label_info + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + DELETE FROM cy_product_type_label where `tenantId` = #{tenantId} and `labelId` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTypeMapper.xml new file mode 100644 index 0000000..df404c4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductTypeMapper.xml @@ -0,0 +1,251 @@ + + + + + + `id`,`tenantId`,`parentId`,`path`,`no`,`name`,`color`,`deleteFlag`,`sign`,`english`,`stopFlag`,`width`,`height`,`groupName`,`storageFileName`,`length`,`mimeType`,`orderNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_type + + `id`,`tenantId` + ,`parentId` + ,`path` + ,`no` + ,`name` + ,`color` + ,`deleteFlag` + ,`sign` + ,`english` + ,`stopFlag` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`length` + ,`mimeType` + ,`orderNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{parentId} + ,#{path} + ,#{no} + ,#{name} + ,#{color} + ,#{deleteFlag} + ,#{sign} + ,#{english} + ,#{stopFlag} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{length} + ,#{mimeType} + ,#{orderNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_type + + `tenantId` = #{tenantId} + ,`parentId` = #{parentId} + ,`path` = #{path} + ,`no` = #{no} + ,`name` = #{name} + ,`color` = #{color} + ,`deleteFlag` = #{deleteFlag} + ,`sign` = #{sign} + ,`english` = #{english} + ,`stopFlag` = #{stopFlag} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`length` = #{length} + ,`mimeType` = #{mimeType} + ,`orderNo` = #{orderNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_type + where `id` = #{id} + + + + delete from cy_product_type + ${condition} + + + + delete from cy_product_type + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + + update cy_product_type + set + `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where + `tenantId` = #{tenantId} and `id` = #{id} + + + + INSERT INTO + cy_product_type_brand (`tenantId`,`typeId`,`brandId`) VALUES + (#{tenantId},#{id},#{brandId}) + + + + + + DELETE FROM cy_product_type_brand + ${condition} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductUnitMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductUnitMapper.xml new file mode 100644 index 0000000..8dc25ee --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProductUnitMapper.xml @@ -0,0 +1,126 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`deleteFlag`,`noType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_product_unit + + `id`,`tenantId` + ,`no` + ,`name` + ,`deleteFlag` + ,`noType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{deleteFlag} + ,#{noType} + ,#{createDate} + ,#{createUser} + + + + + update cy_product_unit + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_product_unit + where `id` = #{id} + + + + delete from cy_product_unit + ${condition} + + + + delete from cy_product_unit + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_product_unit + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdPictureMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdPictureMapper.xml new file mode 100644 index 0000000..2a74c9a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdPictureMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`programId`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_ad_picture + + `id`,`tenantId` + ,`programId` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_ad_picture + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_ad_picture + where `id` = #{id} + + + + delete from cy_program_ad_picture + ${condition} + + + + delete from cy_program_ad_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_program_ad_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceProductMapper.xml new file mode 100644 index 0000000..b33130b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceProductMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`programId`,`ticketId`,`ticketNo`,`productId`,`specId`,`wprice`,`wmemberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_adjust_price_product + + `id`,`tenantId` + ,`programId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`specId` + ,`wprice` + ,`wmemberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{specId} + ,#{wprice} + ,#{wmemberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_adjust_price_product + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_adjust_price_product + where `id` = #{id} + + + + delete from cy_program_adjust_price_product + ${condition} + + + + delete from cy_program_adjust_price_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceStoreMapper.xml new file mode 100644 index 0000000..9a931bf --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceStoreMapper.xml @@ -0,0 +1,123 @@ + + + + + + `id`,`tenantId`,`programId`,`ticketId`,`ticketNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_adjust_price_store + + `id`,`tenantId` + ,`programId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_adjust_price_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_adjust_price_store + where `id` = #{id} + + + + delete from cy_program_adjust_price_store + ${condition} + + + + delete from cy_program_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceTicketMapper.xml new file mode 100644 index 0000000..e806fdb --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramAdjustPriceTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`programId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_adjust_price_ticket + + `id`,`tenantId` + ,`programId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_program_adjust_price_ticket + ${condition} + + + + delete from cy_program_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramDeliverAddressMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramDeliverAddressMapper.xml new file mode 100644 index 0000000..a206384 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramDeliverAddressMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`programId`,`memberId`,`openId`,`mobile`,`receiveName`,`receiveMobile`,`receiveAddress`,`receiveDoor`,`latitude`,`longitude`,`defaultFlag`,`addressType`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_deliver_address + + `id`,`tenantId` + ,`programId` + ,`memberId` + ,`openId` + ,`mobile` + ,`receiveName` + ,`receiveMobile` + ,`receiveAddress` + ,`receiveDoor` + ,`latitude` + ,`longitude` + ,`defaultFlag` + ,`addressType` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{receiveName} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{receiveDoor} + ,#{latitude} + ,#{longitude} + ,#{defaultFlag} + ,#{addressType} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_deliver_address + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`receiveName` = #{receiveName} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`receiveDoor` = #{receiveDoor} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`defaultFlag` = #{defaultFlag} + ,`addressType` = #{addressType} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_deliver_address + where `id` = #{id} + + + + delete from cy_program_deliver_address + ${condition} + + + + delete from cy_program_deliver_address + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateImageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateImageMapper.xml new file mode 100644 index 0000000..cdd05bb --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateImageMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`evaluateId`,`width`,`height`,`groupName`,`storageFileName`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_evaluate_image + + `id`,`tenantId` + ,`evaluateId` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{evaluateId} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_evaluate_image + + `tenantId` = #{tenantId} + ,`evaluateId` = #{evaluateId} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_evaluate_image + where `id` = #{id} + + + + delete from cy_program_evaluate_image + ${condition} + + + + delete from cy_program_evaluate_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateMapper.xml new file mode 100644 index 0000000..8a5f530 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramEvaluateMapper.xml @@ -0,0 +1,159 @@ + + + + + + `id`,`tenantId`,`programId`,`memberId`,`openId`,`mobile`,`storeId`,`storeNo`,`storeName`,`touxiang`,`memberName`,`memo`,`storeLevel`,`productLevel`,`serverLevel`,`tickingTime`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_evaluate + + `id`,`tenantId` + ,`programId` + ,`memberId` + ,`openId` + ,`mobile` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`touxiang` + ,`memberName` + ,`memo` + ,`storeLevel` + ,`productLevel` + ,`serverLevel` + ,`tickingTime` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{touxiang} + ,#{memberName} + ,#{memo} + ,#{storeLevel} + ,#{productLevel} + ,#{serverLevel} + ,#{tickingTime} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_evaluate + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`touxiang` = #{touxiang} + ,`memberName` = #{memberName} + ,`memo` = #{memo} + ,`storeLevel` = #{storeLevel} + ,`productLevel` = #{productLevel} + ,`serverLevel` = #{serverLevel} + ,`tickingTime` = #{tickingTime} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_evaluate + where `id` = #{id} + + + + delete from cy_program_evaluate + ${condition} + + + + delete from cy_program_evaluate + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramIndexPictureMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramIndexPictureMapper.xml new file mode 100644 index 0000000..ef328fe --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramIndexPictureMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`programId`,`path`,`indexPictureType`,`funcName`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_index_picture + + `id`,`tenantId` + ,`programId` + ,`path` + ,`indexPictureType` + ,`funcName` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{path} + ,#{indexPictureType} + ,#{funcName} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_index_picture + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`path` = #{path} + ,`indexPictureType` = #{indexPictureType} + ,`funcName` = #{funcName} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_index_picture + where `id` = #{id} + + + + delete from cy_program_index_picture + ${condition} + + + + delete from cy_program_index_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPaymentParameterMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPaymentParameterMapper.xml new file mode 100644 index 0000000..1881ed4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPaymentParameterMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`programId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_payment_parameter + + `id`,`tenantId` + ,`programId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_payment_parameter + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_payment_parameter + where `id` = #{id} + + + + delete from cy_program_payment_parameter + ${condition} + + + + delete from cy_program_payment_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_program_payment_parameter_store (`tenantId`,`storeId`,`parameterId`,`programId`) + VALUES (#{tenantId},#{storeId},#{id},#{programId}) + + + + + + delete from cy_program_payment_parameter_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductCategoryMapper.xml new file mode 100644 index 0000000..05a68fc --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductCategoryMapper.xml @@ -0,0 +1,150 @@ + + + + + + `id`,`tenantId`,`programId`,`name`,`description`,`orderNo`,`path`,`deleteFlag`,`nameEn`,`typePath`,`typeId`,`typeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_category + + `id`,`tenantId` + ,`programId` + ,`name` + ,`description` + ,`orderNo` + ,`path` + ,`deleteFlag` + ,`nameEn` + ,`typePath` + ,`typeId` + ,`typeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{name} + ,#{description} + ,#{orderNo} + ,#{path} + ,#{deleteFlag} + ,#{nameEn} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_category + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`name` = #{name} + ,`description` = #{description} + ,`orderNo` = #{orderNo} + ,`path` = #{path} + ,`deleteFlag` = #{deleteFlag} + ,`nameEn` = #{nameEn} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_category + where `id` = #{id} + + + + delete from cy_program_product_category + ${condition} + + + + delete from cy_program_product_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_program_product_category + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductMakeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductMakeMapper.xml new file mode 100644 index 0000000..589c915 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductMakeMapper.xml @@ -0,0 +1,115 @@ + + + + + + `tenantId`,`programId`,`productId`,`typeId`,`makeId`,`addPrice` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_make + + `tenantId` + ,`programId` + ,`productId` + ,`typeId` + ,`makeId` + ,`addPrice` + + + #{tenantId} + ,#{programId} + ,#{productId} + ,#{typeId} + ,#{makeId} + ,#{addPrice} + + + + + update cy_program_product_make + + `tenantId` = #{tenantId} + ,`addPrice` = #{addPrice} + + where `makeId` = #{makeId} AND `productId` = #{productId} + + + + delete from cy_program_product_make + where `id` = #{id} + + + + delete from cy_program_product_make + ${condition} + + + + delete from cy_program_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductMapper.xml new file mode 100644 index 0000000..b5cd09f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductMapper.xml @@ -0,0 +1,268 @@ + + + + + + `id`,`tenantId`,`programId`,`categoryId`,`categoryPath`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`description`,`price`,`memberPrice`,`wprice`,`wmemberPrice`,`minCount`,`orderNo`,`isNew`,`suitFlag`,`boxPrice`,`nameEn`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`marketPrice`,`monthSaleCount`,`praise`,`saleTimeType`,`saleTime`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + insert into cy_program_product + + `id`,`tenantId` + ,`programId` + ,`categoryId` + ,`categoryPath` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`description` + ,`price` + ,`memberPrice` + ,`wprice` + ,`wmemberPrice` + ,`minCount` + ,`orderNo` + ,`isNew` + ,`suitFlag` + ,`boxPrice` + ,`nameEn` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`marketPrice` + ,`monthSaleCount` + ,`praise` + ,`saleTimeType` + ,`saleTime` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{categoryId} + ,#{categoryPath} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{description} + ,#{price} + ,#{memberPrice} + ,#{wprice} + ,#{wmemberPrice} + ,#{minCount} + ,#{orderNo} + ,#{isNew} + ,#{suitFlag} + ,#{boxPrice} + ,#{nameEn} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{marketPrice} + ,#{monthSaleCount} + ,#{praise} + ,#{saleTimeType} + ,#{saleTime} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`description` = #{description} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`minCount` = #{minCount} + ,`orderNo` = #{orderNo} + ,`isNew` = #{isNew} + ,`suitFlag` = #{suitFlag} + ,`boxPrice` = #{boxPrice} + ,`nameEn` = #{nameEn} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`marketPrice` = #{marketPrice} + ,`monthSaleCount` = #{monthSaleCount} + ,`praise` = #{praise} + ,`saleTimeType` = #{saleTimeType} + ,`saleTime` = #{saleTime} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product + where `id` = #{id} + + + + delete from cy_program_product + ${condition} + + + + delete from cy_program_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_program_product + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateDetailMapper.xml new file mode 100644 index 0000000..b91757f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateDetailMapper.xml @@ -0,0 +1,139 @@ + + + + + + `id`,`tenantId`,`programId`,`templateId`,`templateNo`,`productId`,`specId`,`wprice`,`wmemberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_template_detail + + `id`,`tenantId` + ,`programId` + ,`templateId` + ,`templateNo` + ,`productId` + ,`specId` + ,`wprice` + ,`wmemberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{templateId} + ,#{templateNo} + ,#{productId} + ,#{specId} + ,#{wprice} + ,#{wmemberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_template_detail + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_template_detail + where `id` = #{id} + + + + delete from cy_program_product_template_detail + ${condition} + + + + delete from cy_program_product_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateMapper.xml new file mode 100644 index 0000000..9fd7b80 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_template + + `id`,`tenantId` + ,`programId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_template + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_template + where `id` = #{id} + + + + delete from cy_program_product_template + ${condition} + + + + delete from cy_program_product_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateStoreMapper.xml new file mode 100644 index 0000000..27dbd18 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramProductTemplateStoreMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`programId`,`templateId`,`templateNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_product_template_store + + `id`,`tenantId` + ,`programId` + ,`templateId` + ,`templateNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{templateId} + ,#{templateNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_product_template_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_product_template_store + where `id` = #{id} + + + + delete from cy_program_product_template_store + ${condition} + + + + delete from cy_program_product_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListGoodsMapper.xml new file mode 100644 index 0000000..6182caf --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListGoodsMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`programId`,`tenantId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_black_list_goods + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_black_list_goods + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_goods + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_goods + ${condition} + + + + delete from cy_program_promotion_black_list_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreAreaMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreAreaMapper.xml new file mode 100644 index 0000000..9638363 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreAreaMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_black_list_store_area + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_black_list_store_area + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store_area + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store_area + ${condition} + + + + delete from cy_program_promotion_black_list_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreMapper.xml new file mode 100644 index 0000000..fce99d1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionBlackListStoreMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_black_list_store + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_black_list_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store + where `id` = #{id} + + + + delete from cy_program_promotion_black_list_store + ${condition} + + + + delete from cy_program_promotion_black_list_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionCategoryMapper.xml new file mode 100644 index 0000000..6a2785b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionCategoryMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`typeId`,`typeNo`,`typeName`,`discountType`,`discount`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_category + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`discountType` + ,`discount` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{discountType} + ,#{discount} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_category + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_category + where `id` = #{id} + + + + delete from cy_program_promotion_category + ${condition} + + + + delete from cy_program_promotion_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionGoodsMapper.xml new file mode 100644 index 0000000..9fcb8ff --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionGoodsMapper.xml @@ -0,0 +1,154 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`salePrice`,`specialPrice`,`discountType`,`discount`,`limitNum`,`allLimitNum`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_goods + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`salePrice` + ,`specialPrice` + ,`discountType` + ,`discount` + ,`limitNum` + ,`allLimitNum` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{salePrice} + ,#{specialPrice} + ,#{discountType} + ,#{discount} + ,#{limitNum} + ,#{allLimitNum} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_goods + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`salePrice` = #{salePrice} + ,`specialPrice` = #{specialPrice} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`limitNum` = #{limitNum} + ,`allLimitNum` = #{allLimitNum} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_goods + where `id` = #{id} + + + + delete from cy_program_promotion_goods + ${condition} + + + + delete from cy_program_promotion_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionSchemeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionSchemeMapper.xml new file mode 100644 index 0000000..588a20b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionSchemeMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`programId`,`sn`,`promotionId`,`promotionSn`,`type`,`rule`,`memo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_scheme + + `id`,`tenantId` + ,`programId` + ,`sn` + ,`promotionId` + ,`promotionSn` + ,`type` + ,`rule` + ,`memo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{sn} + ,#{promotionId} + ,#{promotionSn} + ,#{type} + ,#{rule} + ,#{memo} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_scheme + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`sn` = #{sn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`type` = #{type} + ,`rule` = #{rule} + ,`memo` = #{memo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_scheme + where `id` = #{id} + + + + delete from cy_program_promotion_scheme + ${condition} + + + + delete from cy_program_promotion_scheme + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreAreaMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreAreaMapper.xml new file mode 100644 index 0000000..7e6281f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreAreaMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_store_area + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_store_area + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_store_area + where `id` = #{id} + + + + delete from cy_program_promotion_store_area + ${condition} + + + + delete from cy_program_promotion_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreMapper.xml new file mode 100644 index 0000000..abd266b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionStoreMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`programId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_store + + `id`,`tenantId` + ,`programId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_store + where `id` = #{id} + + + + delete from cy_program_promotion_store + ${condition} + + + + delete from cy_program_promotion_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTaskMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTaskMapper.xml new file mode 100644 index 0000000..ae99237 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTaskMapper.xml @@ -0,0 +1,219 @@ + + + + + + `id`,`tenantId`,`programId`,`sn`,`promotionId`,`promotionSn`,`promotionType`,`storeId`,`valueType`,`valueId`,`valueNo`,`valueName`,`valueExt1`,`valueExt2`,`schemeId`,`schemeSn`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isRepeatDiscount`,`isAll`,`goodsBlackList`,`discountType`,`discountValue`,`rule`,`setMan`,`setTime`,`status`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_task + + `id`,`tenantId` + ,`programId` + ,`sn` + ,`promotionId` + ,`promotionSn` + ,`promotionType` + ,`storeId` + ,`valueType` + ,`valueId` + ,`valueNo` + ,`valueName` + ,`valueExt1` + ,`valueExt2` + ,`schemeId` + ,`schemeSn` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isRepeatDiscount` + ,`isAll` + ,`goodsBlackList` + ,`discountType` + ,`discountValue` + ,`rule` + ,`setMan` + ,`setTime` + ,`status` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{sn} + ,#{promotionId} + ,#{promotionSn} + ,#{promotionType} + ,#{storeId} + ,#{valueType} + ,#{valueId} + ,#{valueNo} + ,#{valueName} + ,#{valueExt1} + ,#{valueExt2} + ,#{schemeId} + ,#{schemeSn} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isRepeatDiscount} + ,#{isAll} + ,#{goodsBlackList} + ,#{discountType} + ,#{discountValue} + ,#{rule} + ,#{setMan} + ,#{setTime} + ,#{status} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_task + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`sn` = #{sn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`promotionType` = #{promotionType} + ,`storeId` = #{storeId} + ,`valueType` = #{valueType} + ,`valueId` = #{valueId} + ,`valueNo` = #{valueNo} + ,`valueName` = #{valueName} + ,`valueExt1` = #{valueExt1} + ,`valueExt2` = #{valueExt2} + ,`schemeId` = #{schemeId} + ,`schemeSn` = #{schemeSn} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isAll` = #{isAll} + ,`goodsBlackList` = #{goodsBlackList} + ,`discountType` = #{discountType} + ,`discountValue` = #{discountValue} + ,`rule` = #{rule} + ,`setMan` = #{setMan} + ,`setTime` = #{setTime} + ,`status` = #{status} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_task + where `id` = #{id} + + + + delete from cy_program_promotion_task + ${condition} + + + + delete from cy_program_promotion_task + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + UPDATE cy_program_promotion_task SET `status` = 2 WHERE `tenantId` = #{tenantId} + AND `status` IN (0,1) AND `promotionId` = #{promotionId} + + + + UPDATE cy_program_promotion_task SET `status` = #{status} WHERE `tenantId` = #{tenantId} + AND `status` = 2 AND `promotionId` = #{promotionId} + + + + UPDATE cy_program_promotion_task SET `status` = 1 WHERE `tenantId` = #{tenantId} + AND `status` = 0 AND `startDate` = #{today} + + + + + UPDATE cy_program_promotion_task SET `status` = 3 WHERE `tenantId` = #{tenantId} + AND `status` = 1 AND `endDate` #{yesterDay} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTicketMapper.xml new file mode 100644 index 0000000..5e8ea84 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramPromotionTicketMapper.xml @@ -0,0 +1,198 @@ + + + + + + `id`,`tenantId`,`programId`,`sn`,`type`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isAll`,`isAllStore`,`isRepeatDiscount`,`isGoods`,`isCategory`,`isStore`,`isStoreArea`,`isAreaBlack`,`isStoreBlack`,`isGoodsBlack`,`status`,`memo`,`confirmUser`,`confirmDate`,`confirmStatus`,`lastTaskDate`,`lastTaskNo`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_program_promotion_ticket + + `id`,`tenantId` + ,`programId` + ,`sn` + ,`type` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isAll` + ,`isAllStore` + ,`isRepeatDiscount` + ,`isGoods` + ,`isCategory` + ,`isStore` + ,`isStoreArea` + ,`isAreaBlack` + ,`isStoreBlack` + ,`isGoodsBlack` + ,`status` + ,`memo` + ,`confirmUser` + ,`confirmDate` + ,`confirmStatus` + ,`lastTaskDate` + ,`lastTaskNo` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{programId} + ,#{sn} + ,#{type} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isAll} + ,#{isAllStore} + ,#{isRepeatDiscount} + ,#{isGoods} + ,#{isCategory} + ,#{isStore} + ,#{isStoreArea} + ,#{isAreaBlack} + ,#{isStoreBlack} + ,#{isGoodsBlack} + ,#{status} + ,#{memo} + ,#{confirmUser} + ,#{confirmDate} + ,#{confirmStatus} + ,#{lastTaskDate} + ,#{lastTaskNo} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_program_promotion_ticket + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`sn` = #{sn} + ,`type` = #{type} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isAll` = #{isAll} + ,`isAllStore` = #{isAllStore} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isGoods` = #{isGoods} + ,`isCategory` = #{isCategory} + ,`isStore` = #{isStore} + ,`isStoreArea` = #{isStoreArea} + ,`isAreaBlack` = #{isAreaBlack} + ,`isStoreBlack` = #{isStoreBlack} + ,`isGoodsBlack` = #{isGoodsBlack} + ,`status` = #{status} + ,`memo` = #{memo} + ,`confirmUser` = #{confirmUser} + ,`confirmDate` = #{confirmDate} + ,`confirmStatus` = #{confirmStatus} + ,`lastTaskDate` = #{lastTaskDate} + ,`lastTaskNo` = #{lastTaskNo} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_program_promotion_ticket + where `id` = #{id} + + + + delete from cy_program_promotion_ticket + ${condition} + + + + delete from cy_program_promotion_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramSettingMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramSettingMapper.xml new file mode 100644 index 0000000..aaa6c31 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramSettingMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`name`,`type`,`color`,`memberFlag`,`lineFlag`,`indexStyle`,`wxStatus`,`wxBoday`,`aliStatus`,`aliBoday`,`wxTemplate`,`aliTemplate`,`cyApi`,`cardApi`,`description`,`wid`,`enableFlag`,`dataVersion`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_setting + + `id`,`tenantId` + ,`name` + ,`type` + ,`color` + ,`memberFlag` + ,`lineFlag` + ,`indexStyle` + ,`wxStatus` + ,`wxBoday` + ,`aliStatus` + ,`aliBoday` + ,`wxTemplate` + ,`aliTemplate` + ,`cyApi` + ,`cardApi` + ,`description` + ,`wid` + ,`enableFlag` + ,`dataVersion` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{type} + ,#{color} + ,#{memberFlag} + ,#{lineFlag} + ,#{indexStyle} + ,#{wxStatus} + ,#{wxBoday} + ,#{aliStatus} + ,#{aliBoday} + ,#{wxTemplate} + ,#{aliTemplate} + ,#{cyApi} + ,#{cardApi} + ,#{description} + ,#{wid} + ,#{enableFlag} + ,#{dataVersion} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_setting + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`type` = #{type} + ,`color` = #{color} + ,`memberFlag` = #{memberFlag} + ,`lineFlag` = #{lineFlag} + ,`indexStyle` = #{indexStyle} + ,`wxStatus` = #{wxStatus} + ,`wxBoday` = #{wxBoday} + ,`aliStatus` = #{aliStatus} + ,`aliBoday` = #{aliBoday} + ,`wxTemplate` = #{wxTemplate} + ,`aliTemplate` = #{aliTemplate} + ,`cyApi` = #{cyApi} + ,`cardApi` = #{cardApi} + ,`description` = #{description} + ,`wid` = #{wid} + ,`enableFlag` = #{enableFlag} + ,`dataVersion` = #{dataVersion} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_setting + where `id` = #{id} + + + + delete from cy_program_setting + ${condition} + + + + delete from cy_program_setting + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketDeliverMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketDeliverMapper.xml new file mode 100644 index 0000000..2588d18 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketDeliverMapper.xml @@ -0,0 +1,170 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`programId`,`ticketId`,`busNo`,`orderTel`,`name`,`address`,`latitude`,`longitude`,`deliverType`,`deliverComName`,`deliverFee`,`logisticsDispatcherMobile`,`logisticsDispatcherName`,`logisticsReceiptTime`,`logisticsFetchTime`,`logisticsFinishTime`,`isInvalid`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_business_ticket_deliver + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`programId` + ,`ticketId` + ,`busNo` + ,`orderTel` + ,`name` + ,`address` + ,`latitude` + ,`longitude` + ,`deliverType` + ,`deliverComName` + ,`deliverFee` + ,`logisticsDispatcherMobile` + ,`logisticsDispatcherName` + ,`logisticsReceiptTime` + ,`logisticsFetchTime` + ,`logisticsFinishTime` + ,`isInvalid` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{programId} + ,#{ticketId} + ,#{busNo} + ,#{orderTel} + ,#{name} + ,#{address} + ,#{latitude} + ,#{longitude} + ,#{deliverType} + ,#{deliverComName} + ,#{deliverFee} + ,#{logisticsDispatcherMobile} + ,#{logisticsDispatcherName} + ,#{logisticsReceiptTime} + ,#{logisticsFetchTime} + ,#{logisticsFinishTime} + ,#{isInvalid} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_business_ticket_deliver + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`orderTel` = #{orderTel} + ,`name` = #{name} + ,`address` = #{address} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`deliverType` = #{deliverType} + ,`deliverComName` = #{deliverComName} + ,`deliverFee` = #{deliverFee} + ,`logisticsDispatcherMobile` = #{logisticsDispatcherMobile} + ,`logisticsDispatcherName` = #{logisticsDispatcherName} + ,`logisticsReceiptTime` = #{logisticsReceiptTime} + ,`logisticsFetchTime` = #{logisticsFetchTime} + ,`logisticsFinishTime` = #{logisticsFinishTime} + ,`isInvalid` = #{isInvalid} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_deliver + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_deliver + ${condition} + + + + delete from cy_program_store_business_ticket_deliver + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketInfoMapper.xml new file mode 100644 index 0000000..2553856 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketInfoMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`programId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_business_ticket_info + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`programId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{programId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_business_ticket_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`programId` = #{programId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_info + where `id` = #{id} + + + + delete from cy_program_store_business_ticket_info + ${condition} + + + + delete from cy_program_store_business_ticket_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketMapper.xml new file mode 100644 index 0000000..4caa07d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreBusinessTicketMapper.xml @@ -0,0 +1,242 @@ + + + + + + `id`,`clientId`,`tenantId`,`memberId`,`openId`,`sourceType`,`touxiang`,`memberName`,`mobile`,`programId`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`deliverStatus`,`refundStatus`,`saleDate`,`tableNo`,`tableName`,`people`,`busMode`,`reserveTime`,`deliverFee`,`packageFee`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`memberNo`,`memberJifen`,`isInvalid`,`seqNo`,`weather`,`weeker`,`deductionRate`,`chargeBack`,`settleFlag`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_business_ticket + + `id`,`tenantId` + ,`clientId` + ,`memberId` + ,`openId` + ,`sourceType` + ,`touxiang` + ,`memberName` + ,`mobile` + ,`programId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`deliverStatus` + ,`refundStatus` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`people` + ,`busMode` + ,`reserveTime` + ,`deliverFee` + ,`packageFee` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`memberNo` + ,`memberJifen` + ,`isInvalid` + ,`seqNo` + ,`weather` + ,`weeker` + ,`deductionRate` + ,`chargeBack` + ,`settleFlag` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{memberId} + ,#{openId} + ,#{sourceType} + ,#{touxiang} + ,#{memberName} + ,#{mobile} + ,#{programId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{deliverStatus} + ,#{refundStatus} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{people} + ,#{busMode} + ,#{reserveTime} + ,#{deliverFee} + ,#{packageFee} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{memberNo} + ,#{memberJifen} + ,#{isInvalid} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{deductionRate} + ,#{chargeBack} + ,#{settleFlag} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_business_ticket + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`sourceType` = #{sourceType} + ,`touxiang` = #{touxiang} + ,`memberName` = #{memberName} + ,`mobile` = #{mobile} + ,`programId` = #{programId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`deliverStatus` = #{deliverStatus} + ,`refundStatus` = #{refundStatus} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`reserveTime` = #{reserveTime} + ,`deliverFee` = #{deliverFee} + ,`packageFee` = #{packageFee} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`memberJifen` = #{memberJifen} + ,`isInvalid` = #{isInvalid} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`deductionRate` = #{deductionRate} + ,`chargeBack` = #{chargeBack} + ,`settleFlag` = #{settleFlag} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_business_ticket + where `id` = #{id} + + + + delete from cy_program_store_business_ticket + ${condition} + + + + delete from cy_program_store_business_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreMapper.xml new file mode 100644 index 0000000..34fd7a8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreMapper.xml @@ -0,0 +1,252 @@ + + + + + + `id`,`tenantId`,`programId`,`storeId`,`storeNo`,`storeName`,`orderTel`,`address`,`latitude`,`longitude`,`noticeInfo`,`isOpen`,`memberPriceEnabled`,`memberPayEnabled`,`storeMakeEnabled`,`paymentParamEnabled`,`openTimeType`,`openTime`,`discomFlag`,`autoDeliveryFlag`,`distributionSelfLimits`,`deliverType`,`deliverParameter`,`deliverFee`,`deliverFeeDiscountType`,`deliverFeeDiscountRule`,`deliverMoney`,`deliverKilometre`,`busModes`,`takeOutBoxFeeFlag`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`memoTags`,`enabled`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store + + `id`,`tenantId` + ,`programId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`orderTel` + ,`address` + ,`latitude` + ,`longitude` + ,`noticeInfo` + ,`isOpen` + ,`memberPriceEnabled` + ,`memberPayEnabled` + ,`storeMakeEnabled` + ,`paymentParamEnabled` + ,`openTimeType` + ,`openTime` + ,`discomFlag` + ,`autoDeliveryFlag` + ,`distributionSelfLimits` + ,`deliverType` + ,`deliverParameter` + ,`deliverFee` + ,`deliverFeeDiscountType` + ,`deliverFeeDiscountRule` + ,`deliverMoney` + ,`deliverKilometre` + ,`busModes` + ,`takeOutBoxFeeFlag` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`memoTags` + ,`enabled` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{orderTel} + ,#{address} + ,#{latitude} + ,#{longitude} + ,#{noticeInfo} + ,#{isOpen} + ,#{memberPriceEnabled} + ,#{memberPayEnabled} + ,#{storeMakeEnabled} + ,#{paymentParamEnabled} + ,#{openTimeType} + ,#{openTime} + ,#{discomFlag} + ,#{autoDeliveryFlag} + ,#{distributionSelfLimits} + ,#{deliverType} + ,#{deliverParameter} + ,#{deliverFee} + ,#{deliverFeeDiscountType} + ,#{deliverFeeDiscountRule} + ,#{deliverMoney} + ,#{deliverKilometre} + ,#{busModes} + ,#{takeOutBoxFeeFlag} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{memoTags} + ,#{enabled} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`orderTel` = #{orderTel} + ,`address` = #{address} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`noticeInfo` = #{noticeInfo} + ,`isOpen` = #{isOpen} + ,`memberPriceEnabled` = #{memberPriceEnabled} + ,`memberPayEnabled` = #{memberPayEnabled} + ,`storeMakeEnabled` = #{storeMakeEnabled} + ,`paymentParamEnabled` = #{paymentParamEnabled} + ,`openTimeType` = #{openTimeType} + ,`openTime` = #{openTime} + ,`discomFlag` = #{discomFlag} + ,`autoDeliveryFlag` = #{autoDeliveryFlag} + ,`distributionSelfLimits` = #{distributionSelfLimits} + ,`deliverType` = #{deliverType} + ,`deliverParameter` = #{deliverParameter} + ,`deliverFee` = #{deliverFee} + ,`deliverFeeDiscountType` = #{deliverFeeDiscountType} + ,`deliverFeeDiscountRule` = #{deliverFeeDiscountRule} + ,`deliverMoney` = #{deliverMoney} + ,`deliverKilometre` = #{deliverKilometre} + ,`busModes` = #{busModes} + ,`takeOutBoxFeeFlag` = #{takeOutBoxFeeFlag} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`memoTags` = #{memoTags} + ,`enabled` = #{enabled} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store + where `id` = #{id} + + + + delete from cy_program_store + ${condition} + + + + delete from cy_program_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductInfoMapper.xml new file mode 100644 index 0000000..c3e4a4e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductInfoMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`clientId`,`programId`,`orderItemId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_order_product_info + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`orderItemId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{orderItemId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_order_product_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_order_product_info + where `id` = #{id} + + + + delete from cy_program_store_order_product_info + ${condition} + + + + delete from cy_program_store_order_product_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMakeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMakeMapper.xml new file mode 100644 index 0000000..7be4150 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMakeMapper.xml @@ -0,0 +1,182 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`orderItemId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`hand`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_order_product_make + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`orderItemId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`hand` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{orderItemId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{hand} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_order_product_make + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`hand` = #{hand} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_order_product_make + where `id` = #{id} + + + + delete from cy_program_store_order_product_make + ${condition} + + + + delete from cy_program_store_order_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMapper.xml new file mode 100644 index 0000000..654f06f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreOrderProductMapper.xml @@ -0,0 +1,260 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`programId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`busMode`,`tableNo`,`tableName`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`productImageUrl`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`saleDate`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`packageFee`,`isMember`,`memberNo`,`isInvalid`,`lineNo`,`seqNo`,`weather`,`weeker`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_order_product + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`programId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`tableName` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`productImageUrl` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`saleDate` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`packageFee` + ,`isMember` + ,`memberNo` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`weather` + ,`weeker` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{programId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{tableName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{productImageUrl} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{saleDate} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{packageFee} + ,#{isMember} + ,#{memberNo} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_order_product + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`productImageUrl` = #{productImageUrl} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`saleDate` = #{saleDate} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`packageFee` = #{packageFee} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_order_product + where `id` = #{id} + + + + delete from cy_program_store_order_product + ${condition} + + + + delete from cy_program_store_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStorePayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStorePayMapper.xml new file mode 100644 index 0000000..adecd67 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStorePayMapper.xml @@ -0,0 +1,215 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`storeId`,`storeNo`,`storeName`,`payNo`,`ticketId`,`busNo`,`busMode`,`tableNo`,`tableName`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`voucherNo`,`payDate`,`cardno`,`cardYe`,`cardJf`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payChannel`,`deductionRate`,`chargeBack`,`settleFlag`,`memo`,`isInvalid`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_pay + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`tableName` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`cardYe` + ,`cardJf` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payChannel` + ,`deductionRate` + ,`chargeBack` + ,`settleFlag` + ,`memo` + ,`isInvalid` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{tableName} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{cardYe} + ,#{cardJf} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payChannel} + ,#{deductionRate} + ,#{chargeBack} + ,#{settleFlag} + ,#{memo} + ,#{isInvalid} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`cardYe` = #{cardYe} + ,`cardJf` = #{cardJf} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payChannel` = #{payChannel} + ,`deductionRate` = #{deductionRate} + ,`chargeBack` = #{chargeBack} + ,`settleFlag` = #{settleFlag} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_pay + where `id` = #{id} + + + + delete from cy_program_store_pay + ${condition} + + + + delete from cy_program_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreProductMapper.xml new file mode 100644 index 0000000..5f4b752 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ProgramStoreProductMapper.xml @@ -0,0 +1,195 @@ + + + + + + `id`,`tenantId`,`programId`,`storeId`,`productId`,`specId`,`productUnitId`,`typeId`,`typePath`,`wprice`,`wmemberPrice`,`totalStock`,`saleStock`,`stock`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_program_store_product + + `id`,`tenantId` + ,`programId` + ,`storeId` + ,`productId` + ,`specId` + ,`productUnitId` + ,`typeId` + ,`typePath` + ,`wprice` + ,`wmemberPrice` + ,`totalStock` + ,`saleStock` + ,`stock` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{programId} + ,#{storeId} + ,#{productId} + ,#{specId} + ,#{productUnitId} + ,#{typeId} + ,#{typePath} + ,#{wprice} + ,#{wmemberPrice} + ,#{totalStock} + ,#{saleStock} + ,#{stock} + ,#{createDate} + ,#{createUser} + + + + + update cy_program_store_product + + `tenantId` = #{tenantId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productUnitId` = #{productUnitId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`totalStock` = #{totalStock} + ,`saleStock` = #{saleStock} + ,`stock` = #{stock} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_program_store_product + where `id` = #{id} + + + + delete from cy_program_store_product + ${condition} + + + + delete from cy_program_store_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_program_store_product + + `tenantId` = #{tenantId} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `specId` = #{specId} + + + + + + + + update cy_program_store_product set stock = + stock-#{stock} ,saleStock = saleStock+#{stock} where `tenantId` = + #{tenantId} and `storeId` = #{storeId} and `specId` = #{specId} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListGoodsMapper.xml new file mode 100644 index 0000000..9ecb0b9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListGoodsMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_black_list_goods + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_black_list_goods + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_black_list_goods + where `id` = #{id} + + + + delete from cy_promotion_black_list_goods + ${condition} + + + + delete from cy_promotion_black_list_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreAreaMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreAreaMapper.xml new file mode 100644 index 0000000..6e57a6e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreAreaMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_black_list_store_area + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_black_list_store_area + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_black_list_store_area + where `id` = #{id} + + + + delete from cy_promotion_black_list_store_area + ${condition} + + + + delete from cy_promotion_black_list_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreMapper.xml new file mode 100644 index 0000000..ac76436 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionBlackListStoreMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_black_list_store + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_black_list_store + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_black_list_store + where `id` = #{id} + + + + delete from cy_promotion_black_list_store + ${condition} + + + + delete from cy_promotion_black_list_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionCategoryMapper.xml new file mode 100644 index 0000000..d2f274a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionCategoryMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`typeId`,`typeNo`,`typeName`,`discountType`,`discount`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_category + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`discountType` + ,`discount` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{discountType} + ,#{discount} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_category + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_category + where `id` = #{id} + + + + delete from cy_promotion_category + ${condition} + + + + delete from cy_promotion_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionGoodsMapper.xml new file mode 100644 index 0000000..20ea012 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionGoodsMapper.xml @@ -0,0 +1,151 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`productId`,`specId`,`productNo`,`productName`,`salePrice`,`specialPrice`,`discountType`,`discount`,`limitNum`,`allLimitNum`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_goods + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`productId` + ,`specId` + ,`productNo` + ,`productName` + ,`salePrice` + ,`specialPrice` + ,`discountType` + ,`discount` + ,`limitNum` + ,`allLimitNum` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{productId} + ,#{specId} + ,#{productNo} + ,#{productName} + ,#{salePrice} + ,#{specialPrice} + ,#{discountType} + ,#{discount} + ,#{limitNum} + ,#{allLimitNum} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_goods + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`salePrice` = #{salePrice} + ,`specialPrice` = #{specialPrice} + ,`discountType` = #{discountType} + ,`discount` = #{discount} + ,`limitNum` = #{limitNum} + ,`allLimitNum` = #{allLimitNum} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_goods + where `id` = #{id} + + + + delete from cy_promotion_goods + ${condition} + + + + delete from cy_promotion_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionScheduleMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionScheduleMapper.xml new file mode 100644 index 0000000..642a21b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionScheduleMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`sn`,`name`,`startDate`,`endDate`,`status`,`memo`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_schedule + + `id`,`tenantId` + ,`sn` + ,`name` + ,`startDate` + ,`endDate` + ,`status` + ,`memo` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{sn} + ,#{name} + ,#{startDate} + ,#{endDate} + ,#{status} + ,#{memo} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_schedule + + `tenantId` = #{tenantId} + ,`sn` = #{sn} + ,`name` = #{name} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`status` = #{status} + ,`memo` = #{memo} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_schedule + where `id` = #{id} + + + + delete from cy_promotion_schedule + ${condition} + + + + delete from cy_promotion_schedule + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionSchemeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionSchemeMapper.xml new file mode 100644 index 0000000..ebeacb8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionSchemeMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`sn`,`promotionId`,`promotionSn`,`type`,`rule`,`memo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_scheme + + `id`,`tenantId` + ,`sn` + ,`promotionId` + ,`promotionSn` + ,`type` + ,`rule` + ,`memo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{sn} + ,#{promotionId} + ,#{promotionSn} + ,#{type} + ,#{rule} + ,#{memo} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_scheme + + `tenantId` = #{tenantId} + ,`sn` = #{sn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`type` = #{type} + ,`rule` = #{rule} + ,`memo` = #{memo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_scheme + where `id` = #{id} + + + + delete from cy_promotion_scheme + ${condition} + + + + delete from cy_promotion_scheme + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionStoreAreaMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionStoreAreaMapper.xml new file mode 100644 index 0000000..9b31595 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionStoreAreaMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`areaId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_store_area + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`areaId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{areaId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_store_area + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`areaId` = #{areaId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_store_area + where `id` = #{id} + + + + delete from cy_promotion_store_area + ${condition} + + + + delete from cy_promotion_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionStoreMapper.xml new file mode 100644 index 0000000..b1a1487 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionStoreMapper.xml @@ -0,0 +1,118 @@ + + + + + + `id`,`tenantId`,`promotionId`,`promotionSn`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_store + + `id`,`tenantId` + ,`promotionId` + ,`promotionSn` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{promotionId} + ,#{promotionSn} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_store + + `tenantId` = #{tenantId} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_store + where `id` = #{id} + + + + delete from cy_promotion_store + ${condition} + + + + delete from cy_promotion_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionTaskMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionTaskMapper.xml new file mode 100644 index 0000000..b685944 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionTaskMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`sn`,`scheduleId`,`scheduleSn`,`promotionId`,`promotionSn`,`promotionType`,`storeId`,`valueType`,`valueId`,`valueNo`,`valueName`,`valueExt1`,`valueExt2`,`schemeId`,`schemeSn`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isRepeatDiscount`,`isAll`,`goodsBlackList`,`discountType`,`discountValue`,`rule`,`setMan`,`setTime`,`status`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_task + + `id`,`tenantId` + ,`sn` + ,`scheduleId` + ,`scheduleSn` + ,`promotionId` + ,`promotionSn` + ,`promotionType` + ,`storeId` + ,`valueType` + ,`valueId` + ,`valueNo` + ,`valueName` + ,`valueExt1` + ,`valueExt2` + ,`schemeId` + ,`schemeSn` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isRepeatDiscount` + ,`isAll` + ,`goodsBlackList` + ,`discountType` + ,`discountValue` + ,`rule` + ,`setMan` + ,`setTime` + ,`status` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{sn} + ,#{scheduleId} + ,#{scheduleSn} + ,#{promotionId} + ,#{promotionSn} + ,#{promotionType} + ,#{storeId} + ,#{valueType} + ,#{valueId} + ,#{valueNo} + ,#{valueName} + ,#{valueExt1} + ,#{valueExt2} + ,#{schemeId} + ,#{schemeSn} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isRepeatDiscount} + ,#{isAll} + ,#{goodsBlackList} + ,#{discountType} + ,#{discountValue} + ,#{rule} + ,#{setMan} + ,#{setTime} + ,#{status} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_task + + `tenantId` = #{tenantId} + ,`sn` = #{sn} + ,`scheduleId` = #{scheduleId} + ,`scheduleSn` = #{scheduleSn} + ,`promotionId` = #{promotionId} + ,`promotionSn` = #{promotionSn} + ,`promotionType` = #{promotionType} + ,`storeId` = #{storeId} + ,`valueType` = #{valueType} + ,`valueId` = #{valueId} + ,`valueNo` = #{valueNo} + ,`valueName` = #{valueName} + ,`valueExt1` = #{valueExt1} + ,`valueExt2` = #{valueExt2} + ,`schemeId` = #{schemeId} + ,`schemeSn` = #{schemeSn} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isAll` = #{isAll} + ,`goodsBlackList` = #{goodsBlackList} + ,`discountType` = #{discountType} + ,`discountValue` = #{discountValue} + ,`rule` = #{rule} + ,`setMan` = #{setMan} + ,`setTime` = #{setTime} + ,`status` = #{status} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_task + where `id` = #{id} + + + + delete from cy_promotion_task + ${condition} + + + + delete from cy_promotion_task + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + UPDATE cy_promotion_task SET `status` = 1 WHERE `tenantId` = #{tenantId} + AND `status` = 0 AND `startDate` = #{today} + + + + + UPDATE cy_promotion_task SET `status` = 3 WHERE `tenantId` = #{tenantId} + AND `status` = 1 AND `endDate` #{yesterDay} + + + + UPDATE cy_promotion_task SET `status` = 2 WHERE `tenantId` = #{tenantId} + AND `status` IN (0,1) AND `promotionId` = #{promotionId} + + + + UPDATE cy_promotion_task SET `status` = #{status} WHERE `tenantId` = #{tenantId} + AND `status` = 2 AND `promotionId` = #{promotionId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionTicketMapper.xml new file mode 100644 index 0000000..896c441 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PromotionTicketMapper.xml @@ -0,0 +1,211 @@ + + + + + + `id`,`tenantId`,`scheduleId`,`scheduleSn`,`sn`,`type`,`startDate`,`endDate`,`startTime`,`endTime`,`validWeek`,`validMonth`,`isOnlyMember`,`isAll`,`isAllStore`,`isRepeatDiscount`,`isGoods`,`isCategory`,`isStore`,`isStoreArea`,`isAreaBlack`,`isStoreBlack`,`isGoodsBlack`,`status`,`memo`,`confirmUser`,`confirmDate`,`confirmStatus`,`lastTaskDate`,`lastTaskNo`,`deleteFlag`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_promotion_ticket + + `id`,`tenantId` + ,`scheduleId` + ,`scheduleSn` + ,`sn` + ,`type` + ,`startDate` + ,`endDate` + ,`startTime` + ,`endTime` + ,`validWeek` + ,`validMonth` + ,`isOnlyMember` + ,`isAll` + ,`isAllStore` + ,`isRepeatDiscount` + ,`isGoods` + ,`isCategory` + ,`isStore` + ,`isStoreArea` + ,`isAreaBlack` + ,`isStoreBlack` + ,`isGoodsBlack` + ,`status` + ,`memo` + ,`confirmUser` + ,`confirmDate` + ,`confirmStatus` + ,`lastTaskDate` + ,`lastTaskNo` + ,`deleteFlag` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{scheduleId} + ,#{scheduleSn} + ,#{sn} + ,#{type} + ,#{startDate} + ,#{endDate} + ,#{startTime} + ,#{endTime} + ,#{validWeek} + ,#{validMonth} + ,#{isOnlyMember} + ,#{isAll} + ,#{isAllStore} + ,#{isRepeatDiscount} + ,#{isGoods} + ,#{isCategory} + ,#{isStore} + ,#{isStoreArea} + ,#{isAreaBlack} + ,#{isStoreBlack} + ,#{isGoodsBlack} + ,#{status} + ,#{memo} + ,#{confirmUser} + ,#{confirmDate} + ,#{confirmStatus} + ,#{lastTaskDate} + ,#{lastTaskNo} + ,#{deleteFlag} + ,#{createUser} + ,#{createDate} + + + + + update cy_promotion_ticket + + `tenantId` = #{tenantId} + ,`scheduleId` = #{scheduleId} + ,`scheduleSn` = #{scheduleSn} + ,`sn` = #{sn} + ,`type` = #{type} + ,`startDate` = #{startDate} + ,`endDate` = #{endDate} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`validWeek` = #{validWeek} + ,`validMonth` = #{validMonth} + ,`isOnlyMember` = #{isOnlyMember} + ,`isAll` = #{isAll} + ,`isAllStore` = #{isAllStore} + ,`isRepeatDiscount` = #{isRepeatDiscount} + ,`isGoods` = #{isGoods} + ,`isCategory` = #{isCategory} + ,`isStore` = #{isStore} + ,`isStoreArea` = #{isStoreArea} + ,`isAreaBlack` = #{isAreaBlack} + ,`isStoreBlack` = #{isStoreBlack} + ,`isGoodsBlack` = #{isGoodsBlack} + ,`status` = #{status} + ,`memo` = #{memo} + ,`confirmUser` = #{confirmUser} + ,`confirmDate` = #{confirmDate} + ,`confirmStatus` = #{confirmStatus} + ,`lastTaskDate` = #{lastTaskDate} + ,`lastTaskNo` = #{lastTaskNo} + ,`deleteFlag` = #{deleteFlag} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_promotion_ticket + where `id` = #{id} + + + + delete from cy_promotion_ticket + ${condition} + + + + delete from cy_promotion_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + UPDATE cy_promotion_ticket SET `status` = 1 WHERE `tenantId` = #{tenantId} + AND `status` = 0 AND `confirmStatus` = 1 AND `startDate` #{today} + + + + UPDATE cy_promotion_ticket SET `status` = 3 WHERE `tenantId` = #{tenantId} + AND `status` = 1 AND `confirmStatus` = 1 AND `endDate` = ]]> #{yesterDay} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketDetailMapper.xml new file mode 100644 index 0000000..21a7df7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketDetailMapper.xml @@ -0,0 +1,181 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`purchaseUnitId`,`purchaseUnitName`,`pdScale`,`amount`,`price`,`money`,`giveUnitId`,`giveUnitName`,`giveAmount`,`description`,`pbNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_storage_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`pdScale` + ,`amount` + ,`price` + ,`money` + ,`giveUnitId` + ,`giveUnitName` + ,`giveAmount` + ,`description` + ,`pbNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{pdScale} + ,#{amount} + ,#{price} + ,#{money} + ,#{giveUnitId} + ,#{giveUnitName} + ,#{giveAmount} + ,#{description} + ,#{pbNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_storage_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`pdScale` = #{pdScale} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`giveUnitId` = #{giveUnitId} + ,`giveUnitName` = #{giveUnitName} + ,`giveAmount` = #{giveAmount} + ,`description` = #{description} + ,`pbNo` = #{pbNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_detail + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_detail + ${condition} + + + + delete from cy_purchase_storage_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketLogMapper.xml new file mode 100644 index 0000000..9f520b9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_storage_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchase_storage_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_log + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket_log + ${condition} + + + + delete from cy_purchase_storage_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketMapper.xml new file mode 100644 index 0000000..8e619c4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseStorageTicketMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`no`,`purchaseTicketId`,`purchaseTicketNo`,`supplierId`,`supplierNo`,`supplierName`,`storageId`,`storageName`,`description`,`status`,`purchaseUser`,`stockMan`,`setMan`,`setDate`,`checkMan`,`checkDate`,`orderMoney`,`isPayment`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_storage_ticket + + `id`,`tenantId` + ,`no` + ,`purchaseTicketId` + ,`purchaseTicketNo` + ,`supplierId` + ,`supplierNo` + ,`supplierName` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`purchaseUser` + ,`stockMan` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`orderMoney` + ,`isPayment` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{purchaseTicketId} + ,#{purchaseTicketNo} + ,#{supplierId} + ,#{supplierNo} + ,#{supplierName} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{purchaseUser} + ,#{stockMan} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{orderMoney} + ,#{isPayment} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_storage_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`purchaseTicketId` = #{purchaseTicketId} + ,`purchaseTicketNo` = #{purchaseTicketNo} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`supplierName` = #{supplierName} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`purchaseUser` = #{purchaseUser} + ,`stockMan` = #{stockMan} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`orderMoney` = #{orderMoney} + ,`isPayment` = #{isPayment} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket + where `id` = #{id} + + + + delete from cy_purchase_storage_ticket + ${condition} + + + + delete from cy_purchase_storage_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateDetailMapper.xml new file mode 100644 index 0000000..afd04b8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateDetailMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`dispatchUnitId`,`dispatchUnitName`,`specId`,`specName`,`productDescription`,`purchaseUnitId`,`purchaseUnitName`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`specId` + ,`specName` + ,`productDescription` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_template_detail + where `id` = #{id} + + + + delete from cy_purchase_template_detail + ${condition} + + + + delete from cy_purchase_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateMapper.xml new file mode 100644 index 0000000..7cde27c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTemplateMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`type`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`type` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{type} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`type` = #{type} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_template + where `id` = #{id} + + + + delete from cy_purchase_template + ${condition} + + + + delete from cy_purchase_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketDetailMapper.xml new file mode 100644 index 0000000..c640872 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketDetailMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`stockAmount`,`purchaseUnitId`,`purchaseUnitName`,`pdScale`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`stockAmount` + ,`purchaseUnitId` + ,`purchaseUnitName` + ,`pdScale` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{stockAmount} + ,#{purchaseUnitId} + ,#{purchaseUnitName} + ,#{pdScale} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`stockAmount` = #{stockAmount} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`purchaseUnitName` = #{purchaseUnitName} + ,`pdScale` = #{pdScale} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_ticket_detail + where `id` = #{id} + + + + delete from cy_purchase_ticket_detail + ${condition} + + + + delete from cy_purchase_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketLogMapper.xml new file mode 100644 index 0000000..5cded57 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchase_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchase_ticket_log + where `id` = #{id} + + + + delete from cy_purchase_ticket_log + ${condition} + + + + delete from cy_purchase_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketMapper.xml new file mode 100644 index 0000000..244a705 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchaseTicketMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`no`,`storageId`,`supplierId`,`supplierNo`,`deliveryDate`,`status`,`isUse`,`purchaseUser`,`setMan`,`setDate`,`checkMan`,`checkDate`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_purchase_ticket + + `id`,`tenantId` + ,`no` + ,`storageId` + ,`supplierId` + ,`supplierNo` + ,`deliveryDate` + ,`status` + ,`isUse` + ,`purchaseUser` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storageId} + ,#{supplierId} + ,#{supplierNo} + ,#{deliveryDate} + ,#{status} + ,#{isUse} + ,#{purchaseUser} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_purchase_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storageId` = #{storageId} + ,`supplierId` = #{supplierId} + ,`supplierNo` = #{supplierNo} + ,`deliveryDate` = #{deliveryDate} + ,`status` = #{status} + ,`isUse` = #{isUse} + ,`purchaseUser` = #{purchaseUser} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_purchase_ticket + where `id` = #{id} + + + + delete from cy_purchase_ticket + ${condition} + + + + delete from cy_purchase_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceMapper.xml new file mode 100644 index 0000000..d056764 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`supplierId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`purchasePrice`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchaseprice + + `id`,`tenantId` + ,`supplierId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`purchasePrice` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{supplierId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{purchasePrice} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchaseprice + + `tenantId` = #{tenantId} + ,`supplierId` = #{supplierId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`purchasePrice` = #{purchasePrice} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchaseprice + where `id` = #{id} + + + + delete from cy_purchaseprice + ${condition} + + + + delete from cy_purchaseprice + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMapper.xml new file mode 100644 index 0000000..477642a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`makeUser`,`makeDate`,`checkUser`,`checkDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchaseprice_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`makeUser` + ,`makeDate` + ,`checkUser` + ,`checkDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{makeUser} + ,#{makeDate} + ,#{checkUser} + ,#{checkDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchaseprice_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`makeUser` = #{makeUser} + ,`makeDate` = #{makeDate} + ,`checkUser` = #{checkUser} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket + ${condition} + + + + delete from cy_purchaseprice_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMaterialMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMaterialMapper.xml new file mode 100644 index 0000000..b5dc528 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/PurchasepriceTicketMaterialMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`ticketId`,`supplierId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`purchaseUnitId`,`hpurchasePrice`,`purchasePrice`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_purchaseprice_ticket_material + + `id`,`tenantId` + ,`ticketId` + ,`supplierId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`purchaseUnitId` + ,`hpurchasePrice` + ,`purchasePrice` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{supplierId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{purchaseUnitId} + ,#{hpurchasePrice} + ,#{purchasePrice} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_purchaseprice_ticket_material + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`supplierId` = #{supplierId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`purchaseUnitId` = #{purchaseUnitId} + ,`hpurchasePrice` = #{hpurchasePrice} + ,`purchasePrice` = #{purchasePrice} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket_material + where `id` = #{id} + + + + delete from cy_purchaseprice_ticket_material + ${condition} + + + + delete from cy_purchaseprice_ticket_material + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceGoodsMapper.xml new file mode 100644 index 0000000..001d95d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceGoodsMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_adjust_price_goods + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_adjust_price_goods + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_goods + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_goods + ${condition} + + + + delete from cy_qimai_adjust_price_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceStoreMapper.xml new file mode 100644 index 0000000..f14cf41 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceStoreMapper.xml @@ -0,0 +1,120 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_adjust_price_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_adjust_price_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_store + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_store + ${condition} + + + + delete from cy_qimai_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceTicketMapper.xml new file mode 100644 index 0000000..b055984 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAdjustPriceTicketMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_adjust_price_ticket + + `id`,`tenantId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_qimai_adjust_price_ticket + ${condition} + + + + delete from cy_qimai_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAttributeCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAttributeCategoryMapper.xml new file mode 100644 index 0000000..3e8b7a9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAttributeCategoryMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`specFlag`,`multiId`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_attribute_category + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`specFlag` + ,`multiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{specFlag} + ,#{multiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_attribute_category + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`specFlag` = #{specFlag} + ,`multiId` = #{multiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_attribute_category + where `id` = #{id} + + + + delete from cy_qimai_attribute_category + ${condition} + + + + delete from cy_qimai_attribute_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAttributeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAttributeMapper.xml new file mode 100644 index 0000000..47d6f48 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiAttributeMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`categoryId`,`multiId`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_attribute + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`categoryId` + ,`multiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{categoryId} + ,#{multiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_attribute + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`categoryId` = #{categoryId} + ,`multiId` = #{multiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_attribute + where `id` = #{id} + + + + delete from cy_qimai_attribute + ${condition} + + + + delete from cy_qimai_attribute + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiChargeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiChargeMapper.xml new file mode 100644 index 0000000..17bf9a1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiChargeMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`setId`,`name`,`no`,`makeDetailId`,`multiId`,`type`,`tsPrice`,`wmPrice`,`enabled`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_charge + + `id`,`tenantId` + ,`setId` + ,`name` + ,`no` + ,`makeDetailId` + ,`multiId` + ,`type` + ,`tsPrice` + ,`wmPrice` + ,`enabled` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{name} + ,#{no} + ,#{makeDetailId} + ,#{multiId} + ,#{type} + ,#{tsPrice} + ,#{wmPrice} + ,#{enabled} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_charge + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`name` = #{name} + ,`no` = #{no} + ,`makeDetailId` = #{makeDetailId} + ,`multiId` = #{multiId} + ,`type` = #{type} + ,`tsPrice` = #{tsPrice} + ,`wmPrice` = #{wmPrice} + ,`enabled` = #{enabled} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_charge + where `id` = #{id} + + + + delete from cy_qimai_charge + ${condition} + + + + delete from cy_qimai_charge + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderItemMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderItemMapper.xml new file mode 100644 index 0000000..141442e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderItemMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`orderId`,`dishId`,`name`,`image`,`price`,`minus`,`costPrice`,`num`,`isSend`,`sentAt`,`isGive`,`incomeRate`,`tradeMark`,`incomeRate2`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_order_item + + `id`,`tenantId` + ,`orderId` + ,`dishId` + ,`name` + ,`image` + ,`price` + ,`minus` + ,`costPrice` + ,`num` + ,`isSend` + ,`sentAt` + ,`isGive` + ,`incomeRate` + ,`tradeMark` + ,`incomeRate2` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{dishId} + ,#{name} + ,#{image} + ,#{price} + ,#{minus} + ,#{costPrice} + ,#{num} + ,#{isSend} + ,#{sentAt} + ,#{isGive} + ,#{incomeRate} + ,#{tradeMark} + ,#{incomeRate2} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_order_item + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`dishId` = #{dishId} + ,`name` = #{name} + ,`image` = #{image} + ,`price` = #{price} + ,`minus` = #{minus} + ,`costPrice` = #{costPrice} + ,`num` = #{num} + ,`isSend` = #{isSend} + ,`sentAt` = #{sentAt} + ,`isGive` = #{isGive} + ,`incomeRate` = #{incomeRate} + ,`tradeMark` = #{tradeMark} + ,`incomeRate2` = #{incomeRate2} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_order_item + where `id` = #{id} + + + + delete from cy_qimai_order_item + ${condition} + + + + delete from cy_qimai_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderMapper.xml new file mode 100644 index 0000000..5f42270 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderMapper.xml @@ -0,0 +1,260 @@ + + + + + + `id`,`tenantId`,`message`,`storeId`,`orderId`,`multiStoreName`,`multiStoreId`,`orderNo`,`createdTime`,`payTime`,`status`,`sortNum`,`amount`,`totalAmount`,`minusAmount`,`useCoupon`,`couponType`,`postscript`,`typeCateText`,`userName`,`payUserName`,`source`,`sourceTxt`,`moblie`,`userNameAll`,`goodsName`,`refundOrderId`,`refundOrderStatus`,`refundOrderStatusText`,`goods`,`mutilUser`,`tableNumber`,`freight`,`tablewarePrice`,`finalStatus`,`statusText`,`peopleNumber`,`multiStoreMark`,`completedAt`,`reserveTakeoutTime`,`mealTime`,`express`,`lat`,`lng`,`thirdDelivery`,`acceptName`,`acceptMobile`,`address`,`payModel`,`walletAmount`,`receivableAmount`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_order + + `id`,`tenantId` + ,`message` + ,`storeId` + ,`orderId` + ,`multiStoreName` + ,`multiStoreId` + ,`orderNo` + ,`createdTime` + ,`payTime` + ,`status` + ,`sortNum` + ,`amount` + ,`totalAmount` + ,`minusAmount` + ,`useCoupon` + ,`couponType` + ,`postscript` + ,`typeCateText` + ,`userName` + ,`payUserName` + ,`source` + ,`sourceTxt` + ,`moblie` + ,`userNameAll` + ,`goodsName` + ,`refundOrderId` + ,`refundOrderStatus` + ,`refundOrderStatusText` + ,`goods` + ,`mutilUser` + ,`tableNumber` + ,`freight` + ,`tablewarePrice` + ,`finalStatus` + ,`statusText` + ,`peopleNumber` + ,`multiStoreMark` + ,`completedAt` + ,`reserveTakeoutTime` + ,`mealTime` + ,`express` + ,`lat` + ,`lng` + ,`thirdDelivery` + ,`acceptName` + ,`acceptMobile` + ,`address` + ,`payModel` + ,`walletAmount` + ,`receivableAmount` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{storeId} + ,#{orderId} + ,#{multiStoreName} + ,#{multiStoreId} + ,#{orderNo} + ,#{createdTime} + ,#{payTime} + ,#{status} + ,#{sortNum} + ,#{amount} + ,#{totalAmount} + ,#{minusAmount} + ,#{useCoupon} + ,#{couponType} + ,#{postscript} + ,#{typeCateText} + ,#{userName} + ,#{payUserName} + ,#{source} + ,#{sourceTxt} + ,#{moblie} + ,#{userNameAll} + ,#{goodsName} + ,#{refundOrderId} + ,#{refundOrderStatus} + ,#{refundOrderStatusText} + ,#{goods} + ,#{mutilUser} + ,#{tableNumber} + ,#{freight} + ,#{tablewarePrice} + ,#{finalStatus} + ,#{statusText} + ,#{peopleNumber} + ,#{multiStoreMark} + ,#{completedAt} + ,#{reserveTakeoutTime} + ,#{mealTime} + ,#{express} + ,#{lat} + ,#{lng} + ,#{thirdDelivery} + ,#{acceptName} + ,#{acceptMobile} + ,#{address} + ,#{payModel} + ,#{walletAmount} + ,#{receivableAmount} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_order + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`storeId` = #{storeId} + ,`orderId` = #{orderId} + ,`multiStoreName` = #{multiStoreName} + ,`multiStoreId` = #{multiStoreId} + ,`orderNo` = #{orderNo} + ,`createdTime` = #{createdTime} + ,`payTime` = #{payTime} + ,`status` = #{status} + ,`sortNum` = #{sortNum} + ,`amount` = #{amount} + ,`totalAmount` = #{totalAmount} + ,`minusAmount` = #{minusAmount} + ,`useCoupon` = #{useCoupon} + ,`couponType` = #{couponType} + ,`postscript` = #{postscript} + ,`typeCateText` = #{typeCateText} + ,`userName` = #{userName} + ,`payUserName` = #{payUserName} + ,`source` = #{source} + ,`sourceTxt` = #{sourceTxt} + ,`moblie` = #{moblie} + ,`userNameAll` = #{userNameAll} + ,`goodsName` = #{goodsName} + ,`refundOrderId` = #{refundOrderId} + ,`refundOrderStatus` = #{refundOrderStatus} + ,`refundOrderStatusText` = #{refundOrderStatusText} + ,`goods` = #{goods} + ,`mutilUser` = #{mutilUser} + ,`tableNumber` = #{tableNumber} + ,`freight` = #{freight} + ,`tablewarePrice` = #{tablewarePrice} + ,`finalStatus` = #{finalStatus} + ,`statusText` = #{statusText} + ,`peopleNumber` = #{peopleNumber} + ,`multiStoreMark` = #{multiStoreMark} + ,`completedAt` = #{completedAt} + ,`reserveTakeoutTime` = #{reserveTakeoutTime} + ,`mealTime` = #{mealTime} + ,`express` = #{express} + ,`lat` = #{lat} + ,`lng` = #{lng} + ,`thirdDelivery` = #{thirdDelivery} + ,`acceptName` = #{acceptName} + ,`acceptMobile` = #{acceptMobile} + ,`address` = #{address} + ,`payModel` = #{payModel} + ,`walletAmount` = #{walletAmount} + ,`receivableAmount` = #{receivableAmount} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_order + where `id` = #{id} + + + + delete from cy_qimai_order + ${condition} + + + + delete from cy_qimai_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderPayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderPayMapper.xml new file mode 100644 index 0000000..e44481d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiOrderPayMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`orderId`,`name`,`type`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_order_pay + + `id`,`tenantId` + ,`orderId` + ,`name` + ,`type` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{name} + ,#{type} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_order_pay + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`name` = #{name} + ,`type` = #{type} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_order_pay + where `id` = #{id} + + + + delete from cy_qimai_order_pay + ${condition} + + + + delete from cy_qimai_order_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductAttributeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductAttributeMapper.xml new file mode 100644 index 0000000..1d7cb7c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductAttributeMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`attributeId`,`no`,`name`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_attribute + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`attributeId` + ,`no` + ,`name` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{attributeId} + ,#{no} + ,#{name} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_product_attribute + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`attributeId` = #{attributeId} + ,`no` = #{no} + ,`name` = #{name} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_product_attribute + where `id` = #{id} + + + + delete from cy_qimai_product_attribute + ${condition} + + + + delete from cy_qimai_product_attribute + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductCategoryMapper.xml new file mode 100644 index 0000000..259580f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductCategoryMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`type`,`multiId`,`showPeriod`,`beginDate`,`endDate`,`weeks`,`period`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_category + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`type` + ,`multiId` + ,`showPeriod` + ,`beginDate` + ,`endDate` + ,`weeks` + ,`period` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{type} + ,#{multiId} + ,#{showPeriod} + ,#{beginDate} + ,#{endDate} + ,#{weeks} + ,#{period} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_category + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`type` = #{type} + ,`multiId` = #{multiId} + ,`showPeriod` = #{showPeriod} + ,`beginDate` = #{beginDate} + ,`endDate` = #{endDate} + ,`weeks` = #{weeks} + ,`period` = #{period} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_category + where `id` = #{id} + + + + delete from cy_qimai_product_category + ${condition} + + + + delete from cy_qimai_product_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductChargeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductChargeMapper.xml new file mode 100644 index 0000000..7936c31 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductChargeMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`qimaiProductId`,`multiId`,`chargeId`,`makeDetailId`,`chargeName`,`chargeMultiId`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_charge + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`qimaiProductId` + ,`multiId` + ,`chargeId` + ,`makeDetailId` + ,`chargeName` + ,`chargeMultiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{qimaiProductId} + ,#{multiId} + ,#{chargeId} + ,#{makeDetailId} + ,#{chargeName} + ,#{chargeMultiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_product_charge + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`qimaiProductId` = #{qimaiProductId} + ,`multiId` = #{multiId} + ,`chargeId` = #{chargeId} + ,`makeDetailId` = #{makeDetailId} + ,`chargeName` = #{chargeName} + ,`chargeMultiId` = #{chargeMultiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_product_charge + where `id` = #{id} + + + + delete from cy_qimai_product_charge + ${condition} + + + + delete from cy_qimai_product_charge + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductMapper.xml new file mode 100644 index 0000000..e4dfba7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductMapper.xml @@ -0,0 +1,310 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`productNo`,`name`,`description`,`multiId`,`categoryId`,`categoryPath`,`useSpec`,`unit`,`sellTimeStatus`,`sellTime`,`productionTime`,`saleType`,`content`,`packCost`,`tsOrgPrice`,`wmOrgPrice`,`tsSalePrice`,`wmSalePrice`,`isCardDiscount`,`shelveStatus`,`pricingMode`,`isSellOffline`,`isSellOnline`,`sellPrice`,`isUseProperty`,`property`,`type`,`coverImg`,`sales`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`productNo` + ,`name` + ,`description` + ,`multiId` + ,`categoryId` + ,`categoryPath` + ,`useSpec` + ,`unit` + ,`sellTimeStatus` + ,`sellTime` + ,`productionTime` + ,`saleType` + ,`content` + ,`packCost` + ,`tsOrgPrice` + ,`wmOrgPrice` + ,`tsSalePrice` + ,`wmSalePrice` + ,`isCardDiscount` + ,`shelveStatus` + ,`pricingMode` + ,`isSellOffline` + ,`isSellOnline` + ,`sellPrice` + ,`isUseProperty` + ,`property` + ,`type` + ,`coverImg` + ,`sales` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{productNo} + ,#{name} + ,#{description} + ,#{multiId} + ,#{categoryId} + ,#{categoryPath} + ,#{useSpec} + ,#{unit} + ,#{sellTimeStatus} + ,#{sellTime} + ,#{productionTime} + ,#{saleType} + ,#{content} + ,#{packCost} + ,#{tsOrgPrice} + ,#{wmOrgPrice} + ,#{tsSalePrice} + ,#{wmSalePrice} + ,#{isCardDiscount} + ,#{shelveStatus} + ,#{pricingMode} + ,#{isSellOffline} + ,#{isSellOnline} + ,#{sellPrice} + ,#{isUseProperty} + ,#{property} + ,#{type} + ,#{coverImg} + ,#{sales} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`name` = #{name} + ,`description` = #{description} + ,`multiId` = #{multiId} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`useSpec` = #{useSpec} + ,`unit` = #{unit} + ,`sellTimeStatus` = #{sellTimeStatus} + ,`sellTime` = #{sellTime} + ,`productionTime` = #{productionTime} + ,`saleType` = #{saleType} + ,`content` = #{content} + ,`packCost` = #{packCost} + ,`tsOrgPrice` = #{tsOrgPrice} + ,`wmOrgPrice` = #{wmOrgPrice} + ,`tsSalePrice` = #{tsSalePrice} + ,`wmSalePrice` = #{wmSalePrice} + ,`isCardDiscount` = #{isCardDiscount} + ,`shelveStatus` = #{shelveStatus} + ,`pricingMode` = #{pricingMode} + ,`isSellOffline` = #{isSellOffline} + ,`isSellOnline` = #{isSellOnline} + ,`sellPrice` = #{sellPrice} + ,`isUseProperty` = #{isUseProperty} + ,`property` = #{property} + ,`type` = #{type} + ,`coverImg` = #{coverImg} + ,`sales` = #{sales} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product + where `id` = #{id} + + + + delete from cy_qimai_product + ${condition} + + + + delete from cy_qimai_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductSpecMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductSpecMapper.xml new file mode 100644 index 0000000..5cdc12a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductSpecMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`setId`,`productId`,`attributeId`,`specId`,`no`,`name`,`tsOrgPrice`,`wmOrgPrice`,`tsSalePrice`,`wmSalePrice`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_spec + + `id`,`tenantId` + ,`setId` + ,`productId` + ,`attributeId` + ,`specId` + ,`no` + ,`name` + ,`tsOrgPrice` + ,`wmOrgPrice` + ,`tsSalePrice` + ,`wmSalePrice` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{setId} + ,#{productId} + ,#{attributeId} + ,#{specId} + ,#{no} + ,#{name} + ,#{tsOrgPrice} + ,#{wmOrgPrice} + ,#{tsSalePrice} + ,#{wmSalePrice} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_qimai_product_spec + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`productId` = #{productId} + ,`attributeId` = #{attributeId} + ,`specId` = #{specId} + ,`no` = #{no} + ,`name` = #{name} + ,`tsOrgPrice` = #{tsOrgPrice} + ,`wmOrgPrice` = #{wmOrgPrice} + ,`tsSalePrice` = #{tsSalePrice} + ,`wmSalePrice` = #{wmSalePrice} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_qimai_product_spec + where `id` = #{id} + + + + delete from cy_qimai_product_spec + ${condition} + + + + delete from cy_qimai_product_spec + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateDetailMapper.xml new file mode 100644 index 0000000..aa68347 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateDetailMapper.xml @@ -0,0 +1,148 @@ + + + + + + `id`,`tenantId`,`setId`,`templateId`,`templateNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`qimaiProductId`,`qimaiSpecId`,`productMultiId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_template_detail + + `id`,`tenantId` + ,`setId` + ,`templateId` + ,`templateNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`qimaiProductId` + ,`qimaiSpecId` + ,`productMultiId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{templateId} + ,#{templateNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{qimaiProductId} + ,#{qimaiSpecId} + ,#{productMultiId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_template_detail + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`qimaiProductId` = #{qimaiProductId} + ,`qimaiSpecId` = #{qimaiSpecId} + ,`productMultiId` = #{productMultiId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_template_detail + where `id` = #{id} + + + + delete from cy_qimai_product_template_detail + ${condition} + + + + delete from cy_qimai_product_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateMapper.xml new file mode 100644 index 0000000..d7c9ada --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`setId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_template + + `id`,`tenantId` + ,`setId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_template + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_template + where `id` = #{id} + + + + delete from cy_qimai_product_template + ${condition} + + + + delete from cy_qimai_product_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateStoreMapper.xml new file mode 100644 index 0000000..1d467c0 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiProductTemplateStoreMapper.xml @@ -0,0 +1,138 @@ + + + + + + `id`,`tenantId`,`setId`,`templateId`,`templateNo`,`storeId`,`storeNo`,`storeName`,`qimaiStoreId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_product_template_store + + `id`,`tenantId` + ,`setId` + ,`templateId` + ,`templateNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`qimaiStoreId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{templateId} + ,#{templateNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{qimaiStoreId} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_product_template_store + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`templateId` = #{templateId} + ,`templateNo` = #{templateNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`qimaiStoreId` = #{qimaiStoreId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_product_template_store + where `id` = #{id} + + + + delete from cy_qimai_product_template_store + ${condition} + + + + delete from cy_qimai_product_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreLableMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreLableMapper.xml new file mode 100644 index 0000000..278a7f3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreLableMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`setId`,`lableId`,`name`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_store_lable + + `id`,`tenantId` + ,`setId` + ,`lableId` + ,`name` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{lableId} + ,#{name} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_store_lable + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`lableId` = #{lableId} + ,`name` = #{name} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_store_lable + where `id` = #{id} + + + + delete from cy_qimai_store_lable + ${condition} + + + + delete from cy_qimai_store_lable + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreMapper.xml new file mode 100644 index 0000000..54e045d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreMapper.xml @@ -0,0 +1,192 @@ + + + + + + `id`,`tenantId`,`setId`,`storeId`,`storeNo`,`storeName`,`multiId`,`provinceId`,`cityId`,`areaId`,`idCard`,`photo`,`linkman`,`street`,`longitude`,`latitude`,`perPrice`,`notice`,`mobile`,`tel`,`status`,`isEat`,`isTakeout`,`isAppoint`,`lable`,`service`,`saletimes`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_store + + `id`,`tenantId` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`multiId` + ,`provinceId` + ,`cityId` + ,`areaId` + ,`idCard` + ,`photo` + ,`linkman` + ,`street` + ,`longitude` + ,`latitude` + ,`perPrice` + ,`notice` + ,`mobile` + ,`tel` + ,`status` + ,`isEat` + ,`isTakeout` + ,`isAppoint` + ,`lable` + ,`service` + ,`saletimes` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{multiId} + ,#{provinceId} + ,#{cityId} + ,#{areaId} + ,#{idCard} + ,#{photo} + ,#{linkman} + ,#{street} + ,#{longitude} + ,#{latitude} + ,#{perPrice} + ,#{notice} + ,#{mobile} + ,#{tel} + ,#{status} + ,#{isEat} + ,#{isTakeout} + ,#{isAppoint} + ,#{lable} + ,#{service} + ,#{saletimes} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_store + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`multiId` = #{multiId} + ,`provinceId` = #{provinceId} + ,`cityId` = #{cityId} + ,`areaId` = #{areaId} + ,`idCard` = #{idCard} + ,`photo` = #{photo} + ,`linkman` = #{linkman} + ,`street` = #{street} + ,`longitude` = #{longitude} + ,`latitude` = #{latitude} + ,`perPrice` = #{perPrice} + ,`notice` = #{notice} + ,`mobile` = #{mobile} + ,`tel` = #{tel} + ,`status` = #{status} + ,`isEat` = #{isEat} + ,`isTakeout` = #{isTakeout} + ,`isAppoint` = #{isAppoint} + ,`lable` = #{lable} + ,`service` = #{service} + ,`saletimes` = #{saletimes} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_store + where `id` = #{id} + + + + delete from cy_qimai_store + ${condition} + + + + delete from cy_qimai_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreProductMapper.xml new file mode 100644 index 0000000..b544b48 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiStoreProductMapper.xml @@ -0,0 +1,173 @@ + + + + + + `id`,`tenantId`,`setId`,`storeId`,`storeNo`,`storeName`,`qimaiStoreId`,`storeMultiId`,`productId`,`productNo`,`productName`,`qimaiProductId`,`productMultiId`,`specId`,`specName`,`qimaiSpecId`,`tsPrice`,`wmPrice`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_store_product + + `id`,`tenantId` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`qimaiStoreId` + ,`storeMultiId` + ,`productId` + ,`productNo` + ,`productName` + ,`qimaiProductId` + ,`productMultiId` + ,`specId` + ,`specName` + ,`qimaiSpecId` + ,`tsPrice` + ,`wmPrice` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{qimaiStoreId} + ,#{storeMultiId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{qimaiProductId} + ,#{productMultiId} + ,#{specId} + ,#{specName} + ,#{qimaiSpecId} + ,#{tsPrice} + ,#{wmPrice} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_store_product + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`qimaiStoreId` = #{qimaiStoreId} + ,`storeMultiId` = #{storeMultiId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`qimaiProductId` = #{qimaiProductId} + ,`productMultiId` = #{productMultiId} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`qimaiSpecId` = #{qimaiSpecId} + ,`tsPrice` = #{tsPrice} + ,`wmPrice` = #{wmPrice} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_store_product + where `id` = #{id} + + + + delete from cy_qimai_store_product + ${condition} + + + + delete from cy_qimai_store_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_qimai_store_product + + `tenantId` = #{tenantId} + ,`tsPrice` = #{tsPrice} + ,`wmPrice` = #{wmPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `storeId` = #{storeId} AND `specId` = #{specId} AND `productId` = #{productId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiSuitDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiSuitDetailMapper.xml new file mode 100644 index 0000000..da31466 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/QimaiSuitDetailMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`setId`,`qimaiProductId`,`suitId`,`productId`,`productNo`,`name`,`multiId`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_qimai_suit_detail + + `id`,`tenantId` + ,`setId` + ,`qimaiProductId` + ,`suitId` + ,`productId` + ,`productNo` + ,`name` + ,`multiId` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{setId} + ,#{qimaiProductId} + ,#{suitId} + ,#{productId} + ,#{productNo} + ,#{name} + ,#{multiId} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_qimai_suit_detail + + `tenantId` = #{tenantId} + ,`setId` = #{setId} + ,`qimaiProductId` = #{qimaiProductId} + ,`suitId` = #{suitId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`name` = #{name} + ,`multiId` = #{multiId} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_qimai_suit_detail + where `id` = #{id} + + + + delete from cy_qimai_suit_detail + ${condition} + + + + delete from cy_qimai_suit_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceDetailMapper.xml new file mode 100644 index 0000000..b41add8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceDetailMapper.xml @@ -0,0 +1,212 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`askgoodsAmount`,`dispatchAmount`,`dispatchUnitId`,`dispatchUnitName`,`price`,`money`,`receivegoodsAmount`,`subtotalPrice`,`differenceAmount`,`differencePrice`,`type`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_detail + + `id`,`tenantId` + ,`ticketId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`askgoodsAmount` + ,`dispatchAmount` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`price` + ,`money` + ,`receivegoodsAmount` + ,`subtotalPrice` + ,`differenceAmount` + ,`differencePrice` + ,`type` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{askgoodsAmount} + ,#{dispatchAmount} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{price} + ,#{money} + ,#{receivegoodsAmount} + ,#{subtotalPrice} + ,#{differenceAmount} + ,#{differencePrice} + ,#{type} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_difference_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`askgoodsAmount` = #{askgoodsAmount} + ,`dispatchAmount` = #{dispatchAmount} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`price` = #{price} + ,`money` = #{money} + ,`receivegoodsAmount` = #{receivegoodsAmount} + ,`subtotalPrice` = #{subtotalPrice} + ,`differenceAmount` = #{differenceAmount} + ,`differencePrice` = #{differencePrice} + ,`type` = #{type} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_difference_detail + where `id` = #{id} + + + + delete from cy_receive_difference_detail + ${condition} + + + + delete from cy_receive_difference_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketLogMapper.xml new file mode 100644 index 0000000..200d9e3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_receive_difference_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_log + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_log + ${condition} + + + + delete from cy_receive_difference_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketMapper.xml new file mode 100644 index 0000000..56aae6a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketMapper.xml @@ -0,0 +1,148 @@ + + + + + + `id`,`tenantId`,`no`,`dispatchId`,`dispatchNo`,`storeId`,`storeNo`,`storeName`,`status`,`description`,`operator`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_ticket + + `id`,`tenantId` + ,`no` + ,`dispatchId` + ,`dispatchNo` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`description` + ,`operator` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{dispatchId} + ,#{dispatchNo} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{description} + ,#{operator} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_difference_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`description` = #{description} + ,`operator` = #{operator} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_difference_ticket + where `id` = #{id} + + + + delete from cy_receive_difference_ticket + ${condition} + + + + delete from cy_receive_difference_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketPayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketPayMapper.xml new file mode 100644 index 0000000..5b2a434 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveDifferenceTicketPayMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storeId`,`storeNo`,`storeName`,`description`,`type`,`money`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_difference_ticket_pay + + `id`,`tenantId` + ,`ticketId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`description` + ,`type` + ,`money` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{description} + ,#{type} + ,#{money} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_difference_ticket_pay + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`description` = #{description} + ,`type` = #{type} + ,`money` = #{money} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_pay + where `id` = #{id} + + + + delete from cy_receive_difference_ticket_pay + ${condition} + + + + delete from cy_receive_difference_ticket_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsDetailMapper.xml new file mode 100644 index 0000000..1b115fa --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsDetailMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storageId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`dispatchUnitId`,`dispatchUnitName`,`dispatchPrice`,`askgoodsAmount`,`dispatchAmount`,`receiveAmount`,`subtotalPrice`,`differenceAmount`,`differencePrice`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_goods_detail + + `id`,`tenantId` + ,`ticketId` + ,`storageId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`dispatchUnitId` + ,`dispatchUnitName` + ,`dispatchPrice` + ,`askgoodsAmount` + ,`dispatchAmount` + ,`receiveAmount` + ,`subtotalPrice` + ,`differenceAmount` + ,`differencePrice` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storageId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{dispatchUnitId} + ,#{dispatchUnitName} + ,#{dispatchPrice} + ,#{askgoodsAmount} + ,#{dispatchAmount} + ,#{receiveAmount} + ,#{subtotalPrice} + ,#{differenceAmount} + ,#{differencePrice} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_goods_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storageId` = #{storageId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`dispatchUnitId` = #{dispatchUnitId} + ,`dispatchUnitName` = #{dispatchUnitName} + ,`dispatchPrice` = #{dispatchPrice} + ,`askgoodsAmount` = #{askgoodsAmount} + ,`dispatchAmount` = #{dispatchAmount} + ,`receiveAmount` = #{receiveAmount} + ,`subtotalPrice` = #{subtotalPrice} + ,`differenceAmount` = #{differenceAmount} + ,`differencePrice` = #{differencePrice} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_goods_detail + where `id` = #{id} + + + + delete from cy_receive_goods_detail + ${condition} + + + + delete from cy_receive_goods_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsTicketMapper.xml new file mode 100644 index 0000000..d97001e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ReceiveGoodsTicketMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`storeId`,`storageId`,`dispatchId`,`dispatchNo`,`no`,`status`,`isUse`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_receive_goods_ticket + + `id`,`tenantId` + ,`storeId` + ,`storageId` + ,`dispatchId` + ,`dispatchNo` + ,`no` + ,`status` + ,`isUse` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storageId} + ,#{dispatchId} + ,#{dispatchNo} + ,#{no} + ,#{status} + ,#{isUse} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_receive_goods_ticket + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storageId` = #{storageId} + ,`dispatchId` = #{dispatchId} + ,`dispatchNo` = #{dispatchNo} + ,`no` = #{no} + ,`status` = #{status} + ,`isUse` = #{isUse} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_receive_goods_ticket + where `id` = #{id} + + + + delete from cy_receive_goods_ticket + ${condition} + + + + delete from cy_receive_goods_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/RechargeParameterMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/RechargeParameterMapper.xml new file mode 100644 index 0000000..33e0227 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/RechargeParameterMapper.xml @@ -0,0 +1,144 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_recharge_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_recharge_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_recharge_parameter + where `id` = #{id} + + + + delete from cy_recharge_parameter + ${condition} + + + + delete from cy_recharge_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + insert into cy_recharge_parameter_store (tenantId,storeId,parameterId) values (#{tenantId},#{storeId},#{id}) + + + + + + delete from cy_recharge_parameter_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/RoleMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/RoleMapper.xml new file mode 100644 index 0000000..a81cc3a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/RoleMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`roleType`,`name`,`isDefault`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_role + + `id`,`tenantId` + ,`roleType` + ,`name` + ,`isDefault` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{roleType} + ,#{name} + ,#{isDefault} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update shared_role + + `tenantId` = #{tenantId} + ,`roleType` = #{roleType} + ,`name` = #{name} + ,`isDefault` = #{isDefault} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_role + where `id` = #{id} + + + + delete from shared_role + ${condition} + + + + delete from shared_role + where `tenantId` = #{tenantId} + and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SaleClearMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SaleClearMapper.xml new file mode 100644 index 0000000..cf5b774 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SaleClearMapper.xml @@ -0,0 +1,227 @@ + + + + + + `id`,`tenantId`,`storeNo`,`storeId`,`posNo`,`brandId`,`typeId`,`typeName`,`productId`,`productNo`,`productName`,`quantity`,`notify`,`sales`,`total`,`startTime`,`endTime`,`stopTime`,`stopUser`,`unitId`,`unitName`,`specId`,`specName`,`suitFlag`,`stopFlag`,`memo`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into pos_sale_clear + + `id`,`tenantId` + ,`storeNo` + ,`storeId` + ,`posNo` + ,`brandId` + ,`typeId` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`quantity` + ,`notify` + ,`sales` + ,`total` + ,`startTime` + ,`endTime` + ,`stopTime` + ,`stopUser` + ,`unitId` + ,`unitName` + ,`specId` + ,`specName` + ,`suitFlag` + ,`stopFlag` + ,`memo` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeNo} + ,#{storeId} + ,#{posNo} + ,#{brandId} + ,#{typeId} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{quantity} + ,#{notify} + ,#{sales} + ,#{total} + ,#{startTime} + ,#{endTime} + ,#{stopTime} + ,#{stopUser} + ,#{unitId} + ,#{unitName} + ,#{specId} + ,#{specName} + ,#{suitFlag} + ,#{stopFlag} + ,#{memo} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update pos_sale_clear + + `tenantId` = #{tenantId} + ,`storeNo` = #{storeNo} + ,`storeId` = #{storeId} + ,`posNo` = #{posNo} + ,`brandId` = #{brandId} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`quantity` = #{quantity} + ,`notify` = #{notify} + ,`sales` = #{sales} + ,`total` = #{total} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`stopTime` = #{stopTime} + ,`stopUser` = #{stopUser} + ,`unitId` = #{unitId} + ,`unitName` = #{unitName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`suitFlag` = #{suitFlag} + ,`stopFlag` = #{stopFlag} + ,`memo` = #{memo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from pos_sale_clear + where `id` = #{id} + + + + delete from pos_sale_clear + ${condition} + + + + delete from pos_sale_clear + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update pos_sale_clear + + `tenantId` = #{tenantId} + ,`storeNo` = #{storeNo} + ,`storeId` = #{storeId} + ,`posNo` = #{posNo} + ,`brandId` = #{brandId} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`quantity` = #{quantity} + ,`notify` = #{notify} + ,`sales` = #{sales} + ,`total` = #{total} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`stopTime` = #{stopTime} + ,`stopUser` = #{stopUser} + ,`unitId` = #{unitId} + ,`unitName` = #{unitName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`suitFlag` = #{suitFlag} + ,`stopFlag` = #{stopFlag} + ,`memo` = #{memo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `productId` = #{productId} + + + + delete from pos_sale_clear + where `tenantId` = #{tenantId} and `endTime` <#{endTime} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ServerDataVersionMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ServerDataVersionMapper.xml new file mode 100644 index 0000000..e0b42c3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ServerDataVersionMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`dataType`,`dataVerion`,`ext1`,`ext2`,`ext3`,`tenantId`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_server_data_version + + `id`,`tenantId` + ,`dataType` + ,`dataVerion` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{dataType} + ,#{dataVerion} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_server_data_version + + `tenantId` = #{tenantId} + ,`dataType` = #{dataType} + ,`dataVerion` = #{dataVerion} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_server_data_version + where `id` = #{id} + + + + delete from cy_server_data_version + ${condition} + + + + delete from cy_server_data_version + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderExtraMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderExtraMapper.xml new file mode 100644 index 0000000..36e0d57 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderExtraMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`orderId`,`reduceFee`,`poiCharge`,`mtCharge`,`remark`,`type`,`actDetailId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_shop_meituan_order_extra + + `id`,`tenantId` + ,`orderId` + ,`reduceFee` + ,`poiCharge` + ,`mtCharge` + ,`remark` + ,`type` + ,`actDetailId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{reduceFee} + ,#{poiCharge} + ,#{mtCharge} + ,#{remark} + ,#{type} + ,#{actDetailId} + ,#{createUser} + ,#{createDate} + + + + + update cy_shop_meituan_order_extra + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`reduceFee` = #{reduceFee} + ,`poiCharge` = #{poiCharge} + ,`mtCharge` = #{mtCharge} + ,`remark` = #{remark} + ,`type` = #{type} + ,`actDetailId` = #{actDetailId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_shop_meituan_order_extra + where `id` = #{id} + + + + delete from cy_shop_meituan_order_extra + ${condition} + + + + delete from cy_shop_meituan_order_extra + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderItemMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderItemMapper.xml new file mode 100644 index 0000000..0ec9b72 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderItemMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`tenantId`,`orderId`,`appFoodCode`,`foodName`,`quantity`,`price`,`storeId`,`skuId`,`boxNum`,`boxPrice`,`unit`,`foodDiscount`,`foodProperty`,`cartId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_shop_meituan_order_item + + `id`,`tenantId` + ,`orderId` + ,`appFoodCode` + ,`foodName` + ,`quantity` + ,`price` + ,`storeId` + ,`skuId` + ,`boxNum` + ,`boxPrice` + ,`unit` + ,`foodDiscount` + ,`foodProperty` + ,`cartId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{orderId} + ,#{appFoodCode} + ,#{foodName} + ,#{quantity} + ,#{price} + ,#{storeId} + ,#{skuId} + ,#{boxNum} + ,#{boxPrice} + ,#{unit} + ,#{foodDiscount} + ,#{foodProperty} + ,#{cartId} + ,#{createUser} + ,#{createDate} + + + + + update cy_shop_meituan_order_item + + `tenantId` = #{tenantId} + ,`orderId` = #{orderId} + ,`appFoodCode` = #{appFoodCode} + ,`foodName` = #{foodName} + ,`quantity` = #{quantity} + ,`price` = #{price} + ,`storeId` = #{storeId} + ,`skuId` = #{skuId} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`unit` = #{unit} + ,`foodDiscount` = #{foodDiscount} + ,`foodProperty` = #{foodProperty} + ,`cartId` = #{cartId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_shop_meituan_order_item + where `id` = #{id} + + + + delete from cy_shop_meituan_order_item + ${condition} + + + + delete from cy_shop_meituan_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderMapper.xml new file mode 100644 index 0000000..cc81375 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ShopMeituanOrderMapper.xml @@ -0,0 +1,303 @@ + + + + + + `id`,`tenantId`,`message`,`orderId`,`orderIdView`,`wmPoiName`,`wmPoiAddress`,`wmPoiPhone`,`storeId`,`recipientAddress`,`recipientPhone`,`backupRecipientPhone`,`recipientName`,`shippingFee`,`total`,`originalPrice`,`caution`,`shipperPhone`,`status`,`cityId`,`hasInvoiced`,`invoiceTitle`,`taxpayerId`,`cTime`,`uTime`,`deliveryTime`,`isThirdShipping`,`payType`,`pickType`,`latitude`,`longitude`,`daySeq`,`isFavorites`,`isPoiFirstOrder`,`dinnersNumber`,`logisticsCode`,`avgSendTime`,`orderSendTime`,`orderReceiveTime`,`orderConfirmTime`,`orderCancelTime`,`orderCompletedTime`,`logisticsStatus`,`logisticsId`,`logisticsName`,`logisticsSendTime`,`logisticsConfirmTime`,`logisticsCancelTime`,`logisticsFetchTime`,`logisticsCompletedTime`,`logisticsDispatcherName`,`logisticsDispatcherMobile`,`channel`,`detail`,`extras`,`poiReceiveDetail`,`cancelReason`,`cancelReasonCode`,`refundReason`,`foodShareFeeChargeByPoi`,`wmPoiReceiveCent`,`refundReasonCode`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_shop_meituan_order + + `id`,`tenantId` + ,`message` + ,`orderId` + ,`orderIdView` + ,`wmPoiName` + ,`wmPoiAddress` + ,`wmPoiPhone` + ,`storeId` + ,`recipientAddress` + ,`recipientPhone` + ,`backupRecipientPhone` + ,`recipientName` + ,`shippingFee` + ,`total` + ,`originalPrice` + ,`caution` + ,`shipperPhone` + ,`status` + ,`cityId` + ,`hasInvoiced` + ,`invoiceTitle` + ,`taxpayerId` + ,`cTime` + ,`uTime` + ,`deliveryTime` + ,`isThirdShipping` + ,`payType` + ,`pickType` + ,`latitude` + ,`longitude` + ,`daySeq` + ,`isFavorites` + ,`isPoiFirstOrder` + ,`dinnersNumber` + ,`logisticsCode` + ,`avgSendTime` + ,`orderSendTime` + ,`orderReceiveTime` + ,`orderConfirmTime` + ,`orderCancelTime` + ,`orderCompletedTime` + ,`logisticsStatus` + ,`logisticsId` + ,`logisticsName` + ,`logisticsSendTime` + ,`logisticsConfirmTime` + ,`logisticsCancelTime` + ,`logisticsFetchTime` + ,`logisticsCompletedTime` + ,`logisticsDispatcherName` + ,`logisticsDispatcherMobile` + ,`channel` + ,`detail` + ,`extras` + ,`poiReceiveDetail` + ,`cancelReason` + ,`cancelReasonCode` + ,`refundReason` + ,`foodShareFeeChargeByPoi` + ,`wmPoiReceiveCent` + ,`refundReasonCode` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{message} + ,#{orderId} + ,#{orderIdView} + ,#{wmPoiName} + ,#{wmPoiAddress} + ,#{wmPoiPhone} + ,#{storeId} + ,#{recipientAddress} + ,#{recipientPhone} + ,#{backupRecipientPhone} + ,#{recipientName} + ,#{shippingFee} + ,#{total} + ,#{originalPrice} + ,#{caution} + ,#{shipperPhone} + ,#{status} + ,#{cityId} + ,#{hasInvoiced} + ,#{invoiceTitle} + ,#{taxpayerId} + ,#{cTime} + ,#{uTime} + ,#{deliveryTime} + ,#{isThirdShipping} + ,#{payType} + ,#{pickType} + ,#{latitude} + ,#{longitude} + ,#{daySeq} + ,#{isFavorites} + ,#{isPoiFirstOrder} + ,#{dinnersNumber} + ,#{logisticsCode} + ,#{avgSendTime} + ,#{orderSendTime} + ,#{orderReceiveTime} + ,#{orderConfirmTime} + ,#{orderCancelTime} + ,#{orderCompletedTime} + ,#{logisticsStatus} + ,#{logisticsId} + ,#{logisticsName} + ,#{logisticsSendTime} + ,#{logisticsConfirmTime} + ,#{logisticsCancelTime} + ,#{logisticsFetchTime} + ,#{logisticsCompletedTime} + ,#{logisticsDispatcherName} + ,#{logisticsDispatcherMobile} + ,#{channel} + ,#{detail} + ,#{extras} + ,#{poiReceiveDetail} + ,#{cancelReason} + ,#{cancelReasonCode} + ,#{refundReason} + ,#{foodShareFeeChargeByPoi} + ,#{wmPoiReceiveCent} + ,#{refundReasonCode} + ,#{createUser} + ,#{createDate} + + + + + update cy_shop_meituan_order + + `tenantId` = #{tenantId} + ,`message` = #{message} + ,`orderId` = #{orderId} + ,`orderIdView` = #{orderIdView} + ,`wmPoiName` = #{wmPoiName} + ,`wmPoiAddress` = #{wmPoiAddress} + ,`wmPoiPhone` = #{wmPoiPhone} + ,`storeId` = #{storeId} + ,`recipientAddress` = #{recipientAddress} + ,`recipientPhone` = #{recipientPhone} + ,`backupRecipientPhone` = #{backupRecipientPhone} + ,`recipientName` = #{recipientName} + ,`shippingFee` = #{shippingFee} + ,`total` = #{total} + ,`originalPrice` = #{originalPrice} + ,`caution` = #{caution} + ,`shipperPhone` = #{shipperPhone} + ,`status` = #{status} + ,`cityId` = #{cityId} + ,`hasInvoiced` = #{hasInvoiced} + ,`invoiceTitle` = #{invoiceTitle} + ,`taxpayerId` = #{taxpayerId} + ,`cTime` = #{cTime} + ,`uTime` = #{uTime} + ,`deliveryTime` = #{deliveryTime} + ,`isThirdShipping` = #{isThirdShipping} + ,`payType` = #{payType} + ,`pickType` = #{pickType} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`daySeq` = #{daySeq} + ,`isFavorites` = #{isFavorites} + ,`isPoiFirstOrder` = #{isPoiFirstOrder} + ,`dinnersNumber` = #{dinnersNumber} + ,`logisticsCode` = #{logisticsCode} + ,`avgSendTime` = #{avgSendTime} + ,`orderSendTime` = #{orderSendTime} + ,`orderReceiveTime` = #{orderReceiveTime} + ,`orderConfirmTime` = #{orderConfirmTime} + ,`orderCancelTime` = #{orderCancelTime} + ,`orderCompletedTime` = #{orderCompletedTime} + ,`logisticsStatus` = #{logisticsStatus} + ,`logisticsId` = #{logisticsId} + ,`logisticsName` = #{logisticsName} + ,`logisticsSendTime` = #{logisticsSendTime} + ,`logisticsConfirmTime` = #{logisticsConfirmTime} + ,`logisticsCancelTime` = #{logisticsCancelTime} + ,`logisticsFetchTime` = #{logisticsFetchTime} + ,`logisticsCompletedTime` = #{logisticsCompletedTime} + ,`logisticsDispatcherName` = #{logisticsDispatcherName} + ,`logisticsDispatcherMobile` = #{logisticsDispatcherMobile} + ,`channel` = #{channel} + ,`detail` = #{detail} + ,`extras` = #{extras} + ,`poiReceiveDetail` = #{poiReceiveDetail} + ,`cancelReason` = #{cancelReason} + ,`cancelReasonCode` = #{cancelReasonCode} + ,`refundReason` = #{refundReason} + ,`foodShareFeeChargeByPoi` = #{foodShareFeeChargeByPoi} + ,`wmPoiReceiveCent` = #{wmPoiReceiveCent} + ,`refundReasonCode` = #{refundReasonCode} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_shop_meituan_order + where `id` = #{id} + + + + delete from cy_shop_meituan_order + ${condition} + + + + delete from cy_shop_meituan_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitFoodAccountMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitFoodAccountMapper.xml new file mode 100644 index 0000000..93a3880 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitFoodAccountMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`tenantId`,`shopId`,`goodId`,`storeId`,`accountId`,`type`,`status`,`detail`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_split_food_account + + `id`,`tenantId` + ,`shopId` + ,`goodId` + ,`storeId` + ,`accountId` + ,`type` + ,`status` + ,`detail` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{shopId} + ,#{goodId} + ,#{storeId} + ,#{accountId} + ,#{type} + ,#{status} + ,#{detail} + ,#{createUser} + ,#{createDate} + + + + + update cy_split_food_account + + `tenantId` = #{tenantId} + ,`shopId` = #{shopId} + ,`goodId` = #{goodId} + ,`storeId` = #{storeId} + ,`accountId` = #{accountId} + ,`type` = #{type} + ,`status` = #{status} + ,`detail` = #{detail} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_split_food_account + where `id` = #{id} + + + + delete from cy_split_food_account + ${condition} + + + + delete from cy_split_food_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitPayLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitPayLogMapper.xml new file mode 100644 index 0000000..eebd55d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitPayLogMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`splitStoreId`,`storeNo`,`requestDomain`,`requestMessage`,`responseMessage`,`remark1`,`remark2`,`remark3`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_split_pay_log + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`requestDomain` + ,`requestMessage` + ,`responseMessage` + ,`remark1` + ,`remark2` + ,`remark3` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{requestDomain} + ,#{requestMessage} + ,#{responseMessage} + ,#{remark1} + ,#{remark2} + ,#{remark3} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update cy_split_pay_log + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`requestDomain` = #{requestDomain} + ,`requestMessage` = #{requestMessage} + ,`responseMessage` = #{responseMessage} + ,`remark1` = #{remark1} + ,`remark2` = #{remark2} + ,`remark3` = #{remark3} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_split_pay_log + where `id` = #{id} + + + + delete from cy_split_pay_log + ${condition} + + + + delete from cy_split_pay_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitPayResultMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitPayResultMapper.xml new file mode 100644 index 0000000..98b2aaa --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitPayResultMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`splitStoreId`,`storeNo`,`payNo`,`ticketId`,`busNo`,`money`,`ymoney`,`smoney`,`memo`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_split_pay_result + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`money` + ,`ymoney` + ,`smoney` + ,`memo` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{money} + ,#{ymoney} + ,#{smoney} + ,#{memo} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update cy_split_pay_result + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`money` = #{money} + ,`ymoney` = #{ymoney} + ,`smoney` = #{smoney} + ,`memo` = #{memo} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_split_pay_result + where `id` = #{id} + + + + delete from cy_split_pay_result + ${condition} + + + + delete from cy_split_pay_result + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitShopAccountMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitShopAccountMapper.xml new file mode 100644 index 0000000..73ec728 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitShopAccountMapper.xml @@ -0,0 +1,255 @@ + + + + + + `id`,`tenantId`,`shopId`,`bizUserId`,`phone`,`companyName`,`companyAddress`,`authType`,`uniCredit`,`businessLicense`,`organizationCode`,`taxRegister`,`expLicense`,`telephone`,`legalName`,`identityType`,`legalIds`,`legalPhone`,`accountNo`,`parentBankName`,`bankCityNo`,`bankName`,`unionBank`,`province`,`city`,`backUrl`,`memberType`,`isphone`,`iscreate`,`isinfo`,`isvideo`,`isagree`,`istermInfo`,`isvspTermidInfo`,`pictureUrl`,`oppositeidCardUrl`,`frontidCardUrl`,`vspMerchantid`,`vspCusId`,`vspTermid`,`setDate`,`source`,`type`,`status`,`detail`,`totalAmount`,`frozenAmount`,`withdrawableAmount`,`totalTlAmount`,`frozenTlAmount`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_split_shop_account + + `id`,`tenantId` + ,`shopId` + ,`bizUserId` + ,`phone` + ,`companyName` + ,`companyAddress` + ,`authType` + ,`uniCredit` + ,`businessLicense` + ,`organizationCode` + ,`taxRegister` + ,`expLicense` + ,`telephone` + ,`legalName` + ,`identityType` + ,`legalIds` + ,`legalPhone` + ,`accountNo` + ,`parentBankName` + ,`bankCityNo` + ,`bankName` + ,`unionBank` + ,`province` + ,`city` + ,`backUrl` + ,`memberType` + ,`isphone` + ,`iscreate` + ,`isinfo` + ,`isvideo` + ,`isagree` + ,`istermInfo` + ,`isvspTermidInfo` + ,`pictureUrl` + ,`oppositeidCardUrl` + ,`frontidCardUrl` + ,`vspMerchantid` + ,`vspCusId` + ,`vspTermid` + ,`setDate` + ,`source` + ,`type` + ,`status` + ,`detail` + ,`totalAmount` + ,`frozenAmount` + ,`withdrawableAmount` + ,`totalTlAmount` + ,`frozenTlAmount` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{shopId} + ,#{bizUserId} + ,#{phone} + ,#{companyName} + ,#{companyAddress} + ,#{authType} + ,#{uniCredit} + ,#{businessLicense} + ,#{organizationCode} + ,#{taxRegister} + ,#{expLicense} + ,#{telephone} + ,#{legalName} + ,#{identityType} + ,#{legalIds} + ,#{legalPhone} + ,#{accountNo} + ,#{parentBankName} + ,#{bankCityNo} + ,#{bankName} + ,#{unionBank} + ,#{province} + ,#{city} + ,#{backUrl} + ,#{memberType} + ,#{isphone} + ,#{iscreate} + ,#{isinfo} + ,#{isvideo} + ,#{isagree} + ,#{istermInfo} + ,#{isvspTermidInfo} + ,#{pictureUrl} + ,#{oppositeidCardUrl} + ,#{frontidCardUrl} + ,#{vspMerchantid} + ,#{vspCusId} + ,#{vspTermid} + ,#{setDate} + ,#{source} + ,#{type} + ,#{status} + ,#{detail} + ,#{totalAmount} + ,#{frozenAmount} + ,#{withdrawableAmount} + ,#{totalTlAmount} + ,#{frozenTlAmount} + ,#{createUser} + ,#{createDate} + + + + + update cy_split_shop_account + + `tenantId` = #{tenantId} + ,`shopId` = #{shopId} + ,`bizUserId` = #{bizUserId} + ,`phone` = #{phone} + ,`companyName` = #{companyName} + ,`companyAddress` = #{companyAddress} + ,`authType` = #{authType} + ,`uniCredit` = #{uniCredit} + ,`businessLicense` = #{businessLicense} + ,`organizationCode` = #{organizationCode} + ,`taxRegister` = #{taxRegister} + ,`expLicense` = #{expLicense} + ,`telephone` = #{telephone} + ,`legalName` = #{legalName} + ,`identityType` = #{identityType} + ,`legalIds` = #{legalIds} + ,`legalPhone` = #{legalPhone} + ,`accountNo` = #{accountNo} + ,`parentBankName` = #{parentBankName} + ,`bankCityNo` = #{bankCityNo} + ,`bankName` = #{bankName} + ,`unionBank` = #{unionBank} + ,`province` = #{province} + ,`city` = #{city} + ,`backUrl` = #{backUrl} + ,`memberType` = #{memberType} + ,`isphone` = #{isphone} + ,`iscreate` = #{iscreate} + ,`isinfo` = #{isinfo} + ,`isvideo` = #{isvideo} + ,`isagree` = #{isagree} + ,`istermInfo` = #{istermInfo} + ,`isvspTermidInfo` = #{isvspTermidInfo} + ,`pictureUrl` = #{pictureUrl} + ,`oppositeidCardUrl` = #{oppositeidCardUrl} + ,`frontidCardUrl` = #{frontidCardUrl} + ,`vspMerchantid` = #{vspMerchantid} + ,`vspCusId` = #{vspCusId} + ,`vspTermid` = #{vspTermid} + ,`setDate` = #{setDate} + ,`source` = #{source} + ,`type` = #{type} + ,`status` = #{status} + ,`detail` = #{detail} + ,`totalAmount` = #{totalAmount} + ,`frozenAmount` = #{frozenAmount} + ,`withdrawableAmount` = #{withdrawableAmount} + ,`totalTlAmount` = #{totalTlAmount} + ,`frozenTlAmount` = #{frozenTlAmount} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_split_shop_account + where `id` = #{id} + + + + delete from cy_split_shop_account + ${condition} + + + + delete from cy_split_shop_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitShopWithdrawalMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitShopWithdrawalMapper.xml new file mode 100644 index 0000000..2c2de3c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitShopWithdrawalMapper.xml @@ -0,0 +1,157 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`storeId`,`splitStoreId`,`storeNo`,`payTypeNo`,`amount`,`fee`,`receivedAmount`,`payDate`,`cardno`,`ext`,`memo`,`type`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_split_shop_withdrawal + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`payTypeNo` + ,`amount` + ,`fee` + ,`receivedAmount` + ,`payDate` + ,`cardno` + ,`ext` + ,`memo` + ,`type` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{payTypeNo} + ,#{amount} + ,#{fee} + ,#{receivedAmount} + ,#{payDate} + ,#{cardno} + ,#{ext} + ,#{memo} + ,#{type} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update cy_split_shop_withdrawal + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`payTypeNo` = #{payTypeNo} + ,`amount` = #{amount} + ,`fee` = #{fee} + ,`receivedAmount` = #{receivedAmount} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`ext` = #{ext} + ,`memo` = #{memo} + ,`type` = #{type} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_split_shop_withdrawal + where `id` = #{id} + + + + delete from cy_split_shop_withdrawal + ${condition} + + + + delete from cy_split_shop_withdrawal + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitStorePayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitStorePayMapper.xml new file mode 100644 index 0000000..3a3f97b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SplitStorePayMapper.xml @@ -0,0 +1,266 @@ + + + + + + `id`,`clientId`,`tenantId`,`programId`,`storeId`,`splitStoreId`,`storeNo`,`payNo`,`ticketId`,`bizOrderNo`,`busNo`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`voucherNo`,`payDate`,`cardno`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payClientType`,`payChannel`,`deductionRate`,`chargeBack`,`memo`,`isInvalid`,`isRefund`,`refundAmount`,`fromBizUserId`,`orderType`,`unitPrice`,`number`,`rnumber`,`goodId`,`tableNo`,`people`,`workNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser`,`fee` + + + + + + + + + + + + + + + + + + + + insert into cy_split_store_pay + + `id`,`tenantId` + ,`clientId` + ,`programId` + ,`storeId` + ,`splitStoreId` + ,`storeNo` + ,`payNo` + ,`ticketId` + ,`bizOrderNo` + ,`busNo` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payClientType` + ,`payChannel` + ,`deductionRate` + ,`chargeBack` + ,`memo` + ,`isInvalid` + ,`isRefund` + ,`refundAmount` + ,`fromBizUserId` + ,`orderType` + ,`unitPrice` + ,`number` + ,`rnumber` + ,`goodId` + ,`tableNo` + ,`people` + ,`workNo` + ,`createDate` + ,`createUser` + ,`fee` + + + #{id},#{tenantId} + ,#{clientId} + ,#{programId} + ,#{storeId} + ,#{splitStoreId} + ,#{storeNo} + ,#{payNo} + ,#{ticketId} + ,#{bizOrderNo} + ,#{busNo} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payClientType} + ,#{payChannel} + ,#{deductionRate} + ,#{chargeBack} + ,#{memo} + ,#{isInvalid} + ,#{isRefund} + ,#{refundAmount} + ,#{fromBizUserId} + ,#{orderType} + ,#{unitPrice} + ,#{number} + ,#{rnumber} + ,#{goodId} + ,#{tableNo} + ,#{people} + ,#{workNo} + ,#{createDate} + ,#{createUser} + ,#{fee} + + + + + update cy_split_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`programId` = #{programId} + ,`storeId` = #{storeId} + ,`splitStoreId` = #{splitStoreId} + ,`storeNo` = #{storeNo} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`bizOrderNo` = #{bizOrderNo} + ,`busNo` = #{busNo} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payClientType` = #{payClientType} + ,`payChannel` = #{payChannel} + ,`deductionRate` = #{deductionRate} + ,`chargeBack` = #{chargeBack} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`isRefund` = #{isRefund} + ,`refundAmount` = #{refundAmount} + ,`fromBizUserId` = #{fromBizUserId} + ,`orderType` = #{orderType} + ,`unitPrice` = #{unitPrice} + ,`number` = #{number} + ,`rnumber` = #{rnumber} + ,`goodId` = #{goodId} + ,`tableNo` = #{tableNo} + ,`people` = #{people} + ,`workNo` = #{workNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + ,`fee` = #{fee} + + where `id` = #{id} + + + + delete from cy_split_store_pay + where `id` = #{id} + + + + delete from cy_split_store_pay + ${condition} + + + + delete from cy_split_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorageMapper.xml new file mode 100644 index 0000000..2b5ea6c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorageMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`typeId`,`name`,`no`,`manager`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_storage + + `id`,`tenantId` + ,`typeId` + ,`name` + ,`no` + ,`manager` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{typeId} + ,#{name} + ,#{no} + ,#{manager} + ,#{createUser} + ,#{createDate} + + + + + update cy_storage + + `tenantId` = #{tenantId} + ,`typeId` = #{typeId} + ,`name` = #{name} + ,`no` = #{no} + ,`manager` = #{manager} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_storage + where `id` = #{id} + + + + delete from cy_storage + ${condition} + + + + delete from cy_storage + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_storage set typeId=NULL + where tenantId=#{tenantId} and typeId=#{typeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorageTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorageTypeMapper.xml new file mode 100644 index 0000000..28402e1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorageTypeMapper.xml @@ -0,0 +1,114 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_storage_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{createDate} + ,#{createUser} + + + + + update cy_storage_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storage_type + where `id` = #{id} + + + + delete from cy_storage_type + ${condition} + + + + delete from cy_storage_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountDetailMapper.xml new file mode 100644 index 0000000..ce6cea3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountDetailMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`accountId`,`storeId`,`storeNo`,`type`,`busType`,`busNo`,`busTime`,`payType`,`voucherNo`,`status`,`amount`,`aftAmount`,`workerNo`,`posNo`,`sourceSign`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account_detail + + `id`,`tenantId` + ,`accountId` + ,`storeId` + ,`storeNo` + ,`type` + ,`busType` + ,`busNo` + ,`busTime` + ,`payType` + ,`voucherNo` + ,`status` + ,`amount` + ,`aftAmount` + ,`workerNo` + ,`posNo` + ,`sourceSign` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{accountId} + ,#{storeId} + ,#{storeNo} + ,#{type} + ,#{busType} + ,#{busNo} + ,#{busTime} + ,#{payType} + ,#{voucherNo} + ,#{status} + ,#{amount} + ,#{aftAmount} + ,#{workerNo} + ,#{posNo} + ,#{sourceSign} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_account_detail + + `tenantId` = #{tenantId} + ,`accountId` = #{accountId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`type` = #{type} + ,`busType` = #{busType} + ,`busNo` = #{busNo} + ,`busTime` = #{busTime} + ,`payType` = #{payType} + ,`voucherNo` = #{voucherNo} + ,`status` = #{status} + ,`amount` = #{amount} + ,`aftAmount` = #{aftAmount} + ,`workerNo` = #{workerNo} + ,`posNo` = #{posNo} + ,`sourceSign` = #{sourceSign} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_account_detail + where `id` = #{id} + + + + delete from cy_store_account_detail + ${condition} + + + + delete from cy_store_account_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountMapper.xml new file mode 100644 index 0000000..3a3fb6e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountMapper.xml @@ -0,0 +1,132 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`status`,`payPwd`,`description`,`amount`,`freezeAmount`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`status` + ,`payPwd` + ,`description` + ,`amount` + ,`freezeAmount` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{status} + ,#{payPwd} + ,#{description} + ,#{amount} + ,#{freezeAmount} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_account + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`status` = #{status} + ,`payPwd` = #{payPwd} + ,`description` = #{description} + ,`amount` = #{amount} + ,`freezeAmount` = #{freezeAmount} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_account + where `id` = #{id} + + + + delete from cy_store_account + ${condition} + + + + delete from cy_store_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeParameterMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeParameterMapper.xml new file mode 100644 index 0000000..a0a01e6 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeParameterMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account_recharge_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_account_recharge_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_account_recharge_parameter + where `id` = #{id} + + + + delete from cy_store_account_recharge_parameter + ${condition} + + + + delete from cy_store_account_recharge_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeRecordMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeRecordMapper.xml new file mode 100644 index 0000000..b6ed87e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAccountRechargeRecordMapper.xml @@ -0,0 +1,167 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`accountId`,`sourceSign`,`ticketNo`,`amount`,`status`,`rechargeStatus`,`description`,`payType`,`payVoucherNo`,`payDate`,`payAccount`,`title`,`content`,`deviceInfo`,`attach`,`reqStr`,`respStr`,`notifySign`,`notifyData`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_account_recharge_record + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`accountId` + ,`sourceSign` + ,`ticketNo` + ,`amount` + ,`status` + ,`rechargeStatus` + ,`description` + ,`payType` + ,`payVoucherNo` + ,`payDate` + ,`payAccount` + ,`title` + ,`content` + ,`deviceInfo` + ,`attach` + ,`reqStr` + ,`respStr` + ,`notifySign` + ,`notifyData` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{accountId} + ,#{sourceSign} + ,#{ticketNo} + ,#{amount} + ,#{status} + ,#{rechargeStatus} + ,#{description} + ,#{payType} + ,#{payVoucherNo} + ,#{payDate} + ,#{payAccount} + ,#{title} + ,#{content} + ,#{deviceInfo} + ,#{attach} + ,#{reqStr} + ,#{respStr} + ,#{notifySign} + ,#{notifyData} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_account_recharge_record + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`accountId` = #{accountId} + ,`sourceSign` = #{sourceSign} + ,`ticketNo` = #{ticketNo} + ,`amount` = #{amount} + ,`status` = #{status} + ,`rechargeStatus` = #{rechargeStatus} + ,`description` = #{description} + ,`payType` = #{payType} + ,`payVoucherNo` = #{payVoucherNo} + ,`payDate` = #{payDate} + ,`payAccount` = #{payAccount} + ,`title` = #{title} + ,`content` = #{content} + ,`deviceInfo` = #{deviceInfo} + ,`attach` = #{attach} + ,`reqStr` = #{reqStr} + ,`respStr` = #{respStr} + ,`notifySign` = #{notifySign} + ,`notifyData` = #{notifyData} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_account_recharge_record + where `id` = #{id} + + + + delete from cy_store_account_recharge_record + ${condition} + + + + delete from cy_store_account_recharge_record + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAreaMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAreaMapper.xml new file mode 100644 index 0000000..a0caa3f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreAreaMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`parentId`,`no`,`name`,`path`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_area + + `id`,`tenantId` + ,`parentId` + ,`no` + ,`name` + ,`path` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{parentId} + ,#{no} + ,#{name} + ,#{path} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_area + + `tenantId` = #{tenantId} + ,`parentId` = #{parentId} + ,`no` = #{no} + ,`name` = #{name} + ,`path` = #{path} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_area + where `id` = #{id} + + + + delete from cy_store_area + ${condition} + + + + delete from cy_store_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store_area + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketCheckMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketCheckMapper.xml new file mode 100644 index 0000000..0b345a2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketCheckMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`storeId`,`busNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_check + + `id`,`tenantId` + ,`storeId` + ,`busNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{busNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_check + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`busNo` = #{busNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_check + where `id` = #{id} + + + + delete from cy_store_business_ticket_check + ${condition} + + + + delete from cy_store_business_ticket_check + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketDeliveryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketDeliveryMapper.xml new file mode 100644 index 0000000..9345d55 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketDeliveryMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`isInvalid`,`orderTime`,`visitorName`,`orderTel`,`recipientName`,`recipientPhone`,`recipientAddress`,`deliveryWorkerNo`,`deliveryWorkerName`,`advanceAmount`,`distributionFee`,`deliveryBeginTime`,`deliveryEndTime`,`settlementTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_delivery + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`isInvalid` + ,`orderTime` + ,`visitorName` + ,`orderTel` + ,`recipientName` + ,`recipientPhone` + ,`recipientAddress` + ,`deliveryWorkerNo` + ,`deliveryWorkerName` + ,`advanceAmount` + ,`distributionFee` + ,`deliveryBeginTime` + ,`deliveryEndTime` + ,`settlementTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{isInvalid} + ,#{orderTime} + ,#{visitorName} + ,#{orderTel} + ,#{recipientName} + ,#{recipientPhone} + ,#{recipientAddress} + ,#{deliveryWorkerNo} + ,#{deliveryWorkerName} + ,#{advanceAmount} + ,#{distributionFee} + ,#{deliveryBeginTime} + ,#{deliveryEndTime} + ,#{settlementTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_delivery + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`isInvalid` = #{isInvalid} + ,`orderTime` = #{orderTime} + ,`visitorName` = #{visitorName} + ,`orderTel` = #{orderTel} + ,`recipientName` = #{recipientName} + ,`recipientPhone` = #{recipientPhone} + ,`recipientAddress` = #{recipientAddress} + ,`deliveryWorkerNo` = #{deliveryWorkerNo} + ,`deliveryWorkerName` = #{deliveryWorkerName} + ,`advanceAmount` = #{advanceAmount} + ,`distributionFee` = #{distributionFee} + ,`deliveryBeginTime` = #{deliveryBeginTime} + ,`deliveryEndTime` = #{deliveryEndTime} + ,`settlementTime` = #{settlementTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_delivery + where `id` = #{id} + + + + delete from cy_store_business_ticket_delivery + ${condition} + + + + delete from cy_store_business_ticket_delivery + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketInfoMapper.xml new file mode 100644 index 0000000..8cd5434 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketInfoMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_info + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_info + where `id` = #{id} + + + + delete from cy_store_business_ticket_info + ${condition} + + + + delete from cy_store_business_ticket_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketMapper.xml new file mode 100644 index 0000000..ae8a5f3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketMapper.xml @@ -0,0 +1,385 @@ + + + + + + `id`,`clientId`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`workNo`,`saleDate`,`tableNo`,`people`,`busMode`,`shiftNo`,`shiftName`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`memberNo`,`memberJifen`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`isInvalid`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket + + `id`,`tenantId` + ,`clientId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`workNo` + ,`saleDate` + ,`tableNo` + ,`people` + ,`busMode` + ,`shiftNo` + ,`shiftName` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`memberNo` + ,`memberJifen` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`isInvalid` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{workNo} + ,#{saleDate} + ,#{tableNo} + ,#{people} + ,#{busMode} + ,#{shiftNo} + ,#{shiftName} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{memberNo} + ,#{memberJifen} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{isInvalid} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`workNo` = #{workNo} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`memberJifen` = #{memberJifen} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`isInvalid` = #{isInvalid} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket + where `id` = #{id} + + + + delete from cy_store_business_ticket + ${condition} + + + + delete from cy_store_business_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + update cy_store_business_ticket + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{ticketId} + + + + + update cy_store_business_ticket_info + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `ticketId` = #{ticketId} + + + + + update cy_store_order_product + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_order_product_info + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_order_product_make + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_pay + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_business_ticket_delivery + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + update cy_store_business_ticket_table + set `isInvalid`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `ticketId` = #{ticketId} and `busNo` = #{ticketNo} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketTableMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketTableMapper.xml new file mode 100644 index 0000000..18cc21e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreBusinessTicketTableMapper.xml @@ -0,0 +1,215 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`isInvalid`,`tableId`,`tableNo`,`tableName`,`typeId`,`typeNo`,`typeName`,`areaId`,`areaNo`,`areaName`,`tableStatus`,`openTime`,`openUser`,`serialNo`,`seatNumber`,`peopleNumber`,`excessFlag`,`totalAmount`,`totalRefund`,`totalQuantity`,`discountAmount`,`discountRate`,`receivableAmount`,`paidAmount`,`malingAmount`,`masterTable`,`perCapitaAmount`,`posNo`,`payNo`,`finishTime`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_business_ticket_table + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`isInvalid` + ,`tableId` + ,`tableNo` + ,`tableName` + ,`typeId` + ,`typeNo` + ,`typeName` + ,`areaId` + ,`areaNo` + ,`areaName` + ,`tableStatus` + ,`openTime` + ,`openUser` + ,`serialNo` + ,`seatNumber` + ,`peopleNumber` + ,`excessFlag` + ,`totalAmount` + ,`totalRefund` + ,`totalQuantity` + ,`discountAmount` + ,`discountRate` + ,`receivableAmount` + ,`paidAmount` + ,`malingAmount` + ,`masterTable` + ,`perCapitaAmount` + ,`posNo` + ,`payNo` + ,`finishTime` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{isInvalid} + ,#{tableId} + ,#{tableNo} + ,#{tableName} + ,#{typeId} + ,#{typeNo} + ,#{typeName} + ,#{areaId} + ,#{areaNo} + ,#{areaName} + ,#{tableStatus} + ,#{openTime} + ,#{openUser} + ,#{serialNo} + ,#{seatNumber} + ,#{peopleNumber} + ,#{excessFlag} + ,#{totalAmount} + ,#{totalRefund} + ,#{totalQuantity} + ,#{discountAmount} + ,#{discountRate} + ,#{receivableAmount} + ,#{paidAmount} + ,#{malingAmount} + ,#{masterTable} + ,#{perCapitaAmount} + ,#{posNo} + ,#{payNo} + ,#{finishTime} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_business_ticket_table + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`isInvalid` = #{isInvalid} + ,`tableId` = #{tableId} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`typeId` = #{typeId} + ,`typeNo` = #{typeNo} + ,`typeName` = #{typeName} + ,`areaId` = #{areaId} + ,`areaNo` = #{areaNo} + ,`areaName` = #{areaName} + ,`tableStatus` = #{tableStatus} + ,`openTime` = #{openTime} + ,`openUser` = #{openUser} + ,`serialNo` = #{serialNo} + ,`seatNumber` = #{seatNumber} + ,`peopleNumber` = #{peopleNumber} + ,`excessFlag` = #{excessFlag} + ,`totalAmount` = #{totalAmount} + ,`totalRefund` = #{totalRefund} + ,`totalQuantity` = #{totalQuantity} + ,`discountAmount` = #{discountAmount} + ,`discountRate` = #{discountRate} + ,`receivableAmount` = #{receivableAmount} + ,`paidAmount` = #{paidAmount} + ,`malingAmount` = #{malingAmount} + ,`masterTable` = #{masterTable} + ,`perCapitaAmount` = #{perCapitaAmount} + ,`posNo` = #{posNo} + ,`payNo` = #{payNo} + ,`finishTime` = #{finishTime} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_business_ticket_table + where `id` = #{id} + + + + delete from cy_store_business_ticket_table + ${condition} + + + + delete from cy_store_business_ticket_table + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostManageLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostManageLogMapper.xml new file mode 100644 index 0000000..d922ad3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostManageLogMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`feeId`,`feeName`,`storeNos`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_cost_manage_log + + `id`,`tenantId` + ,`feeId` + ,`feeName` + ,`storeNos` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{feeId} + ,#{feeName} + ,#{storeNos} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_cost_manage_log + + `tenantId` = #{tenantId} + ,`feeId` = #{feeId} + ,`feeName` = #{feeName} + ,`storeNos` = #{storeNos} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_cost_manage_log + where `id` = #{id} + + + + delete from cy_store_cost_manage_log + ${condition} + + + + delete from cy_store_cost_manage_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostManageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostManageMapper.xml new file mode 100644 index 0000000..f78351c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostManageMapper.xml @@ -0,0 +1,183 @@ + + + + + + `id`,`tenantId`,`feeType`,`no`,`name`,`money`,`cutPaymentType`,`cutPaymentTime`,`cronTime`,`startTime`,`endTime`,`status`,`exeStatus`,`isEnable`,`beforeMoney`,`beforeCronTime`,`checkMan`,`checkTime`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_cost_manage + + `id`,`tenantId` + ,`feeType` + ,`no` + ,`name` + ,`money` + ,`cutPaymentType` + ,`cutPaymentTime` + ,`cronTime` + ,`startTime` + ,`endTime` + ,`status` + ,`exeStatus` + ,`isEnable` + ,`beforeMoney` + ,`beforeCronTime` + ,`checkMan` + ,`checkTime` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{feeType} + ,#{no} + ,#{name} + ,#{money} + ,#{cutPaymentType} + ,#{cutPaymentTime} + ,#{cronTime} + ,#{startTime} + ,#{endTime} + ,#{status} + ,#{exeStatus} + ,#{isEnable} + ,#{beforeMoney} + ,#{beforeCronTime} + ,#{checkMan} + ,#{checkTime} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_cost_manage + + `tenantId` = #{tenantId} + ,`feeType` = #{feeType} + ,`no` = #{no} + ,`name` = #{name} + ,`money` = #{money} + ,`cutPaymentType` = #{cutPaymentType} + ,`cutPaymentTime` = #{cutPaymentTime} + ,`cronTime` = #{cronTime} + ,`startTime` = #{startTime} + ,`endTime` = #{endTime} + ,`status` = #{status} + ,`exeStatus` = #{exeStatus} + ,`isEnable` = #{isEnable} + ,`beforeMoney` = #{beforeMoney} + ,`beforeCronTime` = #{beforeCronTime} + ,`checkMan` = #{checkMan} + ,`checkTime` = #{checkTime} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_cost_manage + where `id` = #{id} + + + + delete from cy_store_cost_manage + ${condition} + + + + delete from cy_store_cost_manage + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + insert into cy_store_cost_manage_store + + `tenantId`,`feeId`,`storeId` + ,`storeNo` + ,`storeName` + + + #{tenantId},#{id},#{storeId} + ,#{storeNo} + ,#{storeName} + + + + + + + + + DELETE FROM cy_store_cost_manage_store where `tenantId` = #{tenantId} and `feeId` = #{feeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostRevenueMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostRevenueMapper.xml new file mode 100644 index 0000000..01325f3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreCostRevenueMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`workId`,`workNo`,`workName`,`shiftNo`,`shiftName`,`name`,`money`,`type`,`description`,`memo`,`inputDate`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_cost_revenue + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`workId` + ,`workNo` + ,`workName` + ,`shiftNo` + ,`shiftName` + ,`name` + ,`money` + ,`type` + ,`description` + ,`memo` + ,`inputDate` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{workId} + ,#{workNo} + ,#{workName} + ,#{shiftNo} + ,#{shiftName} + ,#{name} + ,#{money} + ,#{type} + ,#{description} + ,#{memo} + ,#{inputDate} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_cost_revenue + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`workId` = #{workId} + ,`workNo` = #{workNo} + ,`workName` = #{workName} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`name` = #{name} + ,`money` = #{money} + ,`type` = #{type} + ,`description` = #{description} + ,`memo` = #{memo} + ,`inputDate` = #{inputDate} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_cost_revenue + where `id` = #{id} + + + + delete from cy_store_cost_revenue + ${condition} + + + + delete from cy_store_cost_revenue + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderItemMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderItemMapper.xml new file mode 100644 index 0000000..1b69c48 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderItemMapper.xml @@ -0,0 +1,227 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`workerNo`,`saleDate`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isInvalid`,`lineNo`,`seqNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_delivery_order_item + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`workerNo` + ,`saleDate` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{workerNo} + ,#{saleDate} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_delivery_order_item + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`workerNo` = #{workerNo} + ,`saleDate` = #{saleDate} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_delivery_order_item + where `id` = #{id} + + + + delete from cy_store_delivery_order_item + ${condition} + + + + delete from cy_store_delivery_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderMapper.xml new file mode 100644 index 0000000..cf9812c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDeliveryOrderMapper.xml @@ -0,0 +1,200 @@ + + + + + + `id`,`clientId`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`workNo`,`saleDate`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`isInvalid`,`orderTime`,`visitorName`,`orderTel`,`recipientName`,`recipientPhone`,`recipientAddress`,`deliveryWorkerNo`,`deliveryWorkerName`,`advanceAmount`,`distributionFee`,`deliveryBeginTime`,`deliveryEndTime`,`settlementTime`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_delivery_order + + `id`,`tenantId` + ,`clientId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`workNo` + ,`saleDate` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`isInvalid` + ,`orderTime` + ,`visitorName` + ,`orderTel` + ,`recipientName` + ,`recipientPhone` + ,`recipientAddress` + ,`deliveryWorkerNo` + ,`deliveryWorkerName` + ,`advanceAmount` + ,`distributionFee` + ,`deliveryBeginTime` + ,`deliveryEndTime` + ,`settlementTime` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{workNo} + ,#{saleDate} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{isInvalid} + ,#{orderTime} + ,#{visitorName} + ,#{orderTel} + ,#{recipientName} + ,#{recipientPhone} + ,#{recipientAddress} + ,#{deliveryWorkerNo} + ,#{deliveryWorkerName} + ,#{advanceAmount} + ,#{distributionFee} + ,#{deliveryBeginTime} + ,#{deliveryEndTime} + ,#{settlementTime} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_delivery_order + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`workNo` = #{workNo} + ,`saleDate` = #{saleDate} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`isInvalid` = #{isInvalid} + ,`orderTime` = #{orderTime} + ,`visitorName` = #{visitorName} + ,`orderTel` = #{orderTel} + ,`recipientName` = #{recipientName} + ,`recipientPhone` = #{recipientPhone} + ,`recipientAddress` = #{recipientAddress} + ,`deliveryWorkerNo` = #{deliveryWorkerNo} + ,`deliveryWorkerName` = #{deliveryWorkerName} + ,`advanceAmount` = #{advanceAmount} + ,`distributionFee` = #{distributionFee} + ,`deliveryBeginTime` = #{deliveryBeginTime} + ,`deliveryEndTime` = #{deliveryEndTime} + ,`settlementTime` = #{settlementTime} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_delivery_order + where `id` = #{id} + + + + delete from cy_store_delivery_order + ${condition} + + + + delete from cy_store_delivery_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDepartmentMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDepartmentMapper.xml new file mode 100644 index 0000000..227c297 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDepartmentMapper.xml @@ -0,0 +1,138 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`manager`,`phone`,`email`,`enabled`,`description`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_department + + `id`,`tenantId` + ,`no` + ,`name` + ,`manager` + ,`phone` + ,`email` + ,`enabled` + ,`description` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{manager} + ,#{phone} + ,#{email} + ,#{enabled} + ,#{description} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_department + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`manager` = #{manager} + ,`phone` = #{phone} + ,`email` = #{email} + ,`enabled` = #{enabled} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_department + where `id` = #{id} + + + + delete from cy_store_department + ${condition} + + + + delete from cy_store_department + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store_department + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountLogMapper.xml new file mode 100644 index 0000000..404d6c6 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountLogMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`storeId`,`preBalance`,`balance`,`afterBalance`,`type`,`ticketNo`,`setMan`,`setDate`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_dispatch_account_log + + `id`,`tenantId` + ,`storeId` + ,`preBalance` + ,`balance` + ,`afterBalance` + ,`type` + ,`ticketNo` + ,`setMan` + ,`setDate` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{preBalance} + ,#{balance} + ,#{afterBalance} + ,#{type} + ,#{ticketNo} + ,#{setMan} + ,#{setDate} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_dispatch_account_log + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`preBalance` = #{preBalance} + ,`balance` = #{balance} + ,`afterBalance` = #{afterBalance} + ,`type` = #{type} + ,`ticketNo` = #{ticketNo} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_dispatch_account_log + where `id` = #{id} + + + + delete from cy_store_dispatch_account_log + ${condition} + + + + delete from cy_store_dispatch_account_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountMapper.xml new file mode 100644 index 0000000..6423c85 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreDispatchAccountMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`storeId`,`balance`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_dispatch_account + + `id`,`tenantId` + ,`storeId` + ,`balance` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{balance} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_dispatch_account + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`balance` = #{balance} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_dispatch_account + where `id` = #{id} + + + + delete from cy_store_dispatch_account + ${condition} + + + + delete from cy_store_dispatch_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordLogMapper.xml new file mode 100644 index 0000000..621c2fd --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordLogMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`recordId`,`type`,`status`,`sourceSign`,`workerNo`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_enchashment_record_log + + `id`,`tenantId` + ,`recordId` + ,`type` + ,`status` + ,`sourceSign` + ,`workerNo` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{recordId} + ,#{type} + ,#{status} + ,#{sourceSign} + ,#{workerNo} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_enchashment_record_log + + `tenantId` = #{tenantId} + ,`recordId` = #{recordId} + ,`type` = #{type} + ,`status` = #{status} + ,`sourceSign` = #{sourceSign} + ,`workerNo` = #{workerNo} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_enchashment_record_log + where `id` = #{id} + + + + delete from cy_store_enchashment_record_log + ${condition} + + + + delete from cy_store_enchashment_record_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordMapper.xml new file mode 100644 index 0000000..036d63d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreEnchashmentRecordMapper.xml @@ -0,0 +1,167 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`accountId`,`busType`,`amount`,`status`,`payType`,`voucherNo`,`aftAmount`,`applyWorkerNo`,`applyDate`,`description`,`sourceSign`,`cancelWorkerNo`,`cancelReason`,`cancelDate`,`auditWorkerNo`,`auditReason`,`auditDate`,`settleWorkerNo`,`settleDate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_enchashment_record + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`accountId` + ,`busType` + ,`amount` + ,`status` + ,`payType` + ,`voucherNo` + ,`aftAmount` + ,`applyWorkerNo` + ,`applyDate` + ,`description` + ,`sourceSign` + ,`cancelWorkerNo` + ,`cancelReason` + ,`cancelDate` + ,`auditWorkerNo` + ,`auditReason` + ,`auditDate` + ,`settleWorkerNo` + ,`settleDate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{accountId} + ,#{busType} + ,#{amount} + ,#{status} + ,#{payType} + ,#{voucherNo} + ,#{aftAmount} + ,#{applyWorkerNo} + ,#{applyDate} + ,#{description} + ,#{sourceSign} + ,#{cancelWorkerNo} + ,#{cancelReason} + ,#{cancelDate} + ,#{auditWorkerNo} + ,#{auditReason} + ,#{auditDate} + ,#{settleWorkerNo} + ,#{settleDate} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_enchashment_record + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`accountId` = #{accountId} + ,`busType` = #{busType} + ,`amount` = #{amount} + ,`status` = #{status} + ,`payType` = #{payType} + ,`voucherNo` = #{voucherNo} + ,`aftAmount` = #{aftAmount} + ,`applyWorkerNo` = #{applyWorkerNo} + ,`applyDate` = #{applyDate} + ,`description` = #{description} + ,`sourceSign` = #{sourceSign} + ,`cancelWorkerNo` = #{cancelWorkerNo} + ,`cancelReason` = #{cancelReason} + ,`cancelDate` = #{cancelDate} + ,`auditWorkerNo` = #{auditWorkerNo} + ,`auditReason` = #{auditReason} + ,`auditDate` = #{auditDate} + ,`settleWorkerNo` = #{settleWorkerNo} + ,`settleDate` = #{settleDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_enchashment_record + where `id` = #{id} + + + + delete from cy_store_enchashment_record + ${condition} + + + + delete from cy_store_enchashment_record + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreFeeCutLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreFeeCutLogMapper.xml new file mode 100644 index 0000000..bb5cbda --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreFeeCutLogMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`accountId`,`storeId`,`storeNo`,`storeName`,`feeType`,`feeName`,`cutPaymentType`,`status`,`amount`,`aftAmount`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_fee_cut_log + + `id`,`tenantId` + ,`accountId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`feeType` + ,`feeName` + ,`cutPaymentType` + ,`status` + ,`amount` + ,`aftAmount` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{accountId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{feeType} + ,#{feeName} + ,#{cutPaymentType} + ,#{status} + ,#{amount} + ,#{aftAmount} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_fee_cut_log + + `tenantId` = #{tenantId} + ,`accountId` = #{accountId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`feeType` = #{feeType} + ,`feeName` = #{feeName} + ,`cutPaymentType` = #{cutPaymentType} + ,`status` = #{status} + ,`amount` = #{amount} + ,`aftAmount` = #{aftAmount} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_fee_cut_log + where `id` = #{id} + + + + delete from cy_store_fee_cut_log + ${condition} + + + + delete from cy_store_fee_cut_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailMapper.xml new file mode 100644 index 0000000..6b382c7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailMapper.xml @@ -0,0 +1,155 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`payModeNo`,`payModeName`,`count`,`money`,`handsMoney`,`cardCount`,`cardMoney`,`sumMoney`,`isInvalid`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover_detail + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`payModeNo` + ,`payModeName` + ,`count` + ,`money` + ,`handsMoney` + ,`cardCount` + ,`cardMoney` + ,`sumMoney` + ,`isInvalid` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{payModeNo} + ,#{payModeName} + ,#{count} + ,#{money} + ,#{handsMoney} + ,#{cardCount} + ,#{cardMoney} + ,#{sumMoney} + ,#{isInvalid} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover_detail + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`payModeNo` = #{payModeNo} + ,`payModeName` = #{payModeName} + ,`count` = #{count} + ,`money` = #{money} + ,`handsMoney` = #{handsMoney} + ,`cardCount` = #{cardCount} + ,`cardMoney` = #{cardMoney} + ,`sumMoney` = #{sumMoney} + ,`isInvalid` = #{isInvalid} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover_detail + where `id` = #{id} + + + + delete from cy_store_handover_detail + ${condition} + + + + delete from cy_store_handover_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPartMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPartMapper.xml new file mode 100644 index 0000000..2c8e0a8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPartMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`specName`,`preCount`,`count`,`handsCount`,`difCount`,`isInvalid`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover_detail_part + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`specName` + ,`preCount` + ,`count` + ,`handsCount` + ,`difCount` + ,`isInvalid` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{specName} + ,#{preCount} + ,#{count} + ,#{handsCount} + ,#{difCount} + ,#{isInvalid} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover_detail_part + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`specName` = #{specName} + ,`preCount` = #{preCount} + ,`count` = #{count} + ,`handsCount` = #{handsCount} + ,`difCount` = #{difCount} + ,`isInvalid` = #{isInvalid} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover_detail_part + where `id` = #{id} + + + + delete from cy_store_handover_detail_part + ${condition} + + + + delete from cy_store_handover_detail_part + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPayMapper.xml new file mode 100644 index 0000000..bc25831 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverDetailPayMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`payModeNo`,`payModeName`,`busMode`,`money`,`count`,`busType`,`isInvalid`,`posNo`,`deviceName`,`deviceMac`,`deviceIp`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover_detail_pay + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`payModeNo` + ,`payModeName` + ,`busMode` + ,`money` + ,`count` + ,`busType` + ,`isInvalid` + ,`posNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{payModeNo} + ,#{payModeName} + ,#{busMode} + ,#{money} + ,#{count} + ,#{busType} + ,#{isInvalid} + ,#{posNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover_detail_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`payModeNo` = #{payModeNo} + ,`payModeName` = #{payModeName} + ,`busMode` = #{busMode} + ,`money` = #{money} + ,`count` = #{count} + ,`busType` = #{busType} + ,`isInvalid` = #{isInvalid} + ,`posNo` = #{posNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover_detail_pay + where `id` = #{id} + + + + delete from cy_store_handover_detail_pay + ${condition} + + + + delete from cy_store_handover_detail_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverMapper.xml new file mode 100644 index 0000000..b142d60 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreHandoverMapper.xml @@ -0,0 +1,260 @@ + + + + + + `id`,`clientId`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`workId`,`workNo`,`workName`,`shiftNo`,`shiftName`,`datetimeBegin`,`datetimeEnd`,`datetimeShift`,`acceptWorkerNo`,`posNo`,`memo`,`peopleCount`,`dealTicketCount`,`dealAmount`,`backTicketCount`,`backAmount`,`ticketCount`,`amount`,`discountMoney`,`couponDiscountMoney`,`otherDiscountMoney`,`receivable`,`maling`,`paid`,`cardCount`,`cardRealMoney`,`cardRefundCount`,`cardRefundMoney`,`sumRealMoney`,`inmoney`,`outmoney`,`distributionFee`,`shiftAmount`,`imprest`,`deviceName`,`deviceMac`,`deviceIp`,`isInvalid`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_handover + + `id`,`tenantId` + ,`clientId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`workId` + ,`workNo` + ,`workName` + ,`shiftNo` + ,`shiftName` + ,`datetimeBegin` + ,`datetimeEnd` + ,`datetimeShift` + ,`acceptWorkerNo` + ,`posNo` + ,`memo` + ,`peopleCount` + ,`dealTicketCount` + ,`dealAmount` + ,`backTicketCount` + ,`backAmount` + ,`ticketCount` + ,`amount` + ,`discountMoney` + ,`couponDiscountMoney` + ,`otherDiscountMoney` + ,`receivable` + ,`maling` + ,`paid` + ,`cardCount` + ,`cardRealMoney` + ,`cardRefundCount` + ,`cardRefundMoney` + ,`sumRealMoney` + ,`inmoney` + ,`outmoney` + ,`distributionFee` + ,`shiftAmount` + ,`imprest` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`isInvalid` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{workId} + ,#{workNo} + ,#{workName} + ,#{shiftNo} + ,#{shiftName} + ,#{datetimeBegin} + ,#{datetimeEnd} + ,#{datetimeShift} + ,#{acceptWorkerNo} + ,#{posNo} + ,#{memo} + ,#{peopleCount} + ,#{dealTicketCount} + ,#{dealAmount} + ,#{backTicketCount} + ,#{backAmount} + ,#{ticketCount} + ,#{amount} + ,#{discountMoney} + ,#{couponDiscountMoney} + ,#{otherDiscountMoney} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{cardCount} + ,#{cardRealMoney} + ,#{cardRefundCount} + ,#{cardRefundMoney} + ,#{sumRealMoney} + ,#{inmoney} + ,#{outmoney} + ,#{distributionFee} + ,#{shiftAmount} + ,#{imprest} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{isInvalid} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_handover + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`workId` = #{workId} + ,`workNo` = #{workNo} + ,`workName` = #{workName} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`datetimeBegin` = #{datetimeBegin} + ,`datetimeEnd` = #{datetimeEnd} + ,`datetimeShift` = #{datetimeShift} + ,`acceptWorkerNo` = #{acceptWorkerNo} + ,`posNo` = #{posNo} + ,`memo` = #{memo} + ,`peopleCount` = #{peopleCount} + ,`dealTicketCount` = #{dealTicketCount} + ,`dealAmount` = #{dealAmount} + ,`backTicketCount` = #{backTicketCount} + ,`backAmount` = #{backAmount} + ,`ticketCount` = #{ticketCount} + ,`amount` = #{amount} + ,`discountMoney` = #{discountMoney} + ,`couponDiscountMoney` = #{couponDiscountMoney} + ,`otherDiscountMoney` = #{otherDiscountMoney} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`cardCount` = #{cardCount} + ,`cardRealMoney` = #{cardRealMoney} + ,`cardRefundCount` = #{cardRefundCount} + ,`cardRefundMoney` = #{cardRefundMoney} + ,`sumRealMoney` = #{sumRealMoney} + ,`inmoney` = #{inmoney} + ,`outmoney` = #{outmoney} + ,`distributionFee` = #{distributionFee} + ,`shiftAmount` = #{shiftAmount} + ,`imprest` = #{imprest} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`isInvalid` = #{isInvalid} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_handover + where `id` = #{id} + + + + delete from cy_store_handover + ${condition} + + + + delete from cy_store_handover + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreLoginLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreLoginLogMapper.xml new file mode 100644 index 0000000..358abcf --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreLoginLogMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`workerNo`,`storeNo`,`storeName`,`loginTime`,`type`,`posNo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_login_log + + `id`,`tenantId` + ,`workerNo` + ,`storeNo` + ,`storeName` + ,`loginTime` + ,`type` + ,`posNo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{workerNo} + ,#{storeNo} + ,#{storeName} + ,#{loginTime} + ,#{type} + ,#{posNo} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_login_log + + `tenantId` = #{tenantId} + ,`workerNo` = #{workerNo} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`loginTime` = #{loginTime} + ,`type` = #{type} + ,`posNo` = #{posNo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_login_log + where `id` = #{id} + + + + delete from cy_store_login_log + ${condition} + + + + delete from cy_store_login_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreMapper.xml new file mode 100644 index 0000000..d010e3d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreMapper.xml @@ -0,0 +1,306 @@ + + + + + + `id`,`tenantId`,`areaId`,`areaPath`,`typeId`,`no`,`name`,`manager`,`tel`,`mobile`,`orderTel`,`printName`,`address`,`mail`,`square`,`deskAmount`,`seatAmount`,`registerFlag`,`stapleFlag`,`enabled`,`deleteFlag`,`width`,`height`,`groupName`,`storageFileName`,`authFlag`,`latitude`,`longitude`,`noType`,`maxOffLine`,`productFlag`,`thirdNo`,`ext1`,`ext2`,`groupId`,`groupNo`,`deductionRate`,`status`,`singleFlag`,`description`,`logoUrl`,`defaultFlag`,`storeTaxRateFlag`,`saleTax`,`lyRate`,`storeRate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store + + `id`,`tenantId` + ,`areaId` + ,`areaPath` + ,`typeId` + ,`no` + ,`name` + ,`manager` + ,`tel` + ,`mobile` + ,`orderTel` + ,`printName` + ,`address` + ,`mail` + ,`square` + ,`deskAmount` + ,`seatAmount` + ,`registerFlag` + ,`stapleFlag` + ,`enabled` + ,`deleteFlag` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`authFlag` + ,`latitude` + ,`longitude` + ,`noType` + ,`maxOffLine` + ,`productFlag` + ,`thirdNo` + ,`ext1` + ,`ext2` + ,`groupId` + ,`groupNo` + ,`deductionRate` + ,`status` + ,`singleFlag` + ,`description` + ,`logoUrl` + ,`defaultFlag` + ,`storeTaxRateFlag` + ,`saleTax` + ,`lyRate` + ,`storeRate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{areaId} + ,#{areaPath} + ,#{typeId} + ,#{no} + ,#{name} + ,#{manager} + ,#{tel} + ,#{mobile} + ,#{orderTel} + ,#{printName} + ,#{address} + ,#{mail} + ,#{square} + ,#{deskAmount} + ,#{seatAmount} + ,#{registerFlag} + ,#{stapleFlag} + ,#{enabled} + ,#{deleteFlag} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{authFlag} + ,#{latitude} + ,#{longitude} + ,#{noType} + ,#{maxOffLine} + ,#{productFlag} + ,#{thirdNo} + ,#{ext1} + ,#{ext2} + ,#{groupId} + ,#{groupNo} + ,#{deductionRate} + ,#{status} + ,#{singleFlag} + ,#{description} + ,#{logoUrl} + ,#{defaultFlag} + ,#{storeTaxRateFlag} + ,#{saleTax} + ,#{lyRate} + ,#{storeRate} + ,#{createDate} + ,#{createUser} + + + + + update cy_store + + `tenantId` = #{tenantId} + ,`areaId` = #{areaId} + ,`areaPath` = #{areaPath} + ,`typeId` = #{typeId} + ,`no` = #{no} + ,`name` = #{name} + ,`manager` = #{manager} + ,`tel` = #{tel} + ,`mobile` = #{mobile} + ,`orderTel` = #{orderTel} + ,`printName` = #{printName} + ,`address` = #{address} + ,`mail` = #{mail} + ,`square` = #{square} + ,`deskAmount` = #{deskAmount} + ,`seatAmount` = #{seatAmount} + ,`registerFlag` = #{registerFlag} + ,`stapleFlag` = #{stapleFlag} + ,`enabled` = #{enabled} + ,`deleteFlag` = #{deleteFlag} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`authFlag` = #{authFlag} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`noType` = #{noType} + ,`maxOffLine` = #{maxOffLine} + ,`productFlag` = #{productFlag} + ,`thirdNo` = #{thirdNo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`groupId` = #{groupId} + ,`groupNo` = #{groupNo} + ,`deductionRate` = #{deductionRate} + ,`status` = #{status} + ,`singleFlag` = #{singleFlag} + ,`description` = #{description} + ,`logoUrl` = #{logoUrl} + ,`defaultFlag` = #{defaultFlag} + ,`storeTaxRateFlag` = #{storeTaxRateFlag} + ,`saleTax` = #{saleTax} + ,`lyRate` = #{lyRate} + ,`storeRate` = #{storeRate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store + where `id` = #{id} + + + + delete from cy_store + ${condition} + + + + delete from cy_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + insert into cy_store_brand (`tenantId`,`brandId`,`storeId`) + values + (#{tenantId},#{brandId},#{storeId}) + + + + + + + + delete from cy_store_brand + where `tenantId`=#{tenantId} and storeId=#{storeId} + + + + + + + + + + + + + + + + + + + update cy_store set `groupId` = #{groupId}, `groupNo` = #{groupNo} + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOperationLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOperationLogMapper.xml new file mode 100644 index 0000000..2baa527 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOperationLogMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`workerNo`,`shiftNo`,`shiftName`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`operationTime`,`type`,`typeTxt`,`memo`,`ext1`,`ext2`,`ext3`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_operation_log + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`workerNo` + ,`shiftNo` + ,`shiftName` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`operationTime` + ,`type` + ,`typeTxt` + ,`memo` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{workerNo} + ,#{shiftNo} + ,#{shiftName} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{operationTime} + ,#{type} + ,#{typeTxt} + ,#{memo} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_operation_log + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`workerNo` = #{workerNo} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`operationTime` = #{operationTime} + ,`type` = #{type} + ,`typeTxt` = #{typeTxt} + ,`memo` = #{memo} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_operation_log + where `id` = #{id} + + + + delete from cy_store_operation_log + ${condition} + + + + delete from cy_store_operation_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductInfoMapper.xml new file mode 100644 index 0000000..4a4f3b2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductInfoMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`clientId`,`orderItemId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_order_product_info + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_order_product_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_order_product_info + where `id` = #{id} + + + + delete from cy_store_order_product_info + ${condition} + + + + delete from cy_store_order_product_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMakeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMakeMapper.xml new file mode 100644 index 0000000..135ba87 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMakeMapper.xml @@ -0,0 +1,193 @@ + + + + + + `id`,`clientId`,`tenantId`,`orderItemId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`hand`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_order_product_make + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`hand` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{hand} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_order_product_make + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`hand` = #{hand} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_order_product_make + where `id` = #{id} + + + + delete from cy_store_order_product_make + ${condition} + + + + delete from cy_store_order_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMapper.xml new file mode 100644 index 0000000..2fd40b9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreOrderProductMapper.xml @@ -0,0 +1,340 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`busMode`,`tableNo`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`workerNo`,`saleDate`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isMember`,`memberNo`,`isInvalid`,`lineNo`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_order_product + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`workerNo` + ,`saleDate` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isMember` + ,`memberNo` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{workerNo} + ,#{saleDate} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isMember} + ,#{memberNo} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_order_product + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + + + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`workerNo` = #{workerNo} + ,`saleDate` = #{saleDate} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} and `ticketId` = #{ticketId} + + + + delete from cy_store_order_product + where `id` = #{id} + + + + delete from cy_store_order_product + ${condition} + + + + delete from cy_store_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorePayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorePayMapper.xml new file mode 100644 index 0000000..289d886 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StorePayMapper.xml @@ -0,0 +1,268 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`payNo`,`ticketId`,`busNo`,`busMode`,`tableNo`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`workNo`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`voucherNo`,`payDate`,`cardno`,`cardYe`,`cardJf`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payChannel`,`memo`,`isInvalid`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + + insert into cy_store_pay + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`workNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`cardYe` + ,`cardJf` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payChannel` + ,`memo` + ,`isInvalid` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{workNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{cardYe} + ,#{cardJf} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payChannel} + ,#{memo} + ,#{isInvalid} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`workNo` = #{workNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`cardYe` = #{cardYe} + ,`cardJf` = #{cardJf} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payChannel` = #{payChannel} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_pay + where `id` = #{id} + + + + delete from cy_store_pay + ${condition} + + + + delete from cy_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreProductMapper.xml new file mode 100644 index 0000000..a8f6cea --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreProductMapper.xml @@ -0,0 +1,233 @@ + + + + + + `id`,`tenantId`,`storeId`,`productId`,`specId`,`productUnitId`,`typeId`,`typePath`,`price`,`minPrice`,`memberPrice`,`otherPrice`,`costPrice`,`purchasePrice`,`dispatchPrice`,`thUseLevel`,`realThUseLevel`,`cost`,`wprice`,`wmemberPrice`,`totalStock`,`saleStock`,`stock`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_product + + `id`,`tenantId` + ,`storeId` + ,`productId` + ,`specId` + ,`productUnitId` + ,`typeId` + ,`typePath` + ,`price` + ,`minPrice` + ,`memberPrice` + ,`otherPrice` + ,`costPrice` + ,`purchasePrice` + ,`dispatchPrice` + ,`thUseLevel` + ,`realThUseLevel` + ,`cost` + ,`wprice` + ,`wmemberPrice` + ,`totalStock` + ,`saleStock` + ,`stock` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{productId} + ,#{specId} + ,#{productUnitId} + ,#{typeId} + ,#{typePath} + ,#{price} + ,#{minPrice} + ,#{memberPrice} + ,#{otherPrice} + ,#{costPrice} + ,#{purchasePrice} + ,#{dispatchPrice} + ,#{thUseLevel} + ,#{realThUseLevel} + ,#{cost} + ,#{wprice} + ,#{wmemberPrice} + ,#{totalStock} + ,#{saleStock} + ,#{stock} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_product + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`productUnitId` = #{productUnitId} + ,`typeId` = #{typeId} + ,`typePath` = #{typePath} + ,`price` = #{price} + ,`minPrice` = #{minPrice} + ,`memberPrice` = #{memberPrice} + ,`otherPrice` = #{otherPrice} + ,`costPrice` = #{costPrice} + ,`purchasePrice` = #{purchasePrice} + ,`dispatchPrice` = #{dispatchPrice} + ,`thUseLevel` = #{thUseLevel} + ,`realThUseLevel` = #{realThUseLevel} + ,`cost` = #{cost} + ,`wprice` = #{wprice} + ,`wmemberPrice` = #{wmemberPrice} + ,`totalStock` = #{totalStock} + ,`saleStock` = #{saleStock} + ,`stock` = #{stock} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_product + where `id` = #{id} + + + + delete from cy_store_product + ${condition} + + + + delete from cy_store_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + + + + + + + + + + update cy_store_product set stock = stock-#{stock} ,saleStock = saleStock+#{stock} where `tenantId` = #{tenantId} and `storeId` = #{storeId} and `specId` = #{specId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreProductSaleStockMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreProductSaleStockMapper.xml new file mode 100644 index 0000000..7cbd830 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreProductSaleStockMapper.xml @@ -0,0 +1,227 @@ + + + + + + `id`,`tenantId`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`productId`,`productNo`,`productName`,`specId`,`sepcName`,`productUnitId`,`productUnitName`,`storeId`,`storeNo`,`storeName`,`totalStock`,`saleStock`,`stock`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_product_sale_stock + + `id`,`tenantId` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`sepcName` + ,`productUnitId` + ,`productUnitName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`totalStock` + ,`saleStock` + ,`stock` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{sepcName} + ,#{productUnitId} + ,#{productUnitName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{totalStock} + ,#{saleStock} + ,#{stock} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_product_sale_stock + + `tenantId` = #{tenantId} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`sepcName` = #{sepcName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`totalStock` = #{totalStock} + ,`saleStock` = #{saleStock} + ,`stock` = #{stock} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_product_sale_stock + where `id` = + #{id} + + + + update cy_store_product_sale_stock set stock = + stock-#{stock} ,saleStock = saleStock+#{stock} where `tenantId` = + #{tenantId} and `storeId` = #{storeId} and `specId` = #{specId} + + + + delete from cy_store_product_sale_stock + ${condition} + + + + delete from cy_store_product_sale_stock + where + `tenantId` = #{tenantId} and ${property}=#{value} + + + + + INSERT INTO cy_store_product_sale_stock (id,specId,tenantId,productId,storeId,createUser,typePath,typeId,productUnitId,seriesId,seriesName,typeName,productNo,productName,sepcName,productUnitName,storeNo,storeName,totalStock,saleStock,stock,modifyUser,createDate,modifyDate) + SELECT id,specId,tenantId,productId,storeId,'${modifyUserName}',typePath,typeId,productUnitId,(SUBSTRING_INDEX(typePath, ",", 1)), + (SELECT NAME FROM cy_product_type WHERE id = SUBSTRING_INDEX(typePath, ",", 1) and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product_type WHERE id = typeId and `tenantId` = #{tenantId}), + (SELECT NO FROM cy_product WHERE id = productId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product WHERE id = productId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product_spec WHERE id = specId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_product_unit WHERE id = productUnitId and `tenantId` = #{tenantId}), + (SELECT NO FROM cy_store WHERE id = storeId and `tenantId` = #{tenantId}), + (SELECT NAME FROM cy_store WHERE id = storeId and `tenantId` = #{tenantId}), + ${totalStock}, ${stock}, ${totalStock}, '${modifyUserName}', (now()), (now()) + FROM + (SELECT id,specId,tenantId,productId,storeId,createUser,typePath,typeId,productUnitId FROM cy_store_product_sale_stock AS a1 + WHERE a1.`tenantId` = #{tenantId} + UNION ALL + SELECT id,specId,tenantId,productId,storeId,createUser,typePath,typeId,productUnitId FROM cy_store_product AS a2 + WHERE a2.`tenantId` = #{tenantId} ) tbl + GROUP BY id HAVING count(*) = 1 ORDER BY id; + + + + + + + + + + + update cy_store_product_sale_stock + set `totalStock` = #{totalStock},stock=#{totalStock}-saleStock + where + `tenantId` =#{tenantId} and `productId` = #{productId} and `specId` = #{specId} and storeId=#{storeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateDetailMapper.xml new file mode 100644 index 0000000..722d5ef --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateDetailMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_template_detail + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_template_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_template_detail + where `id` = #{id} + + + + delete from cy_store_stock_check_template_detail + ${condition} + + + + delete from cy_store_stock_check_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateMapper.xml new file mode 100644 index 0000000..e83185b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTemplateMapper.xml @@ -0,0 +1,141 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_template + where `id` = #{id} + + + + delete from cy_store_stock_check_template + ${condition} + + + + delete from cy_store_stock_check_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + INSERT INTO cy_store_stock_check_template_store (`tenantId`,`ticketId`,`storeId`) VALUES (#{tenantId},#{id},#{storeId}) + + + + + + DELETE FROM cy_store_stock_check_template_store + ${condition} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketDetailMapper.xml new file mode 100644 index 0000000..dc7e681 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketDetailMapper.xml @@ -0,0 +1,188 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storageId`,`storageName`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`sysPrice`,`sysAmount`,`checkAmount`,`differenceAmount`,`sysMoney`,`checkMoney`,`differenceMoney`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`storageId` + ,`storageName` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`sysPrice` + ,`sysAmount` + ,`checkAmount` + ,`differenceAmount` + ,`sysMoney` + ,`checkMoney` + ,`differenceMoney` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storageId} + ,#{storageName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{sysPrice} + ,#{sysAmount} + ,#{checkAmount} + ,#{differenceAmount} + ,#{sysMoney} + ,#{checkMoney} + ,#{differenceMoney} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`sysPrice` = #{sysPrice} + ,`sysAmount` = #{sysAmount} + ,`checkAmount` = #{checkAmount} + ,`differenceAmount` = #{differenceAmount} + ,`sysMoney` = #{sysMoney} + ,`checkMoney` = #{checkMoney} + ,`differenceMoney` = #{differenceMoney} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_detail + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_detail + ${condition} + + + + delete from cy_store_stock_check_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketLogMapper.xml new file mode 100644 index 0000000..fdadd6a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_stock_check_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_log + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket_log + ${condition} + + + + delete from cy_store_stock_check_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketMapper.xml new file mode 100644 index 0000000..737589d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStockCheckTicketMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`storeId`,`no`,`status`,`description`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_stock_check_ticket + + `id`,`tenantId` + ,`storeId` + ,`no` + ,`status` + ,`description` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{no} + ,#{status} + ,#{description} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_stock_check_ticket + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`no` = #{no} + ,`status` = #{status} + ,`description` = #{description} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket + where `id` = #{id} + + + + delete from cy_store_stock_check_ticket + ${condition} + + + + delete from cy_store_stock_check_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageMapper.xml new file mode 100644 index 0000000..1f683e2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageMapper.xml @@ -0,0 +1,147 @@ + + + + + + `id`,`tenantId`,`name`,`no`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage + + `id`,`tenantId` + ,`name` + ,`no` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{no} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`no` = #{no} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage + where `id` = #{id} + + + + delete from cy_store_storage + ${condition} + + + + delete from cy_store_storage + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + insert into cy_storage_store + + `tenantId` + ,`storeId` + ,`storageId` + + + #{tenantId} + ,#{storeId} + ,#{id} + + + + + + + delete from cy_storage_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketDetailMapper.xml new file mode 100644 index 0000000..29cae48 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketDetailMapper.xml @@ -0,0 +1,166 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_out_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_out_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_detail + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_detail + ${condition} + + + + delete from cy_store_storage_out_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketLogMapper.xml new file mode 100644 index 0000000..daf6fd7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_out_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_storage_out_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_log + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket_log + ${condition} + + + + delete from cy_store_storage_out_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketMapper.xml new file mode 100644 index 0000000..60f33f4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageOutTicketMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`type`,`storageId`,`storageName`,`description`,`status`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_out_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_out_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket + where `id` = #{id} + + + + delete from cy_store_storage_out_ticket + ${condition} + + + + delete from cy_store_storage_out_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketDetailMapper.xml new file mode 100644 index 0000000..f5b49cf --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketDetailMapper.xml @@ -0,0 +1,160 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`stockUnitId`,`stockUnitName`,`amount`,`price`,`money`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_ticket_detail + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`stockUnitId` + ,`stockUnitName` + ,`amount` + ,`price` + ,`money` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{stockUnitId} + ,#{stockUnitName} + ,#{amount} + ,#{price} + ,#{money} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_ticket_detail + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`stockUnitId` = #{stockUnitId} + ,`stockUnitName` = #{stockUnitName} + ,`amount` = #{amount} + ,`price` = #{price} + ,`money` = #{money} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_ticket_detail + where `id` = #{id} + + + + delete from cy_store_storage_ticket_detail + ${condition} + + + + delete from cy_store_storage_ticket_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketLogMapper.xml new file mode 100644 index 0000000..9a2e3e7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_ticket_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_storage_ticket_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_storage_ticket_log + where `id` = #{id} + + + + delete from cy_store_storage_ticket_log + ${condition} + + + + delete from cy_store_storage_ticket_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketMapper.xml new file mode 100644 index 0000000..eb56882 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreStorageTicketMapper.xml @@ -0,0 +1,143 @@ + + + + + + `id`,`tenantId`,`no`,`storeId`,`storeNo`,`storeName`,`type`,`storageId`,`storageName`,`description`,`status`,`setMan`,`setDate`,`checkMan`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_store_storage_ticket + + `id`,`tenantId` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`type` + ,`storageId` + ,`storageName` + ,`description` + ,`status` + ,`setMan` + ,`setDate` + ,`checkMan` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{type} + ,#{storageId} + ,#{storageName} + ,#{description} + ,#{status} + ,#{setMan} + ,#{setDate} + ,#{checkMan} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_store_storage_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`type` = #{type} + ,`storageId` = #{storageId} + ,`storageName` = #{storageName} + ,`description` = #{description} + ,`status` = #{status} + ,`setMan` = #{setMan} + ,`setDate` = #{setDate} + ,`checkMan` = #{checkMan} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_store_storage_ticket + where `id` = #{id} + + + + delete from cy_store_storage_ticket + ${condition} + + + + delete from cy_store_storage_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreTypeMapper.xml new file mode 100644 index 0000000..038f61e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreTypeMapper.xml @@ -0,0 +1,126 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_type + where `id` = #{id} + + + + delete from cy_store_type + ${condition} + + + + delete from cy_store_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_store_type + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreWorkerExtMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreWorkerExtMapper.xml new file mode 100644 index 0000000..aacd267 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreWorkerExtMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`workerId`,`workerNo`,`storeId`,`storeNo`,`passwd`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_store_worker_ext + + `id`,`tenantId` + ,`workerId` + ,`workerNo` + ,`storeId` + ,`storeNo` + ,`passwd` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{workerId} + ,#{workerNo} + ,#{storeId} + ,#{storeNo} + ,#{passwd} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_worker_ext + + `tenantId` = #{tenantId} + ,`workerId` = #{workerId} + ,`workerNo` = #{workerNo} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`passwd` = #{passwd} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_worker_ext + where `id` = #{id} + + + + delete from cy_store_worker_ext + ${condition} + + + + delete from cy_store_worker_ext + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreWorkerMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreWorkerMapper.xml new file mode 100644 index 0000000..c1856c0 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoreWorkerMapper.xml @@ -0,0 +1,226 @@ + + + + + + `id`,`tenantId`,`storeId`,`departmentId`,`no`,`name`,`sex`,`birthday`,`email`,`mobile`,`isAdmin`,`passwd`,`enabled`,`description`,`deleteFlag`,`noType`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_store_worker + + `id`,`tenantId` + ,`storeId` + ,`departmentId` + ,`no` + ,`name` + ,`sex` + ,`birthday` + ,`email` + ,`mobile` + ,`isAdmin` + ,`passwd` + ,`enabled` + ,`description` + ,`deleteFlag` + ,`noType` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{departmentId} + ,#{no} + ,#{name} + ,#{sex} + ,#{birthday} + ,#{email} + ,#{mobile} + ,#{isAdmin} + ,#{passwd} + ,#{enabled} + ,#{description} + ,#{deleteFlag} + ,#{noType} + ,#{createDate} + ,#{createUser} + + + + + update cy_store_worker + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`departmentId` = #{departmentId} + ,`no` = #{no} + ,`name` = #{name} + ,`sex` = #{sex} + ,`birthday` = #{birthday} + ,`email` = #{email} + ,`mobile` = #{mobile} + ,`isAdmin` = #{isAdmin} + ,`passwd` = #{passwd} + ,`enabled` = #{enabled} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`noType` = #{noType} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_store_worker + where `id` = #{id} + + + + delete from cy_store_worker + ${condition} + + + + delete from cy_store_worker + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + update cy_store_worker + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + insert into cy_worker_store (`tenantId`,`workerId`,`storeId`) + values + (#{tenantId},#{workerId},#{storeId}) + + + + + + + + + + + + + delete from cy_worker_store + where `tenantId`=#{tenantId} and workerId=#{workerId} + + + + + + + + delete from cy_store_worker_role + where `tenantId`=#{tenantId} and workerId=#{workerId} + + + + + insert into cy_store_worker_role (tenantId, workerId, roleId) + values + (#{tenantId}, #{workerId}, #{roleId}) + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableAreaMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableAreaMapper.xml new file mode 100644 index 0000000..07b8f15 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableAreaMapper.xml @@ -0,0 +1,130 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_storetable_area + + `id`,`tenantId` + ,`no` + ,`name` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_storetable_area + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storetable_area + where `id` = #{id} + + + + delete from cy_storetable_area + ${condition} + + + + delete from cy_storetable_area + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_storetable_area + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableMapper.xml new file mode 100644 index 0000000..0a38201 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableMapper.xml @@ -0,0 +1,152 @@ + + + + + + `id`,`tenantId`,`storeId`,`areaId`,`typeId`,`no`,`name`,`number`,`deleteFlag`,`aliasName`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_storetable + + `id`,`tenantId` + ,`storeId` + ,`areaId` + ,`typeId` + ,`no` + ,`name` + ,`number` + ,`deleteFlag` + ,`aliasName` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{areaId} + ,#{typeId} + ,#{no} + ,#{name} + ,#{number} + ,#{deleteFlag} + ,#{aliasName} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_storetable + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`areaId` = #{areaId} + ,`typeId` = #{typeId} + ,`no` = #{no} + ,`name` = #{name} + ,`number` = #{number} + ,`deleteFlag` = #{deleteFlag} + ,`aliasName` = #{aliasName} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storetable + where `id` = #{id} + + + + delete from cy_storetable + ${condition} + + + + delete from cy_storetable + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_storetable + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableTypeMapper.xml new file mode 100644 index 0000000..7bfb973 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/StoretableTypeMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`color`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + insert into cy_storetable_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`color` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{color} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_storetable_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`color` = #{color} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_storetable_type + where `id` = #{id} + + + + delete from cy_storetable_type + ${condition} + + + + delete from cy_storetable_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_storetable_type + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SupplierMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SupplierMapper.xml new file mode 100644 index 0000000..0615f79 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SupplierMapper.xml @@ -0,0 +1,164 @@ + + + + + + `id`,`tenantId`,`typeId`,`no`,`name`,`shortName`,`enterpriseNature`,`status`,`address`,`linkMan`,`mobile`,`fax`,`code`,`email`,`depositBank`,`reputationLevel`,`bankAccount`,`registerDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_supplier + + `id`,`tenantId` + ,`typeId` + ,`no` + ,`name` + ,`shortName` + ,`enterpriseNature` + ,`status` + ,`address` + ,`linkMan` + ,`mobile` + ,`fax` + ,`code` + ,`email` + ,`depositBank` + ,`reputationLevel` + ,`bankAccount` + ,`registerDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{typeId} + ,#{no} + ,#{name} + ,#{shortName} + ,#{enterpriseNature} + ,#{status} + ,#{address} + ,#{linkMan} + ,#{mobile} + ,#{fax} + ,#{code} + ,#{email} + ,#{depositBank} + ,#{reputationLevel} + ,#{bankAccount} + ,#{registerDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_supplier + + `tenantId` = #{tenantId} + ,`typeId` = #{typeId} + ,`no` = #{no} + ,`name` = #{name} + ,`shortName` = #{shortName} + ,`enterpriseNature` = #{enterpriseNature} + ,`status` = #{status} + ,`address` = #{address} + ,`linkMan` = #{linkMan} + ,`mobile` = #{mobile} + ,`fax` = #{fax} + ,`code` = #{code} + ,`email` = #{email} + ,`depositBank` = #{depositBank} + ,`reputationLevel` = #{reputationLevel} + ,`bankAccount` = #{bankAccount} + ,`registerDate` = #{registerDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_supplier + where `id` = #{id} + + + + delete from cy_supplier + ${condition} + + + + delete from cy_supplier + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_supplier set typeId=NULL + where tenantId=#{tenantId} and typeId=#{typeId} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SupplierTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SupplierTypeMapper.xml new file mode 100644 index 0000000..aabeb4b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/SupplierTypeMapper.xml @@ -0,0 +1,114 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_supplier_type + + `id`,`tenantId` + ,`no` + ,`name` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{createDate} + ,#{createUser} + + + + + update cy_supplier_type + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_supplier_type + where `id` = #{id} + + + + delete from cy_supplier_type + ${condition} + + + + delete from cy_supplier_type + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/TaskScheduleMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/TaskScheduleMapper.xml new file mode 100644 index 0000000..f995156 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/TaskScheduleMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`groupSign`,`sign`,`jobDesc`,`jobCron`,`executorHandler`,`executorParam`,`alarmEmail`,`author`,`status`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_task_schedule + + `id`,`tenantId` + ,`groupSign` + ,`sign` + ,`jobDesc` + ,`jobCron` + ,`executorHandler` + ,`executorParam` + ,`alarmEmail` + ,`author` + ,`status` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{groupSign} + ,#{sign} + ,#{jobDesc} + ,#{jobCron} + ,#{executorHandler} + ,#{executorParam} + ,#{alarmEmail} + ,#{author} + ,#{status} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_task_schedule + + `tenantId` = #{tenantId} + ,`groupSign` = #{groupSign} + ,`sign` = #{sign} + ,`jobDesc` = #{jobDesc} + ,`jobCron` = #{jobCron} + ,`executorHandler` = #{executorHandler} + ,`executorParam` = #{executorParam} + ,`alarmEmail` = #{alarmEmail} + ,`author` = #{author} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_task_schedule + where `id` = #{id} + + + + delete from cy_task_schedule + ${condition} + + + + delete from cy_task_schedule + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMapper.xml new file mode 100644 index 0000000..5ec56f8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`no`,`status`,`makeUser`,`makeDate`,`checkUser`,`checkDate`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_thuselevel_ticket + + `id`,`tenantId` + ,`no` + ,`status` + ,`makeUser` + ,`makeDate` + ,`checkUser` + ,`checkDate` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{status} + ,#{makeUser} + ,#{makeDate} + ,#{checkUser} + ,#{checkDate} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_thuselevel_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`status` = #{status} + ,`makeUser` = #{makeUser} + ,`makeDate` = #{makeDate} + ,`checkUser` = #{checkUser} + ,`checkDate` = #{checkDate} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_thuselevel_ticket + where `id` = #{id} + + + + delete from cy_thuselevel_ticket + ${condition} + + + + delete from cy_thuselevel_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMaterialMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMaterialMapper.xml new file mode 100644 index 0000000..c71e6e1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketMaterialMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`ticketId`,`productId`,`productNo`,`productName`,`specId`,`specName`,`productDescription`,`packUnitId`,`packUnit`,`thUseLevel`,`cost`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_thuselevel_ticket_material + + `id`,`tenantId` + ,`ticketId` + ,`productId` + ,`productNo` + ,`productName` + ,`specId` + ,`specName` + ,`productDescription` + ,`packUnitId` + ,`packUnit` + ,`thUseLevel` + ,`cost` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{specId} + ,#{specName} + ,#{productDescription} + ,#{packUnitId} + ,#{packUnit} + ,#{thUseLevel} + ,#{cost} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_thuselevel_ticket_material + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`productDescription` = #{productDescription} + ,`packUnitId` = #{packUnitId} + ,`packUnit` = #{packUnit} + ,`thUseLevel` = #{thUseLevel} + ,`cost` = #{cost} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_material + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_material + ${condition} + + + + delete from cy_thuselevel_ticket_material + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketStoreMapper.xml new file mode 100644 index 0000000..c2a78e9 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/ThuselevelTicketStoreMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`ticketId`,`storeId`,`storeNo`,`storeName`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_thuselevel_ticket_store + + `id`,`tenantId` + ,`ticketId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createDate} + ,#{createUser} + + + + + update cy_thuselevel_ticket_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_store + where `id` = #{id} + + + + delete from cy_thuselevel_ticket_store + ${condition} + + + + delete from cy_thuselevel_ticket_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/TicketPrintSettingMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/TicketPrintSettingMapper.xml new file mode 100644 index 0000000..026ff29 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/TicketPrintSettingMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`ticketSign`,`key`,`value`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_ticket_print_setting + + `id`,`tenantId` + ,`ticketSign` + ,`key` + ,`value` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketSign} + ,#{key} + ,#{value} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_ticket_print_setting + + `tenantId` = #{tenantId} + ,`ticketSign` = #{ticketSign} + ,`key` = #{key} + ,`value` = #{value} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_ticket_print_setting + where `id` = #{id} + + + + delete from cy_ticket_print_setting + ${condition} + + + + delete from cy_ticket_print_setting + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/UserMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/UserMapper.xml new file mode 100644 index 0000000..e72652f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/UserMapper.xml @@ -0,0 +1,191 @@ + + + + + + `id`,`tenantId`,`userName`,`passwd`,`email`,`nickName`,`realName`,`sex`,`mobile`,`birthday`,`status`,`identityFlag`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into shared_user + + `id`,`tenantId` + ,`userName` + ,`passwd` + ,`email` + ,`nickName` + ,`realName` + ,`sex` + ,`mobile` + ,`birthday` + ,`status` + ,`identityFlag` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{userName} + ,#{passwd} + ,#{email} + ,#{nickName} + ,#{realName} + ,#{sex} + ,#{mobile} + ,#{birthday} + ,#{status} + ,#{identityFlag} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update shared_user + + `tenantId` = #{tenantId} + ,`userName` = #{userName} + ,`passwd` = #{passwd} + ,`email` = #{email} + ,`nickName` = #{nickName} + ,`realName` = #{realName} + ,`sex` = #{sex} + ,`mobile` = #{mobile} + ,`birthday` = #{birthday} + ,`status` = #{status} + ,`identityFlag` = #{identityFlag} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + + update shared_user set passwd = #{passwd} where + `tenantId` = #{tenantId} and `id` = #{id} + + + + delete from shared_user + where `id` = #{id} + + + + delete from shared_user + ${condition} + + + + delete from shared_user + where `tenantId` = #{tenantId} + and ${property}=#{value} + + + + + + + + + + + insert into shared_user_role (tenantId,userId, roleId) + values + (#{tenantId}, #{userId}, #{roleId}) + + + + + delete from shared_user_role + where `tenantId` = #{tenantId} + and userId = #{userId} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorAddressMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorAddressMapper.xml new file mode 100644 index 0000000..2ac90ed --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorAddressMapper.xml @@ -0,0 +1,139 @@ + + + + + + `id`,`tenantId`,`storeId`,`visitorId`,`name`,`telephone`,`areaName`,`address`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_visitor_address + + `id`,`tenantId` + ,`storeId` + ,`visitorId` + ,`name` + ,`telephone` + ,`areaName` + ,`address` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{visitorId} + ,#{name} + ,#{telephone} + ,#{areaName} + ,#{address} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_visitor_address + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`visitorId` = #{visitorId} + ,`name` = #{name} + ,`telephone` = #{telephone} + ,`areaName` = #{areaName} + ,`address` = #{address} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_visitor_address + where `id` = #{id} + + + + delete from cy_visitor_address + ${condition} + + + + delete from cy_visitor_address + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorMapper.xml new file mode 100644 index 0000000..7fe9fd0 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorMapper.xml @@ -0,0 +1,154 @@ + + + + + + `id`,`tenantId`,`storeId`,`no`,`tel`,`name`,`spell`,`sex`,`title`,`position`,`fphone`,`sphone`,`description`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_visitor + + `id`,`tenantId` + ,`storeId` + ,`no` + ,`tel` + ,`name` + ,`spell` + ,`sex` + ,`title` + ,`position` + ,`fphone` + ,`sphone` + ,`description` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{no} + ,#{tel} + ,#{name} + ,#{spell} + ,#{sex} + ,#{title} + ,#{position} + ,#{fphone} + ,#{sphone} + ,#{description} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_visitor + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`no` = #{no} + ,`tel` = #{tel} + ,`name` = #{name} + ,`spell` = #{spell} + ,`sex` = #{sex} + ,`title` = #{title} + ,`position` = #{position} + ,`fphone` = #{fphone} + ,`sphone` = #{sphone} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_visitor + where `id` = #{id} + + + + delete from cy_visitor + ${condition} + + + + delete from cy_visitor + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + update cy_visitor + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorTagMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorTagMapper.xml new file mode 100644 index 0000000..666eb4e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VisitorTagMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`storeId`,`visitorId`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_visitor_tag + + `id`,`tenantId` + ,`storeId` + ,`visitorId` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{storeId} + ,#{visitorId} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update cy_visitor_tag + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`visitorId` = #{visitorId} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_visitor_tag + where `id` = #{id} + + + + delete from cy_visitor_tag + ${condition} + + + + delete from cy_visitor_tag + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposAdPictureMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposAdPictureMapper.xml new file mode 100644 index 0000000..8fd8b84 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposAdPictureMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`type`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_ad_picture + + `id`,`tenantId` + ,`type` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{type} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_ad_picture + + `tenantId` = #{tenantId} + ,`type` = #{type} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_ad_picture + where `id` = #{id} + + + + delete from cy_vpos_ad_picture + ${condition} + + + + delete from cy_vpos_ad_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_vpos_ad_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposCcbfzAccountMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposCcbfzAccountMapper.xml new file mode 100644 index 0000000..52784f6 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposCcbfzAccountMapper.xml @@ -0,0 +1,127 @@ + + + + + + `id`,`tenantId`,`seriesId`,`receiveNoType`,`receiveNo`,`acountType`,`feeName`,`refundSign`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_ccbfz_account + + `id`,`tenantId` + ,`seriesId` + ,`receiveNoType` + ,`receiveNo` + ,`acountType` + ,`feeName` + ,`refundSign` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{seriesId} + ,#{receiveNoType} + ,#{receiveNo} + ,#{acountType} + ,#{feeName} + ,#{refundSign} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_ccbfz_account + + `tenantId` = #{tenantId} + ,`seriesId` = #{seriesId} + ,`receiveNoType` = #{receiveNoType} + ,`receiveNo` = #{receiveNo} + ,`acountType` = #{acountType} + ,`feeName` = #{feeName} + ,`refundSign` = #{refundSign} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_ccbfz_account + where `id` = #{id} + + + + delete from cy_vpos_ccbfz_account + ${condition} + + + + delete from cy_vpos_ccbfz_account + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateImageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateImageMapper.xml new file mode 100644 index 0000000..4af6a97 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateImageMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`evaluateId`,`width`,`height`,`groupName`,`storageFileName`,`orderNo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_product_evaluate_image + + `id`,`tenantId` + ,`evaluateId` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`orderNo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{evaluateId} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{orderNo} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_product_evaluate_image + + `tenantId` = #{tenantId} + ,`evaluateId` = #{evaluateId} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`orderNo` = #{orderNo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate_image + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate_image + ${condition} + + + + delete from cy_vpos_product_evaluate_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateMapper.xml new file mode 100644 index 0000000..d732cc1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposProductEvaluateMapper.xml @@ -0,0 +1,178 @@ + + + + + + `id`,`tenantId`,`memberId`,`openId`,`mobile`,`storeId`,`storeNo`,`storeName`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`productId`,`productNo`,`productName`,`touxiang`,`memberName`,`memo`,`type`,`level`,`tickingTime`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_product_evaluate + + `id`,`tenantId` + ,`memberId` + ,`openId` + ,`mobile` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`productId` + ,`productNo` + ,`productName` + ,`touxiang` + ,`memberName` + ,`memo` + ,`type` + ,`level` + ,`tickingTime` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{touxiang} + ,#{memberName} + ,#{memo} + ,#{type} + ,#{level} + ,#{tickingTime} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_product_evaluate + + `tenantId` = #{tenantId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`touxiang` = #{touxiang} + ,`memberName` = #{memberName} + ,`memo` = #{memo} + ,`type` = #{type} + ,`level` = #{level} + ,`tickingTime` = #{tickingTime} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate + where `id` = #{id} + + + + delete from cy_vpos_product_evaluate + ${condition} + + + + delete from cy_vpos_product_evaluate + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketInfoMapper.xml new file mode 100644 index 0000000..0f668ba --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketInfoMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_business_ticket_info + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_business_ticket_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket_info + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket_info + ${condition} + + + + delete from cy_vpos_store_business_ticket_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketMapper.xml new file mode 100644 index 0000000..479f75c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreBusinessTicketMapper.xml @@ -0,0 +1,250 @@ + + + + + + `id`,`clientId`,`tenantId`,`memberId`,`openId`,`mobile`,`no`,`storeId`,`storeNo`,`storeName`,`status`,`workNo`,`saleDate`,`tableNo`,`people`,`busMode`,`shiftNo`,`shiftName`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`memberNo`,`memberJifen`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`isInvalid`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_business_ticket + + `id`,`tenantId` + ,`clientId` + ,`memberId` + ,`openId` + ,`mobile` + ,`no` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`status` + ,`workNo` + ,`saleDate` + ,`tableNo` + ,`people` + ,`busMode` + ,`shiftNo` + ,`shiftName` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`memberNo` + ,`memberJifen` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`isInvalid` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{memberId} + ,#{openId} + ,#{mobile} + ,#{no} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{status} + ,#{workNo} + ,#{saleDate} + ,#{tableNo} + ,#{people} + ,#{busMode} + ,#{shiftNo} + ,#{shiftName} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{memberNo} + ,#{memberJifen} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{isInvalid} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_business_ticket + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`memberId` = #{memberId} + ,`openId` = #{openId} + ,`mobile` = #{mobile} + ,`no` = #{no} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`status` = #{status} + ,`workNo` = #{workNo} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`shiftNo` = #{shiftNo} + ,`shiftName` = #{shiftName} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`memberJifen` = #{memberJifen} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`isInvalid` = #{isInvalid} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket + where `id` = #{id} + + + + delete from cy_vpos_store_business_ticket + ${condition} + + + + delete from cy_vpos_store_business_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductInfoMapper.xml new file mode 100644 index 0000000..08e67fb --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductInfoMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`clientId`,`orderItemId`,`tenantId`,`storeId`,`ticketId`,`busNo`,`type`,`info`,`discountMoney`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_order_product_info + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`type` + ,`info` + ,`discountMoney` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_order_product_info + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_info + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_info + ${condition} + + + + delete from cy_vpos_store_order_product_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMakeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMakeMapper.xml new file mode 100644 index 0000000..4fb64f7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMakeMapper.xml @@ -0,0 +1,179 @@ + + + + + + `id`,`clientId`,`tenantId`,`orderItemId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`hand`,`isInvalid`,`saleDate`,`tableNo`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_order_product_make + + `id`,`tenantId` + ,`clientId` + ,`orderItemId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`hand` + ,`isInvalid` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{orderItemId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{hand} + ,#{isInvalid} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_order_product_make + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`orderItemId` = #{orderItemId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`hand` = #{hand} + ,`isInvalid` = #{isInvalid} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_make + where `id` = #{id} + + + + delete from cy_vpos_store_order_product_make + ${condition} + + + + delete from cy_vpos_store_order_product_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMapper.xml new file mode 100644 index 0000000..e12ca18 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStoreOrderProductMapper.xml @@ -0,0 +1,314 @@ + + + + + + `id`,`clientId`,`parentId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`busMode`,`tableNo`,`productId`,`productNo`,`productName`,`productUnitId`,`productUnitName`,`productImageUrl`,`seriesId`,`seriesName`,`typePath`,`typeId`,`typeName`,`specId`,`specName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`isSuit`,`suitId`,`workerNo`,`saleDate`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isMember`,`memberNo`,`isInvalid`,`lineNo`,`seqNo`,`weather`,`weeker`,`isStockDeal`,`estimatedCost`,`estimatedProfitAmount`,`estimatedProfitMargin`,`totalCost`,`profitAmount`,`profitMargin`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_order_product + + `id`,`tenantId` + ,`clientId` + ,`parentId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`productId` + ,`productNo` + ,`productName` + ,`productUnitId` + ,`productUnitName` + ,`productImageUrl` + ,`seriesId` + ,`seriesName` + ,`typePath` + ,`typeId` + ,`typeName` + ,`specId` + ,`specName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`isSuit` + ,`suitId` + ,`workerNo` + ,`saleDate` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isMember` + ,`memberNo` + ,`isInvalid` + ,`lineNo` + ,`seqNo` + ,`weather` + ,`weeker` + ,`isStockDeal` + ,`estimatedCost` + ,`estimatedProfitAmount` + ,`estimatedProfitMargin` + ,`totalCost` + ,`profitAmount` + ,`profitMargin` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{parentId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{productId} + ,#{productNo} + ,#{productName} + ,#{productUnitId} + ,#{productUnitName} + ,#{productImageUrl} + ,#{seriesId} + ,#{seriesName} + ,#{typePath} + ,#{typeId} + ,#{typeName} + ,#{specId} + ,#{specName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{isSuit} + ,#{suitId} + ,#{workerNo} + ,#{saleDate} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isMember} + ,#{memberNo} + ,#{isInvalid} + ,#{lineNo} + ,#{seqNo} + ,#{weather} + ,#{weeker} + ,#{isStockDeal} + ,#{estimatedCost} + ,#{estimatedProfitAmount} + ,#{estimatedProfitMargin} + ,#{totalCost} + ,#{profitAmount} + ,#{profitMargin} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_order_product + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`parentId` = #{parentId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`productName` = #{productName} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`productImageUrl` = #{productImageUrl} + ,`seriesId` = #{seriesId} + ,`seriesName` = #{seriesName} + ,`typePath` = #{typePath} + ,`typeId` = #{typeId} + ,`typeName` = #{typeName} + ,`specId` = #{specId} + ,`specName` = #{specName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`workerNo` = #{workerNo} + ,`saleDate` = #{saleDate} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isMember` = #{isMember} + ,`memberNo` = #{memberNo} + ,`isInvalid` = #{isInvalid} + ,`lineNo` = #{lineNo} + ,`seqNo` = #{seqNo} + ,`weather` = #{weather} + ,`weeker` = #{weeker} + ,`isStockDeal` = #{isStockDeal} + ,`estimatedCost` = #{estimatedCost} + ,`estimatedProfitAmount` = #{estimatedProfitAmount} + ,`estimatedProfitMargin` = #{estimatedProfitMargin} + ,`totalCost` = #{totalCost} + ,`profitAmount` = #{profitAmount} + ,`profitMargin` = #{profitMargin} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_order_product + where `id` = #{id} + + + + delete from cy_vpos_store_order_product + ${condition} + + + + delete from cy_vpos_store_order_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStorePayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStorePayMapper.xml new file mode 100644 index 0000000..90b8cb6 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposStorePayMapper.xml @@ -0,0 +1,212 @@ + + + + + + `id`,`clientId`,`tenantId`,`storeId`,`storeNo`,`storeName`,`payNo`,`ticketId`,`busNo`,`busMode`,`tableNo`,`payTypeNo`,`payType`,`paid`,`rchange`,`money`,`overAmount`,`workNo`,`deviceName`,`deviceMac`,`deviceIp`,`posNo`,`voucherNo`,`payDate`,`cardno`,`cardYe`,`cardJf`,`incomeFlag`,`otherRateType`,`otherRateValue`,`otherRate`,`payChannel`,`memo`,`isInvalid`,`tableName`,`ext1`,`ext2`,`ext3`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_store_pay + + `id`,`tenantId` + ,`clientId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`payNo` + ,`ticketId` + ,`busNo` + ,`busMode` + ,`tableNo` + ,`payTypeNo` + ,`payType` + ,`paid` + ,`rchange` + ,`money` + ,`overAmount` + ,`workNo` + ,`deviceName` + ,`deviceMac` + ,`deviceIp` + ,`posNo` + ,`voucherNo` + ,`payDate` + ,`cardno` + ,`cardYe` + ,`cardJf` + ,`incomeFlag` + ,`otherRateType` + ,`otherRateValue` + ,`otherRate` + ,`payChannel` + ,`memo` + ,`isInvalid` + ,`tableName` + ,`ext1` + ,`ext2` + ,`ext3` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{clientId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{payNo} + ,#{ticketId} + ,#{busNo} + ,#{busMode} + ,#{tableNo} + ,#{payTypeNo} + ,#{payType} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{overAmount} + ,#{workNo} + ,#{deviceName} + ,#{deviceMac} + ,#{deviceIp} + ,#{posNo} + ,#{voucherNo} + ,#{payDate} + ,#{cardno} + ,#{cardYe} + ,#{cardJf} + ,#{incomeFlag} + ,#{otherRateType} + ,#{otherRateValue} + ,#{otherRate} + ,#{payChannel} + ,#{memo} + ,#{isInvalid} + ,#{tableName} + ,#{ext1} + ,#{ext2} + ,#{ext3} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_store_pay + + `tenantId` = #{tenantId} + ,`clientId` = #{clientId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`payNo` = #{payNo} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`busMode` = #{busMode} + ,`tableNo` = #{tableNo} + ,`payTypeNo` = #{payTypeNo} + ,`payType` = #{payType} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`overAmount` = #{overAmount} + ,`workNo` = #{workNo} + ,`deviceName` = #{deviceName} + ,`deviceMac` = #{deviceMac} + ,`deviceIp` = #{deviceIp} + ,`posNo` = #{posNo} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`cardno` = #{cardno} + ,`cardYe` = #{cardYe} + ,`cardJf` = #{cardJf} + ,`incomeFlag` = #{incomeFlag} + ,`otherRateType` = #{otherRateType} + ,`otherRateValue` = #{otherRateValue} + ,`otherRate` = #{otherRate} + ,`payChannel` = #{payChannel} + ,`memo` = #{memo} + ,`isInvalid` = #{isInvalid} + ,`tableName` = #{tableName} + ,`ext1` = #{ext1} + ,`ext2` = #{ext2} + ,`ext3` = #{ext3} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_store_pay + where `id` = #{id} + + + + delete from cy_vpos_store_pay + ${condition} + + + + delete from cy_vpos_store_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposUserMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposUserMapper.xml new file mode 100644 index 0000000..3a55da1 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposUserMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sex`,`birthday`,`email`,`mobile`,`isLogin`,`passwd`,`enable`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_user + + `id`,`tenantId` + ,`no` + ,`name` + ,`sex` + ,`birthday` + ,`email` + ,`mobile` + ,`isLogin` + ,`passwd` + ,`enable` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sex} + ,#{birthday} + ,#{email} + ,#{mobile} + ,#{isLogin} + ,#{passwd} + ,#{enable} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_vpos_user + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sex` = #{sex} + ,`birthday` = #{birthday} + ,`email` = #{email} + ,`mobile` = #{mobile} + ,`isLogin` = #{isLogin} + ,`passwd` = #{passwd} + ,`enable` = #{enable} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_vpos_user + where `id` = #{id} + + + + delete from cy_vpos_user + ${condition} + + + + delete from cy_vpos_user + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposUserSeriesMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposUserSeriesMapper.xml new file mode 100644 index 0000000..2e3a20d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/VposUserSeriesMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`userId`,`seriesId`,`seriesNo`,`seriesName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_vpos_user_series + + `id`,`tenantId` + ,`userId` + ,`seriesId` + ,`seriesNo` + ,`seriesName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{userId} + ,#{seriesId} + ,#{seriesNo} + ,#{seriesName} + ,#{createUser} + ,#{createDate} + + + + + update cy_vpos_user_series + + `tenantId` = #{tenantId} + ,`userId` = #{userId} + ,`seriesId` = #{seriesId} + ,`seriesNo` = #{seriesNo} + ,`seriesName` = #{seriesName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_vpos_user_series + where `id` = #{id} + + + + delete from cy_vpos_user_series + ${condition} + + + + delete from cy_vpos_user_series + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdPictureMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdPictureMapper.xml new file mode 100644 index 0000000..9e7e9b2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdPictureMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`orderNo`,`name`,`width`,`height`,`groupName`,`storageFileName`,`linkUrl`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_ad_picture + + `id`,`tenantId` + ,`orderNo` + ,`name` + ,`width` + ,`height` + ,`groupName` + ,`storageFileName` + ,`linkUrl` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{orderNo} + ,#{name} + ,#{width} + ,#{height} + ,#{groupName} + ,#{storageFileName} + ,#{linkUrl} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_ad_picture + + `tenantId` = #{tenantId} + ,`orderNo` = #{orderNo} + ,`name` = #{name} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`linkUrl` = #{linkUrl} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_ad_picture + where `id` = #{id} + + + + delete from cy_wx_ad_picture + ${condition} + + + + delete from cy_wx_ad_picture + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_ad_picture + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceGoodsMapper.xml new file mode 100644 index 0000000..c6243b8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceGoodsMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_adjust_price_goods + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_adjust_price_goods + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_adjust_price_goods + where `id` = #{id} + + + + delete from cy_wx_adjust_price_goods + ${condition} + + + + delete from cy_wx_adjust_price_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceStoreMapper.xml new file mode 100644 index 0000000..6232a4e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceStoreMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_adjust_price_store + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_adjust_price_store + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_adjust_price_store + where `id` = #{id} + + + + delete from cy_wx_adjust_price_store + ${condition} + + + + delete from cy_wx_adjust_price_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceTicketMapper.xml new file mode 100644 index 0000000..bcb9d92 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxAdjustPriceTicketMapper.xml @@ -0,0 +1,122 @@ + + + + + + `id`,`tenantId`,`no`,`effectDate`,`description`,`status`,`checkPeople`,`checkDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_adjust_price_ticket + + `id`,`tenantId` + ,`no` + ,`effectDate` + ,`description` + ,`status` + ,`checkPeople` + ,`checkDate` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{effectDate} + ,#{description} + ,#{status} + ,#{checkPeople} + ,#{checkDate} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_adjust_price_ticket + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`effectDate` = #{effectDate} + ,`description` = #{description} + ,`status` = #{status} + ,`checkPeople` = #{checkPeople} + ,`checkDate` = #{checkDate} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_adjust_price_ticket + where `id` = #{id} + + + + delete from cy_wx_adjust_price_ticket + ${condition} + + + + delete from cy_wx_adjust_price_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsCategoryMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsCategoryMapper.xml new file mode 100644 index 0000000..5c3213d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsCategoryMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`name`,`description`,`orderNo`,`path`,`deleteFlag`,`nameEn`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_category + + `id`,`tenantId` + ,`name` + ,`description` + ,`orderNo` + ,`path` + ,`deleteFlag` + ,`nameEn` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{name} + ,#{description} + ,#{orderNo} + ,#{path} + ,#{deleteFlag} + ,#{nameEn} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_category + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`description` = #{description} + ,`orderNo` = #{orderNo} + ,`path` = #{path} + ,`deleteFlag` = #{deleteFlag} + ,`nameEn` = #{nameEn} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_category + where `id` = #{id} + + + + delete from cy_wx_goods_category + ${condition} + + + + delete from cy_wx_goods_category + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_goods_category + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsMakeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsMakeMapper.xml new file mode 100644 index 0000000..363be9d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsMakeMapper.xml @@ -0,0 +1,109 @@ + + + + + + `tenantId`,`productId`,`typeId`,`makeId`,`addPrice` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_make + + `tenantId` + ,`productId` + ,`typeId` + ,`makeId` + ,`addPrice` + + + #{tenantId} + ,#{productId} + ,#{typeId} + ,#{makeId} + ,#{addPrice} + + + + + delete from cy_wx_goods_make + where `id` = #{id} + + + + delete from cy_wx_goods_make + ${condition} + + + + delete from cy_wx_goods_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsMapper.xml new file mode 100644 index 0000000..4b32b23 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsMapper.xml @@ -0,0 +1,190 @@ + + + + + + `id`,`tenantId`,`productId`,`productNo`,`specId`,`name`,`specName`,`description`,`categoryId`,`categoryPath`,`orderNo`,`isNew`,`price`,`memberPrice`,`minCount`,`limitCount`,`suitFlag`,`deleteFlag`,`boxPrice`,`nameEn`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods + + `id`,`tenantId` + ,`productId` + ,`productNo` + ,`specId` + ,`name` + ,`specName` + ,`description` + ,`categoryId` + ,`categoryPath` + ,`orderNo` + ,`isNew` + ,`price` + ,`memberPrice` + ,`minCount` + ,`limitCount` + ,`suitFlag` + ,`deleteFlag` + ,`boxPrice` + ,`nameEn` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{name} + ,#{specName} + ,#{description} + ,#{categoryId} + ,#{categoryPath} + ,#{orderNo} + ,#{isNew} + ,#{price} + ,#{memberPrice} + ,#{minCount} + ,#{limitCount} + ,#{suitFlag} + ,#{deleteFlag} + ,#{boxPrice} + ,#{nameEn} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods + + `tenantId` = #{tenantId} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`name` = #{name} + ,`specName` = #{specName} + ,`description` = #{description} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`orderNo` = #{orderNo} + ,`isNew` = #{isNew} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`minCount` = #{minCount} + ,`limitCount` = #{limitCount} + ,`suitFlag` = #{suitFlag} + ,`deleteFlag` = #{deleteFlag} + ,`boxPrice` = #{boxPrice} + ,`nameEn` = #{nameEn} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods + where `id` = #{id} + + + + delete from cy_wx_goods + ${condition} + + + + delete from cy_wx_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_goods + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateDetailMapper.xml new file mode 100644 index 0000000..f097451 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateDetailMapper.xml @@ -0,0 +1,133 @@ + + + + + + `id`,`tenantId`,`templateId`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_template_detail + + `id`,`tenantId` + ,`templateId` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_template_detail + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_template_detail + where `id` = #{id} + + + + delete from cy_wx_goods_template_detail + ${condition} + + + + delete from cy_wx_goods_template_detail + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateMapper.xml new file mode 100644 index 0000000..b0e3d4d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_template + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_template + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_template + where `id` = #{id} + + + + delete from cy_wx_goods_template + ${condition} + + + + delete from cy_wx_goods_template + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateStoreMapper.xml new file mode 100644 index 0000000..cb5f2a5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxGoodsTemplateStoreMapper.xml @@ -0,0 +1,121 @@ + + + + + + `id`,`tenantId`,`templateId`,`storeId`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_goods_template_store + + `id`,`tenantId` + ,`templateId` + ,`storeId` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{templateId} + ,#{storeId} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_goods_template_store + + `tenantId` = #{tenantId} + ,`templateId` = #{templateId} + ,`storeId` = #{storeId} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_goods_template_store + where `id` = #{id} + + + + delete from cy_wx_goods_template_store + ${condition} + + + + delete from cy_wx_goods_template_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxPaymentParameterMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxPaymentParameterMapper.xml new file mode 100644 index 0000000..0bc6a7d --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxPaymentParameterMapper.xml @@ -0,0 +1,140 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`sign`,`pbody`,`enabled`,`certText`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_payment_parameter + + `id`,`tenantId` + ,`no` + ,`name` + ,`sign` + ,`pbody` + ,`enabled` + ,`certText` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{sign} + ,#{pbody} + ,#{enabled} + ,#{certText} + ,#{createUser} + ,#{createDate} + + + + + update cy_wx_payment_parameter + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`sign` = #{sign} + ,`pbody` = #{pbody} + ,`enabled` = #{enabled} + ,`certText` = #{certText} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from cy_wx_payment_parameter + where `id` = #{id} + + + + delete from cy_wx_payment_parameter + ${condition} + + + + delete from cy_wx_payment_parameter + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + INSERT INTO cy_wx_payment_parameter_store (`tenantId`,`storeId`,`wxStoreId`,`parameterId`) + VALUES (#{tenantId},#{storeId},#{wxStoreId},#{id}) + + + + + + DELETE FROM cy_wx_payment_parameter_store + ${condition} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxQrcodeSettingMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxQrcodeSettingMapper.xml new file mode 100644 index 0000000..ce7dbe5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxQrcodeSettingMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`width`,`height`,`linkAddress`,`logoName`,`logoWidth`,`logoHeight`,`groupName`,`storageFileName`,`imgLink`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_qrcode_setting + + `id`,`tenantId` + ,`width` + ,`height` + ,`linkAddress` + ,`logoName` + ,`logoWidth` + ,`logoHeight` + ,`groupName` + ,`storageFileName` + ,`imgLink` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{width} + ,#{height} + ,#{linkAddress} + ,#{logoName} + ,#{logoWidth} + ,#{logoHeight} + ,#{groupName} + ,#{storageFileName} + ,#{imgLink} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_qrcode_setting + + `tenantId` = #{tenantId} + ,`width` = #{width} + ,`height` = #{height} + ,`linkAddress` = #{linkAddress} + ,`logoName` = #{logoName} + ,`logoWidth` = #{logoWidth} + ,`logoHeight` = #{logoHeight} + ,`groupName` = #{groupName} + ,`storageFileName` = #{storageFileName} + ,`imgLink` = #{imgLink} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_qrcode_setting + where `id` = #{id} + + + + delete from cy_wx_qrcode_setting + ${condition} + + + + delete from cy_wx_qrcode_setting + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMakeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMakeMapper.xml new file mode 100644 index 0000000..cd1ebc2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMakeMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`memberId`,`orderItemId`,`makeId`,`makeName`,`addPrice`,`discountPrice`,`count`,`rcount`,`addTotal`,`discountAddTotal`,`discount`,`qtyFlag`,`saleDate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_item_make + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`memberId` + ,`orderItemId` + ,`makeId` + ,`makeName` + ,`addPrice` + ,`discountPrice` + ,`count` + ,`rcount` + ,`addTotal` + ,`discountAddTotal` + ,`discount` + ,`qtyFlag` + ,`saleDate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{memberId} + ,#{orderItemId} + ,#{makeId} + ,#{makeName} + ,#{addPrice} + ,#{discountPrice} + ,#{count} + ,#{rcount} + ,#{addTotal} + ,#{discountAddTotal} + ,#{discount} + ,#{qtyFlag} + ,#{saleDate} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_item_make + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`memberId` = #{memberId} + ,`orderItemId` = #{orderItemId} + ,`makeId` = #{makeId} + ,`makeName` = #{makeName} + ,`addPrice` = #{addPrice} + ,`discountPrice` = #{discountPrice} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`addTotal` = #{addTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`discount` = #{discount} + ,`qtyFlag` = #{qtyFlag} + ,`saleDate` = #{saleDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_make + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_make + ${condition} + + + + delete from cy_wx_sales_order_item_make + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMapper.xml new file mode 100644 index 0000000..7a40891 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemMapper.xml @@ -0,0 +1,234 @@ + + + + + + `id`,`tenantId`,`storeId`,`storeNo`,`storeName`,`ticketId`,`busNo`,`memberId`,`tableNo`,`tableName`,`lineNo`,`goodsId`,`goodsName`,`specName`,`categoryId`,`categoryPath`,`categoryName`,`productId`,`productNo`,`specId`,`productUnitId`,`productUnitName`,`count`,`rcount`,`price`,`priceOrg`,`discountPrice`,`saleDate`,`amount`,`discount`,`discountTotal`,`receivable`,`addPriceTotal`,`discountAddTotal`,`amountAddTotal`,`amountTotal`,`receivableTotal`,`isMember`,`isSuit`,`suitId`,`parentId`,`boxNum`,`boxPrice`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_item + + `id`,`tenantId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`ticketId` + ,`busNo` + ,`memberId` + ,`tableNo` + ,`tableName` + ,`lineNo` + ,`goodsId` + ,`goodsName` + ,`specName` + ,`categoryId` + ,`categoryPath` + ,`categoryName` + ,`productId` + ,`productNo` + ,`specId` + ,`productUnitId` + ,`productUnitName` + ,`count` + ,`rcount` + ,`price` + ,`priceOrg` + ,`discountPrice` + ,`saleDate` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`addPriceTotal` + ,`discountAddTotal` + ,`amountAddTotal` + ,`amountTotal` + ,`receivableTotal` + ,`isMember` + ,`isSuit` + ,`suitId` + ,`parentId` + ,`boxNum` + ,`boxPrice` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{ticketId} + ,#{busNo} + ,#{memberId} + ,#{tableNo} + ,#{tableName} + ,#{lineNo} + ,#{goodsId} + ,#{goodsName} + ,#{specName} + ,#{categoryId} + ,#{categoryPath} + ,#{categoryName} + ,#{productId} + ,#{productNo} + ,#{specId} + ,#{productUnitId} + ,#{productUnitName} + ,#{count} + ,#{rcount} + ,#{price} + ,#{priceOrg} + ,#{discountPrice} + ,#{saleDate} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{addPriceTotal} + ,#{discountAddTotal} + ,#{amountAddTotal} + ,#{amountTotal} + ,#{receivableTotal} + ,#{isMember} + ,#{isSuit} + ,#{suitId} + ,#{parentId} + ,#{boxNum} + ,#{boxPrice} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_item + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`memberId` = #{memberId} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`lineNo` = #{lineNo} + ,`goodsId` = #{goodsId} + ,`goodsName` = #{goodsName} + ,`specName` = #{specName} + ,`categoryId` = #{categoryId} + ,`categoryPath` = #{categoryPath} + ,`categoryName` = #{categoryName} + ,`productId` = #{productId} + ,`productNo` = #{productNo} + ,`specId` = #{specId} + ,`productUnitId` = #{productUnitId} + ,`productUnitName` = #{productUnitName} + ,`count` = #{count} + ,`rcount` = #{rcount} + ,`price` = #{price} + ,`priceOrg` = #{priceOrg} + ,`discountPrice` = #{discountPrice} + ,`saleDate` = #{saleDate} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`addPriceTotal` = #{addPriceTotal} + ,`discountAddTotal` = #{discountAddTotal} + ,`amountAddTotal` = #{amountAddTotal} + ,`amountTotal` = #{amountTotal} + ,`receivableTotal` = #{receivableTotal} + ,`isMember` = #{isMember} + ,`isSuit` = #{isSuit} + ,`suitId` = #{suitId} + ,`parentId` = #{parentId} + ,`boxNum` = #{boxNum} + ,`boxPrice` = #{boxPrice} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_item + where `id` = #{id} + + + + delete from cy_wx_sales_order_item + ${condition} + + + + delete from cy_wx_sales_order_item + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemPromoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemPromoMapper.xml new file mode 100644 index 0000000..1674c4f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderItemPromoMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`storeId`,`ticketId`,`busNo`,`orderItemId`,`type`,`info`,`discountMoney`,`saleDate`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_item_promo + + `id`,`tenantId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`orderItemId` + ,`type` + ,`info` + ,`discountMoney` + ,`saleDate` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{orderItemId} + ,#{type} + ,#{info} + ,#{discountMoney} + ,#{saleDate} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_item_promo + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`orderItemId` = #{orderItemId} + ,`type` = #{type} + ,`info` = #{info} + ,`discountMoney` = #{discountMoney} + ,`saleDate` = #{saleDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_promo + where `id` = #{id} + + + + delete from cy_wx_sales_order_item_promo + ${condition} + + + + delete from cy_wx_sales_order_item_promo + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderLogMapper.xml new file mode 100644 index 0000000..5166de8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderLogMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`ticketId`,`ticketNo`,`type`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order_log + + `id`,`tenantId` + ,`ticketId` + ,`ticketNo` + ,`type` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{ticketId} + ,#{ticketNo} + ,#{type} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order_log + + `tenantId` = #{tenantId} + ,`ticketId` = #{ticketId} + ,`ticketNo` = #{ticketNo} + ,`type` = #{type} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order_log + where `id` = #{id} + + + + delete from cy_wx_sales_order_log + ${condition} + + + + delete from cy_wx_sales_order_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderMapper.xml new file mode 100644 index 0000000..8aa9846 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesOrderMapper.xml @@ -0,0 +1,225 @@ + + + + + + `id`,`tenantId`,`no`,`wid`,`memberId`,`phone`,`storeId`,`storeNo`,`storeName`,`daySeq`,`takeNo`,`status`,`refundStatus`,`channel`,`saleDate`,`tableNo`,`tableName`,`people`,`busMode`,`amount`,`discount`,`discountTotal`,`receivable`,`maling`,`paid`,`noOrg`,`backCause`,`isMember`,`isInvalid`,`description`,`payType`,`payMode`,`payDate`,`cancelDate`,`cancelReason`,`storeReason`,`receiveName`,`receiveMobile`,`receiveAddress`,`boxFee`,`distributionFee`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_order + + `id`,`tenantId` + ,`no` + ,`wid` + ,`memberId` + ,`phone` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`daySeq` + ,`takeNo` + ,`status` + ,`refundStatus` + ,`channel` + ,`saleDate` + ,`tableNo` + ,`tableName` + ,`people` + ,`busMode` + ,`amount` + ,`discount` + ,`discountTotal` + ,`receivable` + ,`maling` + ,`paid` + ,`noOrg` + ,`backCause` + ,`isMember` + ,`isInvalid` + ,`description` + ,`payType` + ,`payMode` + ,`payDate` + ,`cancelDate` + ,`cancelReason` + ,`storeReason` + ,`receiveName` + ,`receiveMobile` + ,`receiveAddress` + ,`boxFee` + ,`distributionFee` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{wid} + ,#{memberId} + ,#{phone} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{daySeq} + ,#{takeNo} + ,#{status} + ,#{refundStatus} + ,#{channel} + ,#{saleDate} + ,#{tableNo} + ,#{tableName} + ,#{people} + ,#{busMode} + ,#{amount} + ,#{discount} + ,#{discountTotal} + ,#{receivable} + ,#{maling} + ,#{paid} + ,#{noOrg} + ,#{backCause} + ,#{isMember} + ,#{isInvalid} + ,#{description} + ,#{payType} + ,#{payMode} + ,#{payDate} + ,#{cancelDate} + ,#{cancelReason} + ,#{storeReason} + ,#{receiveName} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{boxFee} + ,#{distributionFee} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_order + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`wid` = #{wid} + ,`memberId` = #{memberId} + ,`phone` = #{phone} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`daySeq` = #{daySeq} + ,`takeNo` = #{takeNo} + ,`status` = #{status} + ,`refundStatus` = #{refundStatus} + ,`channel` = #{channel} + ,`saleDate` = #{saleDate} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`people` = #{people} + ,`busMode` = #{busMode} + ,`amount` = #{amount} + ,`discount` = #{discount} + ,`discountTotal` = #{discountTotal} + ,`receivable` = #{receivable} + ,`maling` = #{maling} + ,`paid` = #{paid} + ,`noOrg` = #{noOrg} + ,`backCause` = #{backCause} + ,`isMember` = #{isMember} + ,`isInvalid` = #{isInvalid} + ,`description` = #{description} + ,`payType` = #{payType} + ,`payMode` = #{payMode} + ,`payDate` = #{payDate} + ,`cancelDate` = #{cancelDate} + ,`cancelReason` = #{cancelReason} + ,`storeReason` = #{storeReason} + ,`receiveName` = #{receiveName} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`boxFee` = #{boxFee} + ,`distributionFee` = #{distributionFee} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_order + where `id` = #{id} + + + + delete from cy_wx_sales_order + ${condition} + + + + delete from cy_wx_sales_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesPaymentMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesPaymentMapper.xml new file mode 100644 index 0000000..71d10d6 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxSalesPaymentMapper.xml @@ -0,0 +1,149 @@ + + + + + + `id`,`tenantId`,`storeId`,`ticketId`,`busNo`,`memberId`,`payNo`,`payType`,`payMode`,`status`,`paid`,`rchange`,`money`,`voucherNo`,`payDate`,`payAccount`,`memo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_sales_payment + + `id`,`tenantId` + ,`storeId` + ,`ticketId` + ,`busNo` + ,`memberId` + ,`payNo` + ,`payType` + ,`payMode` + ,`status` + ,`paid` + ,`rchange` + ,`money` + ,`voucherNo` + ,`payDate` + ,`payAccount` + ,`memo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{ticketId} + ,#{busNo} + ,#{memberId} + ,#{payNo} + ,#{payType} + ,#{payMode} + ,#{status} + ,#{paid} + ,#{rchange} + ,#{money} + ,#{voucherNo} + ,#{payDate} + ,#{payAccount} + ,#{memo} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_sales_payment + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`ticketId` = #{ticketId} + ,`busNo` = #{busNo} + ,`memberId` = #{memberId} + ,`payNo` = #{payNo} + ,`payType` = #{payType} + ,`payMode` = #{payMode} + ,`status` = #{status} + ,`paid` = #{paid} + ,`rchange` = #{rchange} + ,`money` = #{money} + ,`voucherNo` = #{voucherNo} + ,`payDate` = #{payDate} + ,`payAccount` = #{payAccount} + ,`memo` = #{memo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_sales_payment + where `id` = #{id} + + + + delete from cy_wx_sales_payment + ${condition} + + + + delete from cy_wx_sales_payment + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxStoreGoodsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxStoreGoodsMapper.xml new file mode 100644 index 0000000..9104037 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxStoreGoodsMapper.xml @@ -0,0 +1,238 @@ + + + + + + `id`,`tenantId`,`storeId`,`goodsId`,`productId`,`specId`,`price`,`memberPrice`,`inventoryQuantity`,`saleStatus`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_store_goods + + `id`,`tenantId` + ,`storeId` + ,`goodsId` + ,`productId` + ,`specId` + ,`price` + ,`memberPrice` + ,`inventoryQuantity` + ,`saleStatus` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{storeId} + ,#{goodsId} + ,#{productId} + ,#{specId} + ,#{price} + ,#{memberPrice} + ,#{inventoryQuantity} + ,#{saleStatus} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_store_goods + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`goodsId` = #{goodsId} + ,`productId` = #{productId} + ,`specId` = #{specId} + ,`price` = #{price} + ,`memberPrice` = #{memberPrice} + ,`inventoryQuantity` = #{inventoryQuantity} + ,`saleStatus` = #{saleStatus} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + update cy_wx_store_goods + set `saleStatus` = #{saleStatus} + where `tenantId` = #{tenantId} and `storeId` = #{storeId} + + + + delete from cy_wx_store_goods + where `id` = #{id} + + + + delete from cy_wx_store_goods + ${condition} + + + + delete from cy_wx_store_goods + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxStoreMapper.xml new file mode 100644 index 0000000..555d2fc --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/WxStoreMapper.xml @@ -0,0 +1,190 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`orderTel`,`address`,`enabled`,`deleteFlag`,`storeId`,`latitude`,`longitude`,`noticeInfo`,`isOpen`,`openTimeType`,`openTime`,`deliverFee`,`deliverFeeDiscountType`,`deliverFeeDiscountRule`,`wid`,`litAppAccountId`,`posNo`,`busModes`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_wx_store + + `id`,`tenantId` + ,`no` + ,`name` + ,`orderTel` + ,`address` + ,`enabled` + ,`deleteFlag` + ,`storeId` + ,`latitude` + ,`longitude` + ,`noticeInfo` + ,`isOpen` + ,`openTimeType` + ,`openTime` + ,`deliverFee` + ,`deliverFeeDiscountType` + ,`deliverFeeDiscountRule` + ,`wid` + ,`litAppAccountId` + ,`posNo` + ,`busModes` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{orderTel} + ,#{address} + ,#{enabled} + ,#{deleteFlag} + ,#{storeId} + ,#{latitude} + ,#{longitude} + ,#{noticeInfo} + ,#{isOpen} + ,#{openTimeType} + ,#{openTime} + ,#{deliverFee} + ,#{deliverFeeDiscountType} + ,#{deliverFeeDiscountRule} + ,#{wid} + ,#{litAppAccountId} + ,#{posNo} + ,#{busModes} + ,#{createDate} + ,#{createUser} + + + + + update cy_wx_store + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`orderTel` = #{orderTel} + ,`address` = #{address} + ,`enabled` = #{enabled} + ,`deleteFlag` = #{deleteFlag} + ,`storeId` = #{storeId} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`noticeInfo` = #{noticeInfo} + ,`isOpen` = #{isOpen} + ,`openTimeType` = #{openTimeType} + ,`openTime` = #{openTime} + ,`deliverFee` = #{deliverFee} + ,`deliverFeeDiscountType` = #{deliverFeeDiscountType} + ,`deliverFeeDiscountRule` = #{deliverFeeDiscountRule} + ,`wid` = #{wid} + ,`litAppAccountId` = #{litAppAccountId} + ,`posNo` = #{posNo} + ,`busModes` = #{busModes} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_wx_store + where `id` = #{id} + + + + delete from cy_wx_store + ${condition} + + + + delete from cy_wx_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update cy_wx_store + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/YunposSetMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/YunposSetMapper.xml new file mode 100644 index 0000000..54292dc --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/YunposSetMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`name`,`terminalType`,`description`,`enable`,`pbody`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into cy_yunpos_set + + `id`,`tenantId` + ,`name` + ,`terminalType` + ,`description` + ,`enable` + ,`pbody` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{terminalType} + ,#{description} + ,#{enable} + ,#{pbody} + ,#{createDate} + ,#{createUser} + + + + + update cy_yunpos_set + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`terminalType` = #{terminalType} + ,`description` = #{description} + ,`enable` = #{enable} + ,`pbody` = #{pbody} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from cy_yunpos_set + where `id` = #{id} + + + + delete from cy_yunpos_set + ${condition} + + + + delete from cy_yunpos_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/YunposSetStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/YunposSetStoreMapper.xml new file mode 100644 index 0000000..e859708 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/food/YunposSetStoreMapper.xml @@ -0,0 +1,104 @@ + + + + + + `tenantId`,`storeId`,`setId` + + + + + + + + + + + + + + + + + + + + insert into cy_yunpos_set_store + + `id`,`tenantId` + ,`storeId` + ,`setId` + + + #{id},#{tenantId} + ,#{storeId} + ,#{setId} + + + + + update cy_yunpos_set_store + + `tenantId` = #{tenantId} + ,`storeId` = #{storeId} + ,`setId` = #{setId} + + where `id` = #{id} + + + + delete from cy_yunpos_set_store + where `id` = #{id} + + + + delete from cy_yunpos_set_store + ${condition} + + + + delete from cy_yunpos_set_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentMapper.xml new file mode 100644 index 0000000..72c7ec3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentMapper.xml @@ -0,0 +1,153 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`topParentId`,`parentId`,`area`,`contacts`,`phone`,`mobile`,`isShare`,`shareData`,`email`,`address`,`memo`,`subInsCd`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + insert into yw_agent + + `id`,`tenantId` + ,`code` + ,`name` + ,`topParentId` + ,`parentId` + ,`area` + ,`contacts` + ,`phone` + ,`mobile` + ,`isShare` + ,`shareData` + ,`email` + ,`address` + ,`memo` + ,`subInsCd` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{topParentId} + ,#{parentId} + ,#{area} + ,#{contacts} + ,#{phone} + ,#{mobile} + ,#{isShare} + ,#{shareData} + ,#{email} + ,#{address} + ,#{memo} + ,#{subInsCd} + ,#{createUser} + ,#{createDate} + + + + + update yw_agent + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`topParentId` = #{topParentId} + ,`parentId` = #{parentId} + ,`area` = #{area} + ,`contacts` = #{contacts} + ,`phone` = #{phone} + ,`mobile` = #{mobile} + ,`isShare` = #{isShare} + ,`shareData` = #{shareData} + ,`email` = #{email} + ,`address` = #{address} + ,`memo` = #{memo} + ,`subInsCd` = #{subInsCd} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_agent + where `id` = #{id} + + + + delete from yw_agent + ${condition} + + + + delete from yw_agent + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketImageMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketImageMapper.xml new file mode 100644 index 0000000..8863f62 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketImageMapper.xml @@ -0,0 +1,154 @@ + + + + + + `id`,`tenantId`,`agentId`,`insCd`,`subInsCd`,`traceId`,`traceNo`,`imageType`,`name`,`mimeType`,`suffix`,`length`,`width`,`height`,`groupName`,`fileName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_agent_sub_fuyou_ticket_image + + `id`,`tenantId` + ,`agentId` + ,`insCd` + ,`subInsCd` + ,`traceId` + ,`traceNo` + ,`imageType` + ,`name` + ,`mimeType` + ,`suffix` + ,`length` + ,`width` + ,`height` + ,`groupName` + ,`fileName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{agentId} + ,#{insCd} + ,#{subInsCd} + ,#{traceId} + ,#{traceNo} + ,#{imageType} + ,#{name} + ,#{mimeType} + ,#{suffix} + ,#{length} + ,#{width} + ,#{height} + ,#{groupName} + ,#{fileName} + ,#{createUser} + ,#{createDate} + + + + + update yw_agent_sub_fuyou_ticket_image + + `tenantId` = #{tenantId} + ,`agentId` = #{agentId} + ,`insCd` = #{insCd} + ,`subInsCd` = #{subInsCd} + ,`traceId` = #{traceId} + ,`traceNo` = #{traceNo} + ,`imageType` = #{imageType} + ,`name` = #{name} + ,`mimeType` = #{mimeType} + ,`suffix` = #{suffix} + ,`length` = #{length} + ,`width` = #{width} + ,`height` = #{height} + ,`groupName` = #{groupName} + ,`fileName` = #{fileName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket_image + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket_image + ${condition} + + + + delete from yw_agent_sub_fuyou_ticket_image + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketMapper.xml new file mode 100644 index 0000000..65ec68c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AgentSubFuyouTicketMapper.xml @@ -0,0 +1,317 @@ + + + + + + `id`,`tenantId`,`agentId`,`insCd`,`subInsCd`,`traceNo`,`status`,`retCode`,`retMsg`,`fyMchntCd`,`wxMchntCd`,`wxappMchntCd`,`acntUpdNo`,`acntUpdSt`,`acntUpdMsg`,`tenantCode`,`mchntName`,`mchntShortName`,`realName`,`licenseType`,`licenseNo`,`licenseExpireDt`,`artifNm`,`certifId`,`certifIdExpireDt`,`contactPerson`,`contactPhone`,`contactMobile`,`contactEmail`,`business`,`cityCd`,`countyCd`,`contactAddr`,`acntType`,`bankType`,`acntArtifFlag`,`acntNm`,`acntCertifTp`,`acntCertifId`,`acntCertifExpireDt`,`interBankNo`,`issBankNm`,`acntNo`,`bankType2`,`acntNm2`,`interBankNo2`,`issBankNm2`,`acntNo2`,`setCd`,`settleAmt`,`settleTp`,`txSetCd`,`txFlag`,`thFlag`,`wxFlag`,`wxBusiFlag`,`aliFlag`,`wxSetCd`,`aliSetCd`,`autoBuy`,`qpayFlag`,`qpaySetCd`,`jdpayFlag`,`jdpaySetCd`,`wxappFlag`,`wxappSetCd`,`dailySettleFlag`,`dailySettleSetCd`,`bestpayFlag`,`bestpaySetCd`,`verifyNo`,`contractNo`,`signUrl`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_agent_sub_fuyou_ticket + + `id`,`tenantId` + ,`agentId` + ,`insCd` + ,`subInsCd` + ,`traceNo` + ,`status` + ,`retCode` + ,`retMsg` + ,`fyMchntCd` + ,`wxMchntCd` + ,`wxappMchntCd` + ,`acntUpdNo` + ,`acntUpdSt` + ,`acntUpdMsg` + ,`tenantCode` + ,`mchntName` + ,`mchntShortName` + ,`realName` + ,`licenseType` + ,`licenseNo` + ,`licenseExpireDt` + ,`artifNm` + ,`certifId` + ,`certifIdExpireDt` + ,`contactPerson` + ,`contactPhone` + ,`contactMobile` + ,`contactEmail` + ,`business` + ,`cityCd` + ,`countyCd` + ,`contactAddr` + ,`acntType` + ,`bankType` + ,`acntArtifFlag` + ,`acntNm` + ,`acntCertifTp` + ,`acntCertifId` + ,`acntCertifExpireDt` + ,`interBankNo` + ,`issBankNm` + ,`acntNo` + ,`bankType2` + ,`acntNm2` + ,`interBankNo2` + ,`issBankNm2` + ,`acntNo2` + ,`setCd` + ,`settleAmt` + ,`settleTp` + ,`txSetCd` + ,`txFlag` + ,`thFlag` + ,`wxFlag` + ,`wxBusiFlag` + ,`aliFlag` + ,`wxSetCd` + ,`aliSetCd` + ,`autoBuy` + ,`qpayFlag` + ,`qpaySetCd` + ,`jdpayFlag` + ,`jdpaySetCd` + ,`wxappFlag` + ,`wxappSetCd` + ,`dailySettleFlag` + ,`dailySettleSetCd` + ,`bestpayFlag` + ,`bestpaySetCd` + ,`verifyNo` + ,`contractNo` + ,`signUrl` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{agentId} + ,#{insCd} + ,#{subInsCd} + ,#{traceNo} + ,#{status} + ,#{retCode} + ,#{retMsg} + ,#{fyMchntCd} + ,#{wxMchntCd} + ,#{wxappMchntCd} + ,#{acntUpdNo} + ,#{acntUpdSt} + ,#{acntUpdMsg} + ,#{tenantCode} + ,#{mchntName} + ,#{mchntShortName} + ,#{realName} + ,#{licenseType} + ,#{licenseNo} + ,#{licenseExpireDt} + ,#{artifNm} + ,#{certifId} + ,#{certifIdExpireDt} + ,#{contactPerson} + ,#{contactPhone} + ,#{contactMobile} + ,#{contactEmail} + ,#{business} + ,#{cityCd} + ,#{countyCd} + ,#{contactAddr} + ,#{acntType} + ,#{bankType} + ,#{acntArtifFlag} + ,#{acntNm} + ,#{acntCertifTp} + ,#{acntCertifId} + ,#{acntCertifExpireDt} + ,#{interBankNo} + ,#{issBankNm} + ,#{acntNo} + ,#{bankType2} + ,#{acntNm2} + ,#{interBankNo2} + ,#{issBankNm2} + ,#{acntNo2} + ,#{setCd} + ,#{settleAmt} + ,#{settleTp} + ,#{txSetCd} + ,#{txFlag} + ,#{thFlag} + ,#{wxFlag} + ,#{wxBusiFlag} + ,#{aliFlag} + ,#{wxSetCd} + ,#{aliSetCd} + ,#{autoBuy} + ,#{qpayFlag} + ,#{qpaySetCd} + ,#{jdpayFlag} + ,#{jdpaySetCd} + ,#{wxappFlag} + ,#{wxappSetCd} + ,#{dailySettleFlag} + ,#{dailySettleSetCd} + ,#{bestpayFlag} + ,#{bestpaySetCd} + ,#{verifyNo} + ,#{contractNo} + ,#{signUrl} + ,#{createUser} + ,#{createDate} + + + + + update yw_agent_sub_fuyou_ticket + + `tenantId` = #{tenantId} + ,`agentId` = #{agentId} + ,`insCd` = #{insCd} + ,`subInsCd` = #{subInsCd} + ,`traceNo` = #{traceNo} + ,`status` = #{status} + ,`retCode` = #{retCode} + ,`retMsg` = #{retMsg} + ,`fyMchntCd` = #{fyMchntCd} + ,`wxMchntCd` = #{wxMchntCd} + ,`wxappMchntCd` = #{wxappMchntCd} + ,`acntUpdNo` = #{acntUpdNo} + ,`acntUpdSt` = #{acntUpdSt} + ,`acntUpdMsg` = #{acntUpdMsg} + ,`tenantCode` = #{tenantCode} + ,`mchntName` = #{mchntName} + ,`mchntShortName` = #{mchntShortName} + ,`realName` = #{realName} + ,`licenseType` = #{licenseType} + ,`licenseNo` = #{licenseNo} + ,`licenseExpireDt` = #{licenseExpireDt} + ,`artifNm` = #{artifNm} + ,`certifId` = #{certifId} + ,`certifIdExpireDt` = #{certifIdExpireDt} + ,`contactPerson` = #{contactPerson} + ,`contactPhone` = #{contactPhone} + ,`contactMobile` = #{contactMobile} + ,`contactEmail` = #{contactEmail} + ,`business` = #{business} + ,`cityCd` = #{cityCd} + ,`countyCd` = #{countyCd} + ,`contactAddr` = #{contactAddr} + ,`acntType` = #{acntType} + ,`bankType` = #{bankType} + ,`acntArtifFlag` = #{acntArtifFlag} + ,`acntNm` = #{acntNm} + ,`acntCertifTp` = #{acntCertifTp} + ,`acntCertifId` = #{acntCertifId} + ,`acntCertifExpireDt` = #{acntCertifExpireDt} + ,`interBankNo` = #{interBankNo} + ,`issBankNm` = #{issBankNm} + ,`acntNo` = #{acntNo} + ,`bankType2` = #{bankType2} + ,`acntNm2` = #{acntNm2} + ,`interBankNo2` = #{interBankNo2} + ,`issBankNm2` = #{issBankNm2} + ,`acntNo2` = #{acntNo2} + ,`setCd` = #{setCd} + ,`settleAmt` = #{settleAmt} + ,`settleTp` = #{settleTp} + ,`txSetCd` = #{txSetCd} + ,`txFlag` = #{txFlag} + ,`thFlag` = #{thFlag} + ,`wxFlag` = #{wxFlag} + ,`wxBusiFlag` = #{wxBusiFlag} + ,`aliFlag` = #{aliFlag} + ,`wxSetCd` = #{wxSetCd} + ,`aliSetCd` = #{aliSetCd} + ,`autoBuy` = #{autoBuy} + ,`qpayFlag` = #{qpayFlag} + ,`qpaySetCd` = #{qpaySetCd} + ,`jdpayFlag` = #{jdpayFlag} + ,`jdpaySetCd` = #{jdpaySetCd} + ,`wxappFlag` = #{wxappFlag} + ,`wxappSetCd` = #{wxappSetCd} + ,`dailySettleFlag` = #{dailySettleFlag} + ,`dailySettleSetCd` = #{dailySettleSetCd} + ,`bestpayFlag` = #{bestpayFlag} + ,`bestpaySetCd` = #{bestpaySetCd} + ,`verifyNo` = #{verifyNo} + ,`contractNo` = #{contractNo} + ,`signUrl` = #{signUrl} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket + where `id` = #{id} + + + + delete from yw_agent_sub_fuyou_ticket + ${condition} + + + + delete from yw_agent_sub_fuyou_ticket + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppBaiduBranchMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppBaiduBranchMapper.xml new file mode 100644 index 0000000..ea52e39 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppBaiduBranchMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`baiduShopId`,`baiduShopName`,`status`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_baidu_branch + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`baiduShopId` + ,`baiduShopName` + ,`status` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{baiduShopId} + ,#{baiduShopName} + ,#{status} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_baidu_branch + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`baiduShopId` = #{baiduShopId} + ,`baiduShopName` = #{baiduShopName} + ,`status` = #{status} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_baidu_branch + where `id` = #{id} + + + + delete from yw_app_baidu_branch + ${condition} + + + + delete from yw_app_baidu_branch + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppGuopanStoreInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppGuopanStoreInfoMapper.xml new file mode 100644 index 0000000..a9914fe --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppGuopanStoreInfoMapper.xml @@ -0,0 +1,158 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`pid`,`name`,`addrCode`,`category`,`ext`,`type`,`apiKey`,`shopId`,`loginUrl`,`usid`,`msid`,`expiryDate`,`status`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_guopan_store_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`pid` + ,`name` + ,`addrCode` + ,`category` + ,`ext` + ,`type` + ,`apiKey` + ,`shopId` + ,`loginUrl` + ,`usid` + ,`msid` + ,`expiryDate` + ,`status` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{pid} + ,#{name} + ,#{addrCode} + ,#{category} + ,#{ext} + ,#{type} + ,#{apiKey} + ,#{shopId} + ,#{loginUrl} + ,#{usid} + ,#{msid} + ,#{expiryDate} + ,#{status} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_guopan_store_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`pid` = #{pid} + ,`name` = #{name} + ,`addrCode` = #{addrCode} + ,`category` = #{category} + ,`ext` = #{ext} + ,`type` = #{type} + ,`apiKey` = #{apiKey} + ,`shopId` = #{shopId} + ,`loginUrl` = #{loginUrl} + ,`usid` = #{usid} + ,`msid` = #{msid} + ,`expiryDate` = #{expiryDate} + ,`status` = #{status} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_guopan_store_info + where `id` = #{id} + + + + delete from yw_app_guopan_store_info + ${condition} + + + + delete from yw_app_guopan_store_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppInfoMapper.xml new file mode 100644 index 0000000..a10e5be --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppInfoMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`name`,`appSign`,`terminalType`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into shared_app_info + + `id`,`tenantId` + ,`name` + ,`appSign` + ,`terminalType` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{appSign} + ,#{terminalType} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update shared_app_info + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from shared_app_info + where `id` = #{id} + + + + delete from shared_app_info + ${condition} + + + + delete from shared_app_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppQimaiSetStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppQimaiSetStoreMapper.xml new file mode 100644 index 0000000..a319e93 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppQimaiSetStoreMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`setId`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_qimai_set_store + + `id`,`tenantId` + ,`tenantCode` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_qimai_set_store + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_qimai_set_store + where `id` = #{id} + + + + delete from yw_app_qimai_set_store + ${condition} + + + + delete from yw_app_qimai_set_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetMapper.xml new file mode 100644 index 0000000..eb6df0e --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetMapper.xml @@ -0,0 +1,125 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`appId`,`appSecret`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_shopmeituan_set + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`appId` + ,`appSecret` + ,`status` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{appId} + ,#{appSecret} + ,#{status} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_shopmeituan_set + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`appId` = #{appId} + ,`appSecret` = #{appSecret} + ,`status` = #{status} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set + ${condition} + + + + delete from yw_app_shopmeituan_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetStoreMapper.xml new file mode 100644 index 0000000..3e0adcd --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppShopmeituanSetStoreMapper.xml @@ -0,0 +1,124 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`setId`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_shopmeituan_set_store + + `id`,`tenantId` + ,`tenantCode` + ,`setId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{setId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_shopmeituan_set_store + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`setId` = #{setId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set_store + where `id` = #{id} + + + + delete from yw_app_shopmeituan_set_store + ${condition} + + + + delete from yw_app_shopmeituan_set_store + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppVersionMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppVersionMapper.xml new file mode 100644 index 0000000..d8473c8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppVersionMapper.xml @@ -0,0 +1,107 @@ + + + + + + `id`,`tenantId`,`appInfoId`,`appSign`,`terminalType`,`versionType`,`versionNum`,`minVersionNum`,`checkNum`,`fileName`,`uploadFile`,`length`,`uploadLog`,`status`,`forceUpload`,`enableWhite`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppWhiteDetailMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppWhiteDetailMapper.xml new file mode 100644 index 0000000..7832a7f --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppWhiteDetailMapper.xml @@ -0,0 +1,64 @@ + + + + + + `id`,`tenantId`,`planId`,`tenantCode`,`storeNo`,`posNo`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppWhitePlanMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppWhitePlanMapper.xml new file mode 100644 index 0000000..b96624a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/AppWhitePlanMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into shared_app_white_plan + + `id`,`tenantId` + ,`no` + ,`name` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{no} + ,#{name} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + update shared_app_white_plan + + `tenantId` = #{tenantId} + ,`no` = #{no} + ,`name` = #{name} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from shared_app_white_plan + where `id` = #{id} + + + + delete from shared_app_white_plan + ${condition} + + + + delete from shared_app_white_plan + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/BankCodeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/BankCodeMapper.xml new file mode 100644 index 0000000..301000c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/BankCodeMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_bank_code + + `id`,`tenantId` + ,`code` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_bank_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_bank_code + where `id` = #{id} + + + + delete from yw_bank_code + ${condition} + + + + delete from yw_bank_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CardReaderInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CardReaderInfoMapper.xml new file mode 100644 index 0000000..fc6baa2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CardReaderInfoMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`name`,`port`,`baudRate`,`cardType`,`memo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_card_reader_info + + `id`,`tenantId` + ,`name` + ,`port` + ,`baudRate` + ,`cardType` + ,`memo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{port} + ,#{baudRate} + ,#{cardType} + ,#{memo} + ,#{createDate} + ,#{createUser} + + + + + update yw_card_reader_info + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`port` = #{port} + ,`baudRate` = #{baudRate} + ,`cardType` = #{cardType} + ,`memo` = #{memo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_card_reader_info + where `id` = #{id} + + + + delete from yw_card_reader_info + ${condition} + + + + delete from yw_card_reader_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CityCodeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CityCodeMapper.xml new file mode 100644 index 0000000..e8a1a71 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CityCodeMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`code`,`parentCode`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_city_code + + `id`,`tenantId` + ,`code` + ,`parentCode` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{parentCode} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_city_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`parentCode` = #{parentCode} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_city_code + where `id` = #{id} + + + + delete from yw_city_code + ${condition} + + + + delete from yw_city_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CityMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CityMapper.xml new file mode 100644 index 0000000..5c2d703 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/CityMapper.xml @@ -0,0 +1,119 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`fullName`,`parentId`,`path`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into shared_city + + `id`,`tenantId` + ,`code` + ,`name` + ,`fullName` + ,`parentId` + ,`path` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{fullName} + ,#{parentId} + ,#{path} + ,#{createUser} + ,#{createDate} + + + + + update shared_city + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`fullName` = #{fullName} + ,`parentId` = #{parentId} + ,`path` = #{path} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from shared_city + where `id` = #{id} + + + + delete from shared_city + ${condition} + + + + delete from shared_city + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ElemeAuthorizeInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ElemeAuthorizeInfoMapper.xml new file mode 100644 index 0000000..2719385 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ElemeAuthorizeInfoMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`clientId`,`responseType`,`redirectUri`,`scope`,`state`,`code`,`grantType`,`accessToken`,`tokenType`,`tokenGetTime`,`refreshToken`,`userId`,`userName`,`expiresIn`,`shopId`,`shopName`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_eleme_authorize_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`clientId` + ,`responseType` + ,`redirectUri` + ,`scope` + ,`state` + ,`code` + ,`grantType` + ,`accessToken` + ,`tokenType` + ,`tokenGetTime` + ,`refreshToken` + ,`userId` + ,`userName` + ,`expiresIn` + ,`shopId` + ,`shopName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{clientId} + ,#{responseType} + ,#{redirectUri} + ,#{scope} + ,#{state} + ,#{code} + ,#{grantType} + ,#{accessToken} + ,#{tokenType} + ,#{tokenGetTime} + ,#{refreshToken} + ,#{userId} + ,#{userName} + ,#{expiresIn} + ,#{shopId} + ,#{shopName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_eleme_authorize_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + + ,`clientId` = #{clientId} + ,`clientId` = NULL + + + ,`responseType` = #{responseType} + ,`responseType` = NULL + + + ,`redirectUri` = #{redirectUri} + ,`redirectUri` = NULL + + + ,`scope` = #{scope} + ,`scope` = NULL + + + ,`state` = #{state} + ,`state` = NULL + + + ,`code` = #{code} + ,`code` = NULL + + + ,`grantType` = #{grantType} + ,`grantType` = NULL + + + ,`accessToken` = #{accessToken} + ,`accessToken` = NULL + + + ,`tokenType` = #{tokenType} + ,`tokenType` = NULL + + + ,`tokenGetTime` = #{tokenGetTime} + ,`tokenGetTime` = NULL + + + ,`refreshToken` = #{refreshToken} + ,`refreshToken` = NULL + + + ,`userId` = #{userId} + ,`userId` = NULL + + + ,`userName` = #{userName} + ,`userName` = NULL + + + ,`expiresIn` = #{expiresIn} + ,`expiresIn` = NULL + + + ,`shopId` = #{shopId} + ,`shopId` = NULL + + + ,`shopName` = #{shopName} + ,`shopName` = NULL + + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_eleme_authorize_info + where `id` = #{id} + + + + delete from yw_app_eleme_authorize_info + ${condition} + + + + delete from yw_app_eleme_authorize_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ErrorInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ErrorInfoMapper.xml new file mode 100644 index 0000000..8db374b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ErrorInfoMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`terminalType`,`versionType`,`versionNum`,`osName`,`storeNo`,`posNo`,`info`,`errorLog`,`status`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_error_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`terminalType` + ,`versionType` + ,`versionNum` + ,`osName` + ,`storeNo` + ,`posNo` + ,`info` + ,`errorLog` + ,`status` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{terminalType} + ,#{versionType} + ,#{versionNum} + ,#{osName} + ,#{storeNo} + ,#{posNo} + ,#{info} + ,#{errorLog} + ,#{status} + ,#{createDate} + ,#{createUser} + + + + + update yw_error_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`versionType` = #{versionType} + ,`versionNum` = #{versionNum} + ,`osName` = #{osName} + ,`storeNo` = #{storeNo} + ,`posNo` = #{posNo} + ,`info` = #{info} + ,`errorLog` = #{errorLog} + ,`status` = #{status} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_error_info + where `id` = #{id} + + + + delete from yw_error_info + ${condition} + + + + delete from yw_error_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/MeituanBranchMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/MeituanBranchMapper.xml new file mode 100644 index 0000000..1cb10e2 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/MeituanBranchMapper.xml @@ -0,0 +1,134 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`businessId`,`appAuthToken`,`status`,`storeId`,`storeNo`,`storeName`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_meituan_branch + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`businessId` + ,`appAuthToken` + ,`status` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{businessId} + ,#{appAuthToken} + ,#{status} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_meituan_branch + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`businessId` = #{businessId} + ,`appAuthToken` = #{appAuthToken} + ,`status` = #{status} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_meituan_branch + where `id` = #{id} + + + + delete from yw_app_meituan_branch + ${condition} + + + + delete from yw_app_meituan_branch + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PosModuleMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PosModuleMapper.xml new file mode 100644 index 0000000..9d8fa60 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PosModuleMapper.xml @@ -0,0 +1,24 @@ + + + + + + `id`,`tenantId`,`typeId`,`no`,`name`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PosModuleTypeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PosModuleTypeMapper.xml new file mode 100644 index 0000000..0035d9a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PosModuleTypeMapper.xml @@ -0,0 +1,24 @@ + + + + + + `id`,`tenantId`,`no`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PrinterInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PrinterInfoMapper.xml new file mode 100644 index 0000000..9e927ea --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/PrinterInfoMapper.xml @@ -0,0 +1,161 @@ + + + + + + `id`,`tenantId`,`name`,`type`,`port`,`pageWidth`,`baudRate`,`dataNum`,`checkNum`,`stopNum`,`pid`,`vid`,`initCode`,`zbkCode`,`cutCode`,`ptztCode`,`ztbgCode`,`bkbgCode`,`moneyCode`,`driver`,`memo`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_printer_info + + `id`,`tenantId` + ,`name` + ,`type` + ,`port` + ,`pageWidth` + ,`baudRate` + ,`dataNum` + ,`checkNum` + ,`stopNum` + ,`pid` + ,`vid` + ,`initCode` + ,`zbkCode` + ,`cutCode` + ,`ptztCode` + ,`ztbgCode` + ,`bkbgCode` + ,`moneyCode` + ,`driver` + ,`memo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{name} + ,#{type} + ,#{port} + ,#{pageWidth} + ,#{baudRate} + ,#{dataNum} + ,#{checkNum} + ,#{stopNum} + ,#{pid} + ,#{vid} + ,#{initCode} + ,#{zbkCode} + ,#{cutCode} + ,#{ptztCode} + ,#{ztbgCode} + ,#{bkbgCode} + ,#{moneyCode} + ,#{driver} + ,#{memo} + ,#{createDate} + ,#{createUser} + + + + + update yw_printer_info + + `tenantId` = #{tenantId} + ,`name` = #{name} + ,`type` = #{type} + ,`port` = #{port} + ,`pageWidth` = #{pageWidth} + ,`baudRate` = #{baudRate} + ,`dataNum` = #{dataNum} + ,`checkNum` = #{checkNum} + ,`stopNum` = #{stopNum} + ,`pid` = #{pid} + ,`vid` = #{vid} + ,`initCode` = #{initCode} + ,`zbkCode` = #{zbkCode} + ,`cutCode` = #{cutCode} + ,`ptztCode` = #{ptztCode} + ,`ztbgCode` = #{ztbgCode} + ,`bkbgCode` = #{bkbgCode} + ,`moneyCode` = #{moneyCode} + ,`driver` = #{driver} + ,`memo` = #{memo} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_printer_info + where `id` = #{id} + + + + delete from yw_printer_info + ${condition} + + + + delete from yw_printer_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ProductPermissionsMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ProductPermissionsMapper.xml new file mode 100644 index 0000000..2b4e7b5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ProductPermissionsMapper.xml @@ -0,0 +1,18 @@ + + + + + + `id`,`tenantId`,`productId`,`moduleId`,`permissions`,`functionIds`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/QimaiSetMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/QimaiSetMapper.xml new file mode 100644 index 0000000..4ebccc5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/QimaiSetMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`no`,`name`,`status`,`openId`,`grantCode`,`openKey`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_app_qimai_set + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`no` + ,`name` + ,`status` + ,`openId` + ,`grantCode` + ,`openKey` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{no} + ,#{name} + ,#{status} + ,#{openId} + ,#{grantCode} + ,#{openKey} + ,#{createUser} + ,#{createDate} + + + + + update yw_app_qimai_set + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`no` = #{no} + ,`name` = #{name} + ,`status` = #{status} + ,`openId` = #{openId} + ,`grantCode` = #{grantCode} + ,`openKey` = #{openKey} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_app_qimai_set + where `id` = #{id} + + + + delete from yw_app_qimai_set + ${condition} + + + + delete from yw_app_qimai_set + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/SetCodeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/SetCodeMapper.xml new file mode 100644 index 0000000..1126be8 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/SetCodeMapper.xml @@ -0,0 +1,113 @@ + + + + + + `id`,`tenantId`,`type`,`code`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_set_code + + `id`,`tenantId` + ,`type` + ,`code` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{type} + ,#{code} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_set_code + + `tenantId` = #{tenantId} + ,`type` = #{type} + ,`code` = #{code} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_set_code + where `id` = #{id} + + + + delete from yw_set_code + ${condition} + + + + delete from yw_set_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantLineProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantLineProductMapper.xml new file mode 100644 index 0000000..0db5972 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantLineProductMapper.xml @@ -0,0 +1,128 @@ + + + + + + `id`,`tenantId`,`code`,`productId`,`productSign`,`productCode`,`productName`,`costMode`,`dueDate`,`memo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_tenant_line_product + + `id`,`tenantId` + ,`code` + ,`productId` + ,`productSign` + ,`productCode` + ,`productName` + ,`costMode` + ,`dueDate` + ,`memo` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{productId} + ,#{productSign} + ,#{productCode} + ,#{productName} + ,#{costMode} + ,#{dueDate} + ,#{memo} + ,#{createUser} + ,#{createDate} + + + + + update yw_tenant_line_product + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`productId` = #{productId} + ,`productSign` = #{productSign} + ,`productCode` = #{productCode} + ,`productName` = #{productName} + ,`costMode` = #{costMode} + ,`dueDate` = #{dueDate} + ,`memo` = #{memo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_tenant_line_product + where `id` = #{id} + + + + delete from yw_tenant_line_product + ${condition} + + + + delete from yw_tenant_line_product + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantPosInfoMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantPosInfoMapper.xml new file mode 100644 index 0000000..d01aaf4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantPosInfoMapper.xml @@ -0,0 +1,221 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`terminalType`,`storeId`,`storeNo`,`posNo`,`name`,`MACAddress`,`serialNumber`,`cpuNumber`,`status`,`description`,`deleteFlag`,`os`,`osType`,`softwareVersion`,`memoryTotalSize`,`memoryFreeSize`,`diskName`,`diskTotalSize`,`diskFreeSize`,`cpuSize`,`extend`,`monitorDate`,`lastActiveDate`,`storeName`,`aliasName`,`isTester`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_tenant_pos_info + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`terminalType` + ,`storeId` + ,`storeNo` + ,`posNo` + ,`name` + ,`MACAddress` + ,`serialNumber` + ,`cpuNumber` + ,`status` + ,`description` + ,`deleteFlag` + ,`os` + ,`osType` + ,`softwareVersion` + ,`memoryTotalSize` + ,`memoryFreeSize` + ,`diskName` + ,`diskTotalSize` + ,`diskFreeSize` + ,`cpuSize` + ,`extend` + ,`monitorDate` + ,`lastActiveDate` + ,`storeName` + ,`aliasName` + ,`isTester` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{terminalType} + ,#{storeId} + ,#{storeNo} + ,#{posNo} + ,#{name} + ,#{MACAddress} + ,#{serialNumber} + ,#{cpuNumber} + ,#{status} + ,#{description} + ,#{deleteFlag} + ,#{os} + ,#{osType} + ,#{softwareVersion} + ,#{memoryTotalSize} + ,#{memoryFreeSize} + ,#{diskName} + ,#{diskTotalSize} + ,#{diskFreeSize} + ,#{cpuSize} + ,#{extend} + ,#{monitorDate} + ,#{lastActiveDate} + ,#{storeName} + ,#{aliasName} + ,#{isTester} + ,#{createDate} + ,#{createUser} + + + + + update yw_tenant_pos_info + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`posNo` = #{posNo} + ,`name` = #{name} + ,`MACAddress` = #{MACAddress} + ,`serialNumber` = #{serialNumber} + ,`cpuNumber` = #{cpuNumber} + ,`status` = #{status} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`os` = #{os} + ,`osType` = #{osType} + ,`softwareVersion` = #{softwareVersion} + ,`memoryTotalSize` = #{memoryTotalSize} + ,`memoryFreeSize` = #{memoryFreeSize} + ,`diskName` = #{diskName} + ,`diskTotalSize` = #{diskTotalSize} + ,`diskFreeSize` = #{diskFreeSize} + ,`cpuSize` = #{cpuSize} + ,`extend` = #{extend} + ,`monitorDate` = #{monitorDate} + ,`lastActiveDate` = #{lastActiveDate} + ,`storeName` = #{storeName} + ,`aliasName` = #{aliasName} + ,`isTester` = #{isTester} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_tenant_pos_info + where `id` = #{id} + + + + delete from yw_tenant_pos_info + ${condition} + + + + delete from yw_tenant_pos_info + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update yw_tenant_pos_info + + `os` = #{os} + ,`osType` = #{osType} + ,`softwareVersion` = #{softwareVersion} + ,`memoryTotalSize` = #{memoryTotalSize} + ,`memoryFreeSize` = #{memoryFreeSize} + ,`diskName` = #{diskName} + ,`diskTotalSize` = #{diskTotalSize} + ,`diskFreeSize` = #{diskFreeSize} + ,`cpuSize` = #{cpuSize} + ,`extend` = #{extend} + ,`monitorDate` = #{monitorDate} + ,`lastActiveDate` = #{lastActiveDate} + ,`storeName` = #{storeName} + ,`aliasName` = #{aliasName} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `storeId` = #{storeId} and `posNo` = #{posNo} + + + + update yw_tenant_pos_info + + `lastActiveDate` = #{lastActiveDate} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `storeId` = #{storeId} and `posNo` = #{posNo} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantPosLoginLogMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantPosLoginLogMapper.xml new file mode 100644 index 0000000..910f5f4 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantPosLoginLogMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`appSign`,`terminalType`,`storeId`,`storeNo`,`storeName`,`posNo`,`loginTime`,`logoutTime`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_pos_login_log + + `id`,`tenantId` + ,`tenantCode` + ,`appSign` + ,`terminalType` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`posNo` + ,`loginTime` + ,`logoutTime` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{appSign} + ,#{terminalType} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{posNo} + ,#{loginTime} + ,#{logoutTime} + ,#{createUser} + ,#{createDate} + + + + + update yw_pos_login_log + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`appSign` = #{appSign} + ,`terminalType` = #{terminalType} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`posNo` = #{posNo} + ,`loginTime` = #{loginTime} + ,`logoutTime` = #{logoutTime} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_pos_login_log + where `id` = #{id} + + + + delete from yw_pos_login_log + ${condition} + + + + delete from yw_pos_login_log + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantProductMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantProductMapper.xml new file mode 100644 index 0000000..7bfe3ee --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantProductMapper.xml @@ -0,0 +1,27 @@ + + + + + + `id`,`tenantId`,`code`,`productId`,`chargeId`,`subDate`,`testEndDate`,`chargingDate`,`payType`,`balance`,`validDate`,`status`,`initFlag`,`dataSourceId`,`memo`,`cancelDate`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantStoreAuthMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantStoreAuthMapper.xml new file mode 100644 index 0000000..db68240 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/TenantStoreAuthMapper.xml @@ -0,0 +1,146 @@ + + + + + + `id`,`tenantId`,`appSign`,`tenantCode`,`agentId`,`agentName`,`storeId`,`storeNo`,`storeName`,`costMode`,`dueDate`,`lastDate`,`description`,`deleteFlag`,`createDate`,`createUser`,`modifyDate`,`modifyUser` + + + + + + + + + + + + + + + + + + + + insert into yw_tenant_store_auth + + `id`,`tenantId` + ,`appSign` + ,`tenantCode` + ,`agentId` + ,`agentName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`costMode` + ,`dueDate` + ,`lastDate` + ,`description` + ,`deleteFlag` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{appSign} + ,#{tenantCode} + ,#{agentId} + ,#{agentName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{costMode} + ,#{dueDate} + ,#{lastDate} + ,#{description} + ,#{deleteFlag} + ,#{createDate} + ,#{createUser} + + + + + update yw_tenant_store_auth + + `tenantId` = #{tenantId} + ,`appSign` = #{appSign} + ,`tenantCode` = #{tenantCode} + ,`agentId` = #{agentId} + ,`agentName` = #{agentName} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`costMode` = #{costMode} + ,`dueDate` = #{dueDate} + ,`lastDate` = #{lastDate} + ,`description` = #{description} + ,`deleteFlag` = #{deleteFlag} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from yw_tenant_store_auth + where `id` = #{id} + + + + delete from yw_tenant_store_auth + ${condition} + + + + delete from yw_tenant_store_auth + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + update yw_tenant_store_auth + set `deleteFlag`=1,`modifyDate`=now(),`modifyUser`=#{modifyUser} + where `tenantId` = #{tenantId} and `id` = #{id} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradePosMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradePosMapper.xml new file mode 100644 index 0000000..a343872 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradePosMapper.xml @@ -0,0 +1,101 @@ + + + + + + `id`,`tenantId`,`schemeId`,`appSign`,`tenantCode`,`oldTenantCode`,`storeNo`,`storeName`,`oldStoreNo`,`oldStoreName`,`posNo`,`oldPosNo`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_upgrade_pos + + `id`,`tenantId` + ,`schemeId` + ,`appSign` + ,`tenantCode` + ,`oldTenantCode` + ,`storeNo` + ,`storeName` + ,`oldStoreNo` + ,`oldStoreName` + ,`posNo` + ,`oldPosNo` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{schemeId} + ,#{appSign} + ,#{tenantCode} + ,#{oldTenantCode} + ,#{storeNo} + ,#{storeName} + ,#{oldStoreNo} + ,#{oldStoreName} + ,#{posNo} + ,#{oldPosNo} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradeSchemeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradeSchemeMapper.xml new file mode 100644 index 0000000..9f0711a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradeSchemeMapper.xml @@ -0,0 +1,59 @@ + + + + + + `id`,`tenantId`,`appSign`,`tenantCode`,`tenantName`,`oldTenantCode`,`oldTenantName`,`description`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradeStoreMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradeStoreMapper.xml new file mode 100644 index 0000000..0fd6530 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/UpgradeStoreMapper.xml @@ -0,0 +1,59 @@ + + + + + + `id`,`tenantId`,`schemeId`,`appSign`,`storeNo`,`storeName`,`oldStoreNo`,`oldStoreName`,`description`,`status`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/WxBusinessCodeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/WxBusinessCodeMapper.xml new file mode 100644 index 0000000..6f03aca --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/WxBusinessCodeMapper.xml @@ -0,0 +1,116 @@ + + + + + + `id`,`tenantId`,`code`,`firstType`,`secondType`,`thirdType`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_wx_business_code + + `id`,`tenantId` + ,`code` + ,`firstType` + ,`secondType` + ,`thirdType` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{firstType} + ,#{secondType} + ,#{thirdType} + ,#{createUser} + ,#{createDate} + + + + + update yw_wx_business_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`firstType` = #{firstType} + ,`secondType` = #{secondType} + ,`thirdType` = #{thirdType} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_wx_business_code + where `id` = #{id} + + + + delete from yw_wx_business_code + ${condition} + + + + delete from yw_wx_business_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ZfbBusinessCodeMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ZfbBusinessCodeMapper.xml new file mode 100644 index 0000000..ae13f62 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/ops/ZfbBusinessCodeMapper.xml @@ -0,0 +1,110 @@ + + + + + + `id`,`tenantId`,`code`,`name`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into yw_zfb_business_code + + `id`,`tenantId` + ,`code` + ,`name` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{code} + ,#{name} + ,#{createUser} + ,#{createDate} + + + + + update yw_zfb_business_code + + `tenantId` = #{tenantId} + ,`code` = #{code} + ,`name` = #{name} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from yw_zfb_business_code + where `id` = #{id} + + + + delete from yw_zfb_business_code + ${condition} + + + + delete from yw_zfb_business_code + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/AppAuthMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/AppAuthMapper.xml new file mode 100644 index 0000000..e5e307a --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/AppAuthMapper.xml @@ -0,0 +1,17 @@ + + + + + + `id`,`appSign`,`tenantCode`,`appCode`,`appId`,`appKey`,`appSecret`,`simpleCode`,`status`,`callLimits`,`callCounter`,`firstCallTime`,`lastCallTime`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/DynamicMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/DynamicMapper.xml new file mode 100644 index 0000000..89a3c71 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/DynamicMapper.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/FunctionMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/FunctionMapper.xml new file mode 100644 index 0000000..e9061ac --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/FunctionMapper.xml @@ -0,0 +1,17 @@ + + + + + + `id`,`tenantId`,`name`,`sign`,`icon`,`style`,`orderNo`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/ModuleMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/ModuleMapper.xml new file mode 100644 index 0000000..f952498 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/ModuleMapper.xml @@ -0,0 +1,28 @@ + + + + + + `id`,`tenantId`,`parentId`,`resourcesId`,`name`,`icon`,`orderNo`,`sign`,`functionIds`,`description`,`moduleType`,`isDefault`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/ResourcesMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/ResourcesMapper.xml new file mode 100644 index 0000000..d41e2eb --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/ResourcesMapper.xml @@ -0,0 +1,17 @@ + + + + + + `id`,`tenantId`,`typeId`,`name`,`url`,`orderNo`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/TenantMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/TenantMapper.xml new file mode 100644 index 0000000..5a751d0 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/shared/TenantMapper.xml @@ -0,0 +1,71 @@ + + + + + + `id`,`tenantId`,`agentId`,`code`,`name`,`shortName`,`areaId`,`areaPath`,`address`,`linker`,`telphone`,`mobile`,`email`,`fax`,`status`,`deleteFlag`,`storeAuthFlag`,`saobeiFlag`,`description`,`encryMode`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinAccountMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinAccountMapper.xml new file mode 100644 index 0000000..b3b7bbf --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinAccountMapper.xml @@ -0,0 +1,218 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`hashids`,`logoUrl`,`name`,`accountType`,`isVerify`,`isOauth`,`appId`,`appSecret`,`token`,`url`,`payType`,`encryptType`,`aesKey`,`cards`,`pays`,`apis`,`templateMsg`,`additionalParams`,`status`,`description`,`createDate`,`createUser`,`modifyDate`,`modifyUser`,`applicationIdentity` + + + + + + + + + + + insert into wx_wxdc_account + + `id`,`tenantId` + ,`tenantCode` + ,`hashids` + ,`logoUrl` + ,`name` + ,`accountType` + ,`isVerify` + ,`isOauth` + ,`appId` + ,`appSecret` + ,`token` + ,`url` + ,`payType` + ,`encryptType` + ,`aesKey` + ,`cards` + ,`pays` + ,`apis` + ,`templateMsg` + ,`additionalParams` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + ,`applicationIdentity` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{hashids} + ,#{logoUrl} + ,#{name} + ,#{accountType} + ,#{isVerify} + ,#{isOauth} + ,#{appId} + ,#{appSecret} + ,#{token} + ,#{url} + ,#{payType} + ,#{encryptType} + ,#{aesKey} + ,#{cards} + ,#{pays} + ,#{apis} + ,#{templateMsg} + ,#{additionalParams} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + ,#{applicationIdentity} + + + + + + insert into wx_weixin_account + + `id`,`tenantId` + ,`tenantCode` + ,`hashids` + ,`logoUrl` + ,`name` + ,`accountType` + ,`isVerify` + ,`isOauth` + ,`appId` + ,`appSecret` + ,`token` + ,`url` + ,`payType` + ,`encryptType` + ,`aesKey` + ,`cards` + ,`pays` + ,`apis` + ,`templateMsg` + ,`additionalParams` + ,`status` + ,`description` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{hashids} + ,#{logoUrl} + ,#{name} + ,#{accountType} + ,#{isVerify} + ,#{isOauth} + ,#{appId} + ,#{appSecret} + ,#{token} + ,#{url} + ,#{payType} + ,#{encryptType} + ,#{aesKey} + ,#{cards} + ,#{pays} + ,#{apis} + ,#{templateMsg} + ,#{additionalParams} + ,#{status} + ,#{description} + ,#{createDate} + ,#{createUser} + + + + + + update wx_wxdc_account + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`hashids` = #{hashids} + ,`logoUrl` = #{logoUrl} + ,`name` = #{name} + ,`accountType` = #{accountType} + ,`isVerify` = #{isVerify} + ,`isOauth` = #{isOauth} + ,`appId` = #{appId} + ,`appSecret` = #{appSecret} + ,`token` = #{token} + ,`url` = #{url} + ,`payType` = #{payType} + ,`encryptType` = #{encryptType} + ,`aesKey` = #{aesKey} + ,`cards` = #{cards} + ,`pays` = #{pays} + ,`apis` = #{apis} + ,`templateMsg` = #{templateMsg} + ,`additionalParams` = #{additionalParams} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + ,`applicationIdentity` = #{applicationIdentity} + + where `id` = #{id} + + + + update wx_weixin_account + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`hashids` = #{hashids} + ,`logoUrl` = #{logoUrl} + ,`name` = #{name} + ,`accountType` = #{accountType} + ,`isVerify` = #{isVerify} + ,`isOauth` = #{isOauth} + ,`appId` = #{appId} + ,`appSecret` = #{appSecret} + ,`token` = #{token} + ,`url` = #{url} + ,`payType` = #{payType} + ,`encryptType` = #{encryptType} + ,`aesKey` = #{aesKey} + ,`cards` = #{cards} + ,`pays` = #{pays} + ,`apis` = #{apis} + ,`templateMsg` = #{templateMsg} + ,`additionalParams` = #{additionalParams} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + + delete from wx_wxdc_account + where `id` = #{id} + + + diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinOrderPayMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinOrderPayMapper.xml new file mode 100644 index 0000000..857f54c --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinOrderPayMapper.xml @@ -0,0 +1,300 @@ + + + + + + `id`,`tenantId`,`wid`,`userId`,`memberId`,`storeId`,`storeNo`,`storeName`,`posNo`,`workerNo`,`openId`,`orderId`,`orderNo`,`outTradeNo`,`busNo`,`payNo`,`payway`,`busMode`,`amount`,`discountAmount`,`memberMoney`,`receiveAmount`,`num`,`details`,`orderTime`,`saleDate`,`tableId`,`tableNo`,`tableName`,`disName`,`disMobile`,`disAddress`,`disTime`,`bookName`,`bookSex`,`bookMobile`,`bookDate`,`bookTime`,`bookNum`,`mode`,`status`,`result`,`description`,`boxFee`,`receiveName`,`receiveMobile`,`receiveAddress`,`distributionFee`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_order_pay + + `id`,`tenantId` + ,`wid` + ,`userId` + ,`memberId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`posNo` + ,`workerNo` + ,`openId` + ,`orderId` + ,`orderNo` + ,`outTradeNo` + ,`busNo` + ,`payNo` + ,`payway` + ,`busMode` + ,`amount` + ,`discountAmount` + ,`memberMoney` + ,`receiveAmount` + ,`num` + ,`details` + ,`orderTime` + ,`saleDate` + ,`tableId` + ,`tableNo` + ,`tableName` + ,`disName` + ,`disMobile` + ,`disAddress` + ,`disTime` + ,`bookName` + ,`bookSex` + ,`bookMobile` + ,`bookDate` + ,`bookTime` + ,`bookNum` + ,`mode` + ,`status` + ,`result` + ,`description` + ,`boxFee` + ,`receiveName` + ,`receiveMobile` + ,`receiveAddress` + ,`distributionFee` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{userId} + ,#{memberId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{posNo} + ,#{workerNo} + ,#{openId} + ,#{orderId} + ,#{orderNo} + ,#{outTradeNo} + ,#{busNo} + ,#{payNo} + ,#{payway} + ,#{busMode} + ,#{amount} + ,#{discountAmount} + ,#{memberMoney} + ,#{receiveAmount} + ,#{num} + ,#{details} + ,#{orderTime} + ,#{saleDate} + ,#{tableId} + ,#{tableNo} + ,#{tableName} + ,#{disName} + ,#{disMobile} + ,#{disAddress} + ,#{disTime} + ,#{bookName} + ,#{bookSex} + ,#{bookMobile} + ,#{bookDate} + ,#{bookTime} + ,#{bookNum} + ,#{mode} + ,#{status} + ,#{result} + ,#{description} + ,#{boxFee} + ,#{receiveName} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{distributionFee} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_order_pay + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`userId` = #{userId} + ,`memberId` = #{memberId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`posNo` = #{posNo} + ,`workerNo` = #{workerNo} + ,`openId` = #{openId} + ,`orderNo` = #{orderNo} + ,`orderId` = #{orderId} + ,`outTradeNo` = #{outTradeNo} + ,`busNo` = #{busNo} + ,`payNo` = #{payNo} + ,`payway` = #{payway} + ,`busMode` = #{busMode} + ,`amount` = #{amount} + ,`discountAmount` = #{discountAmount} + ,`memberMoney` = #{memberMoney} + ,`receiveAmount` = #{receiveAmount} + ,`num` = #{num} + ,`details` = #{details} + ,`orderTime` = #{orderTime} + ,`saleDate` = #{saleDate} + ,`tableId` = #{tableId} + ,`tableNo` = #{tableNo} + ,`tableName` = #{tableName} + ,`disName` = #{disName} + ,`disMobile` = #{disMobile} + ,`disAddress` = #{disAddress} + ,`disTime` = #{disTime} + ,`bookName` = #{bookName} + ,`bookSex` = #{bookSex} + ,`bookMobile` = #{bookMobile} + ,`bookDate` = #{bookDate} + ,`bookTime` = #{bookTime} + ,`bookNum` = #{bookNum} + ,`mode` = #{mode} + ,`status` = #{status} + ,`result` = #{result} + ,`description` = #{description} + ,`boxFee` = #{boxFee} + ,`receiveName` = #{receiveName} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`distributionFee` = #{distributionFee} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from wx_wxdc_order_pay + where `id` = #{id} + + + + delete from wx_wxdc_order_pay + ${condition} + + + + delete from wx_wxdc_order_pay + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayResultMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayResultMapper.xml new file mode 100644 index 0000000..8d3daa5 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayResultMapper.xml @@ -0,0 +1,243 @@ + + + + + + `id`,`tenantId`,`wid`,`returnCode`,`returnMsg`,`appId`,`mchId`,`subAppId`,`subMchId`,`deviceInfo`,`nonceStr`,`sign`,`resultCode`,`errCode`,`errCodeDes`,`openId`,`subOpenId`,`isSubscribe`,`tradeType`,`bankType`,`totalFee`,`feeType`,`cashFee`,`cashFeeType`,`couponFee`,`couponCount`,`transactionId`,`outTradeNo`,`attach`,`timeEnd`,`status`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_pay_result + + `id`,`tenantId` + ,`wid` + ,`returnCode` + ,`returnMsg` + ,`appId` + ,`mchId` + ,`subAppId` + ,`subMchId` + ,`deviceInfo` + ,`nonceStr` + ,`sign` + ,`resultCode` + ,`errCode` + ,`errCodeDes` + ,`openId` + ,`subOpenId` + ,`isSubscribe` + ,`tradeType` + ,`bankType` + ,`totalFee` + ,`feeType` + ,`cashFee` + ,`cashFeeType` + ,`couponFee` + ,`couponCount` + ,`transactionId` + ,`outTradeNo` + ,`attach` + ,`timeEnd` + ,`status` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{returnCode} + ,#{returnMsg} + ,#{appId} + ,#{mchId} + ,#{subAppId} + ,#{subMchId} + ,#{deviceInfo} + ,#{nonceStr} + ,#{sign} + ,#{resultCode} + ,#{errCode} + ,#{errCodeDes} + ,#{openId} + ,#{subOpenId} + ,#{isSubscribe} + ,#{tradeType} + ,#{bankType} + ,#{totalFee} + ,#{feeType} + ,#{cashFee} + ,#{cashFeeType} + ,#{couponFee} + ,#{couponCount} + ,#{transactionId} + ,#{outTradeNo} + ,#{attach} + ,#{timeEnd} + ,#{status} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_pay_result + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`returnCode` = #{returnCode} + ,`returnMsg` = #{returnMsg} + ,`appId` = #{appId} + ,`mchId` = #{mchId} + ,`subAppId` = #{subAppId} + ,`subMchId` = #{subMchId} + ,`deviceInfo` = #{deviceInfo} + ,`nonceStr` = #{nonceStr} + ,`sign` = #{sign} + ,`resultCode` = #{resultCode} + ,`errCode` = #{errCode} + ,`errCodeDes` = #{errCodeDes} + ,`openId` = #{openId} + ,`subOpenId` = #{subOpenId} + ,`isSubscribe` = #{isSubscribe} + ,`tradeType` = #{tradeType} + ,`bankType` = #{bankType} + ,`totalFee` = #{totalFee} + ,`feeType` = #{feeType} + ,`cashFee` = #{cashFee} + ,`cashFeeType` = #{cashFeeType} + ,`couponFee` = #{couponFee} + ,`couponCount` = #{couponCount} + ,`transactionId` = #{transactionId} + ,`outTradeNo` = #{outTradeNo} + ,`attach` = #{attach} + ,`timeEnd` = #{timeEnd} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from wx_wxdc_pay_result + where `id` = #{id} + + + + delete from wx_wxdc_pay_result + ${condition} + + + + delete from wx_wxdc_pay_result + where `tenantId` = + #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayUnifiedOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayUnifiedOrderMapper.xml new file mode 100644 index 0000000..165512b --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinPayUnifiedOrderMapper.xml @@ -0,0 +1,249 @@ + + + + + + `id`,`tenantId`,`wid`,`appId`,`mchId`,`subAppId`,`subMchId`,`deviceInfo`,`body`,`detail`,`attach`,`outTradeNo`,`feeType`,`totalFee`,`creaeIp`,`timeStart`,`timeExpire`,`goodsTag`,`notifyUrl`,`tradeType`,`productId`,`limitPay`,`openId`,`subOpenId`,`returnCode`,`returnMsg`,`resultCode`,`errCode`,`errCodeDes`,`prepayId`,`codeUrl`,`status`,`description`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_pay_unified_order + + `id`,`tenantId` + ,`wid` + ,`appId` + ,`mchId` + ,`subAppId` + ,`subMchId` + ,`deviceInfo` + ,`body` + ,`detail` + ,`attach` + ,`outTradeNo` + ,`feeType` + ,`totalFee` + ,`creaeIp` + ,`timeStart` + ,`timeExpire` + ,`goodsTag` + ,`notifyUrl` + ,`tradeType` + ,`productId` + ,`limitPay` + ,`openId` + ,`subOpenId` + ,`returnCode` + ,`returnMsg` + ,`resultCode` + ,`errCode` + ,`errCodeDes` + ,`prepayId` + ,`codeUrl` + ,`status` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{appId} + ,#{mchId} + ,#{subAppId} + ,#{subMchId} + ,#{deviceInfo} + ,#{body} + ,#{detail} + ,#{attach} + ,#{outTradeNo} + ,#{feeType} + ,#{totalFee} + ,#{creaeIp} + ,#{timeStart} + ,#{timeExpire} + ,#{goodsTag} + ,#{notifyUrl} + ,#{tradeType} + ,#{productId} + ,#{limitPay} + ,#{openId} + ,#{subOpenId} + ,#{returnCode} + ,#{returnMsg} + ,#{resultCode} + ,#{errCode} + ,#{errCodeDes} + ,#{prepayId} + ,#{codeUrl} + ,#{status} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_pay_unified_order + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`appId` = #{appId} + ,`mchId` = #{mchId} + ,`subAppId` = #{subAppId} + ,`subMchId` = #{subMchId} + ,`deviceInfo` = #{deviceInfo} + ,`body` = #{body} + ,`detail` = #{detail} + ,`attach` = #{attach} + ,`outTradeNo` = #{outTradeNo} + ,`feeType` = #{feeType} + ,`totalFee` = #{totalFee} + ,`creaeIp` = #{creaeIp} + ,`timeStart` = #{timeStart} + ,`timeExpire` = #{timeExpire} + ,`goodsTag` = #{goodsTag} + ,`notifyUrl` = #{notifyUrl} + ,`tradeType` = #{tradeType} + ,`productId` = #{productId} + ,`limitPay` = #{limitPay} + ,`openId` = #{openId} + ,`subOpenId` = #{subOpenId} + ,`returnCode` = #{returnCode} + ,`returnMsg` = #{returnMsg} + ,`resultCode` = #{resultCode} + ,`errCode` = #{errCode} + ,`errCodeDes` = #{errCodeDes} + ,`prepayId` = #{prepayId} + ,`codeUrl` = #{codeUrl} + ,`status` = #{status} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + + delete from wx_wxdc_pay_unified_order + where `id` = + #{id} + + + + delete from wx_wxdc_pay_unified_order + ${condition} + + + + delete from wx_wxdc_pay_unified_order + where + `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinRechargeOrderMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinRechargeOrderMapper.xml new file mode 100644 index 0000000..526ddc7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinRechargeOrderMapper.xml @@ -0,0 +1,233 @@ + + + + + + `id`, `tenantId`,`wid`,`userId`,`storeId`,`storeNo`,`storeName`,`posNo`,`workerNo`,`tradeNo`,`payVoucherNo`,`memberId`,`cardNo`,`mobile`,`schemeId`,`schemeNo`,`detailId`,`amount`,`giftAmount`,`giftPoint`,`preAmount`,`aftAmount`,`prePoint`,`aftPoint`,`giftDetail`,`batchNo`,`serialNo`,`tradeTime`,`status`,`result`,`description` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into wx_wxdc_recharge_order + + `id`,`tenantId` + ,`wid` + ,`userId` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`posNo` + ,`workerNo` + ,`tradeNo` + ,`payVoucherNo` + ,`memberId` + ,`cardNo` + ,`mobile` + ,`schemeId` + ,`schemeNo` + ,`detailId` + ,`amount` + ,`giftAmount` + ,`giftPoint` + ,`preAmount` + ,`aftAmount` + ,`prePoint` + ,`aftPoint` + ,`giftDetail` + ,`batchNo` + ,`serialNo` + ,`tradeTime` + ,`status` + ,`result` + ,`description` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{userId} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{posNo} + ,#{workerNo} + ,#{tradeNo} + ,#{payVoucherNo} + ,#{memberId} + ,#{cardNo} + ,#{mobile} + ,#{schemeId} + ,#{schemeNo} + ,#{detailId} + ,#{amount} + ,#{giftAmount} + ,#{giftPoint} + ,#{preAmount} + ,#{aftAmount} + ,#{prePoint} + ,#{aftPoint} + ,#{giftDetail} + ,#{batchNo} + ,#{serialNo} + ,#{tradeTime} + ,#{status} + ,#{result} + ,#{description} + ,#{createUser} + ,#{createDate} + + + + + update wx_wxdc_recharge_order + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`userId` = #{userId} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`posNo` = #{posNo} + ,`workerNo` = #{workerNo} + ,`tradeNo` = #{tradeNo} + ,`payVoucherNo` = #{payVoucherNo} + ,`memberId` = #{memberId} + ,`cardNo` = #{cardNo} + ,`mobile` = #{mobile} + ,`schemeId` = #{schemeId} + ,`schemeNo` = #{schemeNo} + ,`detailId` = #{detailId} + ,`amount` = #{amount} + ,`giftAmount` = #{giftAmount} + ,`giftPoint` = #{giftPoint} + ,`preAmount` = #{preAmount} + ,`aftAmount` = #{aftAmount} + ,`prePoint` = #{prePoint} + ,`aftPoint` = #{aftPoint} + ,`giftDetail` = #{giftDetail} + ,`batchNo` = #{batchNo} + ,`serialNo` = #{serialNo} + ,`tradeTime` = #{tradeTime} + ,`status` = #{status} + ,`result` = #{result} + ,`description` = #{description} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from wx_wxdc_recharge_order + where `id` = #{id} + + + + delete from wx_wxdc_recharge_order + ${condition} + + + + delete from wx_wxdc_recharge_order + where `tenantId` = #{tenantId} and ${property}=#{value} + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinUserMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinUserMapper.xml new file mode 100644 index 0000000..087eea3 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WeixinUserMapper.xml @@ -0,0 +1,124 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`wid`,`openid`,`unionid`,`loginFlag`,`lastLoginTime`,`nickname`,`mobile`,`vipMobile`,`sex`,`province`,`city`,`country`,`language`,`latitude`,`longitude`,`wprecision`,`headimgurl`,`isSubscribe`,`subscribeTime`,`groupid`,`remark`,`status`,`description`,`extendInfo`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + insert into wx_wxdc_user + + `id`,`tenantId` + ,`tenantCode` + ,`wid` + ,`openid` + ,`unionid` + ,`loginFlag` + ,`lastLoginTime` + ,`nickname` + ,`mobile` + ,`vipMobile` + ,`sex` + ,`province` + ,`city` + ,`country` + ,`language` + ,`latitude` + ,`longitude` + ,`wprecision` + ,`headimgurl` + ,`isSubscribe` + ,`subscribeTime` + ,`groupid` + ,`remark` + ,`status` + ,`description` + ,`extendInfo` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{tenantCode} + ,#{wid} + ,#{openid} + ,#{unionid} + ,#{loginFlag} + ,#{lastLoginTime} + ,#{nickname} + ,#{mobile} + ,#{vipMobile} + ,#{sex} + ,#{province} + ,#{city} + ,#{country} + ,#{language} + ,#{latitude} + ,#{longitude} + ,#{wprecision} + ,#{headimgurl} + ,#{isSubscribe} + ,#{subscribeTime} + ,#{groupid} + ,#{remark} + ,#{status} + ,#{description} + ,#{extendInfo} + ,#{createDate} + ,#{createUser} + + + + + update wx_wxdc_user + + `tenantId` = #{tenantId} + ,`tenantCode` = #{tenantCode} + ,`wid` = #{wid} + ,`openid` = #{openid} + ,`unionid` = #{unionid} + ,`loginFlag` = #{loginFlag} + ,`lastLoginTime` = #{lastLoginTime} + ,`nickname` = #{nickname} + ,`mobile` = #{mobile} + ,`vipMobile` = #{vipMobile} + ,`sex` = #{sex} + ,`province` = #{province} + ,`city` = #{city} + ,`country` = #{country} + ,`language` = #{language} + ,`latitude` = #{latitude} + ,`longitude` = #{longitude} + ,`wprecision` = #{wprecision} + ,`headimgurl` = #{headimgurl} + ,`isSubscribe` = #{isSubscribe} + ,`subscribeTime` = #{subscribeTime} + ,`groupid` = #{groupid} + ,`remark` = #{remark} + ,`status` = #{status} + ,`description` = #{description} + ,`extendInfo` = #{extendInfo} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionAddressMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionAddressMapper.xml new file mode 100644 index 0000000..1675a39 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionAddressMapper.xml @@ -0,0 +1,131 @@ + + + + + + `id`,`tenantId`,`wid`,`openId`,`name`,`sex`,`mobile`,`receiveMobile`,`receiveAddress`,`isDefault`,`addressLabel`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into mc_wxdc_distribution_address + + `id`,`tenantId` + ,`wid` + ,`openId` + ,`name` + ,`sex` + ,`mobile` + ,`receiveMobile` + ,`receiveAddress` + ,`isDefault` + ,`addressLabel` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{wid} + ,#{openId} + ,#{name} + ,#{sex} + ,#{mobile} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{isDefault} + ,#{addressLabel} + ,#{createUser} + ,#{createDate} + + + + + update mc_wxdc_distribution_address + + `tenantId` = #{tenantId} + ,`wid` = #{wid} + ,`openId` = #{openId} + ,`name` = #{name} + ,`sex` = #{sex} + ,`mobile` = #{mobile} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`isDefault` = #{isDefault} + ,`addressLabel` = #{addressLabel} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from mc_wxdc_distribution_address + where `id` = #{id} + + + + delete from mc_wxdc_distribution_address + ${condition} + + + + delete from mc_wxdc_distribution_address + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionMapper.xml new file mode 100644 index 0000000..9582233 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxdc/WxdcDistributionMapper.xml @@ -0,0 +1,137 @@ + + + + + + `id`,`tenantId`,`busNo`,`wid`,`shopNo`,`shopName`,`serialNo`,`referNo`,`tradeNo`,`mobile`,`receiveMobile`,`receiveAddress`,`distributionFee`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + + + + + + + + + + + + + insert into mc_wxdc_distribution + + `id`,`tenantId` + ,`busNo` + ,`wid` + ,`shopNo` + ,`shopName` + ,`serialNo` + ,`referNo` + ,`tradeNo` + ,`mobile` + ,`receiveMobile` + ,`receiveAddress` + ,`distributionFee` + ,`createUser` + ,`createDate` + + + #{id},#{tenantId} + ,#{busNo} + ,#{wid} + ,#{shopNo} + ,#{shopName} + ,#{serialNo} + ,#{referNo} + ,#{tradeNo} + ,#{mobile} + ,#{receiveMobile} + ,#{receiveAddress} + ,#{distributionFee} + ,#{createUser} + ,#{createDate} + + + + + update mc_wxdc_distribution + + `tenantId` = #{tenantId} + ,`busNo` = #{busNo} + ,`wid` = #{wid} + ,`shopNo` = #{shopNo} + ,`shopName` = #{shopName} + ,`serialNo` = #{serialNo} + ,`referNo` = #{referNo} + ,`tradeNo` = #{tradeNo} + ,`mobile` = #{mobile} + ,`receiveMobile` = #{receiveMobile} + ,`receiveAddress` = #{receiveAddress} + ,`distributionFee` = #{distributionFee} + ,`modifyUser` = #{modifyUser} + ,`modifyDate` = #{modifyDate} + + where `id` = #{id} + + + + delete from mc_wxdc_distribution + where `id` = #{id} + + + + delete from mc_wxdc_distribution + ${condition} + + + + delete from mc_wxdc_distribution + where `tenantId` = #{tenantId} and ${property}=#{value} + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxyh/WeixinUserMapper.xml b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxyh/WeixinUserMapper.xml new file mode 100644 index 0000000..fab57d7 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mapper/mysql/wxyh/WeixinUserMapper.xml @@ -0,0 +1,94 @@ + + + + + + `id`,`tenantId`,`tenantCode`,`openid`,`workerId`,`workerNo`,`workerName`,`storeId`,`storeNo`,`storeName`,`nickName`,`mobile`,`sex`,`province`,`city`,`country`,`language`,`headimgurl`,`createUser`,`createDate`,`modifyUser`,`modifyDate` + + + + + + + + insert into wx_wxyh_user + + `id`,`tenantId` + ,`openid` + ,`workerId` + ,`workerNo` + ,`workerName` + ,`storeId` + ,`storeNo` + ,`storeName` + ,`nickName` + ,`mobile` + ,`sex` + ,`province` + ,`city` + ,`country` + ,`language` + ,`headimgurl` + ,`createDate` + ,`createUser` + + + #{id},#{tenantId} + ,#{openid} + ,#{workerId} + ,#{workerNo} + ,#{workerName} + ,#{storeId} + ,#{storeNo} + ,#{storeName} + ,#{nickName} + ,#{mobile} + ,#{sex} + ,#{province} + ,#{city} + ,#{country} + ,#{language} + ,#{headimgurl} + ,#{createDate} + ,#{createUser} + + + + + update wx_wxyh_user + + `tenantId` = #{tenantId} + ,`openid` = #{openid} + ,`workerId` = #{workerId} + ,`workerNo` = #{workerNo} + ,`workerName` = #{workerName} + ,`storeId` = #{storeId} + ,`storeNo` = #{storeNo} + ,`storeName` = #{storeName} + ,`nickName` = #{nickName} + ,`mobile` = #{mobile} + ,`sex` = #{sex} + ,`province` = #{province} + ,`city` = #{city} + ,`country` = #{country} + ,`language` = #{language} + ,`headimgurl` = #{headimgurl} + ,`modifyDate` = #{modifyDate} + ,`modifyUser` = #{modifyUser} + + where `id` = #{id} + + + diff --git a/food-server/target/classes/META-INF/mybatis/mybatis-config.xml b/food-server/target/classes/META-INF/mybatis/mybatis-config.xml new file mode 100644 index 0000000..7679f62 --- /dev/null +++ b/food-server/target/classes/META-INF/mybatis/mybatis-config.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-cache.xml b/food-server/target/classes/META-INF/spring/spring-cache.xml new file mode 100644 index 0000000..32838bf --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-cache.xml @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/food-server/target/classes/META-INF/spring/spring-dao.xml b/food-server/target/classes/META-INF/spring/spring-dao.xml new file mode 100644 index 0000000..7f5a628 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dao.xml @@ -0,0 +1,51 @@ + + + + 系统默认数据源 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-agent.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-agent.xml new file mode 100644 index 0000000..8ad0ebc --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-agent.xml @@ -0,0 +1,24 @@ + + + + 总部代理商相关服务接口定义 + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-coupon.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-coupon.xml new file mode 100644 index 0000000..cbdf68f --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-coupon.xml @@ -0,0 +1,44 @@ + + + + 商品优惠券相关服务接口定义 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-dispatch.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-dispatch.xml new file mode 100644 index 0000000..2f02421 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-dispatch.xml @@ -0,0 +1,110 @@ + + + + 总部配送相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-operation.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-operation.xml new file mode 100644 index 0000000..e4d9fb1 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-operation.xml @@ -0,0 +1,120 @@ + + + + 运维相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-product.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-product.xml new file mode 100644 index 0000000..b49865f --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-product.xml @@ -0,0 +1,156 @@ + + + + 商品相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-storage.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-storage.xml new file mode 100644 index 0000000..8827e48 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-storage.xml @@ -0,0 +1,277 @@ + + + + 库存相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-store-storage.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-store-storage.xml new file mode 100644 index 0000000..23cd1d4 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-store-storage.xml @@ -0,0 +1,112 @@ + + + + 门店库存相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-store.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-store.xml new file mode 100644 index 0000000..961c299 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-store.xml @@ -0,0 +1,454 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-supplier.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-supplier.xml new file mode 100644 index 0000000..205a0e9 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-supplier.xml @@ -0,0 +1,24 @@ + + + + 供应商相关服务接口定义 + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-waimai.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-waimai.xml new file mode 100644 index 0000000..5bdf46b --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-waimai.xml @@ -0,0 +1,201 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-weixin.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-weixin.xml new file mode 100644 index 0000000..529245e --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-weixin.xml @@ -0,0 +1,114 @@ + + + + 微信点餐相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-wxdc.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-wxdc.xml new file mode 100644 index 0000000..a553db9 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-wxdc.xml @@ -0,0 +1,220 @@ + + + + 微信点餐账户和用户相关服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food-wxyh.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food-wxyh.xml new file mode 100644 index 0000000..7c8c8db --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food-wxyh.xml @@ -0,0 +1,25 @@ + + + + 小程序要货账户和用户相关服务接口定义 + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-food.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-food.xml new file mode 100644 index 0000000..905a656 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-food.xml @@ -0,0 +1,94 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-hello.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-hello.xml new file mode 100644 index 0000000..29d3e18 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-hello.xml @@ -0,0 +1,19 @@ + + + + 服务接口定义 + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-manager.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-manager.xml new file mode 100644 index 0000000..b78eb14 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-manager.xml @@ -0,0 +1,84 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo-shared.xml b/food-server/target/classes/META-INF/spring/spring-dubbo-shared.xml new file mode 100644 index 0000000..ba22ca9 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo-shared.xml @@ -0,0 +1,39 @@ + + + + 服务接口定义 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-dubbo.xml b/food-server/target/classes/META-INF/spring/spring-dubbo.xml new file mode 100644 index 0000000..471ed22 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-dubbo.xml @@ -0,0 +1,24 @@ + + + + dubbo服务接口定义 + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-mybatis.xml b/food-server/target/classes/META-INF/spring/spring-mybatis.xml new file mode 100644 index 0000000..d97804d --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-mybatis.xml @@ -0,0 +1,69 @@ + + + + MyBatis数据源模式 + + + + + + + + + + + + + + + + + + + com.jwsaas.mybatis.support.MySQLDialect + true + 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring-tx.xml b/food-server/target/classes/META-INF/spring/spring-tx.xml new file mode 100644 index 0000000..9b931b6 --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring-tx.xml @@ -0,0 +1,66 @@ + + + + 数据库事务管理 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/spring/spring.xml b/food-server/target/classes/META-INF/spring/spring.xml new file mode 100644 index 0000000..8ed2e4a --- /dev/null +++ b/food-server/target/classes/META-INF/spring/spring.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + classpath*:config.properties + + + + + + + + + + + + + + + ../temp/ + + + + + \ No newline at end of file diff --git a/food-server/target/classes/META-INF/template/datainit/init.base.sql.ftl b/food-server/target/classes/META-INF/template/datainit/init.base.sql.ftl new file mode 100644 index 0000000..6467c2d --- /dev/null +++ b/food-server/target/classes/META-INF/template/datainit/init.base.sql.ftl @@ -0,0 +1,11 @@ +/*系统管理员*/ +insert into `shared_user` (`id`, `tenantId`, `userName`, `passwd`, `email`, `nickName`, `realName`, `sex`, `identityFlag`, `status`, `description`, `createUser`) values ('${userId}','${tenantCode}','${userName}','${userPwd}',NULL,'系统管理员','系统管理员','1', '0','1','','system'); + +/*系统管理员角色*/ +insert into `shared_role` (`id`, `tenantId`, `name`, `roleType`, `isDefault`, `description`, `createUser`) values ('${roleId}','${tenantCode}','系统管理员','HEADQUARTER','1','系统管理员','system'); + +/*系统管理员分配管理员角色*/ +insert into `shared_user_role` (`tenantId`, `userId`, `roleId`) values('${tenantCode}','${userId}','${roleId}'); + +/*系统管理员角色对应的权限信息*/ +; diff --git a/food-server/target/classes/META-INF/template/datainit/tenant_db_config.xml.ftl b/food-server/target/classes/META-INF/template/datainit/tenant_db_config.xml.ftl new file mode 100644 index 0000000..ce4a519 --- /dev/null +++ b/food-server/target/classes/META-INF/template/datainit/tenant_db_config.xml.ftl @@ -0,0 +1,56 @@ + + + 租户[${tenantCode}]数据源 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/classes/com/jwsaas/Filters/ServerDataVersionFilter.class b/food-server/target/classes/com/jwsaas/Filters/ServerDataVersionFilter.class new file mode 100644 index 0000000..d6770e9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/Filters/ServerDataVersionFilter.class differ diff --git a/food-server/target/classes/com/jwsaas/Main.class b/food-server/target/classes/com/jwsaas/Main.class new file mode 100644 index 0000000..83725bf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/Main.class differ diff --git a/food-server/target/classes/com/jwsaas/cache/impl/RedisCacheServiceImpl.class b/food-server/target/classes/com/jwsaas/cache/impl/RedisCacheServiceImpl.class new file mode 100644 index 0000000..3a6293e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/cache/impl/RedisCacheServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/cache/impl/RedissonConfiguration$RedisType.class b/food-server/target/classes/com/jwsaas/cache/impl/RedissonConfiguration$RedisType.class new file mode 100644 index 0000000..5005f8d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/cache/impl/RedissonConfiguration$RedisType.class differ diff --git a/food-server/target/classes/com/jwsaas/cache/impl/RedissonConfiguration.class b/food-server/target/classes/com/jwsaas/cache/impl/RedissonConfiguration.class new file mode 100644 index 0000000..4232cd9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/cache/impl/RedissonConfiguration.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/BaseDao.class b/food-server/target/classes/com/jwsaas/dao/BaseDao.class new file mode 100644 index 0000000..21f6d2c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/BaseDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/TenantDao.class b/food-server/target/classes/com/jwsaas/dao/TenantDao.class new file mode 100644 index 0000000..8d815aa Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/TenantDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceProductDao.class new file mode 100644 index 0000000..18946ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceStoreDao.class new file mode 100644 index 0000000..22133f3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceTicketDao.class new file mode 100644 index 0000000..1efd257 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AdjustPriceTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AdvertCaptionDao.class b/food-server/target/classes/com/jwsaas/dao/food/AdvertCaptionDao.class new file mode 100644 index 0000000..0ec659e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AdvertCaptionDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AdvertPictureDao.class b/food-server/target/classes/com/jwsaas/dao/food/AdvertPictureDao.class new file mode 100644 index 0000000..8661680 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AdvertPictureDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AgentDao.class b/food-server/target/classes/com/jwsaas/dao/food/AgentDao.class new file mode 100644 index 0000000..1f6c9b9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AgentDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AgentStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/AgentStoreDao.class new file mode 100644 index 0000000..fa81993 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AgentStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AskGoodsDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsDetailDao.class new file mode 100644 index 0000000..b9ba6cb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateDao.class new file mode 100644 index 0000000..bebb66c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateDetailDao.class new file mode 100644 index 0000000..7f881c7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateStoreDao.class new file mode 100644 index 0000000..4b4d445 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTemplateStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketDao.class new file mode 100644 index 0000000..7306a29 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketLogDao.class new file mode 100644 index 0000000..0db8153 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketPayDao.class b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketPayDao.class new file mode 100644 index 0000000..14b8f8a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/AskGoodsTicketPayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/BaiduFoodDao.class b/food-server/target/classes/com/jwsaas/dao/food/BaiduFoodDao.class new file mode 100644 index 0000000..945f0e1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/BaiduFoodDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/BaiduOrderDao.class b/food-server/target/classes/com/jwsaas/dao/food/BaiduOrderDao.class new file mode 100644 index 0000000..9f7d75c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/BaiduOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/BaiduOrderProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/BaiduOrderProductDao.class new file mode 100644 index 0000000..b859bb6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/BaiduOrderProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/BrandDao.class b/food-server/target/classes/com/jwsaas/dao/food/BrandDao.class new file mode 100644 index 0000000..aed6d05 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/BrandDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/BusinessPlanDao.class b/food-server/target/classes/com/jwsaas/dao/food/BusinessPlanDao.class new file mode 100644 index 0000000..ea09ded Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/BusinessPlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/BusinessPlanDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/BusinessPlanDetailDao.class new file mode 100644 index 0000000..bb9b77c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/BusinessPlanDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CandaoStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/CandaoStoreDao.class new file mode 100644 index 0000000..a6e715f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CandaoStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/CategoryDao.class new file mode 100644 index 0000000..b52dc32 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CheckTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/CheckTemplateDao.class new file mode 100644 index 0000000..3c9fc8e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CheckTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CheckTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/CheckTemplateDetailDao.class new file mode 100644 index 0000000..3326824 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CheckTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CheckTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/CheckTicketDao.class new file mode 100644 index 0000000..d5cdc89 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CheckTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CheckTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/CheckTicketDetailDao.class new file mode 100644 index 0000000..7d60b5c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CheckTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CheckTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/CheckTicketLogDao.class new file mode 100644 index 0000000..844d9f0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CheckTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostFeeItemDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostFeeItemDao.class new file mode 100644 index 0000000..d5d51c7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostFeeItemDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostFeeTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostFeeTypeDao.class new file mode 100644 index 0000000..98a5d82 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostFeeTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketDao.class new file mode 100644 index 0000000..e2fccf7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketPayTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketPayTypeDao.class new file mode 100644 index 0000000..9b4fd24 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketPayTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductChangeDao.class new file mode 100644 index 0000000..4ecf2ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductFixedChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductFixedChangeDao.class new file mode 100644 index 0000000..fd37dd7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductFixedChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductMoreChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductMoreChangeDao.class new file mode 100644 index 0000000..1d3b483 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductMoreChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductOtherChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductOtherChangeDao.class new file mode 100644 index 0000000..83e8ae2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductOtherChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductTypeDao.class new file mode 100644 index 0000000..e520060 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketProductTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateDao.class new file mode 100644 index 0000000..14cb688 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductChangeDao.class new file mode 100644 index 0000000..259d37f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductFixedChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductFixedChangeDao.class new file mode 100644 index 0000000..a0f1c9f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductFixedChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductMoreChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductMoreChangeDao.class new file mode 100644 index 0000000..8784e9e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductMoreChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductOtherChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductOtherChangeDao.class new file mode 100644 index 0000000..2736489 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CostTicketTemplateProductOtherChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CouponCodeDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/CouponCodeDetailDao.class new file mode 100644 index 0000000..82fee97 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CouponCodeDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CouponDao.class b/food-server/target/classes/com/jwsaas/dao/food/CouponDao.class new file mode 100644 index 0000000..9e543a0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CouponDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CouponStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/CouponStoreDao.class new file mode 100644 index 0000000..7b5094d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CouponStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CouponTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/CouponTicketDao.class new file mode 100644 index 0000000..9626acd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CouponTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CouponTicketProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/CouponTicketProductDao.class new file mode 100644 index 0000000..f854577 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CouponTicketProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/CouponTicketStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/CouponTicketStoreDao.class new file mode 100644 index 0000000..91e3a30 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/CouponTicketStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DeliverDao.class b/food-server/target/classes/com/jwsaas/dao/food/DeliverDao.class new file mode 100644 index 0000000..be94de3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DeliverDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DfsFileDao.class b/food-server/target/classes/com/jwsaas/dao/food/DfsFileDao.class new file mode 100644 index 0000000..881e259 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DfsFileDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchSettlePlanDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchSettlePlanDao.class new file mode 100644 index 0000000..00c031b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchSettlePlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchSettlePlanPayModeDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchSettlePlanPayModeDao.class new file mode 100644 index 0000000..34f4a98 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchSettlePlanPayModeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketDao.class new file mode 100644 index 0000000..2f2e594 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketDetailDao.class new file mode 100644 index 0000000..1cf3699 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketLogDao.class new file mode 100644 index 0000000..a3de77a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketDao.class new file mode 100644 index 0000000..b0bd80b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketMaterialDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketMaterialDao.class new file mode 100644 index 0000000..5047252 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketMaterialDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketStoreDao.class new file mode 100644 index 0000000..78ffed3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/DispatchpriceTicketStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ElemeCategoryFoodDao.class b/food-server/target/classes/com/jwsaas/dao/food/ElemeCategoryFoodDao.class new file mode 100644 index 0000000..0fa42e1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ElemeCategoryFoodDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ElemeFoodCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/ElemeFoodCategoryDao.class new file mode 100644 index 0000000..839b4e2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ElemeFoodCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ElemeOrderDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/ElemeOrderDetailDao.class new file mode 100644 index 0000000..1d67a8b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ElemeOrderDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ElemeOrderDetailGroupDao.class b/food-server/target/classes/com/jwsaas/dao/food/ElemeOrderDetailGroupDao.class new file mode 100644 index 0000000..6b9b4c3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ElemeOrderDetailGroupDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ErpPosSetDao.class b/food-server/target/classes/com/jwsaas/dao/food/ErpPosSetDao.class new file mode 100644 index 0000000..676f0c3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ErpPosSetDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/FeeItemDao.class b/food-server/target/classes/com/jwsaas/dao/food/FeeItemDao.class new file mode 100644 index 0000000..97ed971 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/FeeItemDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/KdsPlanDao.class b/food-server/target/classes/com/jwsaas/dao/food/KdsPlanDao.class new file mode 100644 index 0000000..10b88f0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/KdsPlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/KitPlanDao.class b/food-server/target/classes/com/jwsaas/dao/food/KitPlanDao.class new file mode 100644 index 0000000..94c5218 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/KitPlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MakeBurdenDao.class b/food-server/target/classes/com/jwsaas/dao/food/MakeBurdenDao.class new file mode 100644 index 0000000..f03d5e3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MakeBurdenDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MakeDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/MakeDetailDao.class new file mode 100644 index 0000000..95c6ea1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MakeDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MakeTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/MakeTypeDao.class new file mode 100644 index 0000000..3d82e7f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MakeTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MeituanFoodCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/MeituanFoodCategoryDao.class new file mode 100644 index 0000000..d12f464 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MeituanFoodCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MeituanFoodDao.class b/food-server/target/classes/com/jwsaas/dao/food/MeituanFoodDao.class new file mode 100644 index 0000000..d63ed26 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MeituanFoodDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderDao.class b/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderDao.class new file mode 100644 index 0000000..b12002e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderExtraDao.class b/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderExtraDao.class new file mode 100644 index 0000000..06b101f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderExtraDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderItemDao.class b/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderItemDao.class new file mode 100644 index 0000000..856223a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/MeituanOrderItemDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketDao.class new file mode 100644 index 0000000..b5a1d27 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketDetailDao.class new file mode 100644 index 0000000..97fb66e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketLogDao.class new file mode 100644 index 0000000..05c809e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageOutTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketDao.class new file mode 100644 index 0000000..9795622 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketDetailDao.class new file mode 100644 index 0000000..2e3756d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketLogDao.class new file mode 100644 index 0000000..c17120b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/OtherStorageTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PayModeDao.class b/food-server/target/classes/com/jwsaas/dao/food/PayModeDao.class new file mode 100644 index 0000000..4ac287b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PayModeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PayModeStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/PayModeStoreDao.class new file mode 100644 index 0000000..bf38712 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PayModeStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PayTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/PayTypeDao.class new file mode 100644 index 0000000..f804f34 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PayTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PaymentParameterDao.class b/food-server/target/classes/com/jwsaas/dao/food/PaymentParameterDao.class new file mode 100644 index 0000000..32cb3af Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PaymentParameterDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PermissionsDao.class b/food-server/target/classes/com/jwsaas/dao/food/PermissionsDao.class new file mode 100644 index 0000000..fc8310d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PermissionsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosInfoDao.class new file mode 100644 index 0000000..b0053c5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosPollcodeDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosPollcodeDao.class new file mode 100644 index 0000000..0173e7d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosPollcodeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosRoleDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosRoleDao.class new file mode 100644 index 0000000..61829dd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosRoleDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanConfigDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanConfigDao.class new file mode 100644 index 0000000..9e1292d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanConfigDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanDao.class new file mode 100644 index 0000000..db3c11b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanModuleDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanModuleDao.class new file mode 100644 index 0000000..77df019 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanModuleDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanResourcesDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanResourcesDao.class new file mode 100644 index 0000000..6170db3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanResourcesDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanShortcutDao.class b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanShortcutDao.class new file mode 100644 index 0000000..c1b7ecc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PosSetPlanShortcutDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PrintImageDao.class b/food-server/target/classes/com/jwsaas/dao/food/PrintImageDao.class new file mode 100644 index 0000000..9ca6f7c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PrintImageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNegativeStockDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNegativeStockDao.class new file mode 100644 index 0000000..7513a09 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNegativeStockDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNegativeStockDifferDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNegativeStockDifferDao.class new file mode 100644 index 0000000..674acbc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNegativeStockDifferDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNumberDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNumberDao.class new file mode 100644 index 0000000..665ba45 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchNumberDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductBatchStockChangeDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchStockChangeDao.class new file mode 100644 index 0000000..564654d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchStockChangeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductBatchStockDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchStockDao.class new file mode 100644 index 0000000..f1f3de7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductBatchStockDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductBurdenDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductBurdenDao.class new file mode 100644 index 0000000..3da3c9f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductBurdenDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductDao.class new file mode 100644 index 0000000..24135f6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductImageDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductImageDao.class new file mode 100644 index 0000000..fd56690 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductImageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductKdsPlanDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductKdsPlanDao.class new file mode 100644 index 0000000..5dcb762 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductKdsPlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductKitPlanDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductKitPlanDao.class new file mode 100644 index 0000000..c242707 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductKitPlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductMakeDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductMakeDao.class new file mode 100644 index 0000000..d96198b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductMakeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductMakeTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductMakeTemplateDao.class new file mode 100644 index 0000000..3adc912 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductMakeTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductMakeTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductMakeTemplateDetailDao.class new file mode 100644 index 0000000..ac3f9ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductMakeTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductRatioDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductRatioDao.class new file mode 100644 index 0000000..0369291 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductRatioDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductSpecDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductSpecDao.class new file mode 100644 index 0000000..664623e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductSpecDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductStockDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductStockDao.class new file mode 100644 index 0000000..30906cb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductStockDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductStockLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductStockLogDao.class new file mode 100644 index 0000000..28b5107 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductStockLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductStoreOutCollectDayDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductStoreOutCollectDayDao.class new file mode 100644 index 0000000..c5e5d01 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductStoreOutCollectDayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductStoreStockDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductStoreStockDao.class new file mode 100644 index 0000000..ce5710e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductStoreStockDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductStoreStockLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductStoreStockLogDao.class new file mode 100644 index 0000000..4082f5e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductStoreStockLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductSuitDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductSuitDao.class new file mode 100644 index 0000000..ce307f2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductSuitDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductSuitDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductSuitDetailDao.class new file mode 100644 index 0000000..1594d3d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductSuitDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductTemplateDao.class new file mode 100644 index 0000000..8176731 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductTemplateDetailDao.class new file mode 100644 index 0000000..c84f5bc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductTypeDao.class new file mode 100644 index 0000000..c98ddcf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductTypeLabelInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductTypeLabelInfoDao.class new file mode 100644 index 0000000..926dacc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductTypeLabelInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProductUnitDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProductUnitDao.class new file mode 100644 index 0000000..b27606c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProductUnitDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramAdPictureDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdPictureDao.class new file mode 100644 index 0000000..8579c00 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdPictureDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceProductDao.class new file mode 100644 index 0000000..759f5ec Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceStoreDao.class new file mode 100644 index 0000000..1ff7ec9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceTicketDao.class new file mode 100644 index 0000000..c08f344 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramAdjustPriceTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramDeliverAddressDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramDeliverAddressDao.class new file mode 100644 index 0000000..2a2d5ec Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramDeliverAddressDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramEvaluateDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramEvaluateDao.class new file mode 100644 index 0000000..e538a60 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramEvaluateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramEvaluateImageDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramEvaluateImageDao.class new file mode 100644 index 0000000..4f11b1d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramEvaluateImageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramIndexPictureDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramIndexPictureDao.class new file mode 100644 index 0000000..ae70aa8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramIndexPictureDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPaymentParameterDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPaymentParameterDao.class new file mode 100644 index 0000000..cd19d02 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPaymentParameterDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramProductCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductCategoryDao.class new file mode 100644 index 0000000..0a02567 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductDao.class new file mode 100644 index 0000000..44da4af Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramProductMakeDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductMakeDao.class new file mode 100644 index 0000000..530ca77 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductMakeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateDao.class new file mode 100644 index 0000000..431b2bf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateDetailDao.class new file mode 100644 index 0000000..41ff52e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateStoreDao.class new file mode 100644 index 0000000..6f4f276 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramProductTemplateStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListGoodsDao.class new file mode 100644 index 0000000..ecc02b9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListStoreAreaDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListStoreAreaDao.class new file mode 100644 index 0000000..85f4d29 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListStoreAreaDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListStoreDao.class new file mode 100644 index 0000000..e3af9c1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionBlackListStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionCategoryDao.class new file mode 100644 index 0000000..108205c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionGoodsDao.class new file mode 100644 index 0000000..3eb9966 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionSchemeDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionSchemeDao.class new file mode 100644 index 0000000..18b5b88 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionSchemeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionStoreAreaDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionStoreAreaDao.class new file mode 100644 index 0000000..84d2942 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionStoreAreaDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionStoreDao.class new file mode 100644 index 0000000..960d292 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionTaskDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionTaskDao.class new file mode 100644 index 0000000..a5b5972 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionTaskDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionTicketDao.class new file mode 100644 index 0000000..44c4036 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramPromotionTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramSettingDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramSettingDao.class new file mode 100644 index 0000000..4185272 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramSettingDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketDao.class new file mode 100644 index 0000000..f5e6b66 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketDeliverDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketDeliverDao.class new file mode 100644 index 0000000..7ea44e5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketDeliverDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketInfoDao.class new file mode 100644 index 0000000..e3cfc4f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreBusinessTicketInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreDao.class new file mode 100644 index 0000000..5759541 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductDao.class new file mode 100644 index 0000000..af49051 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductInfoDao.class new file mode 100644 index 0000000..74d91a4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductMakeDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductMakeDao.class new file mode 100644 index 0000000..13c6aa6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreOrderProductMakeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStorePayDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStorePayDao.class new file mode 100644 index 0000000..12b4bd7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStorePayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreProductDao.class new file mode 100644 index 0000000..8051af0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ProgramStoreProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListGoodsDao.class new file mode 100644 index 0000000..2b70b8c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListStoreAreaDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListStoreAreaDao.class new file mode 100644 index 0000000..fd3e7ec Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListStoreAreaDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListStoreDao.class new file mode 100644 index 0000000..321441b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionBlackListStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionCategoryDao.class new file mode 100644 index 0000000..0b009ae Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionGoodsDao.class new file mode 100644 index 0000000..7810b6a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionScheduleDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionScheduleDao.class new file mode 100644 index 0000000..46f4d6c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionScheduleDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionSchemeDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionSchemeDao.class new file mode 100644 index 0000000..755021a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionSchemeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionStoreAreaDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionStoreAreaDao.class new file mode 100644 index 0000000..a946f80 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionStoreAreaDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionStoreDao.class new file mode 100644 index 0000000..27a5719 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionTaskDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionTaskDao.class new file mode 100644 index 0000000..15ebc65 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionTaskDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PromotionTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/PromotionTicketDao.class new file mode 100644 index 0000000..0b79583 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PromotionTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketDao.class new file mode 100644 index 0000000..f138edd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketDetailDao.class new file mode 100644 index 0000000..13238ea Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketLogDao.class new file mode 100644 index 0000000..47414be Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseStorageTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTemplateDao.class new file mode 100644 index 0000000..ac6d9d5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTemplateDetailDao.class new file mode 100644 index 0000000..a64dad3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketDao.class new file mode 100644 index 0000000..872a8a4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketDetailDao.class new file mode 100644 index 0000000..4f6157e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketLogDao.class new file mode 100644 index 0000000..ea94af0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchaseTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceDao.class new file mode 100644 index 0000000..cdd9fe7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceTicketDao.class new file mode 100644 index 0000000..f9c911f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceTicketMaterialDao.class b/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceTicketMaterialDao.class new file mode 100644 index 0000000..80ce718 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/PurchasepriceTicketMaterialDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceGoodsDao.class new file mode 100644 index 0000000..2b8e2ff Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceStoreDao.class new file mode 100644 index 0000000..d82f054 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceTicketDao.class new file mode 100644 index 0000000..ddc406f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiAdjustPriceTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiAttributeCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiAttributeCategoryDao.class new file mode 100644 index 0000000..f567811 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiAttributeCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiAttributeDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiAttributeDao.class new file mode 100644 index 0000000..11a2691 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiAttributeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiChargeDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiChargeDao.class new file mode 100644 index 0000000..adccf2e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiChargeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderDao.class new file mode 100644 index 0000000..61f823f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderItemDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderItemDao.class new file mode 100644 index 0000000..50ad67a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderItemDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderPayDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderPayDao.class new file mode 100644 index 0000000..1788420 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiOrderPayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductAttributeDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductAttributeDao.class new file mode 100644 index 0000000..7825fe0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductAttributeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductCategoryDao.class new file mode 100644 index 0000000..a64f858 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductChargeDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductChargeDao.class new file mode 100644 index 0000000..53a9723 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductChargeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductDao.class new file mode 100644 index 0000000..6d12b60 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductSpecDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductSpecDao.class new file mode 100644 index 0000000..48bbd5a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductSpecDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateDao.class new file mode 100644 index 0000000..021c169 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateDetailDao.class new file mode 100644 index 0000000..926463f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateStoreDao.class new file mode 100644 index 0000000..e950a44 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiProductTemplateStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreDao.class new file mode 100644 index 0000000..a8d44de Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreLableDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreLableDao.class new file mode 100644 index 0000000..11297d2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreLableDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreProductDao.class new file mode 100644 index 0000000..57b34b4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiStoreProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/QimaiSuitDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/QimaiSuitDetailDao.class new file mode 100644 index 0000000..5432467 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/QimaiSuitDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceDetailDao.class new file mode 100644 index 0000000..2fed4f2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketDao.class new file mode 100644 index 0000000..ac6b6d5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketLogDao.class new file mode 100644 index 0000000..9a0b1db Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketPayDao.class b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketPayDao.class new file mode 100644 index 0000000..4daf87b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ReceiveDifferenceTicketPayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ReceiveGoodsDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/ReceiveGoodsDetailDao.class new file mode 100644 index 0000000..fd804ac Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ReceiveGoodsDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ReceiveGoodsTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/ReceiveGoodsTicketDao.class new file mode 100644 index 0000000..c74134d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ReceiveGoodsTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/RechargeParameterDao.class b/food-server/target/classes/com/jwsaas/dao/food/RechargeParameterDao.class new file mode 100644 index 0000000..b8c7afb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/RechargeParameterDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/RoleDao.class b/food-server/target/classes/com/jwsaas/dao/food/RoleDao.class new file mode 100644 index 0000000..6a7d520 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/RoleDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SaleClearDao.class b/food-server/target/classes/com/jwsaas/dao/food/SaleClearDao.class new file mode 100644 index 0000000..113ad8c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SaleClearDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ServerDataVersionDao.class b/food-server/target/classes/com/jwsaas/dao/food/ServerDataVersionDao.class new file mode 100644 index 0000000..e1874c5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ServerDataVersionDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderDao.class b/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderDao.class new file mode 100644 index 0000000..9e593b1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderExtraDao.class b/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderExtraDao.class new file mode 100644 index 0000000..5e60d6c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderExtraDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderItemDao.class b/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderItemDao.class new file mode 100644 index 0000000..b147729 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ShopMeituanOrderItemDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SplitFoodAccountDao.class b/food-server/target/classes/com/jwsaas/dao/food/SplitFoodAccountDao.class new file mode 100644 index 0000000..5bd777f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SplitFoodAccountDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SplitPayLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/SplitPayLogDao.class new file mode 100644 index 0000000..111e8c7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SplitPayLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SplitPayResultDao.class b/food-server/target/classes/com/jwsaas/dao/food/SplitPayResultDao.class new file mode 100644 index 0000000..d31da84 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SplitPayResultDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SplitShopAccountDao.class b/food-server/target/classes/com/jwsaas/dao/food/SplitShopAccountDao.class new file mode 100644 index 0000000..cff0085 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SplitShopAccountDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SplitShopWithdrawalDao.class b/food-server/target/classes/com/jwsaas/dao/food/SplitShopWithdrawalDao.class new file mode 100644 index 0000000..8e87494 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SplitShopWithdrawalDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SplitStorePayDao.class b/food-server/target/classes/com/jwsaas/dao/food/SplitStorePayDao.class new file mode 100644 index 0000000..3175b53 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SplitStorePayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StorageDao.class b/food-server/target/classes/com/jwsaas/dao/food/StorageDao.class new file mode 100644 index 0000000..c1b3d4d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StorageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StorageTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/StorageTypeDao.class new file mode 100644 index 0000000..4d58908 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StorageTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreAccountDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountDao.class new file mode 100644 index 0000000..4f012c1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreAccountDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountDetailDao.class new file mode 100644 index 0000000..0f8875f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreAccountRechargeParameterDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountRechargeParameterDao.class new file mode 100644 index 0000000..2579c1e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountRechargeParameterDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreAccountRechargeRecordDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountRechargeRecordDao.class new file mode 100644 index 0000000..77b6f8b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreAccountRechargeRecordDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreAreaDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreAreaDao.class new file mode 100644 index 0000000..a65eaa1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreAreaDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketCheckDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketCheckDao.class new file mode 100644 index 0000000..0a95324 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketCheckDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketDao.class new file mode 100644 index 0000000..44f12cf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketDeliveryDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketDeliveryDao.class new file mode 100644 index 0000000..10c27ac Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketDeliveryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketInfoDao.class new file mode 100644 index 0000000..8ec6d66 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketTableDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketTableDao.class new file mode 100644 index 0000000..092ff63 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreBusinessTicketTableDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreCostManageDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreCostManageDao.class new file mode 100644 index 0000000..95774a2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreCostManageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreCostManageLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreCostManageLogDao.class new file mode 100644 index 0000000..be2db1d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreCostManageLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreCostRevenueDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreCostRevenueDao.class new file mode 100644 index 0000000..cdcd5a3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreCostRevenueDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreDao.class new file mode 100644 index 0000000..2ff4f60 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreDeliveryOrderDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreDeliveryOrderDao.class new file mode 100644 index 0000000..52dbea9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreDeliveryOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreDeliveryOrderItemDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreDeliveryOrderItemDao.class new file mode 100644 index 0000000..076bb8d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreDeliveryOrderItemDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreDepartmentDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreDepartmentDao.class new file mode 100644 index 0000000..3d975f8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreDepartmentDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreDispatchAccountDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreDispatchAccountDao.class new file mode 100644 index 0000000..43cf3f8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreDispatchAccountDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreDispatchAccountLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreDispatchAccountLogDao.class new file mode 100644 index 0000000..5e9c547 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreDispatchAccountLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreEnchashmentRecordDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreEnchashmentRecordDao.class new file mode 100644 index 0000000..8f57aca Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreEnchashmentRecordDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreEnchashmentRecordLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreEnchashmentRecordLogDao.class new file mode 100644 index 0000000..3fe939c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreEnchashmentRecordLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreFeeCutLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreFeeCutLogDao.class new file mode 100644 index 0000000..a36e01a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreFeeCutLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDao.class new file mode 100644 index 0000000..d88cedf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailDao.class new file mode 100644 index 0000000..649a851 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailPartDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailPartDao.class new file mode 100644 index 0000000..91b2299 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailPartDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailPayDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailPayDao.class new file mode 100644 index 0000000..ce93acc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreHandoverDetailPayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreLoginLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreLoginLogDao.class new file mode 100644 index 0000000..5623a92 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreLoginLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreOperationLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreOperationLogDao.class new file mode 100644 index 0000000..466f15a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreOperationLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductDao.class new file mode 100644 index 0000000..50ea9c8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductInfoDao.class new file mode 100644 index 0000000..9bda177 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductMakeDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductMakeDao.class new file mode 100644 index 0000000..bee0069 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreOrderProductMakeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StorePayDao.class b/food-server/target/classes/com/jwsaas/dao/food/StorePayDao.class new file mode 100644 index 0000000..e52e733 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StorePayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreProductDao.class new file mode 100644 index 0000000..b75adcb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreProductSaleStockDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreProductSaleStockDao.class new file mode 100644 index 0000000..67a9b77 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreProductSaleStockDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTemplateDao.class new file mode 100644 index 0000000..051bba1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTemplateDetailDao.class new file mode 100644 index 0000000..869434b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketDao.class new file mode 100644 index 0000000..dc4b95d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketDetailDao.class new file mode 100644 index 0000000..2718e53 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketLogDao.class new file mode 100644 index 0000000..c3fd890 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStockCheckTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStorageDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageDao.class new file mode 100644 index 0000000..814a0de Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketDao.class new file mode 100644 index 0000000..ff2ce56 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketDetailDao.class new file mode 100644 index 0000000..db2e68d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketLogDao.class new file mode 100644 index 0000000..eb07627 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageOutTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketDao.class new file mode 100644 index 0000000..3975295 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketDetailDao.class new file mode 100644 index 0000000..25ff774 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketLogDao.class new file mode 100644 index 0000000..735e4db Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreStorageTicketLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreTypeDao.class new file mode 100644 index 0000000..27e4564 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreWorkerDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreWorkerDao.class new file mode 100644 index 0000000..5fa5335 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreWorkerDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoreWorkerExtDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoreWorkerExtDao.class new file mode 100644 index 0000000..ddeb50f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoreWorkerExtDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoretableAreaDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoretableAreaDao.class new file mode 100644 index 0000000..cccb6dc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoretableAreaDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoretableDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoretableDao.class new file mode 100644 index 0000000..ea6e4c3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoretableDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/StoretableTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/StoretableTypeDao.class new file mode 100644 index 0000000..a18dd4e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/StoretableTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SupplierDao.class b/food-server/target/classes/com/jwsaas/dao/food/SupplierDao.class new file mode 100644 index 0000000..23d24ad Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SupplierDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/SupplierTypeDao.class b/food-server/target/classes/com/jwsaas/dao/food/SupplierTypeDao.class new file mode 100644 index 0000000..7211615 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/SupplierTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/TaskScheduleDao.class b/food-server/target/classes/com/jwsaas/dao/food/TaskScheduleDao.class new file mode 100644 index 0000000..ae93f0b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/TaskScheduleDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketDao.class new file mode 100644 index 0000000..edbe3e3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketMaterialDao.class b/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketMaterialDao.class new file mode 100644 index 0000000..07fac99 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketMaterialDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketStoreDao.class new file mode 100644 index 0000000..6fcff9d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/ThuselevelTicketStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/TicketPrintSettingDao.class b/food-server/target/classes/com/jwsaas/dao/food/TicketPrintSettingDao.class new file mode 100644 index 0000000..24c78a8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/TicketPrintSettingDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/UserDao.class b/food-server/target/classes/com/jwsaas/dao/food/UserDao.class new file mode 100644 index 0000000..ed89c64 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/UserDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VisitorAddressDao.class b/food-server/target/classes/com/jwsaas/dao/food/VisitorAddressDao.class new file mode 100644 index 0000000..c577583 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VisitorAddressDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VisitorDao.class b/food-server/target/classes/com/jwsaas/dao/food/VisitorDao.class new file mode 100644 index 0000000..43920a2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VisitorDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VisitorTagDao.class b/food-server/target/classes/com/jwsaas/dao/food/VisitorTagDao.class new file mode 100644 index 0000000..68b30c6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VisitorTagDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposAdPictureDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposAdPictureDao.class new file mode 100644 index 0000000..9f10210 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposAdPictureDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposCcbfzAccountDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposCcbfzAccountDao.class new file mode 100644 index 0000000..7eee55d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposCcbfzAccountDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposProductEvaluateDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposProductEvaluateDao.class new file mode 100644 index 0000000..f0c3f32 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposProductEvaluateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposProductEvaluateImageDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposProductEvaluateImageDao.class new file mode 100644 index 0000000..f407f7a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposProductEvaluateImageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposStoreBusinessTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposStoreBusinessTicketDao.class new file mode 100644 index 0000000..7362022 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposStoreBusinessTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposStoreBusinessTicketInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposStoreBusinessTicketInfoDao.class new file mode 100644 index 0000000..1ee1b87 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposStoreBusinessTicketInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductDao.class new file mode 100644 index 0000000..844480e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductInfoDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductInfoDao.class new file mode 100644 index 0000000..34d13d1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductMakeDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductMakeDao.class new file mode 100644 index 0000000..da13b76 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposStoreOrderProductMakeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposStorePayDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposStorePayDao.class new file mode 100644 index 0000000..8862482 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposStorePayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposUserDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposUserDao.class new file mode 100644 index 0000000..a2096a9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposUserDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/VposUserSeriesDao.class b/food-server/target/classes/com/jwsaas/dao/food/VposUserSeriesDao.class new file mode 100644 index 0000000..ece7b8a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/VposUserSeriesDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxAdPictureDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxAdPictureDao.class new file mode 100644 index 0000000..000c2b7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxAdPictureDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceGoodsDao.class new file mode 100644 index 0000000..131ee0a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceStoreDao.class new file mode 100644 index 0000000..f284631 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceTicketDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceTicketDao.class new file mode 100644 index 0000000..950a645 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxAdjustPriceTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxGoodsCategoryDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsCategoryDao.class new file mode 100644 index 0000000..4cd8df2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsCategoryDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsDao.class new file mode 100644 index 0000000..035f431 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxGoodsMakeDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsMakeDao.class new file mode 100644 index 0000000..ca812e5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsMakeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateDao.class new file mode 100644 index 0000000..8d5660f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateDetailDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateDetailDao.class new file mode 100644 index 0000000..6bb6326 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateStoreDao.class new file mode 100644 index 0000000..5fdbdef Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxGoodsTemplateStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxPaymentParameterDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxPaymentParameterDao.class new file mode 100644 index 0000000..e0d2699 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxPaymentParameterDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxQrcodeSettingDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxQrcodeSettingDao.class new file mode 100644 index 0000000..c7f5d40 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxQrcodeSettingDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderDao.class new file mode 100644 index 0000000..0f87e60 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemDao.class new file mode 100644 index 0000000..08b19fc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemMakeDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemMakeDao.class new file mode 100644 index 0000000..d30d4f9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemMakeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemPromoDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemPromoDao.class new file mode 100644 index 0000000..f58f5b4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderItemPromoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderLogDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderLogDao.class new file mode 100644 index 0000000..072e35c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxSalesOrderLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxSalesPaymentDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxSalesPaymentDao.class new file mode 100644 index 0000000..2cd1b55 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxSalesPaymentDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxStoreDao.class new file mode 100644 index 0000000..15bacea Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxStoreGoodsDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxStoreGoodsDao.class new file mode 100644 index 0000000..deb5a1b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxStoreGoodsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxdcDistributionAddressDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxdcDistributionAddressDao.class new file mode 100644 index 0000000..b0fc814 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxdcDistributionAddressDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/WxdcDistributionDao.class b/food-server/target/classes/com/jwsaas/dao/food/WxdcDistributionDao.class new file mode 100644 index 0000000..a87cf61 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/WxdcDistributionDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/YunposSetDao.class b/food-server/target/classes/com/jwsaas/dao/food/YunposSetDao.class new file mode 100644 index 0000000..9486d26 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/YunposSetDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/YunposSetStoreDao.class b/food-server/target/classes/com/jwsaas/dao/food/YunposSetStoreDao.class new file mode 100644 index 0000000..acd4175 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/YunposSetStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceProductDaoImpl.class new file mode 100644 index 0000000..e334c17 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceStoreDaoImpl.class new file mode 100644 index 0000000..2f68120 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceTicketDaoImpl.class new file mode 100644 index 0000000..b16ada1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AdjustPriceTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AdvertCaptionDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AdvertCaptionDaoImpl.class new file mode 100644 index 0000000..83eb5eb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AdvertCaptionDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AdvertPictureDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AdvertPictureDaoImpl.class new file mode 100644 index 0000000..85bb65a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AdvertPictureDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AgentDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AgentDaoImpl.class new file mode 100644 index 0000000..6a6331e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AgentDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AgentStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AgentStoreDaoImpl.class new file mode 100644 index 0000000..ca3d336 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AgentStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsDetailDaoImpl.class new file mode 100644 index 0000000..530f627 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateDaoImpl.class new file mode 100644 index 0000000..3a960a7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateDetailDaoImpl.class new file mode 100644 index 0000000..98a4fc3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateStoreDaoImpl.class new file mode 100644 index 0000000..043211b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTemplateStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketDaoImpl.class new file mode 100644 index 0000000..ddea4f8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketLogDaoImpl.class new file mode 100644 index 0000000..797631b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketPayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketPayDaoImpl.class new file mode 100644 index 0000000..1486d6b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/AskGoodsTicketPayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduFoodDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduFoodDaoImpl.class new file mode 100644 index 0000000..2d75126 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduFoodDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduOrderDaoImpl.class new file mode 100644 index 0000000..3b40f39 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduOrderProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduOrderProductDaoImpl.class new file mode 100644 index 0000000..1a0e40d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/BaiduOrderProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/BrandDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/BrandDaoImpl.class new file mode 100644 index 0000000..947011e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/BrandDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/BusinessPlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/BusinessPlanDaoImpl.class new file mode 100644 index 0000000..3e1b787 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/BusinessPlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/BusinessPlanDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/BusinessPlanDetailDaoImpl.class new file mode 100644 index 0000000..b6b73b5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/BusinessPlanDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CandaoStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CandaoStoreDaoImpl.class new file mode 100644 index 0000000..51492cf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CandaoStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CategoryDaoImpl.class new file mode 100644 index 0000000..5130c4c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTemplateDaoImpl.class new file mode 100644 index 0000000..c7c9ca2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTemplateDetailDaoImpl.class new file mode 100644 index 0000000..57c2fa6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketDaoImpl.class new file mode 100644 index 0000000..27edded Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketDetailDaoImpl.class new file mode 100644 index 0000000..48fc9cd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketLogDaoImpl.class new file mode 100644 index 0000000..d41f356 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CheckTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostFeeItemDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostFeeItemDaoImpl.class new file mode 100644 index 0000000..c9d803d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostFeeItemDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostFeeTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostFeeTypeDaoImpl.class new file mode 100644 index 0000000..dbfdc8c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostFeeTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketDaoImpl.class new file mode 100644 index 0000000..bd9bb7a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketPayTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketPayTypeDaoImpl.class new file mode 100644 index 0000000..9bff5e0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketPayTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductChangeDaoImpl.class new file mode 100644 index 0000000..f81098e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductFixedChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductFixedChangeDaoImpl.class new file mode 100644 index 0000000..5ca0488 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductFixedChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductMoreChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductMoreChangeDaoImpl.class new file mode 100644 index 0000000..2c75342 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductMoreChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductOtherChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductOtherChangeDaoImpl.class new file mode 100644 index 0000000..897106f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductOtherChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductTypeDaoImpl.class new file mode 100644 index 0000000..babc243 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketProductTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateDaoImpl.class new file mode 100644 index 0000000..087533c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductChangeDaoImpl.class new file mode 100644 index 0000000..4dc7bbe Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductFixedChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductFixedChangeDaoImpl.class new file mode 100644 index 0000000..4f7ddc6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductFixedChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductMoreChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductMoreChangeDaoImpl.class new file mode 100644 index 0000000..6dab328 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductMoreChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductOtherChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductOtherChangeDaoImpl.class new file mode 100644 index 0000000..3ac3677 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CostTicketTemplateProductOtherChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CouponCodeDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponCodeDetailDaoImpl.class new file mode 100644 index 0000000..7d3914a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponCodeDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CouponDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponDaoImpl.class new file mode 100644 index 0000000..3e7ad91 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CouponStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponStoreDaoImpl.class new file mode 100644 index 0000000..65d13c0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketDaoImpl.class new file mode 100644 index 0000000..fb29366 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketProductDaoImpl.class new file mode 100644 index 0000000..78f9575 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketStoreDaoImpl.class new file mode 100644 index 0000000..a0d754e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/CouponTicketStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DeliverDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DeliverDaoImpl.class new file mode 100644 index 0000000..1ff88f5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DeliverDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DfsFileDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DfsFileDaoImpl.class new file mode 100644 index 0000000..aa1fd72 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DfsFileDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchSettlePlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchSettlePlanDaoImpl.class new file mode 100644 index 0000000..8ec9a60 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchSettlePlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchSettlePlanPayModeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchSettlePlanPayModeDaoImpl.class new file mode 100644 index 0000000..d24dc7f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchSettlePlanPayModeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketDaoImpl.class new file mode 100644 index 0000000..b8c87f4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketDetailDaoImpl.class new file mode 100644 index 0000000..fec7282 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketLogDaoImpl.class new file mode 100644 index 0000000..2a9f2d7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketDaoImpl.class new file mode 100644 index 0000000..d1dacb5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketMaterialDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketMaterialDaoImpl.class new file mode 100644 index 0000000..59ebac3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketMaterialDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketStoreDaoImpl.class new file mode 100644 index 0000000..5dda4e5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/DispatchpriceTicketStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeCategoryFoodDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeCategoryFoodDaoImpl.class new file mode 100644 index 0000000..d910f45 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeCategoryFoodDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeFoodCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeFoodCategoryDaoImpl.class new file mode 100644 index 0000000..f192757 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeFoodCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeOrderDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeOrderDetailDaoImpl.class new file mode 100644 index 0000000..4580059 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeOrderDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeOrderDetailGroupDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeOrderDetailGroupDaoImpl.class new file mode 100644 index 0000000..55c8d2a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ElemeOrderDetailGroupDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ErpPosSetDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ErpPosSetDaoImpl.class new file mode 100644 index 0000000..d168780 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ErpPosSetDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/FeeItemDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/FeeItemDaoImpl.class new file mode 100644 index 0000000..35ef042 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/FeeItemDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/KdsPlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/KdsPlanDaoImpl.class new file mode 100644 index 0000000..d9e9903 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/KdsPlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/KitPlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/KitPlanDaoImpl.class new file mode 100644 index 0000000..328c127 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/KitPlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MakeBurdenDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MakeBurdenDaoImpl.class new file mode 100644 index 0000000..65c4fd2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MakeBurdenDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MakeDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MakeDetailDaoImpl.class new file mode 100644 index 0000000..5d2a08e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MakeDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MakeTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MakeTypeDaoImpl.class new file mode 100644 index 0000000..f6e8cc1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MakeTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanFoodCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanFoodCategoryDaoImpl.class new file mode 100644 index 0000000..47fc9ed Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanFoodCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanFoodDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanFoodDaoImpl.class new file mode 100644 index 0000000..27a058c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanFoodDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderDaoImpl.class new file mode 100644 index 0000000..ad85acb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderExtraDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderExtraDaoImpl.class new file mode 100644 index 0000000..a86c332 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderExtraDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderItemDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderItemDaoImpl.class new file mode 100644 index 0000000..fb4b25c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/MeituanOrderItemDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketDaoImpl.class new file mode 100644 index 0000000..5c87770 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketDetailDaoImpl.class new file mode 100644 index 0000000..7da8909 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketLogDaoImpl.class new file mode 100644 index 0000000..ed6a8bf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageOutTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketDaoImpl.class new file mode 100644 index 0000000..c49e48b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketDetailDaoImpl.class new file mode 100644 index 0000000..6bf8473 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketLogDaoImpl.class new file mode 100644 index 0000000..c0c7588 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/OtherStorageTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PayModeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PayModeDaoImpl.class new file mode 100644 index 0000000..e2935bf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PayModeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PayModeStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PayModeStoreDaoImpl.class new file mode 100644 index 0000000..6c0a3dd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PayModeStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PayTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PayTypeDaoImpl.class new file mode 100644 index 0000000..5ef2dfd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PayTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PaymentParameterDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PaymentParameterDaoImpl.class new file mode 100644 index 0000000..7832a06 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PaymentParameterDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PermissionsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PermissionsDaoImpl.class new file mode 100644 index 0000000..0cb4aa9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PermissionsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosInfoDaoImpl.class new file mode 100644 index 0000000..c592945 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosPollcodeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosPollcodeDaoImpl.class new file mode 100644 index 0000000..dbe7878 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosPollcodeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosRoleDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosRoleDaoImpl.class new file mode 100644 index 0000000..7f6b5cb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosRoleDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanConfigDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanConfigDaoImpl.class new file mode 100644 index 0000000..8a3090c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanConfigDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanDaoImpl.class new file mode 100644 index 0000000..78279e5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanModuleDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanModuleDaoImpl.class new file mode 100644 index 0000000..050a26f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanModuleDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanResourcesDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanResourcesDaoImpl.class new file mode 100644 index 0000000..d125d9b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanResourcesDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanShortcutDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanShortcutDaoImpl.class new file mode 100644 index 0000000..3a40b0e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PosSetPlanShortcutDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PrintImageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PrintImageDaoImpl.class new file mode 100644 index 0000000..2bfc3c1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PrintImageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDaoImpl.class new file mode 100644 index 0000000..cdda5f6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDifferDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDifferDaoImpl.class new file mode 100644 index 0000000..c9b66d1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNegativeStockDifferDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNumberDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNumberDaoImpl.class new file mode 100644 index 0000000..f3426ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchNumberDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchStockChangeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchStockChangeDaoImpl.class new file mode 100644 index 0000000..0bf0582 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchStockChangeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchStockDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchStockDaoImpl.class new file mode 100644 index 0000000..0b2bc86 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBatchStockDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBurdenDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBurdenDaoImpl.class new file mode 100644 index 0000000..6a2e17e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductBurdenDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductDaoImpl.class new file mode 100644 index 0000000..178b362 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductImageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductImageDaoImpl.class new file mode 100644 index 0000000..ef6be61 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductImageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductKdsPlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductKdsPlanDaoImpl.class new file mode 100644 index 0000000..957323d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductKdsPlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductKitPlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductKitPlanDaoImpl.class new file mode 100644 index 0000000..3376d9b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductKitPlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeDaoImpl.class new file mode 100644 index 0000000..fd938f1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeTemplateDaoImpl.class new file mode 100644 index 0000000..58e2815 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeTemplateDetailDaoImpl.class new file mode 100644 index 0000000..bb11722 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductMakeTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductRatioDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductRatioDaoImpl.class new file mode 100644 index 0000000..2480f8e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductRatioDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSpecDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSpecDaoImpl.class new file mode 100644 index 0000000..c34f692 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSpecDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStockDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStockDaoImpl.class new file mode 100644 index 0000000..7ee9333 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStockDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStockLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStockLogDaoImpl.class new file mode 100644 index 0000000..4bcad75 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStockLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreOutCollectDayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreOutCollectDayDaoImpl.class new file mode 100644 index 0000000..5a1396d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreOutCollectDayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreStockDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreStockDaoImpl.class new file mode 100644 index 0000000..7182c8b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreStockDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreStockLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreStockLogDaoImpl.class new file mode 100644 index 0000000..21c657f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductStoreStockLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSuitDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSuitDaoImpl.class new file mode 100644 index 0000000..15ef0b4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSuitDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSuitDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSuitDetailDaoImpl.class new file mode 100644 index 0000000..05ae45f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductSuitDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTemplateDaoImpl.class new file mode 100644 index 0000000..a7d0752 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTemplateDetailDaoImpl.class new file mode 100644 index 0000000..89d300d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTypeDaoImpl.class new file mode 100644 index 0000000..eb9ed5f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTypeLabelInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTypeLabelInfoDaoImpl.class new file mode 100644 index 0000000..7ad1c7a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductTypeLabelInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProductUnitDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductUnitDaoImpl.class new file mode 100644 index 0000000..ff84909 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProductUnitDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdPictureDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdPictureDaoImpl.class new file mode 100644 index 0000000..dc131ae Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdPictureDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceProductDaoImpl.class new file mode 100644 index 0000000..dbd086d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceStoreDaoImpl.class new file mode 100644 index 0000000..dca661b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceTicketDaoImpl.class new file mode 100644 index 0000000..98634b0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramAdjustPriceTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramDeliverAddressDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramDeliverAddressDaoImpl.class new file mode 100644 index 0000000..c6b73e3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramDeliverAddressDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramEvaluateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramEvaluateDaoImpl.class new file mode 100644 index 0000000..856d310 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramEvaluateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramEvaluateImageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramEvaluateImageDaoImpl.class new file mode 100644 index 0000000..798448c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramEvaluateImageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramIndexPictureDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramIndexPictureDaoImpl.class new file mode 100644 index 0000000..1fa8aaf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramIndexPictureDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPaymentParameterDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPaymentParameterDaoImpl.class new file mode 100644 index 0000000..c39fcad Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPaymentParameterDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductCategoryDaoImpl.class new file mode 100644 index 0000000..ef1f24e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductDaoImpl.class new file mode 100644 index 0000000..862a80b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductMakeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductMakeDaoImpl.class new file mode 100644 index 0000000..6a351c0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductMakeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateDaoImpl.class new file mode 100644 index 0000000..a5f31b8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateDetailDaoImpl.class new file mode 100644 index 0000000..60dea2c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateStoreDaoImpl.class new file mode 100644 index 0000000..6ca0b97 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramProductTemplateStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListGoodsDaoImpl.class new file mode 100644 index 0000000..8f130a0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreAreaDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreAreaDaoImpl.class new file mode 100644 index 0000000..c34600e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreAreaDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreDaoImpl.class new file mode 100644 index 0000000..27a60fa Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionBlackListStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionCategoryDaoImpl.class new file mode 100644 index 0000000..7d3f3de Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionGoodsDaoImpl.class new file mode 100644 index 0000000..a115def Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionSchemeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionSchemeDaoImpl.class new file mode 100644 index 0000000..773d397 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionSchemeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionStoreAreaDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionStoreAreaDaoImpl.class new file mode 100644 index 0000000..5ce284b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionStoreAreaDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionStoreDaoImpl.class new file mode 100644 index 0000000..ed5fa08 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionTaskDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionTaskDaoImpl.class new file mode 100644 index 0000000..a21879c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionTaskDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionTicketDaoImpl.class new file mode 100644 index 0000000..67f69af Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramPromotionTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramSettingDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramSettingDaoImpl.class new file mode 100644 index 0000000..81b42ea Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramSettingDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDaoImpl.class new file mode 100644 index 0000000..9172e79 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDeliverDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDeliverDaoImpl.class new file mode 100644 index 0000000..6ebcf97 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketDeliverDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketInfoDaoImpl.class new file mode 100644 index 0000000..49ce2e8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreBusinessTicketInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreDaoImpl.class new file mode 100644 index 0000000..73e2fff Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductDaoImpl.class new file mode 100644 index 0000000..19fdb77 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductInfoDaoImpl.class new file mode 100644 index 0000000..d1ee522 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductMakeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductMakeDaoImpl.class new file mode 100644 index 0000000..6d13cc2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreOrderProductMakeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStorePayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStorePayDaoImpl.class new file mode 100644 index 0000000..e610b59 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStorePayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreProductDaoImpl.class new file mode 100644 index 0000000..9fc9202 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ProgramStoreProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListGoodsDaoImpl.class new file mode 100644 index 0000000..b3970c5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListStoreAreaDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListStoreAreaDaoImpl.class new file mode 100644 index 0000000..115f8b9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListStoreAreaDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListStoreDaoImpl.class new file mode 100644 index 0000000..1cd3634 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionBlackListStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionCategoryDaoImpl.class new file mode 100644 index 0000000..77c546f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionGoodsDaoImpl.class new file mode 100644 index 0000000..e8606c3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionScheduleDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionScheduleDaoImpl.class new file mode 100644 index 0000000..dc45a11 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionScheduleDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionSchemeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionSchemeDaoImpl.class new file mode 100644 index 0000000..225cb5e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionSchemeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionStoreAreaDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionStoreAreaDaoImpl.class new file mode 100644 index 0000000..d7fe0de Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionStoreAreaDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionStoreDaoImpl.class new file mode 100644 index 0000000..c198c95 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionTaskDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionTaskDaoImpl.class new file mode 100644 index 0000000..e88d182 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionTaskDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionTicketDaoImpl.class new file mode 100644 index 0000000..7fc3c7c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PromotionTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketDaoImpl.class new file mode 100644 index 0000000..99e8641 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketDetailDaoImpl.class new file mode 100644 index 0000000..70daa4a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketLogDaoImpl.class new file mode 100644 index 0000000..cbab02e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseStorageTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTemplateDaoImpl.class new file mode 100644 index 0000000..c499912 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTemplateDetailDaoImpl.class new file mode 100644 index 0000000..a801012 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketDaoImpl.class new file mode 100644 index 0000000..bc18f79 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketDetailDaoImpl.class new file mode 100644 index 0000000..69aa8a5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketLogDaoImpl.class new file mode 100644 index 0000000..2335d4e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchaseTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceDaoImpl.class new file mode 100644 index 0000000..edbca40 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceTicketDaoImpl.class new file mode 100644 index 0000000..e00d911 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceTicketMaterialDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceTicketMaterialDaoImpl.class new file mode 100644 index 0000000..bd3a990 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/PurchasepriceTicketMaterialDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceGoodsDaoImpl.class new file mode 100644 index 0000000..3822604 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceStoreDaoImpl.class new file mode 100644 index 0000000..a0aa6eb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceTicketDaoImpl.class new file mode 100644 index 0000000..685db2b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAdjustPriceTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAttributeCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAttributeCategoryDaoImpl.class new file mode 100644 index 0000000..c23273a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAttributeCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAttributeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAttributeDaoImpl.class new file mode 100644 index 0000000..8479765 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiAttributeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiChargeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiChargeDaoImpl.class new file mode 100644 index 0000000..3cbb2f7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiChargeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderDaoImpl.class new file mode 100644 index 0000000..62682a9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderItemDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderItemDaoImpl.class new file mode 100644 index 0000000..6823c36 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderItemDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderPayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderPayDaoImpl.class new file mode 100644 index 0000000..cc230a6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiOrderPayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductAttributeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductAttributeDaoImpl.class new file mode 100644 index 0000000..93c317b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductAttributeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductCategoryDaoImpl.class new file mode 100644 index 0000000..844d580 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductChargeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductChargeDaoImpl.class new file mode 100644 index 0000000..0a45729 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductChargeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductDaoImpl.class new file mode 100644 index 0000000..6771d68 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductSpecDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductSpecDaoImpl.class new file mode 100644 index 0000000..766f92e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductSpecDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateDaoImpl.class new file mode 100644 index 0000000..9274ed3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateDetailDaoImpl.class new file mode 100644 index 0000000..91f142f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateStoreDaoImpl.class new file mode 100644 index 0000000..ef279e3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiProductTemplateStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreDaoImpl.class new file mode 100644 index 0000000..71e6aa7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreLableDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreLableDaoImpl.class new file mode 100644 index 0000000..235c4dd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreLableDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreProductDaoImpl.class new file mode 100644 index 0000000..af31d63 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiStoreProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiSuitDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiSuitDetailDaoImpl.class new file mode 100644 index 0000000..44ffc88 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/QimaiSuitDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceDetailDaoImpl.class new file mode 100644 index 0000000..06f452a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketDaoImpl.class new file mode 100644 index 0000000..5f5413f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketLogDaoImpl.class new file mode 100644 index 0000000..c29b7ce Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketPayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketPayDaoImpl.class new file mode 100644 index 0000000..09afbf1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveDifferenceTicketPayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveGoodsDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveGoodsDetailDaoImpl.class new file mode 100644 index 0000000..e9060ca Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveGoodsDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveGoodsTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveGoodsTicketDaoImpl.class new file mode 100644 index 0000000..15ae739 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ReceiveGoodsTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/RechargeParameterDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/RechargeParameterDaoImpl.class new file mode 100644 index 0000000..9ca79ee Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/RechargeParameterDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/RoleDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/RoleDaoImpl.class new file mode 100644 index 0000000..5708af7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/RoleDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SaleClearDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SaleClearDaoImpl.class new file mode 100644 index 0000000..1b88fa8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SaleClearDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ServerDataVersionDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ServerDataVersionDaoImpl.class new file mode 100644 index 0000000..dbeedda Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ServerDataVersionDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderDaoImpl.class new file mode 100644 index 0000000..c4a4587 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderExtraDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderExtraDaoImpl.class new file mode 100644 index 0000000..b3c9b20 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderExtraDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderItemDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderItemDaoImpl.class new file mode 100644 index 0000000..46de9e4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ShopMeituanOrderItemDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SplitFoodAccountDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitFoodAccountDaoImpl.class new file mode 100644 index 0000000..91141bb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitFoodAccountDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SplitPayLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitPayLogDaoImpl.class new file mode 100644 index 0000000..270214e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitPayLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SplitPayResultDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitPayResultDaoImpl.class new file mode 100644 index 0000000..e55701c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitPayResultDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SplitShopAccountDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitShopAccountDaoImpl.class new file mode 100644 index 0000000..b709bec Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitShopAccountDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SplitShopWithdrawalDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitShopWithdrawalDaoImpl.class new file mode 100644 index 0000000..f4663ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitShopWithdrawalDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SplitStorePayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitStorePayDaoImpl.class new file mode 100644 index 0000000..9ea805a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SplitStorePayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StorageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StorageDaoImpl.class new file mode 100644 index 0000000..0353282 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StorageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StorageTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StorageTypeDaoImpl.class new file mode 100644 index 0000000..324bc4a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StorageTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountDaoImpl.class new file mode 100644 index 0000000..1394432 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountDetailDaoImpl.class new file mode 100644 index 0000000..292304e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountRechargeParameterDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountRechargeParameterDaoImpl.class new file mode 100644 index 0000000..b291314 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountRechargeParameterDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountRechargeRecordDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountRechargeRecordDaoImpl.class new file mode 100644 index 0000000..06a42af Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAccountRechargeRecordDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAreaDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAreaDaoImpl.class new file mode 100644 index 0000000..4f29409 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreAreaDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketCheckDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketCheckDaoImpl.class new file mode 100644 index 0000000..c723be7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketCheckDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketDaoImpl.class new file mode 100644 index 0000000..b2e3124 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketDeliveryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketDeliveryDaoImpl.class new file mode 100644 index 0000000..26b7ce7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketDeliveryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketInfoDaoImpl.class new file mode 100644 index 0000000..16c5827 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketTableDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketTableDaoImpl.class new file mode 100644 index 0000000..2feaeda Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreBusinessTicketTableDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostManageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostManageDaoImpl.class new file mode 100644 index 0000000..f0fe7e3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostManageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostManageLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostManageLogDaoImpl.class new file mode 100644 index 0000000..e1a9abb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostManageLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostRevenueDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostRevenueDaoImpl.class new file mode 100644 index 0000000..50f1272 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreCostRevenueDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDaoImpl.class new file mode 100644 index 0000000..44027ed Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDeliveryOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDeliveryOrderDaoImpl.class new file mode 100644 index 0000000..7333686 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDeliveryOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDeliveryOrderItemDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDeliveryOrderItemDaoImpl.class new file mode 100644 index 0000000..9dfd125 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDeliveryOrderItemDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDepartmentDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDepartmentDaoImpl.class new file mode 100644 index 0000000..8aaddb5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDepartmentDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDispatchAccountDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDispatchAccountDaoImpl.class new file mode 100644 index 0000000..670861d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDispatchAccountDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDispatchAccountLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDispatchAccountLogDaoImpl.class new file mode 100644 index 0000000..34509de Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreDispatchAccountLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreEnchashmentRecordDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreEnchashmentRecordDaoImpl.class new file mode 100644 index 0000000..ff6ceae Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreEnchashmentRecordDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreEnchashmentRecordLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreEnchashmentRecordLogDaoImpl.class new file mode 100644 index 0000000..b401ad4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreEnchashmentRecordLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreFeeCutLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreFeeCutLogDaoImpl.class new file mode 100644 index 0000000..3443db0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreFeeCutLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDaoImpl.class new file mode 100644 index 0000000..4240497 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailDaoImpl.class new file mode 100644 index 0000000..22529f8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailPartDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailPartDaoImpl.class new file mode 100644 index 0000000..e3e0348 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailPartDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailPayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailPayDaoImpl.class new file mode 100644 index 0000000..3c6a751 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreHandoverDetailPayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreLoginLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreLoginLogDaoImpl.class new file mode 100644 index 0000000..6e58879 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreLoginLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOperationLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOperationLogDaoImpl.class new file mode 100644 index 0000000..6668cfa Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOperationLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductDaoImpl.class new file mode 100644 index 0000000..c7e182e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductInfoDaoImpl.class new file mode 100644 index 0000000..48e5276 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductMakeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductMakeDaoImpl.class new file mode 100644 index 0000000..1494008 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreOrderProductMakeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StorePayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StorePayDaoImpl.class new file mode 100644 index 0000000..e9a1714 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StorePayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreProductDaoImpl.class new file mode 100644 index 0000000..d8e9c0d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreProductSaleStockDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreProductSaleStockDaoImpl.class new file mode 100644 index 0000000..b380413 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreProductSaleStockDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDaoImpl.class new file mode 100644 index 0000000..cf30c9c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDetailDaoImpl.class new file mode 100644 index 0000000..18502ea Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketDaoImpl.class new file mode 100644 index 0000000..b7ee4c3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketDetailDaoImpl.class new file mode 100644 index 0000000..301b115 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketLogDaoImpl.class new file mode 100644 index 0000000..b411d33 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStockCheckTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageDaoImpl.class new file mode 100644 index 0000000..29ab59a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketDaoImpl.class new file mode 100644 index 0000000..3a50d94 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketDetailDaoImpl.class new file mode 100644 index 0000000..735f094 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketLogDaoImpl.class new file mode 100644 index 0000000..c9b7b34 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageOutTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketDaoImpl.class new file mode 100644 index 0000000..bd8d986 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketDetailDaoImpl.class new file mode 100644 index 0000000..dd95fd1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketLogDaoImpl.class new file mode 100644 index 0000000..aa375aa Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreStorageTicketLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreTypeDaoImpl.class new file mode 100644 index 0000000..0b7a5bc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreWorkerDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreWorkerDaoImpl.class new file mode 100644 index 0000000..cce3d19 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreWorkerDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoreWorkerExtDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreWorkerExtDaoImpl.class new file mode 100644 index 0000000..e109628 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoreWorkerExtDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableAreaDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableAreaDaoImpl.class new file mode 100644 index 0000000..ded4f58 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableAreaDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableDaoImpl.class new file mode 100644 index 0000000..1e1d5cf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableTypeDaoImpl.class new file mode 100644 index 0000000..5d3434d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/StoretableTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SupplierDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SupplierDaoImpl.class new file mode 100644 index 0000000..d13264e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SupplierDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/SupplierTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/SupplierTypeDaoImpl.class new file mode 100644 index 0000000..f4b1e91 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/SupplierTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/TaskScheduleDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/TaskScheduleDaoImpl.class new file mode 100644 index 0000000..ccdd5e7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/TaskScheduleDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketDaoImpl.class new file mode 100644 index 0000000..b7ac65f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketMaterialDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketMaterialDaoImpl.class new file mode 100644 index 0000000..b2d4689 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketMaterialDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketStoreDaoImpl.class new file mode 100644 index 0000000..e396d46 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/ThuselevelTicketStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/TicketPrintSettingDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/TicketPrintSettingDaoImpl.class new file mode 100644 index 0000000..41e6803 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/TicketPrintSettingDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/UserDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/UserDaoImpl.class new file mode 100644 index 0000000..a990210 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/UserDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorAddressDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorAddressDaoImpl.class new file mode 100644 index 0000000..806143d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorAddressDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorDaoImpl.class new file mode 100644 index 0000000..7426e9a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorTagDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorTagDaoImpl.class new file mode 100644 index 0000000..e210b7b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VisitorTagDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposAdPictureDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposAdPictureDaoImpl.class new file mode 100644 index 0000000..60cf099 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposAdPictureDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposCcbfzAccountDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposCcbfzAccountDaoImpl.class new file mode 100644 index 0000000..1eb99dc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposCcbfzAccountDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposProductEvaluateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposProductEvaluateDaoImpl.class new file mode 100644 index 0000000..84b46b4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposProductEvaluateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposProductEvaluateImageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposProductEvaluateImageDaoImpl.class new file mode 100644 index 0000000..64dddfe Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposProductEvaluateImageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreBusinessTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreBusinessTicketDaoImpl.class new file mode 100644 index 0000000..09b99a2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreBusinessTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreBusinessTicketInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreBusinessTicketInfoDaoImpl.class new file mode 100644 index 0000000..7dbd785 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreBusinessTicketInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductDaoImpl.class new file mode 100644 index 0000000..799b5f2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductInfoDaoImpl.class new file mode 100644 index 0000000..1231f29 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductMakeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductMakeDaoImpl.class new file mode 100644 index 0000000..afc9ebb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStoreOrderProductMakeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposStorePayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStorePayDaoImpl.class new file mode 100644 index 0000000..e61aeb1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposStorePayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposUserDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposUserDaoImpl.class new file mode 100644 index 0000000..f64b902 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposUserDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/VposUserSeriesDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/VposUserSeriesDaoImpl.class new file mode 100644 index 0000000..7aae466 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/VposUserSeriesDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdPictureDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdPictureDaoImpl.class new file mode 100644 index 0000000..8ffc957 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdPictureDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceGoodsDaoImpl.class new file mode 100644 index 0000000..c656006 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceStoreDaoImpl.class new file mode 100644 index 0000000..4a5ee34 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceTicketDaoImpl.class new file mode 100644 index 0000000..7198925 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxAdjustPriceTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsCategoryDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsCategoryDaoImpl.class new file mode 100644 index 0000000..0fdbd48 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsCategoryDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsDaoImpl.class new file mode 100644 index 0000000..534cefa Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsMakeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsMakeDaoImpl.class new file mode 100644 index 0000000..637bdc3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsMakeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateDaoImpl.class new file mode 100644 index 0000000..dbe3e51 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateDetailDaoImpl.class new file mode 100644 index 0000000..29283be Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateStoreDaoImpl.class new file mode 100644 index 0000000..09e1fd4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxGoodsTemplateStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxPaymentParameterDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxPaymentParameterDaoImpl.class new file mode 100644 index 0000000..8148cdd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxPaymentParameterDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxQrcodeSettingDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxQrcodeSettingDaoImpl.class new file mode 100644 index 0000000..c88fa5e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxQrcodeSettingDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderDaoImpl.class new file mode 100644 index 0000000..048cca1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemDaoImpl.class new file mode 100644 index 0000000..19b27b6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemMakeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemMakeDaoImpl.class new file mode 100644 index 0000000..58ef26c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemMakeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemPromoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemPromoDaoImpl.class new file mode 100644 index 0000000..fc42c21 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderItemPromoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderLogDaoImpl.class new file mode 100644 index 0000000..f2a6a7d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesOrderLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesPaymentDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesPaymentDaoImpl.class new file mode 100644 index 0000000..09bd427 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxSalesPaymentDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxStoreDaoImpl.class new file mode 100644 index 0000000..b512781 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxStoreGoodsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxStoreGoodsDaoImpl.class new file mode 100644 index 0000000..d07ed70 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxStoreGoodsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxdcDistributionAddressDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxdcDistributionAddressDaoImpl.class new file mode 100644 index 0000000..cf97281 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxdcDistributionAddressDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/WxdcDistributionDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/WxdcDistributionDaoImpl.class new file mode 100644 index 0000000..4d4f9be Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/WxdcDistributionDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/YunposSetDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/YunposSetDaoImpl.class new file mode 100644 index 0000000..418e10c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/YunposSetDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/food/impl/YunposSetStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/food/impl/YunposSetStoreDaoImpl.class new file mode 100644 index 0000000..2981c64 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/food/impl/YunposSetStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/impl/BaseDaoImpl$1.class b/food-server/target/classes/com/jwsaas/dao/impl/BaseDaoImpl$1.class new file mode 100644 index 0000000..991c60d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/impl/BaseDaoImpl$1.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/impl/BaseDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/impl/BaseDaoImpl.class new file mode 100644 index 0000000..916e36c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/impl/BaseDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/impl/TenantDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/impl/TenantDaoImpl.class new file mode 100644 index 0000000..d6fe2fc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/impl/TenantDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AgentDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AgentDao.class new file mode 100644 index 0000000..873aa77 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AgentDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AgentSubFuyouTicketDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AgentSubFuyouTicketDao.class new file mode 100644 index 0000000..728ab2d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AgentSubFuyouTicketDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AgentSubFuyouTicketImageDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AgentSubFuyouTicketImageDao.class new file mode 100644 index 0000000..0536a19 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AgentSubFuyouTicketImageDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppBaiduBranchDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppBaiduBranchDao.class new file mode 100644 index 0000000..09ae16f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppBaiduBranchDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppGuopanStoreInfoDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppGuopanStoreInfoDao.class new file mode 100644 index 0000000..23c7232 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppGuopanStoreInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppInfoDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppInfoDao.class new file mode 100644 index 0000000..e3b678d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppQimaiSetStoreDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppQimaiSetStoreDao.class new file mode 100644 index 0000000..4363cc8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppQimaiSetStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppShopmeituanSetDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppShopmeituanSetDao.class new file mode 100644 index 0000000..d7dff1a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppShopmeituanSetDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppShopmeituanSetStoreDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppShopmeituanSetStoreDao.class new file mode 100644 index 0000000..139f809 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppShopmeituanSetStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppVersionDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppVersionDao.class new file mode 100644 index 0000000..992e3bb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppVersionDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppWhiteDetailDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppWhiteDetailDao.class new file mode 100644 index 0000000..227fd35 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppWhiteDetailDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/AppWhitePlanDao.class b/food-server/target/classes/com/jwsaas/dao/ops/AppWhitePlanDao.class new file mode 100644 index 0000000..0c0e932 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/AppWhitePlanDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/BankCodeDao.class b/food-server/target/classes/com/jwsaas/dao/ops/BankCodeDao.class new file mode 100644 index 0000000..302ce48 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/BankCodeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/CardReaderInfoDao.class b/food-server/target/classes/com/jwsaas/dao/ops/CardReaderInfoDao.class new file mode 100644 index 0000000..bd23d6c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/CardReaderInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/CityCodeDao.class b/food-server/target/classes/com/jwsaas/dao/ops/CityCodeDao.class new file mode 100644 index 0000000..ac65f74 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/CityCodeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/CityDao.class b/food-server/target/classes/com/jwsaas/dao/ops/CityDao.class new file mode 100644 index 0000000..a400ed1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/CityDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/ElemeAuthorizeInfoDao.class b/food-server/target/classes/com/jwsaas/dao/ops/ElemeAuthorizeInfoDao.class new file mode 100644 index 0000000..0a00877 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/ElemeAuthorizeInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/ErrorInfoDao.class b/food-server/target/classes/com/jwsaas/dao/ops/ErrorInfoDao.class new file mode 100644 index 0000000..abe846f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/ErrorInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/MeituanBranchDao.class b/food-server/target/classes/com/jwsaas/dao/ops/MeituanBranchDao.class new file mode 100644 index 0000000..82d7096 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/MeituanBranchDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/PosModuleDao.class b/food-server/target/classes/com/jwsaas/dao/ops/PosModuleDao.class new file mode 100644 index 0000000..03d98e6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/PosModuleDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/PosModuleTypeDao.class b/food-server/target/classes/com/jwsaas/dao/ops/PosModuleTypeDao.class new file mode 100644 index 0000000..d2d2e0c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/PosModuleTypeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/PrinterInfoDao.class b/food-server/target/classes/com/jwsaas/dao/ops/PrinterInfoDao.class new file mode 100644 index 0000000..8f7034f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/PrinterInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/ProductPermissionsDao.class b/food-server/target/classes/com/jwsaas/dao/ops/ProductPermissionsDao.class new file mode 100644 index 0000000..59aab51 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/ProductPermissionsDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/QimaiSetDao.class b/food-server/target/classes/com/jwsaas/dao/ops/QimaiSetDao.class new file mode 100644 index 0000000..2b66a64 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/QimaiSetDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/SetCodeDao.class b/food-server/target/classes/com/jwsaas/dao/ops/SetCodeDao.class new file mode 100644 index 0000000..63ac568 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/SetCodeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/TenantLineProductDao.class b/food-server/target/classes/com/jwsaas/dao/ops/TenantLineProductDao.class new file mode 100644 index 0000000..2722d14 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/TenantLineProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/TenantPosInfoDao.class b/food-server/target/classes/com/jwsaas/dao/ops/TenantPosInfoDao.class new file mode 100644 index 0000000..b20b291 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/TenantPosInfoDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/TenantPosLoginLogDao.class b/food-server/target/classes/com/jwsaas/dao/ops/TenantPosLoginLogDao.class new file mode 100644 index 0000000..e13f1bf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/TenantPosLoginLogDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/TenantProductDao.class b/food-server/target/classes/com/jwsaas/dao/ops/TenantProductDao.class new file mode 100644 index 0000000..e50ae39 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/TenantProductDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/TenantStoreAuthDao.class b/food-server/target/classes/com/jwsaas/dao/ops/TenantStoreAuthDao.class new file mode 100644 index 0000000..341b12b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/TenantStoreAuthDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/UpgradePosDao.class b/food-server/target/classes/com/jwsaas/dao/ops/UpgradePosDao.class new file mode 100644 index 0000000..ecc1e40 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/UpgradePosDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/UpgradeSchemeDao.class b/food-server/target/classes/com/jwsaas/dao/ops/UpgradeSchemeDao.class new file mode 100644 index 0000000..9a8fce6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/UpgradeSchemeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/UpgradeStoreDao.class b/food-server/target/classes/com/jwsaas/dao/ops/UpgradeStoreDao.class new file mode 100644 index 0000000..d832248 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/UpgradeStoreDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/WxBusinessCodeDao.class b/food-server/target/classes/com/jwsaas/dao/ops/WxBusinessCodeDao.class new file mode 100644 index 0000000..ad188a7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/WxBusinessCodeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/ZfbBusinessCodeDao.class b/food-server/target/classes/com/jwsaas/dao/ops/ZfbBusinessCodeDao.class new file mode 100644 index 0000000..71aaa7a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/ZfbBusinessCodeDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentDaoImpl.class new file mode 100644 index 0000000..bf3c540 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketDaoImpl.class new file mode 100644 index 0000000..bb55c5b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketImageDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketImageDaoImpl.class new file mode 100644 index 0000000..59f8961 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AgentSubFuyouTicketImageDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppBaiduBranchDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppBaiduBranchDaoImpl.class new file mode 100644 index 0000000..80bf002 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppBaiduBranchDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppGuopanStoreInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppGuopanStoreInfoDaoImpl.class new file mode 100644 index 0000000..d4de7cb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppGuopanStoreInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppInfoDaoImpl.class new file mode 100644 index 0000000..c3d91fd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppQimaiSetStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppQimaiSetStoreDaoImpl.class new file mode 100644 index 0000000..5a0dfdd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppQimaiSetStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppShopmeituanSetDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppShopmeituanSetDaoImpl.class new file mode 100644 index 0000000..1045d46 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppShopmeituanSetDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppShopmeituanSetStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppShopmeituanSetStoreDaoImpl.class new file mode 100644 index 0000000..e066201 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppShopmeituanSetStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppVersionDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppVersionDaoImpl.class new file mode 100644 index 0000000..10dc434 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppVersionDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppWhiteDetailDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppWhiteDetailDaoImpl.class new file mode 100644 index 0000000..2605114 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppWhiteDetailDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/AppWhitePlanDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppWhitePlanDaoImpl.class new file mode 100644 index 0000000..c91ff91 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/AppWhitePlanDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/BankCodeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/BankCodeDaoImpl.class new file mode 100644 index 0000000..cc934f4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/BankCodeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/CardReaderInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/CardReaderInfoDaoImpl.class new file mode 100644 index 0000000..99e4608 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/CardReaderInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/CityCodeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/CityCodeDaoImpl.class new file mode 100644 index 0000000..9a10349 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/CityCodeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/CityDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/CityDaoImpl.class new file mode 100644 index 0000000..2235e11 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/CityDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/ElemeAuthorizeInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/ElemeAuthorizeInfoDaoImpl.class new file mode 100644 index 0000000..e94c57c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/ElemeAuthorizeInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/ErrorInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/ErrorInfoDaoImpl.class new file mode 100644 index 0000000..389384e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/ErrorInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/MeituanBranchDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/MeituanBranchDaoImpl.class new file mode 100644 index 0000000..918b90d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/MeituanBranchDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/PosModuleDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/PosModuleDaoImpl.class new file mode 100644 index 0000000..b6ac6bd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/PosModuleDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/PosModuleTypeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/PosModuleTypeDaoImpl.class new file mode 100644 index 0000000..d1aef6c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/PosModuleTypeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/PrinterInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/PrinterInfoDaoImpl.class new file mode 100644 index 0000000..b33e126 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/PrinterInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/ProductPermissionsDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/ProductPermissionsDaoImpl.class new file mode 100644 index 0000000..eefb698 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/ProductPermissionsDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/QimaiSetDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/QimaiSetDaoImpl.class new file mode 100644 index 0000000..8b45404 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/QimaiSetDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/SetCodeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/SetCodeDaoImpl.class new file mode 100644 index 0000000..7507e8c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/SetCodeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantLineProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantLineProductDaoImpl.class new file mode 100644 index 0000000..303cb75 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantLineProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantPosInfoDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantPosInfoDaoImpl.class new file mode 100644 index 0000000..91158b8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantPosInfoDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantPosLoginLogDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantPosLoginLogDaoImpl.class new file mode 100644 index 0000000..4851815 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantPosLoginLogDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantProductDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantProductDaoImpl.class new file mode 100644 index 0000000..fb843cc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantProductDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantStoreAuthDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantStoreAuthDaoImpl.class new file mode 100644 index 0000000..75e990f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/TenantStoreAuthDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradePosDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradePosDaoImpl.class new file mode 100644 index 0000000..a34e9b6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradePosDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradeSchemeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradeSchemeDaoImpl.class new file mode 100644 index 0000000..e309185 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradeSchemeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradeStoreDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradeStoreDaoImpl.class new file mode 100644 index 0000000..607078a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/UpgradeStoreDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/WxBusinessCodeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/WxBusinessCodeDaoImpl.class new file mode 100644 index 0000000..402600e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/WxBusinessCodeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/ops/impl/ZfbBusinessCodeDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/ops/impl/ZfbBusinessCodeDaoImpl.class new file mode 100644 index 0000000..11f1e69 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/ops/impl/ZfbBusinessCodeDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/AppAuthDao.class b/food-server/target/classes/com/jwsaas/dao/shared/AppAuthDao.class new file mode 100644 index 0000000..fab3d74 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/AppAuthDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/FunctionDao.class b/food-server/target/classes/com/jwsaas/dao/shared/FunctionDao.class new file mode 100644 index 0000000..4f92d4f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/FunctionDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/ModuleDao.class b/food-server/target/classes/com/jwsaas/dao/shared/ModuleDao.class new file mode 100644 index 0000000..6c30a52 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/ModuleDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/ResourcesDao.class b/food-server/target/classes/com/jwsaas/dao/shared/ResourcesDao.class new file mode 100644 index 0000000..7015b2b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/ResourcesDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/impl/AppAuthDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/shared/impl/AppAuthDaoImpl.class new file mode 100644 index 0000000..e438928 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/impl/AppAuthDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/impl/FunctionDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/shared/impl/FunctionDaoImpl.class new file mode 100644 index 0000000..fc49351 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/impl/FunctionDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/impl/ModuleDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/shared/impl/ModuleDaoImpl.class new file mode 100644 index 0000000..82f4ba9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/impl/ModuleDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/shared/impl/ResourcesDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/shared/impl/ResourcesDaoImpl.class new file mode 100644 index 0000000..546e9fc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/shared/impl/ResourcesDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinAccountDao.class b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinAccountDao.class new file mode 100644 index 0000000..0d3b679 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinAccountDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinOrderPayDao.class b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinOrderPayDao.class new file mode 100644 index 0000000..3a1fbde Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinOrderPayDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinPayResultDao.class b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinPayResultDao.class new file mode 100644 index 0000000..aea3833 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinPayResultDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinPayUnifiedOrderDao.class b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinPayUnifiedOrderDao.class new file mode 100644 index 0000000..e347df1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinPayUnifiedOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinRechargeOrderDao.class b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinRechargeOrderDao.class new file mode 100644 index 0000000..6ed72b5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinRechargeOrderDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinUserDao.class b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinUserDao.class new file mode 100644 index 0000000..34b8ff6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/WeixinUserDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinAccountDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinAccountDaoImpl.class new file mode 100644 index 0000000..16177c2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinAccountDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinOrderPayDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinOrderPayDaoImpl.class new file mode 100644 index 0000000..6a2bfc1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinOrderPayDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinPayResultDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinPayResultDaoImpl.class new file mode 100644 index 0000000..631cf1e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinPayResultDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinPayUnifiedOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinPayUnifiedOrderDaoImpl.class new file mode 100644 index 0000000..31479f1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinPayUnifiedOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinRechargeOrderDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinRechargeOrderDaoImpl.class new file mode 100644 index 0000000..2cdf365 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinRechargeOrderDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinUserDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinUserDaoImpl.class new file mode 100644 index 0000000..901e01c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxdc/impl/WeixinUserDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxyh/WeixinUserDao.class b/food-server/target/classes/com/jwsaas/dao/wxyh/WeixinUserDao.class new file mode 100644 index 0000000..585fd3e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxyh/WeixinUserDao.class differ diff --git a/food-server/target/classes/com/jwsaas/dao/wxyh/impl/WeixinUserDaoImpl.class b/food-server/target/classes/com/jwsaas/dao/wxyh/impl/WeixinUserDaoImpl.class new file mode 100644 index 0000000..85e8e7a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/dao/wxyh/impl/WeixinUserDaoImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/AbstractRoutingDataSource.class b/food-server/target/classes/com/jwsaas/datasource/AbstractRoutingDataSource.class new file mode 100644 index 0000000..f1462c5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/AbstractRoutingDataSource.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/DataSourceDescriptor.class b/food-server/target/classes/com/jwsaas/datasource/DataSourceDescriptor.class new file mode 100644 index 0000000..731f49b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/DataSourceDescriptor.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/RoutingDataSource.class b/food-server/target/classes/com/jwsaas/datasource/RoutingDataSource.class new file mode 100644 index 0000000..5c37f77 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/RoutingDataSource.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceAfterAdvice.class b/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceAfterAdvice.class new file mode 100644 index 0000000..cb5cc07 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceAfterAdvice.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceBeforeAdvice.class b/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceBeforeAdvice.class new file mode 100644 index 0000000..e626444 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceBeforeAdvice.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceThrowsAdvice.class b/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceThrowsAdvice.class new file mode 100644 index 0000000..8af35bb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/advice/DataSourceThrowsAdvice.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/holder/DataSourceHolder.class b/food-server/target/classes/com/jwsaas/datasource/holder/DataSourceHolder.class new file mode 100644 index 0000000..2333e99 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/holder/DataSourceHolder.class differ diff --git a/food-server/target/classes/com/jwsaas/datasource/holder/Identity.class b/food-server/target/classes/com/jwsaas/datasource/holder/Identity.class new file mode 100644 index 0000000..34f8cd9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/datasource/holder/Identity.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/MyBatisPrimaryKey.class b/food-server/target/classes/com/jwsaas/mybatis/MyBatisPrimaryKey.class new file mode 100644 index 0000000..7bd9405 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/MyBatisPrimaryKey.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/NullDatabaseIdProvider.class b/food-server/target/classes/com/jwsaas/mybatis/NullDatabaseIdProvider.class new file mode 100644 index 0000000..9a8a1e1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/NullDatabaseIdProvider.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/SqlSessionTemplateFactory.class b/food-server/target/classes/com/jwsaas/mybatis/SqlSessionTemplateFactory.class new file mode 100644 index 0000000..06fc054 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/SqlSessionTemplateFactory.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/domain/PageBounds.class b/food-server/target/classes/com/jwsaas/mybatis/domain/PageBounds.class new file mode 100644 index 0000000..a5aa48d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/domain/PageBounds.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/handlers/AbstractTypeHandler.class b/food-server/target/classes/com/jwsaas/mybatis/handlers/AbstractTypeHandler.class new file mode 100644 index 0000000..c824a30 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/handlers/AbstractTypeHandler.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/MyBatisLogInterceptor.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/MyBatisLogInterceptor.class new file mode 100644 index 0000000..5a3319f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/MyBatisLogInterceptor.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$1.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$1.class new file mode 100644 index 0000000..8976674 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$1.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$2.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$2.class new file mode 100644 index 0000000..5e0e47e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$2.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$BoundSqlSqlSource.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$BoundSqlSqlSource.class new file mode 100644 index 0000000..d8aef0d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor$BoundSqlSqlSource.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor.class new file mode 100644 index 0000000..3d5089d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/PagerInterceptor.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/PluginAdapter.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/PluginAdapter.class new file mode 100644 index 0000000..132e3e6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/PluginAdapter.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/PrimaryKeyGenerator.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/PrimaryKeyGenerator.class new file mode 100644 index 0000000..643f955 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/PrimaryKeyGenerator.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/plugins/PrimaryKeyInterceptor.class b/food-server/target/classes/com/jwsaas/mybatis/plugins/PrimaryKeyInterceptor.class new file mode 100644 index 0000000..9c311bf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/plugins/PrimaryKeyInterceptor.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/spring/SqlSessionFactoryBeanExt.class b/food-server/target/classes/com/jwsaas/mybatis/spring/SqlSessionFactoryBeanExt.class new file mode 100644 index 0000000..47ac7ed Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/spring/SqlSessionFactoryBeanExt.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/support/Dialect.class b/food-server/target/classes/com/jwsaas/mybatis/support/Dialect.class new file mode 100644 index 0000000..e756d8b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/support/Dialect.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/support/MySQLDialect.class b/food-server/target/classes/com/jwsaas/mybatis/support/MySQLDialect.class new file mode 100644 index 0000000..7a49926 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/support/MySQLDialect.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/support/OracleDialect.class b/food-server/target/classes/com/jwsaas/mybatis/support/OracleDialect.class new file mode 100644 index 0000000..3e35010 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/support/OracleDialect.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/support/PostgreSQLDialect.class b/food-server/target/classes/com/jwsaas/mybatis/support/PostgreSQLDialect.class new file mode 100644 index 0000000..e6b1d95 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/support/PostgreSQLDialect.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/support/PropertiesUtils.class b/food-server/target/classes/com/jwsaas/mybatis/support/PropertiesUtils.class new file mode 100644 index 0000000..7957aca Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/support/PropertiesUtils.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/support/SQLUtils.class b/food-server/target/classes/com/jwsaas/mybatis/support/SQLUtils.class new file mode 100644 index 0000000..74df113 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/support/SQLUtils.class differ diff --git a/food-server/target/classes/com/jwsaas/mybatis/support/SqlSessionCallback.class b/food-server/target/classes/com/jwsaas/mybatis/support/SqlSessionCallback.class new file mode 100644 index 0000000..b049654 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/mybatis/support/SqlSessionCallback.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceProductServiceImpl.class new file mode 100644 index 0000000..2b0ff91 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceStoreServiceImpl.class new file mode 100644 index 0000000..0dd25fe Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceTicketServiceImpl.class new file mode 100644 index 0000000..fc7f979 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AdjustPriceTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AdvertCaptionServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AdvertCaptionServiceImpl.class new file mode 100644 index 0000000..0814e69 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AdvertCaptionServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AdvertPictureServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AdvertPictureServiceImpl.class new file mode 100644 index 0000000..dbad7c1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AdvertPictureServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AgentServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AgentServiceImpl.class new file mode 100644 index 0000000..18e2f9a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AgentServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AgentStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AgentStoreServiceImpl.class new file mode 100644 index 0000000..615b2cb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AgentStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsDetailServiceImpl.class new file mode 100644 index 0000000..d916051 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateDetailServiceImpl.class new file mode 100644 index 0000000..42b3f69 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateServiceImpl.class new file mode 100644 index 0000000..b010a8e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateStoreServiceImpl.class new file mode 100644 index 0000000..27cc5b1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTemplateStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketLogServiceImpl.class new file mode 100644 index 0000000..4053054 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketPayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketPayServiceImpl.class new file mode 100644 index 0000000..c1143a4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketPayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketServiceImpl.class new file mode 100644 index 0000000..538126c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/AskGoodsTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/BaiduFoodServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/BaiduFoodServiceImpl.class new file mode 100644 index 0000000..8217275 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/BaiduFoodServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/BaiduOrderProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/BaiduOrderProductServiceImpl.class new file mode 100644 index 0000000..6614a3e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/BaiduOrderProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/BaiduOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/BaiduOrderServiceImpl.class new file mode 100644 index 0000000..c068e62 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/BaiduOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/BrandServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/BrandServiceImpl.class new file mode 100644 index 0000000..c9a8eca Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/BrandServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/BusinessPlanDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/BusinessPlanDetailServiceImpl.class new file mode 100644 index 0000000..e991df0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/BusinessPlanDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/BusinessPlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/BusinessPlanServiceImpl.class new file mode 100644 index 0000000..040db87 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/BusinessPlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CandaoStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CandaoStoreServiceImpl.class new file mode 100644 index 0000000..0a3bef1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CandaoStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CategoryServiceImpl.class new file mode 100644 index 0000000..87584d1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CheckTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTemplateDetailServiceImpl.class new file mode 100644 index 0000000..90e0ee7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CheckTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTemplateServiceImpl.class new file mode 100644 index 0000000..c50c38a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketDetailServiceImpl.class new file mode 100644 index 0000000..54ae60e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketLogServiceImpl.class new file mode 100644 index 0000000..f561eb7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketServiceImpl.class new file mode 100644 index 0000000..6b51d18 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CheckTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostFeeItemServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostFeeItemServiceImpl.class new file mode 100644 index 0000000..459315f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostFeeItemServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostFeeTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostFeeTypeServiceImpl.class new file mode 100644 index 0000000..8cf0abe Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostFeeTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketPayTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketPayTypeServiceImpl.class new file mode 100644 index 0000000..fac1f3f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketPayTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductChangeServiceImpl.class new file mode 100644 index 0000000..4e0928e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductFixedChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductFixedChangeServiceImpl.class new file mode 100644 index 0000000..f20f2e1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductFixedChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductMoreChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductMoreChangeServiceImpl.class new file mode 100644 index 0000000..abec30f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductMoreChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductOtherChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductOtherChangeServiceImpl.class new file mode 100644 index 0000000..df5686c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductOtherChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductTypeServiceImpl.class new file mode 100644 index 0000000..bb78564 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketProductTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketServiceImpl.class new file mode 100644 index 0000000..29df509 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductChangeServiceImpl.class new file mode 100644 index 0000000..5c94ce9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductFixedChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductFixedChangeServiceImpl.class new file mode 100644 index 0000000..c1034fd Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductFixedChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductMoreChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductMoreChangeServiceImpl.class new file mode 100644 index 0000000..c223a15 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductMoreChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductOtherChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductOtherChangeServiceImpl.class new file mode 100644 index 0000000..b21041c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateProductOtherChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateServiceImpl.class new file mode 100644 index 0000000..d26c6e3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CostTicketTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CouponCodeDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CouponCodeDetailServiceImpl.class new file mode 100644 index 0000000..a9e98ec Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CouponCodeDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CouponServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CouponServiceImpl.class new file mode 100644 index 0000000..d2f8779 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CouponServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CouponStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CouponStoreServiceImpl.class new file mode 100644 index 0000000..3d4f339 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CouponStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketProductServiceImpl.class new file mode 100644 index 0000000..2d6c580 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketServiceImpl.class new file mode 100644 index 0000000..c381552 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketStoreServiceImpl.class new file mode 100644 index 0000000..ce63851 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/CouponTicketStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DeliverServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DeliverServiceImpl.class new file mode 100644 index 0000000..efc8a44 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DeliverServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DfsFileServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DfsFileServiceImpl.class new file mode 100644 index 0000000..701285f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DfsFileServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchSettlePlanPayModeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchSettlePlanPayModeServiceImpl.class new file mode 100644 index 0000000..3a1dcac Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchSettlePlanPayModeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchSettlePlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchSettlePlanServiceImpl.class new file mode 100644 index 0000000..b3c7b93 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchSettlePlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketDetailServiceImpl.class new file mode 100644 index 0000000..6de1fc5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketLogServiceImpl.class new file mode 100644 index 0000000..43c09cb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketServiceImpl.class new file mode 100644 index 0000000..c831d93 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketMaterialServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketMaterialServiceImpl.class new file mode 100644 index 0000000..35aa569 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketMaterialServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketServiceImpl.class new file mode 100644 index 0000000..c750d19 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketStoreServiceImpl.class new file mode 100644 index 0000000..186fcb4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/DispatchpriceTicketStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ElemeCategoryFoodServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeCategoryFoodServiceImpl.class new file mode 100644 index 0000000..c87690e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeCategoryFoodServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ElemeFoodCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeFoodCategoryServiceImpl.class new file mode 100644 index 0000000..2f82122 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeFoodCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ElemeOrderDetailGroupServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeOrderDetailGroupServiceImpl.class new file mode 100644 index 0000000..0a0ce9b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeOrderDetailGroupServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ElemeOrderDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeOrderDetailServiceImpl.class new file mode 100644 index 0000000..de93a8d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ElemeOrderDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ErpPosSetServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ErpPosSetServiceImpl.class new file mode 100644 index 0000000..41b11c0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ErpPosSetServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/FeeItemServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/FeeItemServiceImpl.class new file mode 100644 index 0000000..bbf9c5b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/FeeItemServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/KdsPlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/KdsPlanServiceImpl.class new file mode 100644 index 0000000..35ac1ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/KdsPlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/KitPlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/KitPlanServiceImpl.class new file mode 100644 index 0000000..daa6774 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/KitPlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MakeBurdenServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MakeBurdenServiceImpl.class new file mode 100644 index 0000000..f2695da Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MakeBurdenServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MakeDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MakeDetailServiceImpl.class new file mode 100644 index 0000000..10a588a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MakeDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MakeTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MakeTypeServiceImpl.class new file mode 100644 index 0000000..caab53c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MakeTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MeituanFoodCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanFoodCategoryServiceImpl.class new file mode 100644 index 0000000..9d8c42c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanFoodCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MeituanFoodServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanFoodServiceImpl.class new file mode 100644 index 0000000..5c0514e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanFoodServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderExtraServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderExtraServiceImpl.class new file mode 100644 index 0000000..c6e9a39 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderExtraServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderItemServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderItemServiceImpl.class new file mode 100644 index 0000000..cf83981 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderItemServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderServiceImpl.class new file mode 100644 index 0000000..26ba9a5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/MeituanOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketDetailServiceImpl.class new file mode 100644 index 0000000..cdabc9f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketLogServiceImpl.class new file mode 100644 index 0000000..3f86a66 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketServiceImpl.class new file mode 100644 index 0000000..ea587d1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageOutTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketDetailServiceImpl.class new file mode 100644 index 0000000..5a5eb5b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketLogServiceImpl.class new file mode 100644 index 0000000..6b9dbe2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketServiceImpl.class new file mode 100644 index 0000000..35a3f3e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/OtherStorageTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PayModeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PayModeServiceImpl.class new file mode 100644 index 0000000..76bc05d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PayModeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PayModeStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PayModeStoreServiceImpl.class new file mode 100644 index 0000000..0d4b2b3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PayModeStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PayTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PayTypeServiceImpl.class new file mode 100644 index 0000000..50920d9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PayTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PaymentParameterServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PaymentParameterServiceImpl.class new file mode 100644 index 0000000..ffe84fe Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PaymentParameterServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PermissionsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PermissionsServiceImpl.class new file mode 100644 index 0000000..488e52b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PermissionsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosInfoServiceImpl.class new file mode 100644 index 0000000..7c7d965 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosPollcodeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosPollcodeServiceImpl.class new file mode 100644 index 0000000..45b9e04 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosPollcodeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosRoleServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosRoleServiceImpl.class new file mode 100644 index 0000000..4754e93 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosRoleServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanConfigServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanConfigServiceImpl.class new file mode 100644 index 0000000..0639927 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanConfigServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanModuleServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanModuleServiceImpl.class new file mode 100644 index 0000000..dd70347 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanModuleServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanResourcesServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanResourcesServiceImpl.class new file mode 100644 index 0000000..456d99b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanResourcesServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanServiceImpl.class new file mode 100644 index 0000000..69fe0b2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanShortcutServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanShortcutServiceImpl.class new file mode 100644 index 0000000..236cc38 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PosSetPlanShortcutServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PrintImageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PrintImageServiceImpl.class new file mode 100644 index 0000000..fee059f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PrintImageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNegativeStockDifferServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNegativeStockDifferServiceImpl.class new file mode 100644 index 0000000..78c4c0c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNegativeStockDifferServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNegativeStockServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNegativeStockServiceImpl.class new file mode 100644 index 0000000..7eee106 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNegativeStockServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNumberServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNumberServiceImpl.class new file mode 100644 index 0000000..0811498 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchNumberServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchStockChangeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchStockChangeServiceImpl.class new file mode 100644 index 0000000..671524c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchStockChangeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchStockServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchStockServiceImpl.class new file mode 100644 index 0000000..24b11b9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBatchStockServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductBurdenServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBurdenServiceImpl.class new file mode 100644 index 0000000..4a2aee5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductBurdenServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductImageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductImageServiceImpl.class new file mode 100644 index 0000000..d601f71 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductImageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductKdsPlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductKdsPlanServiceImpl.class new file mode 100644 index 0000000..cd9bf54 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductKdsPlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductKitPlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductKitPlanServiceImpl.class new file mode 100644 index 0000000..080d519 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductKitPlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeServiceImpl.class new file mode 100644 index 0000000..59aef37 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeTemplateDetailServiceImpl.class new file mode 100644 index 0000000..a73ffc8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeTemplateServiceImpl.class new file mode 100644 index 0000000..d6e3cd6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductMakeTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductRatioServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductRatioServiceImpl.class new file mode 100644 index 0000000..c262e0f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductRatioServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductServiceImpl.class new file mode 100644 index 0000000..bbc5d61 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductSpecServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductSpecServiceImpl.class new file mode 100644 index 0000000..649571c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductSpecServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductStockLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStockLogServiceImpl.class new file mode 100644 index 0000000..99b2fdc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStockLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductStockServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStockServiceImpl.class new file mode 100644 index 0000000..c47e66c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStockServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreOutCollectDayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreOutCollectDayServiceImpl.class new file mode 100644 index 0000000..46ee245 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreOutCollectDayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreStockLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreStockLogServiceImpl.class new file mode 100644 index 0000000..dabe2b3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreStockLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreStockServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreStockServiceImpl.class new file mode 100644 index 0000000..5ad99b3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductStoreStockServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductSuitDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductSuitDetailServiceImpl.class new file mode 100644 index 0000000..dcdc2d5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductSuitDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductSuitServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductSuitServiceImpl.class new file mode 100644 index 0000000..a9f6faf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductSuitServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTemplateDetailServiceImpl.class new file mode 100644 index 0000000..d479b77 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTemplateServiceImpl.class new file mode 100644 index 0000000..bce8213 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductTypeLabelInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTypeLabelInfoServiceImpl.class new file mode 100644 index 0000000..7f8a613 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTypeLabelInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTypeServiceImpl.class new file mode 100644 index 0000000..222e330 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProductUnitServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProductUnitServiceImpl.class new file mode 100644 index 0000000..2994698 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProductUnitServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdPictureServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdPictureServiceImpl.class new file mode 100644 index 0000000..f8b03ca Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdPictureServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceProductServiceImpl.class new file mode 100644 index 0000000..1cf66f3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceStoreServiceImpl.class new file mode 100644 index 0000000..0be9805 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceTicketServiceImpl.class new file mode 100644 index 0000000..064b52e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramAdjustPriceTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramDeliverAddressServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramDeliverAddressServiceImpl.class new file mode 100644 index 0000000..0aa1b26 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramDeliverAddressServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramEvaluateImageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramEvaluateImageServiceImpl.class new file mode 100644 index 0000000..24eb7e7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramEvaluateImageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramEvaluateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramEvaluateServiceImpl.class new file mode 100644 index 0000000..f683b91 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramEvaluateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramIndexPictureServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramIndexPictureServiceImpl.class new file mode 100644 index 0000000..b45dda0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramIndexPictureServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPaymentParameterServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPaymentParameterServiceImpl.class new file mode 100644 index 0000000..2415f3b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPaymentParameterServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductCategoryServiceImpl.class new file mode 100644 index 0000000..4a9204d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductMakeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductMakeServiceImpl.class new file mode 100644 index 0000000..fa15925 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductMakeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductServiceImpl.class new file mode 100644 index 0000000..0dc4417 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateDetailServiceImpl.class new file mode 100644 index 0000000..7fe498f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateServiceImpl.class new file mode 100644 index 0000000..864d182 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateStoreServiceImpl.class new file mode 100644 index 0000000..91d3a04 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramProductTemplateStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListGoodsServiceImpl.class new file mode 100644 index 0000000..85f96b6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreAreaServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreAreaServiceImpl.class new file mode 100644 index 0000000..b7d5a3f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreAreaServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreServiceImpl.class new file mode 100644 index 0000000..3933ba7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionBlackListStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionCategoryServiceImpl.class new file mode 100644 index 0000000..dfc2883 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionGoodsServiceImpl.class new file mode 100644 index 0000000..0ae6d95 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionSchemeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionSchemeServiceImpl.class new file mode 100644 index 0000000..cf4daf8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionSchemeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionStoreAreaServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionStoreAreaServiceImpl.class new file mode 100644 index 0000000..347c9b5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionStoreAreaServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionStoreServiceImpl.class new file mode 100644 index 0000000..ce84890 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionTaskServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionTaskServiceImpl.class new file mode 100644 index 0000000..4e3b4d9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionTaskServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionTicketServiceImpl.class new file mode 100644 index 0000000..577044c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramPromotionTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramSettingServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramSettingServiceImpl.class new file mode 100644 index 0000000..6ef1241 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramSettingServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketDeliverServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketDeliverServiceImpl.class new file mode 100644 index 0000000..9deada1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketDeliverServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketInfoServiceImpl.class new file mode 100644 index 0000000..7f8d601 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketServiceImpl.class new file mode 100644 index 0000000..0f74b53 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreBusinessTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductInfoServiceImpl.class new file mode 100644 index 0000000..53e6228 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductMakeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductMakeServiceImpl.class new file mode 100644 index 0000000..c5fbe18 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductMakeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductServiceImpl.class new file mode 100644 index 0000000..80f9699 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreOrderProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStorePayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStorePayServiceImpl.class new file mode 100644 index 0000000..52e9271 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStorePayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreProductServiceImpl.class new file mode 100644 index 0000000..350c604 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreServiceImpl.class new file mode 100644 index 0000000..d17227b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ProgramStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListGoodsServiceImpl.class new file mode 100644 index 0000000..f43b480 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListStoreAreaServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListStoreAreaServiceImpl.class new file mode 100644 index 0000000..00e0c4e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListStoreAreaServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListStoreServiceImpl.class new file mode 100644 index 0000000..b603720 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionBlackListStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionCategoryServiceImpl.class new file mode 100644 index 0000000..09d2238 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionGoodsServiceImpl.class new file mode 100644 index 0000000..b24ad71 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionScheduleServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionScheduleServiceImpl.class new file mode 100644 index 0000000..f5590d5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionScheduleServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionSchemeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionSchemeServiceImpl.class new file mode 100644 index 0000000..8290024 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionSchemeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionStoreAreaServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionStoreAreaServiceImpl.class new file mode 100644 index 0000000..41bc62c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionStoreAreaServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionStoreServiceImpl.class new file mode 100644 index 0000000..f7b28e8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionTaskServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionTaskServiceImpl.class new file mode 100644 index 0000000..b21d37c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionTaskServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PromotionTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionTicketServiceImpl.class new file mode 100644 index 0000000..4374706 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PromotionTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketDetailServiceImpl.class new file mode 100644 index 0000000..a5e3e97 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketLogServiceImpl.class new file mode 100644 index 0000000..bfa169e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketServiceImpl.class new file mode 100644 index 0000000..3aadf43 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseStorageTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTemplateDetailServiceImpl.class new file mode 100644 index 0000000..0d71a43 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTemplateServiceImpl.class new file mode 100644 index 0000000..bf44647 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketDetailServiceImpl.class new file mode 100644 index 0000000..dabda6a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketLogServiceImpl.class new file mode 100644 index 0000000..ffb34e6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketServiceImpl.class new file mode 100644 index 0000000..ece19e3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchaseTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceServiceImpl.class new file mode 100644 index 0000000..8a8c201 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceTicketMaterialServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceTicketMaterialServiceImpl.class new file mode 100644 index 0000000..b64f9ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceTicketMaterialServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceTicketServiceImpl.class new file mode 100644 index 0000000..61b0fae Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/PurchasepriceTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceGoodsServiceImpl.class new file mode 100644 index 0000000..26ac9a9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceStoreServiceImpl.class new file mode 100644 index 0000000..c54a6f9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceTicketServiceImpl.class new file mode 100644 index 0000000..102d161 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAdjustPriceTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAttributeCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAttributeCategoryServiceImpl.class new file mode 100644 index 0000000..f5a969a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAttributeCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAttributeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAttributeServiceImpl.class new file mode 100644 index 0000000..4dd1cf9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiAttributeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiChargeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiChargeServiceImpl.class new file mode 100644 index 0000000..c5752d7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiChargeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderItemServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderItemServiceImpl.class new file mode 100644 index 0000000..df6f705 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderItemServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderPayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderPayServiceImpl.class new file mode 100644 index 0000000..db8e0b4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderPayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderServiceImpl.class new file mode 100644 index 0000000..e1d92b1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductAttributeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductAttributeServiceImpl.class new file mode 100644 index 0000000..7c27ecc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductAttributeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductCategoryServiceImpl.class new file mode 100644 index 0000000..3c42bc8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductChargeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductChargeServiceImpl.class new file mode 100644 index 0000000..04fa0ba Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductChargeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductServiceImpl.class new file mode 100644 index 0000000..c8491d6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductSpecServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductSpecServiceImpl.class new file mode 100644 index 0000000..3015ff4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductSpecServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateDetailServiceImpl.class new file mode 100644 index 0000000..02edaad Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateServiceImpl.class new file mode 100644 index 0000000..cd85424 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateStoreServiceImpl.class new file mode 100644 index 0000000..5af337c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiProductTemplateStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreLableServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreLableServiceImpl.class new file mode 100644 index 0000000..6e588a5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreLableServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreProductServiceImpl.class new file mode 100644 index 0000000..788a029 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreServiceImpl.class new file mode 100644 index 0000000..ffc4751 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/QimaiSuitDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiSuitDetailServiceImpl.class new file mode 100644 index 0000000..a6d34e2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/QimaiSuitDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceDetailServiceImpl.class new file mode 100644 index 0000000..e052b2c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketLogServiceImpl.class new file mode 100644 index 0000000..b2fcdc2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketPayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketPayServiceImpl.class new file mode 100644 index 0000000..91aebe3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketPayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketServiceImpl.class new file mode 100644 index 0000000..9d090d0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveDifferenceTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveGoodsDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveGoodsDetailServiceImpl.class new file mode 100644 index 0000000..b3513ca Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveGoodsDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveGoodsTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveGoodsTicketServiceImpl.class new file mode 100644 index 0000000..80174d4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ReceiveGoodsTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/RechargeParameterServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/RechargeParameterServiceImpl.class new file mode 100644 index 0000000..76839f8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/RechargeParameterServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/RoleServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/RoleServiceImpl.class new file mode 100644 index 0000000..72f2916 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/RoleServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SaleClearServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SaleClearServiceImpl.class new file mode 100644 index 0000000..0ea4a78 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SaleClearServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ServerDataVersionServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ServerDataVersionServiceImpl.class new file mode 100644 index 0000000..d55c820 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ServerDataVersionServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderExtraServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderExtraServiceImpl.class new file mode 100644 index 0000000..8b07fd8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderExtraServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderItemServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderItemServiceImpl.class new file mode 100644 index 0000000..0c7f347 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderItemServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderServiceImpl.class new file mode 100644 index 0000000..f7aa884 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ShopMeituanOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SplitFoodAccountServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SplitFoodAccountServiceImpl.class new file mode 100644 index 0000000..9ee1d41 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SplitFoodAccountServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SplitPayLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SplitPayLogServiceImpl.class new file mode 100644 index 0000000..24877de Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SplitPayLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SplitPayResultServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SplitPayResultServiceImpl.class new file mode 100644 index 0000000..2f314d8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SplitPayResultServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SplitShopAccountServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SplitShopAccountServiceImpl.class new file mode 100644 index 0000000..db2e06a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SplitShopAccountServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SplitShopWithdrawalServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SplitShopWithdrawalServiceImpl.class new file mode 100644 index 0000000..e9bdc3d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SplitShopWithdrawalServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SplitStorePayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SplitStorePayServiceImpl.class new file mode 100644 index 0000000..edb15f3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SplitStorePayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StorageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StorageServiceImpl.class new file mode 100644 index 0000000..ac291af Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StorageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StorageTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StorageTypeServiceImpl.class new file mode 100644 index 0000000..46d084c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StorageTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountDetailServiceImpl.class new file mode 100644 index 0000000..1003b5d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountRechargeParameterServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountRechargeParameterServiceImpl.class new file mode 100644 index 0000000..2329e2b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountRechargeParameterServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountRechargeRecordServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountRechargeRecordServiceImpl.class new file mode 100644 index 0000000..225c657 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountRechargeRecordServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountServiceImpl.class new file mode 100644 index 0000000..f435350 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAccountServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreAreaServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAreaServiceImpl.class new file mode 100644 index 0000000..c49664e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreAreaServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketCheckServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketCheckServiceImpl.class new file mode 100644 index 0000000..500f094 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketCheckServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketDeliveryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketDeliveryServiceImpl.class new file mode 100644 index 0000000..b7614c8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketDeliveryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketInfoServiceImpl.class new file mode 100644 index 0000000..d9257b7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketServiceImpl.class new file mode 100644 index 0000000..5525bba Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketTableServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketTableServiceImpl.class new file mode 100644 index 0000000..5cc9557 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreBusinessTicketTableServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostManageLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostManageLogServiceImpl.class new file mode 100644 index 0000000..4f6bd00 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostManageLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostManageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostManageServiceImpl.class new file mode 100644 index 0000000..9deaf65 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostManageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostRevenueServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostRevenueServiceImpl.class new file mode 100644 index 0000000..c031429 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreCostRevenueServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreDeliveryOrderItemServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDeliveryOrderItemServiceImpl.class new file mode 100644 index 0000000..1f1170d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDeliveryOrderItemServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreDeliveryOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDeliveryOrderServiceImpl.class new file mode 100644 index 0000000..c9c38ec Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDeliveryOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreDepartmentServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDepartmentServiceImpl.class new file mode 100644 index 0000000..51ab35e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDepartmentServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreDispatchAccountLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDispatchAccountLogServiceImpl.class new file mode 100644 index 0000000..3ae35e7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDispatchAccountLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreDispatchAccountServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDispatchAccountServiceImpl.class new file mode 100644 index 0000000..5e8015f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreDispatchAccountServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreEnchashmentRecordLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreEnchashmentRecordLogServiceImpl.class new file mode 100644 index 0000000..af1e069 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreEnchashmentRecordLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreEnchashmentRecordServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreEnchashmentRecordServiceImpl.class new file mode 100644 index 0000000..f1278ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreEnchashmentRecordServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreFeeCutLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreFeeCutLogServiceImpl.class new file mode 100644 index 0000000..1de3ab2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreFeeCutLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailPartServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailPartServiceImpl.class new file mode 100644 index 0000000..f27b0db Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailPartServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailPayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailPayServiceImpl.class new file mode 100644 index 0000000..0ccd36c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailPayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailServiceImpl.class new file mode 100644 index 0000000..69fe85d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverServiceImpl.class new file mode 100644 index 0000000..ae2a639 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreHandoverServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreLoginLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreLoginLogServiceImpl.class new file mode 100644 index 0000000..586129b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreLoginLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreOperationLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOperationLogServiceImpl.class new file mode 100644 index 0000000..61edc32 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOperationLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductInfoServiceImpl.class new file mode 100644 index 0000000..476544a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductMakeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductMakeServiceImpl.class new file mode 100644 index 0000000..f0227a1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductMakeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductServiceImpl.class new file mode 100644 index 0000000..a2bbd0c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreOrderProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StorePayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StorePayServiceImpl.class new file mode 100644 index 0000000..a3ed5ad Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StorePayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreProductSaleStockServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreProductSaleStockServiceImpl.class new file mode 100644 index 0000000..f7e5002 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreProductSaleStockServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreProductServiceImpl.class new file mode 100644 index 0000000..703e702 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreServiceImpl.class new file mode 100644 index 0000000..2d5fd67 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTemplateDetailServiceImpl.class new file mode 100644 index 0000000..e64b676 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTemplateServiceImpl.class new file mode 100644 index 0000000..a22bf97 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketDetailServiceImpl.class new file mode 100644 index 0000000..2f93bd4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketLogServiceImpl.class new file mode 100644 index 0000000..5337700 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketServiceImpl.class new file mode 100644 index 0000000..165f9eb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStockCheckTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketDetailServiceImpl.class new file mode 100644 index 0000000..e257c5f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketLogServiceImpl.class new file mode 100644 index 0000000..01eb764 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketServiceImpl.class new file mode 100644 index 0000000..2d1476f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageOutTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageServiceImpl.class new file mode 100644 index 0000000..a99bdeb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketDetailServiceImpl.class new file mode 100644 index 0000000..14e1000 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketLogServiceImpl.class new file mode 100644 index 0000000..6f4f560 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketServiceImpl.class new file mode 100644 index 0000000..728164e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreStorageTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreTypeServiceImpl.class new file mode 100644 index 0000000..5cffde9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreWorkerExtServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreWorkerExtServiceImpl.class new file mode 100644 index 0000000..ed906e4 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreWorkerExtServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoreWorkerServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoreWorkerServiceImpl.class new file mode 100644 index 0000000..6450990 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoreWorkerServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoretableAreaServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoretableAreaServiceImpl.class new file mode 100644 index 0000000..edc973f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoretableAreaServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoretableServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoretableServiceImpl.class new file mode 100644 index 0000000..600aa3d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoretableServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/StoretableTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/StoretableTypeServiceImpl.class new file mode 100644 index 0000000..05bcfa9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/StoretableTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SupplierServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SupplierServiceImpl.class new file mode 100644 index 0000000..b70d0a0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SupplierServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/SupplierTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/SupplierTypeServiceImpl.class new file mode 100644 index 0000000..a96e035 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/SupplierTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/TaskScheduleServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/TaskScheduleServiceImpl.class new file mode 100644 index 0000000..879e4b7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/TaskScheduleServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketMaterialServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketMaterialServiceImpl.class new file mode 100644 index 0000000..f1569aa Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketMaterialServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketServiceImpl.class new file mode 100644 index 0000000..6cf7f92 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketStoreServiceImpl.class new file mode 100644 index 0000000..b839038 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/ThuselevelTicketStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/TicketPrintSettingServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/TicketPrintSettingServiceImpl.class new file mode 100644 index 0000000..6735346 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/TicketPrintSettingServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/UserServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/UserServiceImpl.class new file mode 100644 index 0000000..2e74e77 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/UserServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VisitorAddressServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VisitorAddressServiceImpl.class new file mode 100644 index 0000000..51b67bc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VisitorAddressServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VisitorServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VisitorServiceImpl.class new file mode 100644 index 0000000..3e52b38 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VisitorServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VisitorTagServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VisitorTagServiceImpl.class new file mode 100644 index 0000000..69e71cc Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VisitorTagServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposAdPictureServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposAdPictureServiceImpl.class new file mode 100644 index 0000000..256754a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposAdPictureServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposCcbfzAccountServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposCcbfzAccountServiceImpl.class new file mode 100644 index 0000000..124362b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposCcbfzAccountServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposProductEvaluateImageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposProductEvaluateImageServiceImpl.class new file mode 100644 index 0000000..0f08d84 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposProductEvaluateImageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposProductEvaluateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposProductEvaluateServiceImpl.class new file mode 100644 index 0000000..f1141ce Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposProductEvaluateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreBusinessTicketInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreBusinessTicketInfoServiceImpl.class new file mode 100644 index 0000000..8a2d69b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreBusinessTicketInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreBusinessTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreBusinessTicketServiceImpl.class new file mode 100644 index 0000000..6b15f1e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreBusinessTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductInfoServiceImpl.class new file mode 100644 index 0000000..f0f928c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductMakeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductMakeServiceImpl.class new file mode 100644 index 0000000..29be1ad Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductMakeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductServiceImpl.class new file mode 100644 index 0000000..044f435 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposStoreOrderProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposStorePayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposStorePayServiceImpl.class new file mode 100644 index 0000000..6ce322a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposStorePayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposUserSeriesServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposUserSeriesServiceImpl.class new file mode 100644 index 0000000..d3a2544 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposUserSeriesServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/VposUserServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/VposUserServiceImpl.class new file mode 100644 index 0000000..66e9651 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/VposUserServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxAdPictureServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdPictureServiceImpl.class new file mode 100644 index 0000000..b625b7e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdPictureServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceGoodsServiceImpl.class new file mode 100644 index 0000000..b268d19 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceStoreServiceImpl.class new file mode 100644 index 0000000..0a58e6d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceTicketServiceImpl.class new file mode 100644 index 0000000..e9f124b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxAdjustPriceTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsCategoryServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsCategoryServiceImpl.class new file mode 100644 index 0000000..7ff0c21 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsCategoryServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsMakeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsMakeServiceImpl.class new file mode 100644 index 0000000..06433e7 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsMakeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsServiceImpl.class new file mode 100644 index 0000000..eb14d5b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateDetailServiceImpl.class new file mode 100644 index 0000000..c8a45f0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateServiceImpl.class new file mode 100644 index 0000000..dac1115 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateStoreServiceImpl.class new file mode 100644 index 0000000..869111d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxGoodsTemplateStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxPaymentParameterServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxPaymentParameterServiceImpl.class new file mode 100644 index 0000000..b5dab1d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxPaymentParameterServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxQrcodeSettingServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxQrcodeSettingServiceImpl.class new file mode 100644 index 0000000..d4ab5ab Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxQrcodeSettingServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemMakeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemMakeServiceImpl.class new file mode 100644 index 0000000..3963f33 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemMakeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemPromoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemPromoServiceImpl.class new file mode 100644 index 0000000..0d6a61b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemPromoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemServiceImpl.class new file mode 100644 index 0000000..1da04eb Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderItemServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderLogServiceImpl.class new file mode 100644 index 0000000..0b1cce1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl$1.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl$1.class new file mode 100644 index 0000000..f07d3a2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl$1.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl$2.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl$2.class new file mode 100644 index 0000000..6539c44 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl$2.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl.class new file mode 100644 index 0000000..8212ebf Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesPaymentServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesPaymentServiceImpl.class new file mode 100644 index 0000000..817f5b2 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxSalesPaymentServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxStoreGoodsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxStoreGoodsServiceImpl.class new file mode 100644 index 0000000..f7ae7b0 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxStoreGoodsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxStoreServiceImpl.class new file mode 100644 index 0000000..fe84b6f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxdcDistributionAddressServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxdcDistributionAddressServiceImpl.class new file mode 100644 index 0000000..326c384 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxdcDistributionAddressServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/WxdcDistributionServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/WxdcDistributionServiceImpl.class new file mode 100644 index 0000000..5676f4e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/WxdcDistributionServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/YunposSetServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/YunposSetServiceImpl.class new file mode 100644 index 0000000..c57f863 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/YunposSetServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/food/impl/YunposSetStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/food/impl/YunposSetStoreServiceImpl.class new file mode 100644 index 0000000..80c0d64 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/food/impl/YunposSetStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/impl/BaseServiceImpl.class b/food-server/target/classes/com/jwsaas/service/impl/BaseServiceImpl.class new file mode 100644 index 0000000..12a84a5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/impl/BaseServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/impl/HelloServiceImpl.class b/food-server/target/classes/com/jwsaas/service/impl/HelloServiceImpl.class new file mode 100644 index 0000000..b6e2186 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/impl/HelloServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/impl/TenantServiceImpl.class b/food-server/target/classes/com/jwsaas/service/impl/TenantServiceImpl.class new file mode 100644 index 0000000..a2fdfc1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/impl/TenantServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AgentServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AgentServiceImpl.class new file mode 100644 index 0000000..dc37f8a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AgentServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AgentSubFuyouTicketImageServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AgentSubFuyouTicketImageServiceImpl.class new file mode 100644 index 0000000..e39df25 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AgentSubFuyouTicketImageServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AgentSubFuyouTicketServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AgentSubFuyouTicketServiceImpl.class new file mode 100644 index 0000000..59932b9 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AgentSubFuyouTicketServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppBaiduBranchServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppBaiduBranchServiceImpl.class new file mode 100644 index 0000000..ce512b8 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppBaiduBranchServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppGuopanStoreInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppGuopanStoreInfoServiceImpl.class new file mode 100644 index 0000000..89ceb88 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppGuopanStoreInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppInfoServiceImpl.class new file mode 100644 index 0000000..f47dc4d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppQimaiSetStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppQimaiSetStoreServiceImpl.class new file mode 100644 index 0000000..98e2c1b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppQimaiSetStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppShopmeituanSetServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppShopmeituanSetServiceImpl.class new file mode 100644 index 0000000..b2e5058 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppShopmeituanSetServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppShopmeituanSetStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppShopmeituanSetStoreServiceImpl.class new file mode 100644 index 0000000..9873a1d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppShopmeituanSetStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppVersionServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppVersionServiceImpl.class new file mode 100644 index 0000000..5ef07f5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppVersionServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppWhiteDetailServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppWhiteDetailServiceImpl.class new file mode 100644 index 0000000..7fc7264 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppWhiteDetailServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/AppWhitePlanServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/AppWhitePlanServiceImpl.class new file mode 100644 index 0000000..0483a70 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/AppWhitePlanServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/BankCodeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/BankCodeServiceImpl.class new file mode 100644 index 0000000..bcce5ba Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/BankCodeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/CardReaderInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/CardReaderInfoServiceImpl.class new file mode 100644 index 0000000..bfcfd29 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/CardReaderInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/CityCodeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/CityCodeServiceImpl.class new file mode 100644 index 0000000..02093df Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/CityCodeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/CityServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/CityServiceImpl.class new file mode 100644 index 0000000..5ee104d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/CityServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/ElemeAuthorizeInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/ElemeAuthorizeInfoServiceImpl.class new file mode 100644 index 0000000..d365bb5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/ElemeAuthorizeInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/ErrorInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/ErrorInfoServiceImpl.class new file mode 100644 index 0000000..c0fe24f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/ErrorInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/MeituanBranchServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/MeituanBranchServiceImpl.class new file mode 100644 index 0000000..4bb9538 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/MeituanBranchServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/PosModuleServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/PosModuleServiceImpl.class new file mode 100644 index 0000000..89ace01 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/PosModuleServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/PosModuleTypeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/PosModuleTypeServiceImpl.class new file mode 100644 index 0000000..06fb76e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/PosModuleTypeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/PrinterInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/PrinterInfoServiceImpl.class new file mode 100644 index 0000000..c7e51df Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/PrinterInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/ProductPermissionsServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/ProductPermissionsServiceImpl.class new file mode 100644 index 0000000..8c9f227 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/ProductPermissionsServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/QimaiSetServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/QimaiSetServiceImpl.class new file mode 100644 index 0000000..1cc1d57 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/QimaiSetServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/SetCodeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/SetCodeServiceImpl.class new file mode 100644 index 0000000..01ddb23 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/SetCodeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/TenantLineProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantLineProductServiceImpl.class new file mode 100644 index 0000000..30d1059 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantLineProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/TenantPosInfoServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantPosInfoServiceImpl.class new file mode 100644 index 0000000..6cdf790 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantPosInfoServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/TenantPosLoginLogServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantPosLoginLogServiceImpl.class new file mode 100644 index 0000000..a35294f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantPosLoginLogServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/TenantProductServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantProductServiceImpl.class new file mode 100644 index 0000000..876cf06 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantProductServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/TenantStoreAuthServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantStoreAuthServiceImpl.class new file mode 100644 index 0000000..450b20d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/TenantStoreAuthServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradePosServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradePosServiceImpl.class new file mode 100644 index 0000000..84457f6 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradePosServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradeSchemeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradeSchemeServiceImpl.class new file mode 100644 index 0000000..6ef4c68 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradeSchemeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradeStoreServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradeStoreServiceImpl.class new file mode 100644 index 0000000..976c917 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/UpgradeStoreServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/WxBusinessCodeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/WxBusinessCodeServiceImpl.class new file mode 100644 index 0000000..c02362c Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/WxBusinessCodeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/ops/impl/ZfbBusinessCodeServiceImpl.class b/food-server/target/classes/com/jwsaas/service/ops/impl/ZfbBusinessCodeServiceImpl.class new file mode 100644 index 0000000..5d1384e Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/ops/impl/ZfbBusinessCodeServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/shared/impl/AppAuthServiceImpl.class b/food-server/target/classes/com/jwsaas/service/shared/impl/AppAuthServiceImpl.class new file mode 100644 index 0000000..2340d8b Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/shared/impl/AppAuthServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/shared/impl/FunctionServiceImpl.class b/food-server/target/classes/com/jwsaas/service/shared/impl/FunctionServiceImpl.class new file mode 100644 index 0000000..468624a Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/shared/impl/FunctionServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/shared/impl/ModuleServiceImpl.class b/food-server/target/classes/com/jwsaas/service/shared/impl/ModuleServiceImpl.class new file mode 100644 index 0000000..a82dd86 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/shared/impl/ModuleServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/shared/impl/ResourcesServiceImpl.class b/food-server/target/classes/com/jwsaas/service/shared/impl/ResourcesServiceImpl.class new file mode 100644 index 0000000..8f60724 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/shared/impl/ResourcesServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinAccountServiceImpl.class b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinAccountServiceImpl.class new file mode 100644 index 0000000..9bdac4f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinAccountServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinOrderPayServiceImpl.class b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinOrderPayServiceImpl.class new file mode 100644 index 0000000..09d3b68 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinOrderPayServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinPayResultServiceImpl.class b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinPayResultServiceImpl.class new file mode 100644 index 0000000..7fbf6f5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinPayResultServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinPayUnifiedOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinPayUnifiedOrderServiceImpl.class new file mode 100644 index 0000000..fcb2fa3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinPayUnifiedOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinRechargeOrderServiceImpl.class b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinRechargeOrderServiceImpl.class new file mode 100644 index 0000000..43477a3 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinRechargeOrderServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinUserServiceImpl.class b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinUserServiceImpl.class new file mode 100644 index 0000000..ef3f600 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/wxdc/impl/WeixinUserServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/service/wxyh/impl/WeixinUserServiceImpl.class b/food-server/target/classes/com/jwsaas/service/wxyh/impl/WeixinUserServiceImpl.class new file mode 100644 index 0000000..1b20740 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/service/wxyh/impl/WeixinUserServiceImpl.class differ diff --git a/food-server/target/classes/com/jwsaas/util/JSONException.class b/food-server/target/classes/com/jwsaas/util/JSONException.class new file mode 100644 index 0000000..8b7b8e1 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/util/JSONException.class differ diff --git a/food-server/target/classes/com/jwsaas/util/JSONUtil.class b/food-server/target/classes/com/jwsaas/util/JSONUtil.class new file mode 100644 index 0000000..947c7fa Binary files /dev/null and b/food-server/target/classes/com/jwsaas/util/JSONUtil.class differ diff --git a/food-server/target/classes/com/jwsaas/util/TlCommonConstants.class b/food-server/target/classes/com/jwsaas/util/TlCommonConstants.class new file mode 100644 index 0000000..db4f52f Binary files /dev/null and b/food-server/target/classes/com/jwsaas/util/TlCommonConstants.class differ diff --git a/food-server/target/classes/com/jwsaas/util/TlHttpClient.class b/food-server/target/classes/com/jwsaas/util/TlHttpClient.class new file mode 100644 index 0000000..a00aa8d Binary files /dev/null and b/food-server/target/classes/com/jwsaas/util/TlHttpClient.class differ diff --git a/food-server/target/classes/com/jwsaas/util/TlHttpUtils.class b/food-server/target/classes/com/jwsaas/util/TlHttpUtils.class new file mode 100644 index 0000000..2713bb5 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/util/TlHttpUtils.class differ diff --git a/food-server/target/classes/com/jwsaas/util/TlRequest.class b/food-server/target/classes/com/jwsaas/util/TlRequest.class new file mode 100644 index 0000000..9ae5fec Binary files /dev/null and b/food-server/target/classes/com/jwsaas/util/TlRequest.class differ diff --git a/food-server/target/classes/com/jwsaas/util/TlSignUtils.class b/food-server/target/classes/com/jwsaas/util/TlSignUtils.class new file mode 100644 index 0000000..b700366 Binary files /dev/null and b/food-server/target/classes/com/jwsaas/util/TlSignUtils.class differ diff --git a/food-server/target/classes/config.properties b/food-server/target/classes/config.properties new file mode 100644 index 0000000..f1c4f52 --- /dev/null +++ b/food-server/target/classes/config.properties @@ -0,0 +1,40 @@ +application.name=middleware-server +application.owner= + +zk.connect=zookeeper://127.0.0.1:2181 +# curator or zkclient +zk.client=curator + +protocol.host=0.0.0.0 +protocol.port=20880 + +service.version=2.0.0 +service.group=default +service.timeout=600000 +service.retries=0 + +#dubbo cache address +dubbo.cache.address=/home/project/boduo/food/dubbo/food-server.cache + +#redis +redis.type=single +redis.url=127.0.0.1:6379 +redis.auth=123456 +redis.database=4 +redis.timeout=5000 +redis.poolsize=10 +redis.subpoolsize=5 + + +#jdbc +jdbc.master.url=jdbc:mysql://47.92.83.179:3306/jw_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC +jdbc.master.username=root +jdbc.master.password=Zsx235679@ + +jdbc.standby.url=jdbc:mysql://47.92.83.179:3306/jw_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC +jdbc.standby.username=root +jdbc.standby.password=Zsx235679@ + +id.worker=1 +id.center=1 +id.sequence=1 \ No newline at end of file diff --git a/food-server/target/classes/logback.xml b/food-server/target/classes/logback.xml new file mode 100644 index 0000000..3efa631 --- /dev/null +++ b/food-server/target/classes/logback.xml @@ -0,0 +1,18 @@ + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] %logger{120} - %msg%n + + UTF-8 + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/food-server-2.0.0.jar b/food-server/target/food-server-2.0.0.jar new file mode 100644 index 0000000..125a6d3 Binary files /dev/null and b/food-server/target/food-server-2.0.0.jar differ diff --git a/food-server/target/food-server-2.0.0.zip b/food-server/target/food-server-2.0.0.zip new file mode 100644 index 0000000..107d838 Binary files /dev/null and b/food-server/target/food-server-2.0.0.zip differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/install.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/install.bat new file mode 100644 index 0000000..046a68c --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/install.bat @@ -0,0 +1,140 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general passthrough startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem _PASS_THROUGH tells the script to pass all parameters through to the JVM +rem as is. +rem If _WRAPPER_CONF_OVERRIDE is specified then all parameters will be passed. +rem If not set then all parameters starting with the second will be passed. +set _PASS_THROUGH=true + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -i %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -i %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause + + diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/middleware b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/middleware new file mode 100644 index 0000000..ad47abe --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/middleware @@ -0,0 +1,2162 @@ +#! /bin/sh + +# +# Copyright (c) 1999, 2016 Tanuki Software, Ltd. +# http://www.tanukisoftware.com +# All rights reserved. +# +# This software is the proprietary information of Tanuki Software. +# You shall use it only in accordance with the terms of the +# license agreement you entered into with Tanuki Software. +# http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +# +# Java Service Wrapper sh script. Suitable for starting and stopping +# wrapped Java applications on UNIX platforms. +# + +#----------------------------------------------------------------------------- +# These settings can be modified to fit the needs of your application +# Optimized for use with version 3.5.28 of the Wrapper. + +#******************************************************************** +# NOTE - This script has been modified to run the TestWrapper sample +# application and should NOT be used as a base for your own +# applications. All of the documentation assumes that you are +# working from the default source script: +# WRAPPER_HOME/src/bin/sh.script.in +#******************************************************************** + +# IMPORTANT - Please always stop and uninstall an application before making +# any changes to this file. Failure to do so could remove the +# script's ability to control the application. + +# Initialization block for the install_initd and remove_initd scripts used by +# SUSE linux, CentOS and RHEL distributions. +# Note: From CentOS 6, make sure the BEGIN INIT INFO section is before any line +# of code otherwise the service won't be displayed in the Service +# Configuration GUI. +### BEGIN INIT INFO +# Provides: wrapper +# Required-Start: $local_fs $network $syslog +# Should-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Wrapper Sample Application +# Description: Wrapper Sample Application Description +### END INIT INFO + +# Application +APP_NAME="food-2.0_server" +APP_LONG_NAME="Food-2.0 Server Application" + +# If uncommented (and set to false), APP_NAME and APP_LONG_NAME will no longer +# be passed to the wrapper. See documentation for details. +#APP_NAME_PASS_TO_WRAPPER=false + +# Wrapper +WRAPPER_CMD="./wrapper" +WRAPPER_CONF="../conf/wrapper.conf" + +# Priority at which to run the wrapper. See "man nice" for valid priorities. +# nice is only used if a priority is specified. +PRIORITY= + +# Location of the pid file. +PIDDIR="." + +# PIDFILE_CHECK_PID tells the script to double check whether the pid in the pid +# file actually exists and belongs to this application. When not set, only +# check the pid, but not what it is. This is only needed when multiple +# applications need to share the same pid file. +PIDFILE_CHECK_PID=true + +# FIXED_COMMAND tells the script to use a hard coded action rather than +# expecting the first parameter of the command line to be the command. +# By default the command will will be expected to be the first parameter. +#FIXED_COMMAND=console + +# PASS_THROUGH tells the script to pass all arguments through to the JVM +# as is. If FIXED_COMMAND is specified then all arguments will be passed. +# If not set then all arguments starting with the second will be passed. +PASS_THROUGH=true + +# If uncommented, causes the Wrapper to be shutdown using an anchor file. +# When launched with the 'start' command, it will also ignore all INT and +# TERM signals. +#IGNORE_SIGNALS=true + +# Wrapper will start the JVM asynchronously. Your application may have some +# initialization tasks and it may be desirable to wait a few seconds +# before returning. For example, to delay the invocation of following +# startup scripts. Setting WAIT_AFTER_STARTUP to a positive number will +# cause the start command to delay for the indicated period of time +# (in seconds). +# +WAIT_AFTER_STARTUP=0 + +# If set, wait for the wrapper to report that the daemon has started +WAIT_FOR_STARTED_STATUS=true +WAIT_FOR_STARTED_TIMEOUT=120 + +# If set, the status, start_msg and stop_msg commands will print out detailed +# state information on the Wrapper and Java processes. +#DETAIL_STATUS=true + +# If set, the 'pause' and 'resume' commands will be enabled. These make it +# possible to pause the JVM or Java application without completely stopping +# the Wrapper. See the wrapper.pausable and wrapper.pausable.stop_jvm +# properties for more information. +#PAUSABLE=true + +# If specified, the Wrapper will be run as the specified user. +# IMPORTANT - Make sure that the user has the required privileges to write +# the PID file and wrapper.log files. Failure to be able to write the log +# file will cause the Wrapper to exit without any way to write out an error +# message. +# NOTE - This will set the user which is used to run the Wrapper as well as +# the JVM and is not useful in situations where a privileged resource or +# port needs to be allocated prior to the user being changed. +#RUN_AS_USER= + +# Set the full path to the 'su' command (substitute user). +# NOTE - In case 'su' is not in the PATH, you can set the absolute path here, +# for example: +# SU_BIN=/bin/su +# NOTE - For Red Hat, the script will use '/sbin/runuser' if it is present and +# ignore the value of SU_BIN. +SU_BIN=su + +# Set option for 'su'. +# In case the user set in RUN_AS_USER has no bash set, the 'su' command will fail. +# The workaround for GNU/Linux system is to specify which bash to use with +# the '-s' option. +#SU_OPTS="-s /bin/bash" + +# Set the full path to the 'id' command. +# For example: +# ID_BIN=/usr/bin/id +ID_BIN=id + +# By default we show a detailed usage block. Uncomment to show brief usage. +#BRIEF_USAGE=true + +# OS service management tool: flag for using Upstart when installing (rather than init.d rc.d) +USE_UPSTART= + +# OS service management tool: flag for using systemd when installing +USE_SYSTEMD= + +# When installing on Mac OSX platforms, the following domain will be used to +# prefix the plist file name. +PLIST_DOMAIN=org.tanukisoftware.wrapper + +# When installing on Mac OSX platforms, this parameter controls whether the daemon +# is to be kept continuously running or to let demand and conditions control the +# invocation. +MACOSX_KEEP_RUNNING="false" + +# The following two lines are used by the chkconfig command. Change as is +# appropriate for your application. They should remain commented. +# chkconfig: 2345 20 80 +# description: Test Wrapper Sample Application + +# Set run level to use when installing the application to start and stop on +# system startup and shutdown. It is important that the application always +# be uninstalled before making any changes to the run levels. +# It is also possible to specify different run levels based on the individual +# platform. When doing so this script will look for defined run levels in +# the following order: +# 1) "RUN_LEVEL_S_$DIST_OS" or "RUN_LEVEL_K_$DIST_OS", where "$DIST_OS" is +# the value of DIST_OS. "RUN_LEVEL_S_solaris=20" for example. +# 2) RUN_LEVEL_S or RUN_LEVEL_K, to specify specify start or stop run levels. +# 3) RUN_LEVEL, to specify a general run level. +RUN_LEVEL=20 + +# Do not modify anything beyond this point +#----------------------------------------------------------------------------- + +# check if we are running under Cygwin terminal. +# Note: on some OS's (for example Solaris, MacOS), -o is not a valid parameter +# and it shows an error message. We redirect stderr to null so the error message +# doesn't show up. +CYGWIN=`uname -o 2>/dev/null` +if [ "$CYGWIN" = "Cygwin" ] +then + eval echo `gettext 'This script is not compatible with Cygwin. Please use the Wrapper batch files to control the Wrapper.'` + exit 1 +fi + +if [ -n "$FIXED_COMMAND" ] +then + COMMAND="$FIXED_COMMAND" +else + COMMAND="$1" +fi + +# check if there is a parameter "sysd" +SYSD= +if [ $# -gt 1 ] ; then + if [ $2 = "sysd" ] ; then + SYSD=1 + fi +fi + +# default location for the service file +SYSTEMD_SERVICE_FILE="/etc/systemd/system/$APP_NAME.service" + +# Required for HP-UX Startup +if [ `uname -s` = "HP-UX" -o `uname -s` = "HP-UX64" ] ; then + PATH=$PATH:/usr/bin +fi + +# Get the fully qualified path to the script +case $0 in + /*) + SCRIPT="$0" + ;; + *) + PWD=`pwd` + SCRIPT="$PWD/$0" + ;; +esac + +# Resolve the true real path without any sym links. +CHANGED=true +while [ "X$CHANGED" != "X" ] +do + # Change spaces to ":" so the tokens can be parsed. + SAFESCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'` + # Get the real path to this script, resolving any symbolic links + TOKENS=`echo $SAFESCRIPT | sed -e 's;/; ;g'` + REALPATH= + for C in $TOKENS; do + # Change any ":" in the token back to a space. + C=`echo $C | sed -e 's;:; ;g'` + REALPATH="$REALPATH/$C" + # If REALPATH is a sym link, resolve it. Loop for nested links. + while [ -h "$REALPATH" ] ; do + LS="`ls -ld "$REALPATH"`" + LINK="`expr "$LS" : '.*-> \(.*\)$'`" + if expr "$LINK" : '/.*' > /dev/null; then + # LINK is absolute. + REALPATH="$LINK" + else + # LINK is relative. + REALPATH="`dirname "$REALPATH"`""/$LINK" + fi + done + done + + if [ "$REALPATH" = "$SCRIPT" ] + then + CHANGED="" + else + SCRIPT="$REALPATH" + fi +done + +# Get the location of the script. +REALDIR=`dirname "$REALPATH"` +# Normalize the path +REALDIR=`cd "${REALDIR}"; pwd` + +# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if +# the working directory is later changed. +FIRST_CHAR=`echo $PIDDIR | cut -c1,1` +if [ "$FIRST_CHAR" != "/" ] +then + PIDDIR=$REALDIR/$PIDDIR +fi +# Same test for WRAPPER_CMD +FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1` +if [ "$FIRST_CHAR" != "/" ] +then + WRAPPER_CMD=$REALDIR/$WRAPPER_CMD +fi +# Same test for WRAPPER_CONF +FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1` +if [ "$FIRST_CHAR" != "/" ] +then + WRAPPER_CONF=$REALDIR/$WRAPPER_CONF +fi + +# Process ID +ANCHORFILE="$PIDDIR/$APP_NAME.anchor" +COMMANDFILE="$PIDDIR/$APP_NAME.command" +STATUSFILE="$PIDDIR/$APP_NAME.status" +JAVASTATUSFILE="$PIDDIR/$APP_NAME.java.status" +PIDFILE="$PIDDIR/$APP_NAME.pid" +LOCKDIR="/var/lock/subsys" +LOCKFILE="$LOCKDIR/$APP_NAME" +pid="" + +# Resolve the location of the 'ps' command +PS_BIN="/usr/ucb/ps" + if [ ! -x "$PS_BIN" ] + then + PS_BIN="/usr/bin/ps" + if [ ! -x "$PS_BIN" ] + then + PS_BIN="/bin/ps" + if [ ! -x "$PS_BIN" ] + then + eval echo `gettext 'Unable to locate "ps".'` + eval echo `gettext 'Please report this message along with the location of the command on your system.'` + exit 1 + fi + fi + fi + +TR_BIN="/usr/bin/tr" +if [ ! -x "$TR_BIN" ] +then + TR_BIN="/bin/tr" + if [ ! -x "$TR_BIN" ] + then + eval echo `gettext 'Unable to locate "tr".'` + eval echo `gettext 'Please report this message along with the location of the command on your system.'` + exit 1 + fi +fi +# Resolve the os +DIST_OS=`uname -s | $TR_BIN "[A-Z]" "[a-z]" | $TR_BIN -d ' '` +case "$DIST_OS" in + 'sunos') + DIST_OS="solaris" + ;; + 'hp-ux' | 'hp-ux64') + # HP-UX needs the XPG4 version of ps (for -o args) + DIST_OS="hpux" + UNIX95="" + export UNIX95 + ;; + 'darwin') + DIST_OS="macosx" + ;; + 'unix_sv') + DIST_OS="unixware" + ;; + 'os/390') + DIST_OS="zos" + ;; +esac + +# Compare Versions $1<$2=0, $1==$2=1, $1>$2=2 +compareVersions () { + if [ "$1" = "$2" ] + then + return 1 + else + local i=1 + while true + do + local v1=`echo "$1" | cut -d '.' -f $i` + local v2=`echo "$2" | cut -d '.' -f $i` + if [ "X$v1" = "X" ] + then + if [ "X$v2" = "X" ] + then + return 1 + fi + v1="0" + elif [ "X$v2" = "X" ] + then + v2="0" + fi + if [ $v1 -lt $v2 ] + then + return 0 + elif [ $v1 -gt $v2 ] + then + return 2 + fi + i=`expr $i + 1` + done + fi +} + +# Resolve the architecture +if [ "$DIST_OS" = "macosx" ] +then + OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*\|[0-9]*\.[0-9]*'` + DIST_ARCH="universal" + compareVersions "$OS_VER" "10.5.0" + if [[ $? < 1 ]] + then + DIST_BITS="32" + KEY_KEEP_ALIVE="OnDemand" + else + # Note: "OnDemand" has been deprecated and replaced from Mac OS X 10.5 by "KeepAlive" + KEY_KEEP_ALIVE="KeepAlive" + + if [ "X`/usr/sbin/sysctl -n hw.cpu64bit_capable`" = "X1" ] + then + DIST_BITS="64" + else + DIST_BITS="32" + fi + fi + APP_PLIST_BASE=${PLIST_DOMAIN}.${APP_NAME} + APP_PLIST=${APP_PLIST_BASE}.plist +else + if [ "$DIST_OS" = "linux" ] + then + DIST_ARCH= + else + DIST_ARCH=`uname -p 2>/dev/null | $TR_BIN "[A-Z]" "[a-z]" | $TR_BIN -d ' '` + fi + if [ "X$DIST_ARCH" = "X" ] + then + DIST_ARCH="unknown" + fi + if [ "$DIST_ARCH" = "unknown" ] + then + DIST_ARCH=`uname -m 2>/dev/null | $TR_BIN "[A-Z]" "[a-z]" | $TR_BIN -d ' '` + fi + case "$DIST_ARCH" in + 'athlon' | 'i386' | 'i486' | 'i586' | 'i686') + DIST_ARCH="x86" + if [ "${DIST_OS}" = "solaris" ] ; then + DIST_BITS=`isainfo -b` + else + DIST_BITS="32" + fi + ;; + 'amd64' | 'x86_64') + DIST_ARCH="x86" + DIST_BITS="64" + ;; + 'ia32') + DIST_ARCH="ia" + DIST_BITS="32" + ;; + 'ia64' | 'ia64n' | 'ia64w') + DIST_ARCH="ia" + DIST_BITS="64" + ;; + 'ip27') + DIST_ARCH="mips" + DIST_BITS="32" + ;; + 'power' | 'powerpc' | 'power_pc' | 'ppc64') + if [ "${DIST_ARCH}" = "ppc64" ] ; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + DIST_ARCH="ppc" + if [ "${DIST_OS}" = "aix" ] ; then + if [ `getconf KERNEL_BITMODE` -eq 64 ]; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + fi + ;; + 'pa_risc' | 'pa-risc') + DIST_ARCH="parisc" + if [ `getconf KERNEL_BITS` -eq 64 ]; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + ;; + 'sun4u' | 'sparcv9' | 'sparc') + DIST_ARCH="sparc" + DIST_BITS=`isainfo -b` + ;; + '9000/800' | '9000/785') + DIST_ARCH="parisc" + if [ `getconf KERNEL_BITS` -eq 64 ]; then + DIST_BITS="64" + else + DIST_BITS="32" + fi + ;; + '2064' | '2066' | '2084' | '2086' | '2094' | '2096' | '2097' | '2098' | '2817') + DIST_ARCH="390" + DIST_BITS="64" + ;; + armv*) + if [ -z "`readelf -A /proc/self/exe | grep Tag_ABI_VFP_args`" ] ; then + DIST_ARCH="armel" + DIST_BITS="32" + else + DIST_ARCH="armhf" + DIST_BITS="32" + fi + ;; + esac +fi + +# OSX always places Java in the same location so we can reliably set JAVA_HOME +if [ "$DIST_OS" = "macosx" ] +then + if [ -z "$JAVA_HOME" ]; then + if [ -x /usr/libexec/java_home ]; then + JAVA_HOME=`/usr/libexec/java_home`; export JAVA_HOME + else + JAVA_HOME="/Library/Java/Home"; export JAVA_HOME + fi + fi +fi + +# Test Echo +ECHOTEST=`echo -n "x"` +if [ "$ECHOTEST" = "x" ] +then + ECHOOPT="-n " + ECHOOPTC="" +else + ECHOOPT="" + ECHOOPTC="\c" +fi + + +gettext() { + "$WRAPPER_CMD" --translate "$1" "$WRAPPER_CONF" 2>/dev/null + if [ $? != 0 ] ; then + echo "$1" + fi +} + +outputFile() { + if [ -f "$1" ] + then + eval echo `gettext ' $1 Found but not executable.'`; + else + echo " $1" + fi +} + +# Decide on the wrapper binary to use. +# If the bits of the OS could be detected, we will try to look for the +# binary with the correct bits value. If it doesn't exist, fall back +# and look for the 32-bit binary. If that doesn't exist either then +# look for the default. +WRAPPER_TEST_CMD="" +if [ -f "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS" ] +then + WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS" + if [ ! -x "$WRAPPER_TEST_CMD" ] + then + chmod +x "$WRAPPER_TEST_CMD" 2>/dev/null + fi + if [ -x "$WRAPPER_TEST_CMD" ] + then + WRAPPER_CMD="$WRAPPER_TEST_CMD" + else + outputFile "$WRAPPER_TEST_CMD" + WRAPPER_TEST_CMD="" + fi +fi +if [ -f "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32" -a -z "$WRAPPER_TEST_CMD" ] +then + WRAPPER_TEST_CMD="$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32" + if [ ! -x "$WRAPPER_TEST_CMD" ] + then + chmod +x "$WRAPPER_TEST_CMD" 2>/dev/null + fi + if [ -x "$WRAPPER_TEST_CMD" ] + then + WRAPPER_CMD="$WRAPPER_TEST_CMD" + else + outputFile "$WRAPPER_TEST_CMD" + WRAPPER_TEST_CMD="" + fi +fi +if [ -f "$WRAPPER_CMD" -a -z "$WRAPPER_TEST_CMD" ] +then + WRAPPER_TEST_CMD="$WRAPPER_CMD" + if [ ! -x "$WRAPPER_TEST_CMD" ] + then + chmod +x "$WRAPPER_TEST_CMD" 2>/dev/null + fi + if [ -x "$WRAPPER_TEST_CMD" ] + then + WRAPPER_CMD="$WRAPPER_TEST_CMD" + else + outputFile "$WRAPPER_TEST_CMD" + WRAPPER_TEST_CMD="" + fi +fi +if [ -z "$WRAPPER_TEST_CMD" ] +then + eval echo `gettext 'Unable to locate any of the following binaries:'` + outputFile "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS" + if [ ! "$DIST_BITS" = "32" ] + then + outputFile "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-32" + fi + outputFile "$WRAPPER_CMD" + + exit 1 +fi + + +# Build the nice clause +if [ "X$PRIORITY" = "X" ] +then + CMDNICE="" +else + CMDNICE="nice -$PRIORITY" +fi + +# Build the anchor file clause. +if [ "X$IGNORE_SIGNALS" = "X" ] +then + ANCHORPROP= + IGNOREPROP= +else + ANCHORPROP=wrapper.anchorfile=\"$ANCHORFILE\" + IGNOREPROP=wrapper.ignore_signals=TRUE +fi + +# Build the status file clause. +if [ "X$DETAIL_STATUS$WAIT_FOR_STARTED_STATUS" = "X" ] +then + STATUSPROP= +else + STATUSPROP="wrapper.statusfile=\"$STATUSFILE\" wrapper.java.statusfile=\"$JAVASTATUSFILE\"" +fi + +# Build the command file clause. +if [ -n "$PAUSABLE" ] +then + COMMANDPROP="wrapper.commandfile=\"$COMMANDFILE\" wrapper.pausable=TRUE" +else + COMMANDPROP= +fi + +if [ ! -n "$WAIT_FOR_STARTED_STATUS" ] +then + WAIT_FOR_STARTED_STATUS=true +fi + +if [ $WAIT_FOR_STARTED_STATUS = true ] ; then + DETAIL_STATUS=true +fi + + +# Build the lock file clause. Only create a lock file if the lock directory exists on this platform. +LOCKPROP= +if [ -d $LOCKDIR ] +then + if [ -w $LOCKDIR ] + then + LOCKPROP=wrapper.lockfile=\"$LOCKFILE\" + fi +fi + +# Build app name clause +if [ ! -n "$APP_NAME_PASS_TO_WRAPPER" ] +then + APP_NAME_PASS_TO_WRAPPER=true +fi +if [ $APP_NAME_PASS_TO_WRAPPER = false ] +then + APPNAMEPROP= +else + APPNAMEPROP="wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\"" +fi + +# Decide on run levels. +RUN_LEVEL_S_DIST_OS_TMP=`eval "echo \$\{RUN_LEVEL_S_${DIST_OS}\}"` +RUN_LEVEL_S_DIST_OS=`eval "echo ${RUN_LEVEL_S_DIST_OS_TMP}"` +if [ "X${RUN_LEVEL_S_DIST_OS}" != "X" ] ; then + APP_RUN_LEVEL_S=${RUN_LEVEL_S_DIST_OS} +elif [ "X$RUN_LEVEL_S" != "X" ] ; then + APP_RUN_LEVEL_S=$RUN_LEVEL_S +else + APP_RUN_LEVEL_S=$RUN_LEVEL +fi +APP_RUN_LEVEL_S_CHECK=`echo "$APP_RUN_LEVEL_S" | sed "s/[(0-9)*]/0/g"` +if [ "X${APP_RUN_LEVEL_S_CHECK}" != "X00" ] ; then + eval echo `gettext 'Run level \"${APP_RUN_LEVEL_S}\" must be numeric and have a length of two \(00-99\).'` + exit 1; +fi +RUN_LEVEL_K_DIST_OS_TMP=`eval "echo \$\{RUN_LEVEL_K_${DIST_OS}\}"` +RUN_LEVEL_K_DIST_OS=`eval "echo ${RUN_LEVEL_K_DIST_OS_TMP}"` +if [ "X${RUN_LEVEL_K_DIST_OS}" != "X" ] ; then + APP_RUN_LEVEL_K=${RUN_LEVEL_K_DIST_OS} +elif [ "X$RUN_LEVEL_K" != "X" ] ; then + APP_RUN_LEVEL_K=$RUN_LEVEL_K +else + APP_RUN_LEVEL_K=$RUN_LEVEL +fi +APP_RUN_LEVEL_K_CHECK=`echo "$APP_RUN_LEVEL_K" | sed "s/[(0-9)*]/0/g"` +if [ "X${APP_RUN_LEVEL_K_CHECK}" != "X00" ] ; then + eval echo `gettext 'Run level \"${APP_RUN_LEVEL_K}\" must be numeric and have a length of two \(00-99\).'` + exit 1; +fi + +prepAdditionalParams() { + ADDITIONAL_PARA="" + if [ ! -n "$PASS_THROUGH" ] + then + PASS_THROUGH=false + fi + if [ $PASS_THROUGH = true ] ; then + ADDITIONAL_PARA="--" + while [ -n "$1" ] ; do + ADDITIONAL_PARA="$ADDITIONAL_PARA \"$1\"" + shift + done + elif [ -n "$1" ] ; then + eval echo `gettext "WARNING: Extra arguments will be ignored. Please run \'$0 help\' for usage."` + fi +} + +checkUser() { + # $1 touchLock flag + # $2.. [command] args + + # Check the configured user. If necessary rerun this script as the desired user. + if [ "X$RUN_AS_USER" != "X" ] + then + # Resolve the location of the 'id' command + ID_BIN="/usr/xpg4/bin/id" + if [ ! -x "$ID_BIN" ] + then + ID_BIN="/usr/bin/id" + if [ ! -x "$ID_BIN" ] + then + eval echo `gettext 'Unable to locate "id".'` + eval echo `gettext 'Please report this message along with the location of the command on your system.'` + exit 1 + fi + fi + + if [ "`$ID_BIN -u -n`" = "$RUN_AS_USER" ] + then + # Already running as the configured user. Avoid password prompts by not calling su. + RUN_AS_USER="" + fi + fi + if [ "X$RUN_AS_USER" != "X" ] + then + if [ "`$ID_BIN -u -n "$RUN_AS_USER" 2>/dev/null`" != "$RUN_AS_USER" ] + then + eval echo `gettext 'User $RUN_AS_USER does not exist.'` + exit 1 + fi + + # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be + # able to create the lock file. The Wrapper will be able to update this file once it + # is created but will not be able to delete it on shutdown. If $1 is set then + # the lock file should be created for the current command + if [ "X$LOCKPROP" != "X" ] + then + if [ "X$1" != "X" ] + then + # Resolve the primary group + RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1` + if [ "X$RUN_AS_GROUP" = "X" ] + then + RUN_AS_GROUP=$RUN_AS_USER + fi + touch $LOCKFILE + chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE + fi + fi + + # Still want to change users, recurse. This means that the user will only be + # prompted for a password once. Variables shifted by 1 + shift + + # Wrap the parameters so they can be passed. + ADDITIONAL_PARA="" + while [ -n "$1" ] ; do + if [ "$1" = 'installstart' ] ; then + # At this point the service is already installed. When we will fork the process we only need to start the service. + ADDITIONAL_PARA="$ADDITIONAL_PARA \"start\"" + else + ADDITIONAL_PARA="$ADDITIONAL_PARA \"$1\"" + fi + shift + done + + # Use "runuser" if this exists. + # runuser should be used on RedHat in preference to su. + if test -f "/sbin/runuser" + then + /sbin/runuser - $RUN_AS_USER -c "\"$REALPATH\" $ADDITIONAL_PARA" + else + $SU_BIN - $RUN_AS_USER -c "\"$REALPATH\" $ADDITIONAL_PARA" $SU_OPTS + fi + RUN_AS_USER_EXITCODE=$? + + # we check if the previous command has failed + if [ $RUN_AS_USER_EXITCODE -ne 0 ] + then + if [ $RUN_AS_USER_EXITCODE -eq 1 ] + then + checkForkCommand + else + eval echo `gettext 'Error executing the requested command with user \"$RUN_AS_USER\" \(error code $RUN_AS_USER_EXITCODE\).'` + echo "" + fi + fi + + # Now that we are the original user again, we may need to clean up the lock file. + if [ "X$LOCKPROP" != "X" ] + then + getpid + if [ "X$pid" = "X" ] + then + # Wrapper is not running so make sure the lock file is deleted. + if [ -f "$LOCKFILE" ] + then + rm "$LOCKFILE" + fi + fi + fi + + exit $RUN_AS_USER_EXITCODE + fi +} + +# Try to fork by executing a simple command. +# With this function, we want to make sure we are able to fork. +checkForkCommand() { + + if test -f "/sbin/runuser" + then + /sbin/runuser - $RUN_AS_USER -c "ls \"$REALPATH\"" > /dev/null 2>&1 & + else + $SU_BIN - $RUN_AS_USER -c "ls \"$REALPATH\"" $SU_OPTS > /dev/null 2>&1 & + fi + CHECK_EXITCODE=$? + + if [ $CHECK_EXITCODE -ne 0 ] + then + # clearly a problem with forking + eval echo `gettext 'Error: unable to create fork process.'` + eval echo `gettext 'Advice:'` + eval echo `gettext 'One possible cause of failure is when the user \(\"$RUN_AS_USER\"\) has no shell.'` + eval echo `gettext 'In this case, two solutions are available by editing the script file:'` + eval echo `gettext '1. Use \"SU_OPTS\" to set the shell for the user.'` + eval echo `gettext '2. Use a OS service management tool (only available on some platforms).'` + echo "" + fi +} + +getpid() { + pid="" + if [ -f "$PIDFILE" ] + then + if [ -r "$PIDFILE" ] + then + pid=`cat "$PIDFILE"` + if [ "X$pid" != "X" ] + then + if [ "X$PIDFILE_CHECK_PID" != "X" ] + then + # It is possible that 'a' process with the pid exists but that it is not the + # correct process. This can happen in a number of cases, but the most + # common is during system startup after an unclean shutdown. + # The ps statement below looks for the specific wrapper command running as + # the pid. If it is not found then the pid file is considered to be stale. + case "$DIST_OS" in + 'freebsd') + pidtest=`$PS_BIN -p $pid -o args | tail -1` + if [ "X$pidtest" = "XCOMMAND" ] + then + pidtest="" + fi + ;; + 'macosx') + pidtest=`$PS_BIN -ww -p $pid -o command | grep -F "$WRAPPER_CMD" | tail -1` + ;; + 'solaris') + if [ -f "/usr/bin/pargs" ] + then + pidtest=`pargs $pid | fgrep "$WRAPPER_CMD" | tail -1` + else + case "$PS_BIN" in + '/usr/ucb/ps') + pidtest=`$PS_BIN -auxww $pid | fgrep "$WRAPPER_CMD" | tail -1` + ;; + '/usr/bin/ps') + TRUNCATED_CMD=`$PS_BIN -o comm -p $pid | tail -1` + COUNT=`echo $TRUNCATED_CMD | wc -m` + COUNT=`echo ${COUNT}` + COUNT=`expr $COUNT - 1` + TRUNCATED_CMD=`echo $WRAPPER_CMD | cut -c1-$COUNT` + pidtest=`$PS_BIN -o comm -p $pid | fgrep "$TRUNCATED_CMD" | tail -1` + ;; + '/bin/ps') + TRUNCATED_CMD=`$PS_BIN -o comm -p $pid | tail -1` + COUNT=`echo $TRUNCATED_CMD | wc -m` + COUNT=`echo ${COUNT}` + COUNT=`expr $COUNT - 1` + TRUNCATED_CMD=`echo $WRAPPER_CMD | cut -c1-$COUNT` + pidtest=`$PS_BIN -o comm -p $pid | fgrep "$TRUNCATED_CMD" | tail -1` + ;; + *) + echo "Unsupported ps command $PS_BIN" + exit 1 + ;; + esac + fi + ;; + 'hpux') + pidtest=`$PS_BIN -p $pid -x -o args | grep -F "$WRAPPER_CMD" | tail -1` + ;; + 'zos') + TRUNCATED_CMD=`$PS_BIN -p $pid -o args | tail -1` + COUNT=`echo $TRUNCATED_CMD | wc -m` + COUNT=`echo ${COUNT}` + COUNT=`expr $COUNT - 1` + TRUNCATED_CMD=`echo $WRAPPER_CMD | cut -c1-$COUNT` + pidtest=`$PS_BIN -p $pid -o args | grep -F "$TRUNCATED_CMD" | tail -1` + ;; + *) + pidtest=`$PS_BIN -p $pid -o args | grep -F "$WRAPPER_CMD" | tail -1` + ;; + esac + else + # Check to see whether the pid exists as a running process, but in this mode, don't check what that pid is. + case "$DIST_OS" in + 'solaris') + case "$PS_BIN" in + '/usr/ucb/ps') + pidtest=`$PS_BIN $pid | grep "$pid" | awk '{print $1}' | tail -1` + ;; + '/usr/bin/ps') + pidtest=`$PS_BIN -p $pid -o pid | grep "$pid" | tail -1` + ;; + '/bin/ps') + pidtest=`$PS_BIN -p $pid -o pid | grep "$pid" | tail -1` + ;; + *) + echo "Unsupported ps command $PS_BIN" + exit 1 + ;; + esac + ;; + *) + pidtest=`$PS_BIN -p $pid -o pid | grep "$pid" | tail -1` + ;; + esac + fi + + if [ "X$pidtest" = "X" ] + then + # This is a stale pid file. + rm -f "$PIDFILE" + eval echo `gettext 'Removed stale pid file: $PIDFILE'` + pid="" + fi + fi + else + eval echo `gettext 'Cannot read $PIDFILE.'` + exit 1 + fi + fi +} + +getstatus() { + STATUS= + if [ -f "$STATUSFILE" ] + then + if [ -r "$STATUSFILE" ] + then + STATUS=`cat "$STATUSFILE"` + fi + fi + if [ "X$STATUS" = "X" ] + then + STATUS="Unknown" + fi + + JAVASTATUS= + if [ -f "$JAVASTATUSFILE" ] + then + if [ -r "$JAVASTATUSFILE" ] + then + JAVASTATUS=`cat "$JAVASTATUSFILE"` + fi + fi + if [ "X$JAVASTATUS" = "X" ] + then + JAVASTATUS="Unknown" + fi +} + +testpid() { + case "$DIST_OS" in + 'solaris') + case "$PS_BIN" in + '/usr/ucb/ps') + pid=`$PS_BIN $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` + ;; + '/usr/bin/ps') + pid=`$PS_BIN -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` + ;; + '/bin/ps') + pid=`$PS_BIN -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` + ;; + *) + echo "Unsupported ps command $PS_BIN" + exit 1 + ;; + esac + ;; + *) + pid=`$PS_BIN -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1` 2>/dev/null + ;; + esac + if [ "X$pid" = "X" ] + then + # Process is gone so remove the pid file. + rm -f "$PIDFILE" + pid="" + fi +} + +launchdtrap() { + stopit + exit +} + +waitforwrapperstop() { + getpid + while [ "X$pid" != "X" ] ; do + sleep 1 + getpid + done +} + +launchinternal() { + getpid + trap launchdtrap TERM + if [ "X$pid" = "X" ] + then + prepAdditionalParams "$@" + + # The string passed to eval must handles spaces in paths correctly. + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.daemonize=TRUE $APPNAMEPROP $ANCHORPROP $IGNOREPROP $STATUSPROP $COMMANDPROP $LOCKPROP wrapper.script.version=3.5.28 $ADDITIONAL_PARA" + eval $COMMAND_LINE + else + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + # launchd expects that this script stay up and running so we need to do our own monitoring of the Wrapper process. + if [ $WAIT_FOR_STARTED_STATUS = true ] + then + waitforwrapperstop + fi +} + +console() { + eval echo `gettext 'Running $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + trap '' 3 + + prepAdditionalParams "$@" + + # The string passed to eval must handles spaces in paths correctly. + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" $APPNAMEPROP $ANCHORPROP $STATUSPROP $COMMANDPROP $LOCKPROP wrapper.script.version=3.5.28 $ADDITIONAL_PARA" + eval $COMMAND_LINE + else + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi +} + +waitforjavastartup() { + getstatus + eval echo $ECHOOPT `gettext 'Waiting for $APP_LONG_NAME...$ECHOOPTC'` + + # Wait until the timeout or we have something besides Unknown. + counter=15 + while [ "$JAVASTATUS" = "Unknown" -a $counter -gt 0 -a -n "$JAVASTATUS" ] ; do + echo $ECHOOPT".$ECHOOPTC" + sleep 1 + getstatus + counter=`expr $counter - 1` + done + + if [ -n "$WAIT_FOR_STARTED_TIMEOUT" ] ; then + counter=$WAIT_FOR_STARTED_TIMEOUT + else + counter=120 + fi + while [ "$JAVASTATUS" != "STARTED" -a "$JAVASTATUS" != "Unknown" -a $counter -gt 0 -a -n "$JAVASTATUS" ] ; do + echo $ECHOOPT".$ECHOOPTC" + sleep 1 + getstatus + counter=`expr $counter - 1` + done + echo "" +} + +startwait() { + if [ $WAIT_FOR_STARTED_STATUS = true ] + then + waitforjavastartup + fi + # Sleep for a few seconds to allow for intialization if required + # then test to make sure we're still running. + # + i=0 + while [ $i -lt $WAIT_AFTER_STARTUP ] + do + sleep 1 + echo $ECHOOPT".$ECHOOPTC" + i=`expr $i + 1` + done + if [ $WAIT_AFTER_STARTUP -gt 0 -o $WAIT_FOR_STARTED_STATUS = true ] + then + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext ' WARNING: $APP_LONG_NAME may have failed to start.'` + exit 1 + else + eval echo `gettext ' running: PID:$pid'` + fi + else + echo "" + fi +} + +mustBeRootOrExit() { + if [ `id | sed 's/^uid=//;s/(.*$//'` != "0" ] ; then + eval echo `gettext 'Must be root to perform this action.'` + exit 1 + fi +} + + +macosxStart() { + # The daemon has been installed. + eval echo `gettext 'Starting $APP_LONG_NAME. Detected Mac OSX and installed launchd daemon.'` + mustBeRootOrExit + + getpid + if [ "X$pid" != "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + + # If the daemon was just installed, it may not be loaded. + LOADED_PLIST=`launchctl list | grep ${APP_PLIST_BASE}` + if [ "X${LOADED_PLIST}" = "X" ] ; then + launchctl load /Library/LaunchDaemons/${APP_PLIST} + fi + # If launchd is set to run the daemon already at Load, we don't need to call start + getpid + if [ "X$pid" = "X" ] ; then + launchctl start ${APP_PLIST_BASE} + fi + + startwait +} + +macosxStop() { + # The daemon should be running. + eval echo `gettext 'Stopping $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + else + if [ "$MACOSX_KEEP_RUNNING" = "true" ] ; then + echo "" + eval echo `gettext 'Daemon is set to be kept continuously running and it will be automatically restarted.'` + eval echo `gettext 'To stop the daemon you need to uninstall it.'` + eval echo `gettext 'If you want to use the \"stop\" argument, you need to find MACOSX_KEEP_RUNNING'` + eval echo `gettext 'at the beginning of the script file and set it to \"false\".'` + echo "" + fi + launchctl stop ${APP_PLIST_BASE} + fi +} + +macosxRestart() { + # The daemon should be running. + eval echo `gettext 'Restarting $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + else + if [ "$MACOSX_KEEP_RUNNING" = "true" ] ; then + # by stopping it, launchd will automatically restart it + launchctl stop ${APP_PLIST_BASE} + else + launchctl unload "/Library/LaunchDaemons/${APP_PLIST}" + sleep 1 + launchctl load "/Library/LaunchDaemons/${APP_PLIST}" + fi + fi + + startwait +} + +upstartstart() { + # The daemon has been installed. + eval echo `gettext 'Starting $APP_LONG_NAME. Detected Linux and installed upstart.'` + mustBeRootOrExit + + getpid + if [ "X$pid" != "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + + /sbin/start ${APP_NAME} + + startwait +} + +upstartStop() { + # The daemon has been installed. + eval echo `gettext 'Stopping $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + fi + + /sbin/stop ${APP_NAME} +} + +upstartRestart() { + # The daemon has been installed. + eval echo `gettext 'Restarting $APP_LONG_NAME...'` + mustBeRootOrExit + + getpid + if [ "X$pid" = "X" ] ; then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + fi + + /sbin/restart ${APP_NAME} + + startwait +} + +systemdInstall() { + eval echo `gettext ' Installing the $APP_LONG_NAME daemon using systemd...'` + if [ -f "${REALDIR}/${APP_NAME}.service" ] ; then + eval echo `gettext ' a custom service file ${APP_NAME}.service found'` + cp "${REALDIR}/${APP_NAME}.service" "${SYSTEMD_SERVICE_FILE}" + else + eval echo `gettext ' creating default service file...'` + echo "[Unit]" > "${SYSTEMD_SERVICE_FILE}" + echo "Description=${APP_LONG_NAME}" >> "${SYSTEMD_SERVICE_FILE}" + echo "After=syslog.target" >> "${SYSTEMD_SERVICE_FILE}" + echo "" >> "${SYSTEMD_SERVICE_FILE}" + echo "[Service]" >> "${SYSTEMD_SERVICE_FILE}" + echo "Type=forking" >> "${SYSTEMD_SERVICE_FILE}" + echo "ExecStart=${REALPATH} start sysd" >> "${SYSTEMD_SERVICE_FILE}" + echo "ExecStop=${REALPATH} stop sysd" >> "${SYSTEMD_SERVICE_FILE}" + if [ "X${RUN_AS_USER}" != "X" ] ; then + echo "User=${RUN_AS_USER}" >> "${SYSTEMD_SERVICE_FILE}" + fi + echo "" >> "${SYSTEMD_SERVICE_FILE}" + echo "[Install]" >> "${SYSTEMD_SERVICE_FILE}" + echo "WantedBy=multi-user.target" >> "${SYSTEMD_SERVICE_FILE}" + + systemctl daemon-reload + systemctl enable "${APP_NAME}" + fi +} + +systemdStart() { + # check if the service file is present + if [ -f "${SYSTEMD_SERVICE_FILE}" ] ; then + eval echo `gettext 'Reading file ${SYSTEMD_SERVICE_FILE}'` + else + eval echo `gettext 'No service file detected. Did you install the service?'` + exit 1 + fi + + systemctl start $APP_NAME + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to start service $APP_NAME'` + exit 1 + fi + + startwait +} + +systemdStop() { + systemctl stop $APP_NAME + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to stop service $APP_NAME'` + exit 1 + fi +} + +systemdRestart() { + systemctl restart $APP_NAME + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to restart service $APP_NAME'` + exit 1 + fi + + startwait +} + +systemdRemove() { + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from systemd...'` + systemctl disable $APP_NAME + rm "/etc/systemd/system/${APP_NAME}.service" + systemctl daemon-reload +} + +srcInstall() { + if [ "X$RUN_AS_USER" = "X" ] ; then + USERID="0" + else + USERID=`$ID_BIN -u "$RUN_AS_USER"` + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to get user id for $RUN_AS_USER'` + exit 1 + fi + fi + /usr/bin/mkssys -s "$APP_NAME" -p "$REALPATH" -a "launchdinternal" -u "$USERID" -f 9 -n 15 -S + /usr/sbin/mkitab "$APP_NAME":2:once:"/usr/bin/startsrc -s \"${APP_NAME}\" >/dev/console 2>&1" +} + +srcStart() { + startsrc -s "${APP_NAME}" + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to start service $APP_NAME'` + exit 1 + fi + + startwait +} + +srcStop() { + stopsrc -s "${APP_NAME}" + if [ $? -ne 0 ] ; then + eval echo `gettext 'Failed to stop service $APP_NAME'` + exit 1 + fi +} + +srcRestart() { + srcStop + srcStart +} + +start() { + eval echo `gettext 'Starting $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + prepAdditionalParams "$@" + + # The string passed to eval must handles spaces in paths correctly. + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.daemonize=TRUE $APPNAMEPROP $ANCHORPROP $IGNOREPROP $STATUSPROP $COMMANDPROP $LOCKPROP wrapper.script.version=3.5.28 $ADDITIONAL_PARA" + eval $COMMAND_LINE + else + eval echo `gettext '$APP_LONG_NAME is already running.'` + exit 1 + fi + + startwait +} + +stopit() { + # $1 exit if down flag + + eval echo `gettext 'Stopping $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME was not running.'` + if [ "X$1" = "X1" ] + then + exit 1 + fi + else + if [ "X$IGNORE_SIGNALS" = "X" ] + then + # Running so try to stop it. + kill $pid + if [ $? -ne 0 ] + then + # An explanation for the failure should have been given + eval echo `gettext 'Unable to stop $APP_LONG_NAME.'` + exit 1 + fi + else + rm -f "$ANCHORFILE" + if [ -f "$ANCHORFILE" ] + then + # An explanation for the failure should have been given + eval echo `gettext 'Unable to stop $APP_LONG_NAME.'` + exit 1 + fi + fi + + # We can not predict how long it will take for the wrapper to + # actually stop as it depends on settings in wrapper.conf. + # Loop until it does. + savepid=$pid + CNT=0 + TOTCNT=0 + while [ "X$pid" != "X" ] + do + # Show a waiting message every 5 seconds. + if [ "$CNT" -lt "5" ] + then + CNT=`expr $CNT + 1` + else + eval echo `gettext 'Waiting for $APP_LONG_NAME to exit...'` + CNT=0 + fi + TOTCNT=`expr $TOTCNT + 1` + + sleep 1 + + testpid + done + + pid=$savepid + testpid + if [ "X$pid" != "X" ] + then + eval echo `gettext 'Failed to stop $APP_LONG_NAME.'` + exit 1 + else + eval echo `gettext 'Stopped $APP_LONG_NAME.'` + fi + fi +} + +pause() { + eval echo `gettext 'Pausing $APP_LONG_NAME.'` +} + +resume() { + eval echo `gettext 'Resuming $APP_LONG_NAME.'` +} + +status() { + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME is not running.'` + exit 1 + else + if [ "X$DETAIL_STATUS" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME is running: PID:$pid'` + else + getstatus + eval echo `gettext '$APP_LONG_NAME is running: PID:$pid, Wrapper:$STATUS, Java:$JAVASTATUS'` + fi + exit 0 + fi +} + +# Make sure APP_NAME is less than 14 characters, otherwise in AIX, the command +# "lsitab" will fail +validateAppNameLength() { + if [ ${#APP_NAME} -gt 14 ] ; then + eval echo `gettext ' APP_NAME (${APP_NAME}) must be less than 14 characters long'` + exit 1 + fi +} + +installUpstart() { + eval echo `gettext ' Installing the $APP_LONG_NAME daemon using upstart..'` + if [ -f "${REALDIR}/${APP_NAME}.install" ] ; then + eval echo `gettext ' a custom upstart conf file ${APP_NAME}.install found'` + cp "${REALDIR}/${APP_NAME}.install" "/etc/init/${APP_NAME}.conf" + else + eval echo `gettext ' creating default upstart conf file..'` + echo "# ${APP_NAME} - ${APP_LONG_NAME}" > "/etc/init/${APP_NAME}.conf" + echo "description \"${APP_LONG_NAME}\"" >> "/etc/init/${APP_NAME}.conf" + echo "author \"Tanuki Software Ltd. \"" >> "/etc/init/${APP_NAME}.conf" + echo "start on runlevel [2345]" >> "/etc/init/${APP_NAME}.conf" + echo "stop on runlevel [!2345]" >> "/etc/init/${APP_NAME}.conf" + echo "env LANG=${LANG}" >> "/etc/init/${APP_NAME}.conf" + echo "exec \"${REALPATH}\" upstartinternal" >> "/etc/init/${APP_NAME}.conf" + fi +} + +installdaemon() { + mustBeRootOrExit + + APP_NAME_LOWER=`echo "$APP_NAME" | $TR_BIN "[A-Z]" "[a-z]"` + if [ "$DIST_OS" = "solaris" ] ; then + eval echo `gettext 'Detected Solaris:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + fi + elif [ "$DIST_OS" = "linux" ] ; then + if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then + eval echo `gettext 'Detected RHEL or Fedora:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + elif [ -n "$USE_SYSTEMD" -a -d "/etc/systemd" ] ; then + systemdInstall + else + if [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then + installUpstart + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + /sbin/chkconfig --add "$APP_NAME" + /sbin/chkconfig "$APP_NAME" on + fi + fi + elif [ -f /etc/SuSE-release ] ; then + eval echo `gettext 'Detected SuSE or SLES:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + elif [ -n "$USE_SYSTEMD" -a -d "/etc/systemd" ] ; then + systemdInstall + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + insserv "/etc/init.d/$APP_NAME" + fi + elif [ -f /etc/lsb-release -o -f /etc/debian_version -o -f /etc/debian_release ] ; then + eval echo `gettext 'Detected Ubuntu or Debian:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + if [ -n "$USE_SYSTEMD" -a -d "/etc/systemd" ] ; then + systemdInstall + elif [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then + installUpstart + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon using init.d..'` + ln -s "$REALPATH" "/etc/init.d/$APP_NAME" + update-rc.d "$APP_NAME" defaults + fi + fi + else + eval echo `gettext 'Detected Linux:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" /etc/init.d/$APP_NAME + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc5.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" "/etc/rc5.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc5.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + ln -s "/etc/init.d/$APP_NAME" "/etc/rc5.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + fi + fi + elif [ "$DIST_OS" = "hpux" ] ; then + eval echo `gettext 'Detected HP-UX:'` + if [ -f "/sbin/init.d/$APP_NAME" -o -L "/sbin/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + ln -s "$REALPATH" "/sbin/init.d/$APP_NAME" + for i in `ls "/sbin/rc3.d/K"??"$APP_NAME_LOWER" "/sbin/rc3.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/K${APP_RUN_LEVEL_K}$APP_NAME_LOWER" + ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/S${APP_RUN_LEVEL_S}$APP_NAME_LOWER" + fi + elif [ "$DIST_OS" = "aix" ] ; then + eval echo `gettext 'Detected AIX:'` + validateAppNameLength + if [ -f "/etc/rc.d/init.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed as rc.d script.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + elif [ -n "`/usr/sbin/lsitab $APP_NAME`" -a -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed as SRC service.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + if [ -n "`/usr/sbin/lsitab install_assist`" ] ; then + eval echo `gettext ' The task /usr/sbin/install_assist was found in the inittab, this might cause problems for all subsequent tasks to launch at this process is known to block the init task. Please make sure this task is not needed anymore and remove/deactivate it.'` + fi + for i in `ls "/etc/rc.d/rc2.d/K"??"$APP_NAME_LOWER" "/etc/rc.d/rc2.d/S"??"$APP_NAME_LOWER" 2>/dev/null` ; do + eval echo `gettext ' Removing unexpected file before proceeding: $i'` + rm -f $i + done + srcInstall + fi + elif [ "$DIST_OS" = "freebsd" ] ; then + eval echo `gettext 'Detected FreeBSD:'` + if [ -f "/etc/rc.d/$APP_NAME" -o -L "/etc/rc.d/$APP_NAME" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf + if [ -f "${REALDIR}/${APP_NAME}.install" ] ; then + ln -s "${REALDIR}/${APP_NAME}.install" "/etc/rc.d/$APP_NAME" + else + echo '#!/bin/sh' > "/etc/rc.d/$APP_NAME" + echo "#" >> "/etc/rc.d/$APP_NAME" + echo "# PROVIDE: $APP_NAME" >> "/etc/rc.d/$APP_NAME" + echo "# REQUIRE: NETWORKING" >> "/etc/rc.d/$APP_NAME" + echo "# KEYWORD: shutdown" >> "/etc/rc.d/$APP_NAME" + echo ". /etc/rc.subr" >> "/etc/rc.d/$APP_NAME" + echo "name=\"$APP_NAME\"" >> "/etc/rc.d/$APP_NAME" + echo "rcvar=\`set_rcvar\`" >> "/etc/rc.d/$APP_NAME" + echo "command=\"${REALPATH}\"" >> "/etc/rc.d/$APP_NAME" + echo 'start_cmd="${name}_start"' >> "/etc/rc.d/$APP_NAME" + echo 'load_rc_config $name' >> "/etc/rc.d/$APP_NAME" + echo 'status_cmd="${name}_status"' >> "/etc/rc.d/$APP_NAME" + echo 'stop_cmd="${name}_stop"' >> "/etc/rc.d/$APP_NAME" + echo "${APP_NAME}_status() {" >> "/etc/rc.d/$APP_NAME" + echo '${command} status' >> "/etc/rc.d/$APP_NAME" + echo '}' >> "/etc/rc.d/$APP_NAME" + echo "${APP_NAME}_stop() {" >> "/etc/rc.d/$APP_NAME" + echo '${command} stop' >> "/etc/rc.d/$APP_NAME" + echo '}' >> "/etc/rc.d/$APP_NAME" + echo "${APP_NAME}_start() {" >> "/etc/rc.d/$APP_NAME" + echo '${command} start' >> "/etc/rc.d/$APP_NAME" + echo '}' >> "/etc/rc.d/$APP_NAME" + echo 'run_rc_command "$1"' >> "/etc/rc.d/$APP_NAME" + fi + echo "${APP_NAME}_enable=\"YES\"" >> /etc/rc.conf + chmod 555 "/etc/rc.d/$APP_NAME" + fi + elif [ "$DIST_OS" = "macosx" ] ; then + eval echo `gettext 'Detected Mac OSX:'` + if [ -f "/Library/LaunchDaemons/${APP_PLIST}" -o -L "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + if [ -f "${REALDIR}/${APP_PLIST}" ] ; then + ln -s "${REALDIR}/${APP_PLIST}" "/Library/LaunchDaemons/${APP_PLIST}" + else + echo "" > "/Library/LaunchDaemons/${APP_PLIST}" + echo "> "/Library/LaunchDaemons/${APP_PLIST}" + echo "\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo "" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " Label" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${APP_PLIST_BASE}" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ProgramArguments" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${REALPATH}" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " launchdinternal" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${KEY_KEEP_ALIVE}" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " <${MACOSX_KEEP_RUNNING}/>" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " RunAtLoad" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + if [ "X$RUN_AS_USER" != "X" ] ; then + echo " UserName" >> "/Library/LaunchDaemons/${APP_PLIST}" + echo " ${RUN_AS_USER}" >> "/Library/LaunchDaemons/${APP_PLIST}" + fi + echo " " >> "/Library/LaunchDaemons/${APP_PLIST}" + echo "" >> "/Library/LaunchDaemons/${APP_PLIST}" + fi + chmod 555 "/Library/LaunchDaemons/${APP_PLIST}" + fi + elif [ "$DIST_OS" = "zos" ] ; then + eval echo `gettext 'Detected z/OS:'` + if [ -f /etc/rc.bak ] ; then + eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` + if [ "$COMMAND" != 'installstart' ] ; then + exit 1 + fi + else + eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` + cp /etc/rc /etc/rc.bak + sed "s:echo /etc/rc script executed, \`date\`::g" /etc/rc.bak > /etc/rc + echo "_BPX_JOBNAME='${APP_NAME}' \"${REALDIR}/${APP_NAME}\" start" >>/etc/rc + echo '/etc/rc script executed, `date`' >>/etc/rc + fi + else + eval echo `gettext 'Install not currently supported for $DIST_OS'` + exit 1 + fi +} + +startdaemon() { + if [ "$DIST_OS" = "macosx" ] ; then + if [ ! -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + eval echo `gettext 'The $APP_LONG_NAME daemon is not currently installed.'` + else + macosxStart + fi + elif [ "$DIST_OS" = "linux" -a -f "/etc/init/${APP_NAME}.conf" ] ; then + upstartstart + elif [ "$DIST_OS" = "linux" -a -n "$USE_SYSTEMD" -a -z "$SYSD" ] ; then + systemdStart + elif [ "$DIST_OS" = "aix" ] && [ -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + srcStart + else + if [ -n "$SYSD" ] ; then + shift + fi + + checkUser touchlock "$@" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + start "$@" + fi +} + +removedaemon() { + mustBeRootOrExit + + APP_NAME_LOWER=`echo "$APP_NAME" | $TR_BIN "[A-Z]" "[a-z]"` + if [ "$DIST_OS" = "solaris" ] ; then + eval echo `gettext 'Detected Solaris:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" "/etc/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "linux" ] ; then + if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then + eval echo `gettext 'Detected RHEL or Fedora:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + /sbin/chkconfig "$APP_NAME" off + /sbin/chkconfig --del "$APP_NAME" + rm -f "/etc/init.d/$APP_NAME" + elif [ -n "$USE_SYSTEMD" -a -f "${SYSTEMD_SERVICE_FILE}" ] ; then + systemdRemove + elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from upstart...'` + rm "/etc/init/${APP_NAME}.conf" + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ -f /etc/SuSE-release ] ; then + eval echo `gettext 'Detected SuSE or SLES:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + insserv -r "/etc/init.d/$APP_NAME" + rm -f "/etc/init.d/$APP_NAME" + elif [ -n "$USE_SYSTEMD" -a -f "${SYSTEMD_SERVICE_FILE}" ] ; then + systemdRemove + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ -f /etc/lsb-release -o -f /etc/debian_version -o -f /etc/debian_release ] ; then + eval echo `gettext 'Detected Ubuntu or Debian:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from init.d...'` + update-rc.d -f "$APP_NAME" remove + rm -f "/etc/init.d/$APP_NAME" + elif [ -n "$USE_SYSTEMD" -a -f "${SYSTEMD_SERVICE_FILE}" ] ; then + systemdRemove + elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon from upstart...'` + rm "/etc/init/${APP_NAME}.conf" + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + else + eval echo `gettext 'Detected Linux:'` + if [ -f "/etc/init.d/$APP_NAME" -o -L "/etc/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in `ls "/etc/rc3.d/K"??"$APP_NAME_LOWER" "/etc/rc5.d/K"??"$APP_NAME_LOWER" "/etc/rc3.d/S"??"$APP_NAME_LOWER" "/etc/rc5.d/S"??"$APP_NAME_LOWER" "/etc/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + fi + elif [ "$DIST_OS" = "hpux" ] ; then + eval echo `gettext 'Detected HP-UX:'` + if [ -f "/sbin/init.d/$APP_NAME" -o -L "/sbin/init.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in `ls "/sbin/rc3.d/K"??"$APP_NAME_LOWER" "/sbin/rc3.d/S"??"$APP_NAME_LOWER" "/sbin/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "aix" ] ; then + eval echo `gettext 'Detected AIX:'` + validateAppNameLength + if [ -f "/etc/rc.d/init.d/$APP_NAME" -o -L "/etc/rc.d/init.d/$APP_NAME" -o -n "`/usr/sbin/lsitab $APP_NAME`" -o -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + if [ -f "/etc/rc.d/init.d/$APP_NAME" -o -L "/etc/rc.d/init.d/$APP_NAME" ] ; then + for i in `ls "/etc/rc.d/rc2.d/K"??"$APP_NAME_LOWER" "/etc/rc.d/rc2.d/S"??"$APP_NAME_LOWER" "/etc/rc.d/init.d/$APP_NAME" 2>/dev/null` ; do + rm -f $i + done + fi + if [ -n "`/usr/sbin/lsitab $APP_NAME`" -o -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + /usr/sbin/rmitab $APP_NAME + /usr/bin/rmssys -s $APP_NAME + fi + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "freebsd" ] ; then + eval echo `gettext 'Detected FreeBSD:'` + if [ -f "/etc/rc.d/$APP_NAME" -o -L "/etc/rc.d/$APP_NAME" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + for i in "/etc/rc.d/$APP_NAME" + do + rm -f $i + done + sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "macosx" ] ; then + eval echo `gettext 'Detected Mac OSX:'` + if [ -f "/Library/LaunchDaemons/${APP_PLIST}" -o -L "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + # Make sure the plist is installed + LOADED_PLIST=`launchctl list | grep ${APP_PLIST_BASE}` + if [ "X${LOADED_PLIST}" != "X" ] ; then + launchctl unload "/Library/LaunchDaemons/${APP_PLIST}" + fi + rm -f "/Library/LaunchDaemons/${APP_PLIST}" + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + elif [ "$DIST_OS" = "zos" ] ; then + eval echo `gettext 'Detected z/OS:'` + if [ -f /etc/rc.bak ] ; then + stopit "0" + eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` + cp /etc/rc /etc/rc.bak + sed "s/_BPX_JOBNAME=\'APP_NAME\'.*//g" /etc/rc.bak > /etc/rc + rm /etc/rc.bak + else + eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` + exit 1 + fi + else + eval echo `gettext 'Remove not currently supported for $DIST_OS'` + exit 1 + fi +} + +dump() { + eval echo `gettext 'Dumping $APP_LONG_NAME...'` + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext '$APP_LONG_NAME was not running.'` + else + kill -3 $pid + + if [ $? -ne 0 ] + then + eval echo `gettext 'Failed to dump $APP_LONG_NAME.'` + exit 1 + else + eval echo `gettext 'Dumped $APP_LONG_NAME.'` + fi + fi +} + +# Used by HP-UX init scripts. +startmsg() { + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:Stopped'` + else + if [ "X$DETAIL_STATUS" = "X" ] + then + eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:Running'` + else + getstatus + eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'` + fi + fi +} + +# Used by HP-UX init scripts. +stopmsg() { + getpid + if [ "X$pid" = "X" ] + then + eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:Stopped'` + else + if [ "X$DETAIL_STATUS" = "X" ] + then + eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:Running'` + else + getstatus + eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'` + fi + fi +} + +showUsage() { + # $1 bad command + + if [ -n "$1" ] + then + eval echo `gettext 'Unexpected command: $1'` + echo ""; + fi + + eval MSG=`gettext 'Usage: '` + if [ -n "$FIXED_COMMAND" ] ; then + if [ -n "$PASS_THROUGH" ] ; then + echo "${MSG} $0 {JavaAppArgs}" + else + echo "${MSG} $0" + fi + else + if [ -n "$PAUSABLE" ] ; then + if [ -n "$PASS_THROUGH" ] ; then + echo "${MSG} $0 [ console {JavaAppArgs} | start {JavaAppArgs} | stop | restart {JavaAppArgs} | condrestart {JavaAppArgs} | pause | resume | status | install | installstart | remove | dump ]" + else + echo "${MSG} $0 [ console | start | stop | restart | condrestart | pause | resume | status | install | installstart | remove | dump ]" + fi + else + if [ -n "$PASS_THROUGH" ] ; then + echo "${MSG} $0 [ console {JavaAppArgs} | start {JavaAppArgs} | stop | restart {JavaAppArgs} | condrestart {JavaAppArgs} | status | install | installstart | remove | dump ]" + else + echo "${MSG} $0 [ console | start | stop | restart | condrestart | status | install | installstart | remove | dump ]" + fi + fi + fi + + if [ ! -n "$BRIEF_USAGE" ] + then + echo ""; + if [ ! -n "$FIXED_COMMAND" ] ; then + echo "`gettext 'Commands:'`" + echo "`gettext ' console Launch in the current console.'`" + echo "`gettext ' start Start in the background as a daemon process.'`" + echo "`gettext ' stop Stop if running as a daemon or in another console.'`" + echo "`gettext ' restart Stop if running and then start.'`" + echo "`gettext ' condrestart Restart only if already running.'`" + if [ -n "$PAUSABLE" ] ; then + echo "`gettext ' pause Pause if running.'`" + echo "`gettext ' resume Resume if paused.'`" + fi + echo "`gettext ' status Query the current status.'`" + echo "`gettext ' install Install to start automatically when system boots.'`" + echo "`gettext ' installstart Install and start running as a daemon process.'`" + echo "`gettext ' remove Uninstall.'`" + echo "`gettext ' dump Request a Java thread dump if running.'`" + echo ""; + fi + if [ -n "$PASS_THROUGH" ] ; then + echo "`gettext 'JavaAppArgs: Zero or more arguments which will be passed to the Java application.'`" + echo ""; + fi + fi + + exit 1 +} + +docommand() { + case "$COMMAND" in + 'console') + checkUser touchlock "$@" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + console "$@" + ;; + + 'start') + startdaemon "$@" + ;; + + 'stop') + if [ "$DIST_OS" = "macosx" -a -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + macosxStop + elif [ "$DIST_OS" = "linux" -a -f "/etc/init/${APP_NAME}.conf" ] ; then + upstartStop + elif [ "$DIST_OS" = "linux" -a -n "$USE_SYSTEMD" -a -z "$SYSD" ] ; then + systemdStop + elif [ "$DIST_OS" = "aix" ] && [ "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + srcStop + else + checkUser "" "$COMMAND" + stopit "0" + fi + ;; + + 'restart') + if [ "$DIST_OS" = "macosx" ] ; then + if [ ! -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + eval echo `gettext '$APP_NAME was not installed.'` + else + macosxRestart + fi + elif [ "$DIST_OS" = "linux" -a -f "/etc/init/${APP_NAME}.conf" ] ; then + upstartRestart + elif [ "$DIST_OS" = "linux" -a -n "$USE_SYSTEMD" -a -z "$SYSD" ] ; then + systemdRestart + elif [ "$DIST_OS" = "aix" ] && [ "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then + srcRestart + else + if [ -n "$SMF" ] ; then + shift + fi + checkUser touchlock "$COMMAND" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + stopit "0" + start "$@" + fi + ;; + + 'condrestart') + checkUser touchlock "$COMMAND" + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + stopit "1" + start "$@" + ;; + + 'pause') + if [ -n "$PAUSABLE" ] + then + pause + else + showUsage "$COMMAND" + fi + ;; + + 'resume') + if [ -n "$PAUSABLE" ] + then + resume + else + showUsage "$COMMAND" + fi + ;; + + 'status') + status + ;; + + 'install') + installdaemon "$@" + ;; + + 'installstart') + installdaemon "$@" + startdaemon "$@" + ;; + + 'remove') + removedaemon + ;; + + 'dump') + checkUser "" "$COMMAND" + dump + ;; + + 'start_msg') + # Internal command called by launchd on HP-UX. + checkUser "" "$COMMAND" + startmsg + ;; + + 'stop_msg') + # Internal command called by launchd on HP-UX. + checkUser "" "$COMMAND" + stopmsg + ;; + + 'launchdinternal' | 'upstartinternal') + if [ ! "$DIST_OS" = "macosx" -o ! -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then + checkUser touchlock "$@" + fi + # Internal command called by launchd on Max OSX. + # We do not want to call checkUser here as it is handled in the launchd plist file. Doing it here would confuse launchd. + if [ ! -n "$FIXED_COMMAND" ] ; then + shift + fi + launchinternal "$@" + ;; + + *) + showUsage "$COMMAND" + ;; + esac +} + +docommand "$@" + +exit 0 diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/pause.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/pause.bat new file mode 100644 index 0000000..65a2166 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/pause.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -a %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -a %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/query.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/query.bat new file mode 100644 index 0000000..5638a44 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/query.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -q %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -q %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/resume.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/resume.bat new file mode 100644 index 0000000..8b4d6ea --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/resume.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -e %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -e %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/run.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/run.bat new file mode 100644 index 0000000..8672708 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/run.bat @@ -0,0 +1,156 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general passthrough startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. +rem +rem ******************************************************************** +rem NOTE - This script has been modified to run the TestWrapper sample +rem application and should NOT be used as a base for your own +rem applications. All of the documentation assumes that you are +rem working from the default source script: +rem WRAPPER_HOME/src/bin/App.bat.in +rem ******************************************************************** +rem +rem ******************************************************************** +rem NOTE - This script has been modified to run the TestWrapper sample +rem application and should NOT be used as a base for your own +rem applications. All of the documentation assumes that you are +rem working from the default source script: +rem WRAPPER_HOME/src/bin/App.bat.in +rem ******************************************************************** + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem _PASS_THROUGH tells the script to pass all parameters through to the JVM +rem as is. +rem If _WRAPPER_CONF_OVERRIDE is specified then all parameters will be passed. +rem If not set then all parameters starting with the second will be passed. +set _PASS_THROUGH=true + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -c %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -c %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause + + diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/start.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/start.bat new file mode 100644 index 0000000..d7d5e85 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/start.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -t %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -t %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/stop.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/stop.bat new file mode 100644 index 0000000..49d717c --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/stop.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -p %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -p %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/uninstall.bat b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/uninstall.bat new file mode 100644 index 0000000..6ee6d07 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/uninstall.bat @@ -0,0 +1,135 @@ +@echo off +setlocal + +rem +rem Copyright (c) 1999, 2016 Tanuki Software, Ltd. +rem http://www.tanukisoftware.com +rem All rights reserved. +rem +rem This software is the proprietary information of Tanuki Software. +rem You shall use it only in accordance with the terms of the +rem license agreement you entered into with Tanuki Software. +rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html +rem +rem Java Service Wrapper general startup script. +rem + +rem ----------------------------------------------------------------------------- +rem These settings can be modified to fit the needs of your application +rem Optimized for use with version 3.5.28 of the Wrapper. + +rem The base name for the Wrapper binary. +set _WRAPPER_BASE=wrapper + +rem The directory where the Wrapper binary (.exe) file is located. It can be +rem either an absolute or a relative path. If the path contains any special +rem characters, please make sure to quote the variable. +set _WRAPPER_DIR= + +rem The name and location of the Wrapper configuration file. This will be used +rem if the user does not specify a configuration file as the first parameter to +rem this script. +set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf" + +rem Makes it possible to override the Wrapper configuration file by specifying it +rem as the first parameter. +rem set _WRAPPER_CONF_OVERRIDE=true + +rem Note that it is only possible to pass parameters through to the JVM when +rem installing the service, or when running in a console. + +rem Do not modify anything beyond this point +rem ----------------------------------------------------------------------------- + +rem +rem Resolve the real path of the wrapper.exe +rem For non NT systems, the _REALPATH and _WRAPPER_CONF values +rem can be hard-coded below and the following test removed. +rem +if "%OS%"=="Windows_NT" goto nt +echo This script only works with NT-based versions of Windows. +goto :eof + +:nt +rem Find the application home. +rem if no path path specified do the default action +IF not DEFINED _WRAPPER_DIR goto dir_undefined +set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%" +if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\" +rem check if absolute path +if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path +if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path +rem everythig else means relative path +set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%" +goto pathfound + +:dir_undefined +rem Use a relative path to the wrapper %~dp0 is location of current script under NT +set _REALPATH="%~dp0" +goto pathfound +:absolute_path +rem Use an absolute path to the wrapper +set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%" + +:pathfound +rem +rem Decide on the specific Wrapper binary to use (See delta-pack) +rem +if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64 +if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe" +goto search +:amd64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe" +goto search +:ia64 +set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe" +goto search +:search +set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%" +if exist %_WRAPPER_EXE% goto conf +set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe" +if exist %_WRAPPER_EXE% goto conf +echo Unable to locate a Wrapper executable using any of the following names: +echo %_WRAPPER_L_EXE% +echo %_WRAPPER_EXE% +pause +goto :eof + +rem +rem Find the wrapper.conf +rem +:conf +if [%_WRAPPER_CONF_OVERRIDE%]==[true] ( + set _WRAPPER_CONF="%~f1" + if not [%_WRAPPER_CONF%]==[""] ( + shift + goto :startup + ) +) +set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%" + +rem +rem Start the Wrapper +rem +:startup +if not [%_PASS_THROUGH%]==[true] ( + if not [%1]==[] ( + echo WARNING: Extra arguments will be ignored. Please check usage in the batch file. + ) +) + +rem Collect the application parameters +:parameters +set _PARAMETERS=%_PARAMETERS% %1 +shift +if not [%1]==[] goto :parameters + +if not [%_PASS_THROUGH%]==[true] ( + %_WRAPPER_EXE% -r %_WRAPPER_CONF% +) else ( + %_WRAPPER_EXE% -r %_WRAPPER_CONF% -- %_PARAMETERS% +) +if not errorlevel 1 goto :eof +pause diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-linux-x86-32 b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-linux-x86-32 new file mode 100644 index 0000000..ff3509f Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-linux-x86-32 differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-linux-x86-64 b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-linux-x86-64 new file mode 100644 index 0000000..e72b0e0 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-linux-x86-64 differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-macosx-universal-32 b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-macosx-universal-32 new file mode 100644 index 0000000..9a36a5c Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-macosx-universal-32 differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-macosx-universal-64 b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-macosx-universal-64 new file mode 100644 index 0000000..6587d2c Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-macosx-universal-64 differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-windows-x86-32.exe b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-windows-x86-32.exe new file mode 100644 index 0000000..9762dbf Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-windows-x86-32.exe differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-windows-x86-64.exe b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-windows-x86-64.exe new file mode 100644 index 0000000..122ec17 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/bin/wrapper-windows-x86-64.exe differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/config.properties b/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/config.properties new file mode 100644 index 0000000..f1c4f52 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/config.properties @@ -0,0 +1,40 @@ +application.name=middleware-server +application.owner= + +zk.connect=zookeeper://127.0.0.1:2181 +# curator or zkclient +zk.client=curator + +protocol.host=0.0.0.0 +protocol.port=20880 + +service.version=2.0.0 +service.group=default +service.timeout=600000 +service.retries=0 + +#dubbo cache address +dubbo.cache.address=/home/project/boduo/food/dubbo/food-server.cache + +#redis +redis.type=single +redis.url=127.0.0.1:6379 +redis.auth=123456 +redis.database=4 +redis.timeout=5000 +redis.poolsize=10 +redis.subpoolsize=5 + + +#jdbc +jdbc.master.url=jdbc:mysql://47.92.83.179:3306/jw_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC +jdbc.master.username=root +jdbc.master.password=Zsx235679@ + +jdbc.standby.url=jdbc:mysql://47.92.83.179:3306/jw_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC +jdbc.standby.username=root +jdbc.standby.password=Zsx235679@ + +id.worker=1 +id.center=1 +id.sequence=1 \ No newline at end of file diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/logback.xml b/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/logback.xml new file mode 100644 index 0000000..3efa631 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/logback.xml @@ -0,0 +1,18 @@ + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] %logger{120} - %msg%n + + UTF-8 + + + + + + + + + + \ No newline at end of file diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/wrapper.conf b/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/wrapper.conf new file mode 100644 index 0000000..e97e0f1 --- /dev/null +++ b/food-server/target/food-server-2.0.0/food-server-2.0.0/conf/wrapper.conf @@ -0,0 +1,55 @@ +encoding=UTF-8 +wrapper.java.command=java +#set.JAVA_HOME=/java/path +#wrapper.java.command=%JAVA_HOME%/bin/java +#wrapper.java.command.loglevel=INFO + +wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp +wrapper.java.classpath.1=./ +wrapper.java.classpath.2=../conf/ +wrapper.java.classpath.3=../lib/*.jar + +wrapper.java.library.path.1=../lib + +# Java Additional Parameters +wrapper.java.additional.1=-Djava.io.tmpdir=../temp/ +wrapper.java.additional.2=-Dmiddleware.basedir=../ +wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true +wrapper.java.additional.4=-Dsun.lang.ClassLoader.allowArraySyntax=true +wrapper.java.additional.5=-Xms512m +wrapper.java.additional.6=-Xmx1024m +wrapper.java.additional.7=-Ddubbo.application.logger=slf4j +wrapper.java.additional.8=-Ddubbo.spring.config=classpath*:META-INF/spring/spring*.xml +wrapper.java.additional.9=-Ddubbo.container=logback,spring + +#wrapper.java.initmemory=3 +#wrapper.java.maxmemory=64 + +wrapper.app.parameter.1=com.jwsaas.Main + +# wrapper.debug=TRUE + +wrapper.console.format=PM +wrapper.console.loglevel=INFO + +wrapper.logfile=../logs/midd_YYYYMMDD.log +wrapper.logfile.rollmode=DATE +wrapper.logfile.format=LPTM +wrapper.logfile.loglevel=INFO +wrapper.logfile.maxsize=0 +wrapper.logfile.maxfiles=0 +wrapper.syslog.loglevel=NONE + +wrapper.ignore_sequence_gaps=TRUE +wrapper.pidfile.strict=TRUE +wrapper.console.title=Food-2.0 Server Application + +wrapper.name=food2_server +wrapper.displayname=Food-2.0 Server Application +wrapper.description=Food-2.0 Server Application Description +wrapper.ntservice.dependency.1= +wrapper.ntservice.starttype=AUTO_START +wrapper.ntservice.interactive=true + +wrapper.filter.trigger.1=java.lang.OutOfMemoryError +wrapper.filter.action.1=RESTART \ No newline at end of file diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/aspectjrt-1.7.3.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/aspectjrt-1.7.3.jar new file mode 100644 index 0000000..ef9fe4b Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/aspectjrt-1.7.3.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/aspectjweaver-1.7.3.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/aspectjweaver-1.7.3.jar new file mode 100644 index 0000000..7ecd603 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/aspectjweaver-1.7.3.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/cache-api-1.0.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/cache-api-1.0.0.jar new file mode 100644 index 0000000..74c0ed2 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/cache-api-1.0.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/common-dubbo-1.0.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/common-dubbo-1.0.0.jar new file mode 100644 index 0000000..42ea64a Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/common-dubbo-1.0.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/common-utils-1.0.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/common-utils-1.0.0.jar new file mode 100644 index 0000000..ea1f2fd Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/common-utils-1.0.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-codec-1.10.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-codec-1.10.jar new file mode 100644 index 0000000..1d7417c Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-codec-1.10.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-collections4-4.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-collections4-4.0.jar new file mode 100644 index 0000000..4fb2b11 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-collections4-4.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-lang3-3.4.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-lang3-3.4.jar new file mode 100644 index 0000000..8ec91d4 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-lang3-3.4.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-logging-1.2.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-logging-1.2.jar new file mode 100644 index 0000000..93a3b9f Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/commons-logging-1.2.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/curator-client-2.11.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/curator-client-2.11.0.jar new file mode 100644 index 0000000..4b29e7b Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/curator-client-2.11.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/curator-framework-2.11.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/curator-framework-2.11.0.jar new file mode 100644 index 0000000..dc617ca Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/curator-framework-2.11.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/druid-1.1.12.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/druid-1.1.12.jar new file mode 100644 index 0000000..c3ffc18 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/druid-1.1.12.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/dubbo-2.6.5.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/dubbo-2.6.5.jar new file mode 100644 index 0000000..08c058b Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/dubbo-2.6.5.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/fastjson-1.2.47.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/fastjson-1.2.47.jar new file mode 100644 index 0000000..f342bca Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/fastjson-1.2.47.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/food-api-2.0.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/food-api-2.0.0.jar new file mode 100644 index 0000000..b8f117e Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/food-api-2.0.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/food-server-2.0.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/food-server-2.0.0.jar new file mode 100644 index 0000000..125a6d3 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/food-server-2.0.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/freemarker-2.3.27-incubating.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/freemarker-2.3.27-incubating.jar new file mode 100644 index 0000000..c7cc348 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/freemarker-2.3.27-incubating.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/fst-2.57.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/fst-2.57.jar new file mode 100644 index 0000000..d0475fb Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/fst-2.57.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/guava-16.0.1.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/guava-16.0.1.jar new file mode 100644 index 0000000..2c8127d Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/guava-16.0.1.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpclient-4.5.3.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpclient-4.5.3.jar new file mode 100644 index 0000000..8af4561 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpclient-4.5.3.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpcore-4.4.6.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpcore-4.4.6.jar new file mode 100644 index 0000000..16ed0d1 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpcore-4.4.6.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpmime-4.5.2.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpmime-4.5.2.jar new file mode 100644 index 0000000..474670a Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/httpmime-4.5.2.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-annotations-2.9.4.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-annotations-2.9.4.jar new file mode 100644 index 0000000..5090865 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-annotations-2.9.4.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-core-2.9.4.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-core-2.9.4.jar new file mode 100644 index 0000000..5971a55 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-core-2.9.4.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-databind-2.9.4.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-databind-2.9.4.jar new file mode 100644 index 0000000..4315925 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-databind-2.9.4.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-dataformat-yaml-2.9.4.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-dataformat-yaml-2.9.4.jar new file mode 100644 index 0000000..9ea1e47 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jackson-dataformat-yaml-2.9.4.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/javassist-3.20.0-GA.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/javassist-3.20.0-GA.jar new file mode 100644 index 0000000..0f1ff72 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/javassist-3.20.0-GA.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jcl-over-slf4j-1.7.25.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jcl-over-slf4j-1.7.25.jar new file mode 100644 index 0000000..8e7fec8 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jcl-over-slf4j-1.7.25.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jline-0.9.94.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jline-0.9.94.jar new file mode 100644 index 0000000..dede372 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jline-0.9.94.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jul-to-slf4j-1.7.25.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jul-to-slf4j-1.7.25.jar new file mode 100644 index 0000000..98d9668 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/jul-to-slf4j-1.7.25.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/libwrapper-macosx-universal-32.jnilib b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/libwrapper-macosx-universal-32.jnilib new file mode 100644 index 0000000..ae75d31 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/libwrapper-macosx-universal-32.jnilib differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/libwrapper-macosx-universal-64.jnilib b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/libwrapper-macosx-universal-64.jnilib new file mode 100644 index 0000000..e7d4102 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/libwrapper-macosx-universal-64.jnilib differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/log4j-over-slf4j-1.7.25.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/log4j-over-slf4j-1.7.25.jar new file mode 100644 index 0000000..ba241a4 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/log4j-over-slf4j-1.7.25.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-access-1.2.3.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-access-1.2.3.jar new file mode 100644 index 0000000..08e4d2d Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-access-1.2.3.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-classic-1.2.3.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-classic-1.2.3.jar new file mode 100644 index 0000000..bed00c0 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-classic-1.2.3.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-core-1.2.3.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-core-1.2.3.jar new file mode 100644 index 0000000..487b395 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/logback-core-1.2.3.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mybatis-3.4.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mybatis-3.4.0.jar new file mode 100644 index 0000000..fa5476e Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mybatis-3.4.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mybatis-spring-1.3.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mybatis-spring-1.3.0.jar new file mode 100644 index 0000000..4b67c16 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mybatis-spring-1.3.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mysql-connector-java-5.1.46.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mysql-connector-java-5.1.46.jar new file mode 100644 index 0000000..2553237 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/mysql-connector-java-5.1.46.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-all-4.0.39.Final.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-all-4.0.39.Final.jar new file mode 100644 index 0000000..3f5b3e6 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-all-4.0.39.Final.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-buffer-4.1.8.Final.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-buffer-4.1.8.Final.jar new file mode 100644 index 0000000..d5ddcae Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-buffer-4.1.8.Final.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-codec-4.1.8.Final.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-codec-4.1.8.Final.jar new file mode 100644 index 0000000..8a93a79 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-codec-4.1.8.Final.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-common-4.1.8.Final.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-common-4.1.8.Final.jar new file mode 100644 index 0000000..264036f Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-common-4.1.8.Final.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-handler-4.1.8.Final.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-handler-4.1.8.Final.jar new file mode 100644 index 0000000..1f428d2 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-handler-4.1.8.Final.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-resolver-4.1.8.Final.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-resolver-4.1.8.Final.jar new file mode 100644 index 0000000..b7a89af Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-resolver-4.1.8.Final.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-transport-4.1.8.Final.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-transport-4.1.8.Final.jar new file mode 100644 index 0000000..877adea Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/netty-transport-4.1.8.Final.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/objenesis-2.5.1.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/objenesis-2.5.1.jar new file mode 100644 index 0000000..31b245b Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/objenesis-2.5.1.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactive-streams-1.0.0.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactive-streams-1.0.0.jar new file mode 100644 index 0000000..fe6b283 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactive-streams-1.0.0.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactor-core-2.0.8.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactor-core-2.0.8.RELEASE.jar new file mode 100644 index 0000000..42b24c5 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactor-core-2.0.8.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactor-stream-2.0.8.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactor-stream-2.0.8.RELEASE.jar new file mode 100644 index 0000000..24abf55 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/reactor-stream-2.0.8.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/redisson-3.3.2.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/redisson-3.3.2.jar new file mode 100644 index 0000000..ca8215d Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/redisson-3.3.2.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/slf4j-api-1.7.25.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/slf4j-api-1.7.25.jar new file mode 100644 index 0000000..0143c09 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/slf4j-api-1.7.25.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/snakeyaml-1.18.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/snakeyaml-1.18.jar new file mode 100644 index 0000000..e3fac8e Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/snakeyaml-1.18.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-aop-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-aop-4.3.13.RELEASE.jar new file mode 100644 index 0000000..588aaef Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-aop-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-beans-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-beans-4.3.13.RELEASE.jar new file mode 100644 index 0000000..661f477 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-beans-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-context-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-context-4.3.13.RELEASE.jar new file mode 100644 index 0000000..e2b6e63 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-context-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-core-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-core-4.3.13.RELEASE.jar new file mode 100644 index 0000000..7771fec Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-core-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-expression-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-expression-4.3.13.RELEASE.jar new file mode 100644 index 0000000..5567406 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-expression-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-jdbc-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-jdbc-4.3.13.RELEASE.jar new file mode 100644 index 0000000..dd79736 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-jdbc-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-test-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-test-4.3.13.RELEASE.jar new file mode 100644 index 0000000..23285eb Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-test-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-tx-4.3.13.RELEASE.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-tx-4.3.13.RELEASE.jar new file mode 100644 index 0000000..f4fcb26 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/spring-tx-4.3.13.RELEASE.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper-windows-x86-32.dll b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper-windows-x86-32.dll new file mode 100644 index 0000000..6aaa9c1 Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper-windows-x86-32.dll differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper-windows-x86-64.dll b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper-windows-x86-64.dll new file mode 100644 index 0000000..81f11ce Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper-windows-x86-64.dll differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper.jar new file mode 100644 index 0000000..70dc5ab Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/wrapper.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/zookeeper-3.4.6.jar b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/zookeeper-3.4.6.jar new file mode 100644 index 0000000..7c340be Binary files /dev/null and b/food-server/target/food-server-2.0.0/food-server-2.0.0/lib/zookeeper-3.4.6.jar differ diff --git a/food-server/target/food-server-2.0.0/food-server-2.0.0/logs/safeToDelete.tmp b/food-server/target/food-server-2.0.0/food-server-2.0.0/logs/safeToDelete.tmp new file mode 100644 index 0000000..e69de29 diff --git a/food-server/target/maven-archiver/pom.properties b/food-server/target/maven-archiver/pom.properties new file mode 100644 index 0000000..471ad75 --- /dev/null +++ b/food-server/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon Jan 08 17:17:31 CST 2024 +version=2.0.0 +groupId=com.jwsaas +artifactId=food-server diff --git a/food-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/food-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..c26996e --- /dev/null +++ b/food-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,1143 @@ +com\jwsaas\dao\food\ReceiveDifferenceTicketLogDao.class +com\jwsaas\dao\food\impl\StoreAreaDaoImpl.class +com\jwsaas\dao\food\StoreLoginLogDao.class +com\jwsaas\service\food\impl\ProgramPaymentParameterServiceImpl.class +com\jwsaas\dao\ops\impl\AppQimaiSetStoreDaoImpl.class +com\jwsaas\service\food\impl\WxSalesOrderItemPromoServiceImpl.class +com\jwsaas\dao\food\DeliverDao.class +com\jwsaas\service\food\impl\WxSalesOrderServiceImpl$2.class +com\jwsaas\dao\food\impl\PurchaseTicketDaoImpl.class +com\jwsaas\dao\food\ProductUnitDao.class +com\jwsaas\dao\food\impl\AdjustPriceTicketDaoImpl.class +com\jwsaas\dao\ops\AppVersionDao.class +com\jwsaas\service\food\impl\DispatchSettlePlanPayModeServiceImpl.class +com\jwsaas\service\food\impl\SplitShopWithdrawalServiceImpl.class +com\jwsaas\dao\food\AdjustPriceProductDao.class +com\jwsaas\service\food\impl\ElemeFoodCategoryServiceImpl.class +com\jwsaas\dao\food\AskGoodsTemplateDao.class +com\jwsaas\mybatis\support\SQLUtils.class +com\jwsaas\service\ops\impl\AppBaiduBranchServiceImpl.class +com\jwsaas\dao\food\ProductSuitDao.class +com\jwsaas\dao\food\AdjustPriceStoreDao.class +com\jwsaas\dao\food\SplitFoodAccountDao.class +com\jwsaas\dao\food\impl\QimaiProductCategoryDaoImpl.class +com\jwsaas\dao\food\MeituanOrderDao.class +com\jwsaas\service\food\impl\StoreLoginLogServiceImpl.class +com\jwsaas\dao\food\AskGoodsTemplateStoreDao.class +com\jwsaas\dao\food\ProductRatioDao.class +com\jwsaas\service\food\impl\ProductMakeTemplateDetailServiceImpl.class +com\jwsaas\service\food\impl\WxdcDistributionAddressServiceImpl.class +com\jwsaas\service\food\impl\QimaiAttributeCategoryServiceImpl.class +com\jwsaas\service\food\impl\ProductSuitServiceImpl.class +com\jwsaas\dao\food\CostTicketTemplateDao.class +com\jwsaas\service\food\impl\RechargeParameterServiceImpl.class +com\jwsaas\dao\food\StoreAccountDetailDao.class +com\jwsaas\dao\food\MakeDetailDao.class +com\jwsaas\service\food\impl\CheckTemplateDetailServiceImpl.class +com\jwsaas\service\food\impl\VposStoreOrderProductServiceImpl.class +com\jwsaas\dao\food\impl\ProductTypeLabelInfoDaoImpl.class +com\jwsaas\dao\food\impl\PurchaseStorageTicketDaoImpl.class +com\jwsaas\dao\ops\QimaiSetDao.class +com\jwsaas\dao\food\StoreAreaDao.class +com\jwsaas\dao\food\impl\ThuselevelTicketMaterialDaoImpl.class +com\jwsaas\service\food\impl\MakeBurdenServiceImpl.class +com\jwsaas\dao\food\impl\ProgramAdPictureDaoImpl.class +com\jwsaas\dao\food\impl\WxdcDistributionDaoImpl.class +com\jwsaas\service\food\impl\ProductMakeServiceImpl.class +com\jwsaas\dao\food\impl\PosSetPlanResourcesDaoImpl.class +com\jwsaas\service\food\impl\PromotionBlackListGoodsServiceImpl.class +com\jwsaas\service\food\impl\VposStoreBusinessTicketServiceImpl.class +com\jwsaas\dao\food\PromotionBlackListStoreDao.class +com\jwsaas\service\ops\impl\UpgradeSchemeServiceImpl.class +com\jwsaas\service\food\impl\ProductStoreStockLogServiceImpl.class +com\jwsaas\dao\food\impl\StoreWorkerExtDaoImpl.class +com\jwsaas\dao\food\impl\WxGoodsDaoImpl.class +com\jwsaas\service\food\impl\PosSetPlanResourcesServiceImpl.class +com\jwsaas\dao\food\impl\CostTicketProductChangeDaoImpl.class +com\jwsaas\service\food\impl\StoreOrderProductMakeServiceImpl.class +com\jwsaas\service\food\impl\ReceiveDifferenceTicketLogServiceImpl.class +com\jwsaas\service\food\impl\CheckTemplateServiceImpl.class +com\jwsaas\dao\food\impl\ProgramAdjustPriceProductDaoImpl.class +com\jwsaas\dao\ops\TenantPosInfoDao.class +com\jwsaas\dao\food\WxSalesOrderDao.class +com\jwsaas\dao\food\MeituanFoodDao.class +com\jwsaas\dao\ops\impl\AgentDaoImpl.class +com\jwsaas\dao\food\PurchaseStorageTicketLogDao.class +com\jwsaas\dao\ops\TenantProductDao.class +com\jwsaas\service\shared\impl\FunctionServiceImpl.class +com\jwsaas\dao\food\impl\StoreStockCheckTemplateDetailDaoImpl.class +com\jwsaas\dao\food\impl\StoreDispatchAccountDaoImpl.class +com\jwsaas\service\ops\impl\AppShopmeituanSetServiceImpl.class +com\jwsaas\service\ops\impl\ElemeAuthorizeInfoServiceImpl.class +com\jwsaas\dao\food\ProductTypeDao.class +com\jwsaas\service\food\impl\DispatchTicketLogServiceImpl.class +com\jwsaas\dao\food\impl\BaiduFoodDaoImpl.class +com\jwsaas\dao\food\StoreAccountDao.class +com\jwsaas\dao\food\ProgramSettingDao.class +com\jwsaas\dao\food\impl\StoreOrderProductMakeDaoImpl.class +com\jwsaas\dao\food\CostTicketProductOtherChangeDao.class +com\jwsaas\dao\food\SupplierTypeDao.class +com\jwsaas\dao\food\impl\WxAdjustPriceGoodsDaoImpl.class +com\jwsaas\dao\food\StoreOrderProductInfoDao.class +com\jwsaas\service\shared\impl\AppAuthServiceImpl.class +com\jwsaas\service\food\impl\ProgramAdjustPriceTicketServiceImpl.class +com\jwsaas\dao\food\KdsPlanDao.class +com\jwsaas\dao\food\TaskScheduleDao.class +com\jwsaas\dao\food\MakeTypeDao.class +com\jwsaas\service\food\impl\ShopMeituanOrderItemServiceImpl.class +com\jwsaas\dao\food\AskGoodsTicketLogDao.class +com\jwsaas\service\food\impl\StoreTypeServiceImpl.class +com\jwsaas\dao\ops\UpgradePosDao.class +com\jwsaas\service\food\impl\ProgramStorePayServiceImpl.class +com\jwsaas\dao\food\OtherStorageOutTicketLogDao.class +com\jwsaas\service\food\impl\PromotionTaskServiceImpl.class +com\jwsaas\dao\food\PosRoleDao.class +com\jwsaas\dao\ops\AppQimaiSetStoreDao.class +com\jwsaas\dao\food\StoreDeliveryOrderDao.class +com\jwsaas\service\wxdc\impl\WeixinPayResultServiceImpl.class +com\jwsaas\dao\food\StoreDispatchAccountDao.class +com\jwsaas\dao\food\impl\StoreHandoverDetailPayDaoImpl.class +com\jwsaas\dao\shared\FunctionDao.class +com\jwsaas\dao\food\impl\SplitShopAccountDaoImpl.class +com\jwsaas\datasource\RoutingDataSource.class +com\jwsaas\service\food\impl\StoreOperationLogServiceImpl.class +com\jwsaas\dao\food\ProductMakeTemplateDao.class +com\jwsaas\dao\food\impl\StoreFeeCutLogDaoImpl.class +com\jwsaas\dao\food\impl\ProgramProductCategoryDaoImpl.class +com\jwsaas\dao\food\ProductStoreStockLogDao.class +com\jwsaas\service\food\impl\CheckTicketDetailServiceImpl.class +com\jwsaas\mybatis\spring\SqlSessionFactoryBeanExt.class +com\jwsaas\dao\food\ProgramEvaluateDao.class +com\jwsaas\dao\food\PurchasepriceDao.class +com\jwsaas\service\food\impl\ProgramPromotionBlackListStoreServiceImpl.class +com\jwsaas\dao\food\VisitorAddressDao.class +com\jwsaas\dao\food\impl\WxdcDistributionAddressDaoImpl.class +com\jwsaas\service\food\impl\SplitStorePayServiceImpl.class +com\jwsaas\service\ops\impl\TenantStoreAuthServiceImpl.class +com\jwsaas\dao\food\impl\ProgramPaymentParameterDaoImpl.class +com\jwsaas\dao\food\BusinessPlanDetailDao.class +com\jwsaas\dao\food\StoreAccountRechargeRecordDao.class +com\jwsaas\service\food\impl\StoreAreaServiceImpl.class +com\jwsaas\service\food\impl\AskGoodsTemplateDetailServiceImpl.class +com\jwsaas\service\food\impl\ThuselevelTicketServiceImpl.class +com\jwsaas\service\food\impl\AskGoodsTicketPayServiceImpl.class +com\jwsaas\service\food\impl\StoretableAreaServiceImpl.class +com\jwsaas\dao\food\impl\WxAdPictureDaoImpl.class +com\jwsaas\dao\food\impl\StoreEnchashmentRecordLogDaoImpl.class +com\jwsaas\dao\food\impl\StoreProductSaleStockDaoImpl.class +com\jwsaas\dao\food\SupplierDao.class +com\jwsaas\service\food\impl\OtherStorageTicketLogServiceImpl.class +com\jwsaas\dao\food\CouponStoreDao.class +com\jwsaas\dao\food\impl\VisitorDaoImpl.class +com\jwsaas\dao\food\impl\PurchaseTemplateDetailDaoImpl.class +com\jwsaas\service\ops\impl\UpgradePosServiceImpl.class +com\jwsaas\service\food\impl\QimaiProductTemplateStoreServiceImpl.class +com\jwsaas\service\food\impl\QimaiChargeServiceImpl.class +com\jwsaas\dao\food\ProductKdsPlanDao.class +com\jwsaas\service\food\impl\AdjustPriceTicketServiceImpl.class +com\jwsaas\dao\food\impl\BaiduOrderProductDaoImpl.class +com\jwsaas\dao\food\impl\AskGoodsTemplateDaoImpl.class +com\jwsaas\service\food\impl\StorePayServiceImpl.class +com\jwsaas\dao\food\impl\AskGoodsTicketLogDaoImpl.class +com\jwsaas\service\food\impl\CostTicketProductMoreChangeServiceImpl.class +com\jwsaas\service\food\impl\ProductRatioServiceImpl.class +com\jwsaas\dao\food\impl\OtherStorageOutTicketLogDaoImpl.class +com\jwsaas\dao\ops\impl\AgentSubFuyouTicketImageDaoImpl.class +com\jwsaas\service\food\impl\WxQrcodeSettingServiceImpl.class +com\jwsaas\dao\food\ThuselevelTicketMaterialDao.class +com\jwsaas\dao\food\WxGoodsTemplateDetailDao.class +com\jwsaas\dao\ops\impl\SetCodeDaoImpl.class +com\jwsaas\dao\food\PromotionScheduleDao.class +com\jwsaas\service\food\impl\CostTicketTemplateProductChangeServiceImpl.class +com\jwsaas\dao\food\ElemeCategoryFoodDao.class +com\jwsaas\dao\food\ProgramStoreBusinessTicketInfoDao.class +com\jwsaas\service\ops\impl\WxBusinessCodeServiceImpl.class +com\jwsaas\dao\food\impl\PromotionSchemeDaoImpl.class +com\jwsaas\dao\food\impl\QimaiOrderDaoImpl.class +com\jwsaas\service\food\impl\DfsFileServiceImpl.class +com\jwsaas\dao\food\impl\ThuselevelTicketStoreDaoImpl.class +com\jwsaas\service\food\impl\WxSalesOrderServiceImpl.class +com\jwsaas\dao\ops\ZfbBusinessCodeDao.class +com\jwsaas\dao\food\WxGoodsDao.class +com\jwsaas\service\ops\impl\ZfbBusinessCodeServiceImpl.class +com\jwsaas\service\food\impl\StoreAccountRechargeParameterServiceImpl.class +com\jwsaas\dao\food\ProgramStoreOrderProductInfoDao.class +com\jwsaas\dao\food\impl\CheckTicketDaoImpl.class +com\jwsaas\dao\food\PayModeDao.class +com\jwsaas\dao\food\impl\PayModeDaoImpl.class +com\jwsaas\dao\food\impl\ProgramStorePayDaoImpl.class +com\jwsaas\dao\ops\impl\BankCodeDaoImpl.class +com\jwsaas\dao\food\VposCcbfzAccountDao.class +com\jwsaas\dao\food\impl\ProductImageDaoImpl.class +com\jwsaas\service\food\impl\OtherStorageOutTicketDetailServiceImpl.class +com\jwsaas\service\ops\impl\CityCodeServiceImpl.class +com\jwsaas\service\food\impl\ProgramPromotionBlackListStoreAreaServiceImpl.class +com\jwsaas\dao\food\WxQrcodeSettingDao.class +com\jwsaas\dao\food\CostTicketTemplateProductMoreChangeDao.class +com\jwsaas\dao\food\SplitStorePayDao.class +com\jwsaas\dao\food\impl\AdjustPriceProductDaoImpl.class +com\jwsaas\dao\food\impl\CostFeeItemDaoImpl.class +com\jwsaas\dao\food\ProgramPromotionStoreAreaDao.class +com\jwsaas\service\wxdc\impl\WeixinUserServiceImpl.class +com\jwsaas\service\food\impl\PosSetPlanModuleServiceImpl.class +com\jwsaas\dao\ops\impl\TenantProductDaoImpl.class +com\jwsaas\dao\food\impl\ProgramIndexPictureDaoImpl.class +com\jwsaas\dao\food\StoreTypeDao.class +com\jwsaas\service\food\impl\ProgramEvaluateImageServiceImpl.class +com\jwsaas\dao\food\QimaiProductSpecDao.class +com\jwsaas\dao\food\impl\WxAdjustPriceStoreDaoImpl.class +com\jwsaas\mybatis\plugins\PagerInterceptor$2.class +com\jwsaas\service\food\impl\PermissionsServiceImpl.class +com\jwsaas\service\food\impl\ProgramPromotionStoreAreaServiceImpl.class +com\jwsaas\dao\food\impl\StoreProductDaoImpl.class +com\jwsaas\dao\ops\impl\UpgradePosDaoImpl.class +com\jwsaas\dao\food\impl\CostTicketPayTypeDaoImpl.class +com\jwsaas\dao\food\StoreDao.class +com\jwsaas\dao\food\StoreHandoverDao.class +com\jwsaas\dao\food\CheckTemplateDetailDao.class +com\jwsaas\service\food\impl\PosSetPlanShortcutServiceImpl.class +com\jwsaas\service\food\impl\StoreStorageTicketDetailServiceImpl.class +com\jwsaas\dao\ops\TenantStoreAuthDao.class +com\jwsaas\service\food\impl\ProgramDeliverAddressServiceImpl.class +com\jwsaas\service\food\impl\WxGoodsMakeServiceImpl.class +com\jwsaas\service\food\impl\ProgramAdjustPriceProductServiceImpl.class +com\jwsaas\dao\food\QimaiProductCategoryDao.class +com\jwsaas\service\ops\impl\AppInfoServiceImpl.class +com\jwsaas\dao\ops\impl\AppVersionDaoImpl.class +com\jwsaas\service\food\impl\VposAdPictureServiceImpl.class +com\jwsaas\dao\food\WxSalesOrderItemMakeDao.class +com\jwsaas\service\food\impl\ProgramStoreBusinessTicketDeliverServiceImpl.class +com\jwsaas\dao\food\impl\ProgramPromotionTaskDaoImpl.class +com\jwsaas\dao\food\QimaiProductTemplateDetailDao.class +com\jwsaas\service\food\impl\StoreStockCheckTicketDetailServiceImpl.class +com\jwsaas\dao\food\impl\QimaiProductAttributeDaoImpl.class +com\jwsaas\service\food\impl\ProductSpecServiceImpl.class +com\jwsaas\service\food\impl\QimaiProductTemplateDetailServiceImpl.class +com\jwsaas\dao\ops\AppWhiteDetailDao.class +com\jwsaas\dao\food\impl\StoreAccountRechargeParameterDaoImpl.class +com\jwsaas\service\food\impl\QimaiProductCategoryServiceImpl.class +com\jwsaas\dao\food\impl\VposStoreBusinessTicketDaoImpl.class +com\jwsaas\dao\food\impl\PosInfoDaoImpl.class +com\jwsaas\service\food\impl\RoleServiceImpl.class +com\jwsaas\mybatis\plugins\PagerInterceptor$BoundSqlSqlSource.class +com\jwsaas\service\food\impl\BrandServiceImpl.class +com\jwsaas\service\food\impl\VposProductEvaluateImageServiceImpl.class +com\jwsaas\service\food\impl\OtherStorageTicketDetailServiceImpl.class +com\jwsaas\dao\food\VisitorTagDao.class +com\jwsaas\dao\food\SplitShopWithdrawalDao.class +com\jwsaas\dao\food\impl\MeituanOrderDaoImpl.class +com\jwsaas\dao\food\impl\AskGoodsDetailDaoImpl.class +com\jwsaas\dao\food\impl\ElemeFoodCategoryDaoImpl.class +com\jwsaas\dao\food\StoreBusinessTicketInfoDao.class +com\jwsaas\service\food\impl\PromotionStoreServiceImpl.class +com\jwsaas\dao\food\QimaiProductAttributeDao.class +com\jwsaas\dao\food\PromotionSchemeDao.class +com\jwsaas\dao\food\impl\WxSalesOrderItemPromoDaoImpl.class +com\jwsaas\service\shared\impl\ModuleServiceImpl.class +com\jwsaas\dao\food\impl\CouponStoreDaoImpl.class +com\jwsaas\dao\food\impl\ProductKitPlanDaoImpl.class +com\jwsaas\dao\food\StoreOrderProductMakeDao.class +com\jwsaas\service\food\impl\DispatchTicketDetailServiceImpl.class +com\jwsaas\dao\food\ProductStoreOutCollectDayDao.class +com\jwsaas\dao\food\impl\VisitorTagDaoImpl.class +com\jwsaas\dao\food\WxSalesOrderItemPromoDao.class +com\jwsaas\dao\food\OtherStorageOutTicketDao.class +com\jwsaas\service\food\impl\CostTicketTemplateProductMoreChangeServiceImpl.class +com\jwsaas\dao\food\ReceiveDifferenceDetailDao.class +com\jwsaas\dao\food\StoreBusinessTicketDao.class +com\jwsaas\dao\food\StoreEnchashmentRecordDao.class +com\jwsaas\service\food\impl\BaiduOrderProductServiceImpl.class +com\jwsaas\dao\food\QimaiChargeDao.class +com\jwsaas\service\food\impl\PromotionCategoryServiceImpl.class +com\jwsaas\service\food\impl\PromotionBlackListStoreAreaServiceImpl.class +com\jwsaas\service\food\impl\PosSetPlanServiceImpl.class +com\jwsaas\dao\wxdc\WeixinPayResultDao.class +com\jwsaas\dao\ops\impl\UpgradeStoreDaoImpl.class +com\jwsaas\dao\food\StoreStorageTicketDetailDao.class +com\jwsaas\dao\food\impl\PromotionTicketDaoImpl.class +com\jwsaas\dao\food\QimaiStoreDao.class +com\jwsaas\dao\food\impl\WxGoodsTemplateDaoImpl.class +com\jwsaas\dao\food\impl\ProductBatchStockChangeDaoImpl.class +com\jwsaas\util\TlSignUtils.class +com\jwsaas\dao\food\WxdcDistributionDao.class +com\jwsaas\dao\food\PermissionsDao.class +com\jwsaas\dao\food\VposStoreOrderProductDao.class +com\jwsaas\service\wxdc\impl\WeixinOrderPayServiceImpl.class +com\jwsaas\dao\food\impl\ProductUnitDaoImpl.class +com\jwsaas\dao\ops\impl\AppWhiteDetailDaoImpl.class +com\jwsaas\service\food\impl\WxAdjustPriceGoodsServiceImpl.class +com\jwsaas\dao\food\impl\ProductSuitDetailDaoImpl.class +com\jwsaas\dao\wxdc\WeixinRechargeOrderDao.class +com\jwsaas\dao\food\impl\MeituanOrderExtraDaoImpl.class +com\jwsaas\service\food\impl\ElemeCategoryFoodServiceImpl.class +com\jwsaas\dao\food\ProgramPromotionBlackListStoreAreaDao.class +com\jwsaas\service\food\impl\ProductBatchNumberServiceImpl.class +com\jwsaas\service\food\impl\StoreHandoverDetailPayServiceImpl.class +com\jwsaas\dao\food\StoreWorkerDao.class +com\jwsaas\service\food\impl\QimaiOrderServiceImpl.class +com\jwsaas\dao\shared\impl\FunctionDaoImpl.class +com\jwsaas\dao\food\OtherStorageTicketLogDao.class +com\jwsaas\service\food\impl\ProductBatchStockChangeServiceImpl.class +com\jwsaas\dao\food\ProgramStoreBusinessTicketDeliverDao.class +com\jwsaas\dao\food\impl\VposCcbfzAccountDaoImpl.class +com\jwsaas\dao\food\PosSetPlanShortcutDao.class +com\jwsaas\service\food\impl\AskGoodsTemplateServiceImpl.class +com\jwsaas\service\food\impl\BusinessPlanDetailServiceImpl.class +com\jwsaas\service\food\impl\QimaiAdjustPriceStoreServiceImpl.class +com\jwsaas\dao\food\PromotionBlackListGoodsDao.class +com\jwsaas\dao\food\DispatchSettlePlanDao.class +com\jwsaas\dao\food\impl\ProductMakeTemplateDaoImpl.class +com\jwsaas\dao\food\ReceiveDifferenceTicketPayDao.class +com\jwsaas\service\food\impl\VposCcbfzAccountServiceImpl.class +com\jwsaas\dao\food\AskGoodsTicketDao.class +com\jwsaas\service\food\impl\PosInfoServiceImpl.class +com\jwsaas\dao\food\impl\DispatchpriceTicketMaterialDaoImpl.class +com\jwsaas\dao\ops\AppShopmeituanSetStoreDao.class +com\jwsaas\dao\food\impl\ProductStockDaoImpl.class +com\jwsaas\dao\food\OtherStorageOutTicketDetailDao.class +com\jwsaas\dao\food\ElemeOrderDetailDao.class +com\jwsaas\dao\food\impl\PurchaseStorageTicketDetailDaoImpl.class +com\jwsaas\dao\food\impl\StoreWorkerDaoImpl.class +com\jwsaas\datasource\advice\DataSourceBeforeAdvice.class +com\jwsaas\dao\ops\impl\PosModuleTypeDaoImpl.class +com\jwsaas\dao\food\impl\OtherStorageOutTicketDaoImpl.class +com\jwsaas\dao\food\impl\CouponTicketDaoImpl.class +com\jwsaas\dao\ops\WxBusinessCodeDao.class +com\jwsaas\dao\food\impl\ProgramAdjustPriceStoreDaoImpl.class +com\jwsaas\service\food\impl\MakeTypeServiceImpl.class +com\jwsaas\dao\food\impl\WxStoreGoodsDaoImpl.class +com\jwsaas\dao\food\PromotionTaskDao.class +com\jwsaas\service\food\impl\ServerDataVersionServiceImpl.class +com\jwsaas\dao\food\impl\ProgramStoreDaoImpl.class +com\jwsaas\dao\ops\impl\ZfbBusinessCodeDaoImpl.class +com\jwsaas\Filters\ServerDataVersionFilter.class +com\jwsaas\dao\food\impl\ProductSpecDaoImpl.class +com\jwsaas\service\food\impl\QimaiAdjustPriceGoodsServiceImpl.class +com\jwsaas\dao\food\impl\CostTicketTemplateDaoImpl.class +com\jwsaas\dao\food\AdvertPictureDao.class +com\jwsaas\dao\food\impl\ProgramStoreOrderProductDaoImpl.class +com\jwsaas\dao\ops\impl\CardReaderInfoDaoImpl.class +com\jwsaas\dao\food\ServerDataVersionDao.class +com\jwsaas\dao\food\impl\StoreStockCheckTicketDaoImpl.class +com\jwsaas\service\food\impl\StoreStorageTicketServiceImpl.class +com\jwsaas\service\food\impl\ProgramEvaluateServiceImpl.class +com\jwsaas\dao\food\impl\DispatchSettlePlanDaoImpl.class +com\jwsaas\service\food\impl\WxSalesOrderItemMakeServiceImpl.class +com\jwsaas\dao\food\PosSetPlanModuleDao.class +com\jwsaas\service\wxdc\impl\WeixinAccountServiceImpl.class +com\jwsaas\dao\food\impl\PromotionBlackListStoreAreaDaoImpl.class +com\jwsaas\dao\food\impl\UserDaoImpl.class +com\jwsaas\dao\food\CostTicketProductMoreChangeDao.class +com\jwsaas\service\food\impl\ReceiveGoodsTicketServiceImpl.class +com\jwsaas\service\food\impl\PaymentParameterServiceImpl.class +com\jwsaas\dao\food\ProgramProductDao.class +com\jwsaas\service\food\impl\YunposSetStoreServiceImpl.class +com\jwsaas\dao\food\DispatchSettlePlanPayModeDao.class +com\jwsaas\dao\food\impl\BusinessPlanDetailDaoImpl.class +com\jwsaas\dao\food\QimaiProductDao.class +com\jwsaas\dao\food\impl\WxAdjustPriceTicketDaoImpl.class +com\jwsaas\dao\food\ProgramPaymentParameterDao.class +com\jwsaas\service\food\impl\WxAdjustPriceStoreServiceImpl.class +com\jwsaas\service\food\impl\SplitShopAccountServiceImpl.class +com\jwsaas\dao\food\StoreStorageOutTicketLogDao.class +com\jwsaas\dao\ops\impl\MeituanBranchDaoImpl.class +com\jwsaas\dao\food\impl\MeituanOrderItemDaoImpl.class +com\jwsaas\service\food\impl\ProgramPromotionSchemeServiceImpl.class +com\jwsaas\dao\food\impl\CouponTicketProductDaoImpl.class +com\jwsaas\dao\food\impl\SplitStorePayDaoImpl.class +com\jwsaas\mybatis\support\PropertiesUtils.class +com\jwsaas\service\impl\TenantServiceImpl.class +com\jwsaas\dao\food\impl\MakeBurdenDaoImpl.class +com\jwsaas\dao\ops\MeituanBranchDao.class +com\jwsaas\service\ops\impl\PosModuleTypeServiceImpl.class +com\jwsaas\service\food\impl\QimaiProductSpecServiceImpl.class +com\jwsaas\dao\food\CostTicketProductTypeDao.class +com\jwsaas\dao\food\impl\StoreDepartmentDaoImpl.class +com\jwsaas\dao\food\impl\PayTypeDaoImpl.class +com\jwsaas\service\food\impl\ProductStoreStockServiceImpl.class +com\jwsaas\service\food\impl\ProductStockLogServiceImpl.class +com\jwsaas\service\food\impl\VisitorServiceImpl.class +com\jwsaas\service\food\impl\ProgramAdPictureServiceImpl.class +com\jwsaas\service\food\impl\WxStoreGoodsServiceImpl.class +com\jwsaas\dao\food\impl\AskGoodsTicketDaoImpl.class +com\jwsaas\dao\food\PosPollcodeDao.class +com\jwsaas\dao\food\StoreHandoverDetailPayDao.class +com\jwsaas\dao\food\impl\AgentDaoImpl.class +com\jwsaas\dao\food\WxAdPictureDao.class +com\jwsaas\service\food\impl\QimaiAttributeServiceImpl.class +com\jwsaas\dao\food\VposAdPictureDao.class +com\jwsaas\dao\food\StoreCostManageDao.class +com\jwsaas\service\food\impl\VposStorePayServiceImpl.class +com\jwsaas\dao\food\ElemeFoodCategoryDao.class +com\jwsaas\dao\ops\impl\TenantLineProductDaoImpl.class +com\jwsaas\dao\food\WxPaymentParameterDao.class +com\jwsaas\service\food\impl\SplitPayLogServiceImpl.class +com\jwsaas\dao\food\impl\StoreDeliveryOrderDaoImpl.class +com\jwsaas\dao\food\ProgramPromotionBlackListGoodsDao.class +com\jwsaas\service\food\impl\AdvertCaptionServiceImpl.class +com\jwsaas\dao\food\CostTicketProductFixedChangeDao.class +com\jwsaas\dao\food\impl\CostTicketProductTypeDaoImpl.class +com\jwsaas\dao\food\ProgramAdjustPriceTicketDao.class +com\jwsaas\mybatis\MyBatisPrimaryKey.class +com\jwsaas\service\food\impl\WxGoodsServiceImpl.class +com\jwsaas\dao\food\ElemeOrderDetailGroupDao.class +com\jwsaas\dao\food\impl\OtherStorageTicketDaoImpl.class +com\jwsaas\dao\food\impl\WxGoodsTemplateDetailDaoImpl.class +com\jwsaas\service\food\impl\WxPaymentParameterServiceImpl.class +com\jwsaas\dao\food\BaiduOrderDao.class +com\jwsaas\dao\food\StoreStorageOutTicketDao.class +com\jwsaas\dao\food\VposStoreOrderProductMakeDao.class +com\jwsaas\service\food\impl\StoreBusinessTicketDeliveryServiceImpl.class +com\jwsaas\service\ops\impl\TenantPosLoginLogServiceImpl.class +com\jwsaas\dao\food\impl\ShopMeituanOrderItemDaoImpl.class +com\jwsaas\dao\food\QimaiProductChargeDao.class +com\jwsaas\service\ops\impl\AppWhiteDetailServiceImpl.class +com\jwsaas\service\food\impl\OtherStorageOutTicketServiceImpl.class +com\jwsaas\dao\wxdc\impl\WeixinAccountDaoImpl.class +com\jwsaas\service\food\impl\WxAdjustPriceTicketServiceImpl.class +com\jwsaas\service\food\impl\ProductStoreOutCollectDayServiceImpl.class +com\jwsaas\dao\impl\BaseDaoImpl$1.class +com\jwsaas\service\food\impl\StoreProductSaleStockServiceImpl.class +com\jwsaas\dao\food\CheckTicketLogDao.class +com\jwsaas\dao\ops\AppGuopanStoreInfoDao.class +com\jwsaas\dao\ops\impl\CityDaoImpl.class +com\jwsaas\service\food\impl\ProgramStoreBusinessTicketInfoServiceImpl.class +com\jwsaas\dao\food\DispatchTicketDao.class +com\jwsaas\service\food\impl\QimaiAdjustPriceTicketServiceImpl.class +com\jwsaas\dao\food\QimaiAdjustPriceTicketDao.class +com\jwsaas\dao\food\MeituanOrderExtraDao.class +com\jwsaas\dao\wxdc\impl\WeixinOrderPayDaoImpl.class +com\jwsaas\service\food\impl\PurchaseTicketLogServiceImpl.class +com\jwsaas\dao\food\PurchasepriceTicketDao.class +com\jwsaas\dao\ops\ErrorInfoDao.class +com\jwsaas\dao\food\impl\ProductStoreStockLogDaoImpl.class +com\jwsaas\dao\food\impl\VposUserSeriesDaoImpl.class +com\jwsaas\dao\food\impl\PosPollcodeDaoImpl.class +com\jwsaas\dao\food\impl\ProductTemplateDaoImpl.class +com\jwsaas\dao\food\impl\ProgramDeliverAddressDaoImpl.class +com\jwsaas\service\food\impl\ProgramProductTemplateServiceImpl.class +com\jwsaas\dao\food\WxAdjustPriceTicketDao.class +com\jwsaas\dao\food\impl\VposStoreOrderProductDaoImpl.class +com\jwsaas\dao\food\StoretableDao.class +com\jwsaas\dao\food\KitPlanDao.class +com\jwsaas\dao\food\StoreStorageOutTicketDetailDao.class +com\jwsaas\mybatis\handlers\AbstractTypeHandler.class +com\jwsaas\dao\food\impl\StorePayDaoImpl.class +com\jwsaas\dao\food\impl\PurchasepriceDaoImpl.class +com\jwsaas\dao\food\impl\ElemeCategoryFoodDaoImpl.class +com\jwsaas\dao\food\ReceiveGoodsDetailDao.class +com\jwsaas\service\food\impl\CostTicketTemplateProductFixedChangeServiceImpl.class +com\jwsaas\dao\food\impl\StoreAccountRechargeRecordDaoImpl.class +com\jwsaas\dao\food\ProductSuitDetailDao.class +com\jwsaas\dao\food\impl\ReceiveDifferenceTicketPayDaoImpl.class +com\jwsaas\dao\food\impl\ProgramAdjustPriceTicketDaoImpl.class +com\jwsaas\service\food\impl\ReceiveGoodsDetailServiceImpl.class +com\jwsaas\service\food\impl\StoreCostManageLogServiceImpl.class +com\jwsaas\service\food\impl\ProductBatchNegativeStockServiceImpl.class +com\jwsaas\service\food\impl\ProductMakeTemplateServiceImpl.class +com\jwsaas\mybatis\plugins\PagerInterceptor.class +com\jwsaas\dao\impl\BaseDaoImpl.class +com\jwsaas\service\food\impl\StoreBusinessTicketCheckServiceImpl.class +com\jwsaas\dao\food\VposStorePayDao.class +com\jwsaas\service\food\impl\ProductBurdenServiceImpl.class +com\jwsaas\dao\food\impl\AdjustPriceStoreDaoImpl.class +com\jwsaas\service\food\impl\ProductStockServiceImpl.class +com\jwsaas\dao\food\impl\SplitPayResultDaoImpl.class +com\jwsaas\dao\food\impl\QimaiAttributeDaoImpl.class +com\jwsaas\service\food\impl\MeituanOrderServiceImpl.class +com\jwsaas\dao\food\BusinessPlanDao.class +com\jwsaas\dao\food\impl\OtherStorageOutTicketDetailDaoImpl.class +com\jwsaas\mybatis\support\PostgreSQLDialect.class +com\jwsaas\dao\food\impl\ProductBatchStockDaoImpl.class +com\jwsaas\service\food\impl\CostTicketServiceImpl.class +com\jwsaas\dao\food\impl\ProductMakeDaoImpl.class +com\jwsaas\service\food\impl\AgentServiceImpl.class +com\jwsaas\dao\food\PurchaseTemplateDao.class +com\jwsaas\dao\food\ProgramAdPictureDao.class +com\jwsaas\dao\food\QimaiSuitDetailDao.class +com\jwsaas\dao\food\impl\DispatchTicketDetailDaoImpl.class +com\jwsaas\service\food\impl\AdjustPriceStoreServiceImpl.class +com\jwsaas\dao\food\StoreStockCheckTicketDetailDao.class +com\jwsaas\dao\food\impl\StoreBusinessTicketDaoImpl.class +com\jwsaas\service\food\impl\PrintImageServiceImpl.class +com\jwsaas\service\food\impl\WxSalesOrderItemServiceImpl.class +com\jwsaas\service\impl\BaseServiceImpl.class +com\jwsaas\service\food\impl\VposUserSeriesServiceImpl.class +com\jwsaas\datasource\holder\Identity.class +com\jwsaas\service\food\impl\StoreHandoverDetailPartServiceImpl.class +com\jwsaas\service\ops\impl\AgentServiceImpl.class +com\jwsaas\dao\food\impl\QimaiOrderItemDaoImpl.class +com\jwsaas\service\food\impl\QimaiStoreProductServiceImpl.class +com\jwsaas\dao\food\ProgramStoreBusinessTicketDao.class +com\jwsaas\dao\ops\ProductPermissionsDao.class +com\jwsaas\dao\food\impl\YunposSetDaoImpl.class +com\jwsaas\dao\food\impl\ProductBatchNumberDaoImpl.class +com\jwsaas\service\food\impl\WxGoodsCategoryServiceImpl.class +com\jwsaas\dao\food\ProgramIndexPictureDao.class +com\jwsaas\service\food\impl\CategoryServiceImpl.class +com\jwsaas\dao\food\PromotionStoreAreaDao.class +com\jwsaas\service\food\impl\ProgramStoreOrderProductInfoServiceImpl.class +com\jwsaas\service\food\impl\CostTicketTemplateProductOtherChangeServiceImpl.class +com\jwsaas\dao\shared\impl\AppAuthDaoImpl.class +com\jwsaas\dao\food\impl\ErpPosSetDaoImpl.class +com\jwsaas\dao\food\impl\PurchaseTicketDetailDaoImpl.class +com\jwsaas\dao\food\DispatchTicketLogDao.class +com\jwsaas\service\food\impl\CostTicketProductChangeServiceImpl.class +com\jwsaas\dao\food\PosSetPlanResourcesDao.class +com\jwsaas\dao\food\ShopMeituanOrderExtraDao.class +com\jwsaas\dao\food\impl\QimaiProductTemplateDetailDaoImpl.class +com\jwsaas\service\ops\impl\PrinterInfoServiceImpl.class +com\jwsaas\service\food\impl\ProgramStoreProductServiceImpl.class +com\jwsaas\dao\food\impl\CouponDaoImpl.class +com\jwsaas\dao\food\impl\ProgramPromotionBlackListGoodsDaoImpl.class +com\jwsaas\service\food\impl\ProductTemplateDetailServiceImpl.class +com\jwsaas\dao\food\impl\WxGoodsCategoryDaoImpl.class +com\jwsaas\dao\food\impl\StoreStorageOutTicketLogDaoImpl.class +com\jwsaas\dao\food\ProgramPromotionBlackListStoreDao.class +com\jwsaas\service\food\impl\QimaiOrderItemServiceImpl.class +com\jwsaas\mybatis\plugins\PluginAdapter.class +com\jwsaas\dao\food\ProgramProductTemplateStoreDao.class +com\jwsaas\dao\food\impl\CostTicketProductMoreChangeDaoImpl.class +com\jwsaas\dao\food\StoreOrderProductDao.class +com\jwsaas\service\ops\impl\AgentSubFuyouTicketImageServiceImpl.class +com\jwsaas\dao\food\ProgramStoreProductDao.class +com\jwsaas\dao\food\ProgramStoreOrderProductMakeDao.class +com\jwsaas\dao\wxdc\impl\WeixinRechargeOrderDaoImpl.class +com\jwsaas\dao\food\impl\PermissionsDaoImpl.class +com\jwsaas\service\food\impl\TaskScheduleServiceImpl.class +com\jwsaas\dao\ops\impl\TenantStoreAuthDaoImpl.class +com\jwsaas\dao\food\QimaiOrderPayDao.class +com\jwsaas\service\food\impl\StoreEnchashmentRecordLogServiceImpl.class +com\jwsaas\dao\food\MeituanFoodCategoryDao.class +com\jwsaas\dao\ops\impl\ErrorInfoDaoImpl.class +com\jwsaas\service\food\impl\WxGoodsTemplateStoreServiceImpl.class +com\jwsaas\dao\food\impl\ProgramProductDaoImpl.class +com\jwsaas\service\food\impl\MeituanFoodServiceImpl.class +com\jwsaas\service\food\impl\PosPollcodeServiceImpl.class +com\jwsaas\dao\food\impl\CostTicketProductFixedChangeDaoImpl.class +com\jwsaas\service\ops\impl\BankCodeServiceImpl.class +com\jwsaas\dao\ops\CardReaderInfoDao.class +com\jwsaas\dao\food\impl\ShopMeituanOrderDaoImpl.class +com\jwsaas\dao\food\ProductStockLogDao.class +com\jwsaas\dao\TenantDao.class +com\jwsaas\service\food\impl\OtherStorageTicketServiceImpl.class +com\jwsaas\dao\food\impl\StoreCostManageLogDaoImpl.class +com\jwsaas\dao\food\impl\StoreHandoverDaoImpl.class +com\jwsaas\dao\food\impl\BrandDaoImpl.class +com\jwsaas\dao\food\ProductStoreStockDao.class +com\jwsaas\dao\food\AskGoodsTicketPayDao.class +com\jwsaas\dao\food\PurchaseTicketDetailDao.class +com\jwsaas\dao\food\StoreStorageTicketLogDao.class +com\jwsaas\service\food\impl\BaiduFoodServiceImpl.class +com\jwsaas\service\food\impl\QimaiProductTemplateServiceImpl.class +com\jwsaas\util\TlCommonConstants.class +com\jwsaas\dao\food\PurchaseStorageTicketDao.class +com\jwsaas\service\food\impl\VposUserServiceImpl.class +com\jwsaas\dao\food\impl\PaymentParameterDaoImpl.class +com\jwsaas\dao\ops\AgentSubFuyouTicketImageDao.class +com\jwsaas\dao\food\PosInfoDao.class +com\jwsaas\dao\ops\impl\AppShopmeituanSetDaoImpl.class +com\jwsaas\service\food\impl\SupplierTypeServiceImpl.class +com\jwsaas\dao\food\impl\CheckTicketDetailDaoImpl.class +com\jwsaas\dao\ops\AgentSubFuyouTicketDao.class +com\jwsaas\dao\shared\impl\ModuleDaoImpl.class +com\jwsaas\dao\food\impl\PayModeStoreDaoImpl.class +com\jwsaas\service\food\impl\SupplierServiceImpl.class +com\jwsaas\dao\food\impl\ProductSuitDaoImpl.class +com\jwsaas\service\food\impl\StoreStorageOutTicketServiceImpl.class +com\jwsaas\dao\food\impl\StoreDeliveryOrderItemDaoImpl.class +com\jwsaas\dao\food\impl\DispatchTicketDaoImpl.class +com\jwsaas\service\food\impl\CostTicketPayTypeServiceImpl.class +com\jwsaas\dao\ops\impl\PosModuleDaoImpl.class +com\jwsaas\dao\food\impl\PosSetPlanShortcutDaoImpl.class +com\jwsaas\dao\food\impl\PurchasepriceTicketDaoImpl.class +com\jwsaas\service\food\impl\StoreProductServiceImpl.class +com\jwsaas\service\ops\impl\AppQimaiSetStoreServiceImpl.class +com\jwsaas\dao\food\impl\ProgramPromotionGoodsDaoImpl.class +com\jwsaas\cache\impl\RedissonConfiguration$RedisType.class +com\jwsaas\dao\food\impl\PromotionTaskDaoImpl.class +com\jwsaas\service\food\impl\ProgramIndexPictureServiceImpl.class +com\jwsaas\dao\ops\UpgradeSchemeDao.class +com\jwsaas\service\food\impl\ProgramPromotionCategoryServiceImpl.class +com\jwsaas\service\food\impl\PromotionScheduleServiceImpl.class +com\jwsaas\util\JSONUtil.class +com\jwsaas\dao\ops\AgentDao.class +com\jwsaas\service\food\impl\DispatchpriceTicketMaterialServiceImpl.class +com\jwsaas\service\food\impl\PromotionGoodsServiceImpl.class +com\jwsaas\dao\food\PromotionBlackListStoreAreaDao.class +com\jwsaas\dao\food\CouponTicketProductDao.class +com\jwsaas\dao\food\StoreStockCheckTemplateDetailDao.class +com\jwsaas\dao\food\WxAdjustPriceStoreDao.class +com\jwsaas\dao\food\impl\VposProductEvaluateDaoImpl.class +com\jwsaas\dao\wxdc\WeixinAccountDao.class +com\jwsaas\service\food\impl\QimaiProductServiceImpl.class +com\jwsaas\dao\food\BaiduFoodDao.class +com\jwsaas\dao\food\ProductKitPlanDao.class +com\jwsaas\dao\food\ProductBurdenDao.class +com\jwsaas\dao\food\CheckTemplateDao.class +com\jwsaas\dao\shared\ResourcesDao.class +com\jwsaas\dao\food\impl\CheckTemplateDaoImpl.class +com\jwsaas\service\food\impl\StoreStorageOutTicketDetailServiceImpl.class +com\jwsaas\dao\food\impl\ProgramStoreProductDaoImpl.class +com\jwsaas\dao\food\StoretableTypeDao.class +com\jwsaas\dao\food\TicketPrintSettingDao.class +com\jwsaas\service\food\impl\PurchasepriceServiceImpl.class +com\jwsaas\dao\food\DfsFileDao.class +com\jwsaas\dao\food\impl\ProgramStoreBusinessTicketDeliverDaoImpl.class +com\jwsaas\service\food\impl\StoreDispatchAccountLogServiceImpl.class +com\jwsaas\dao\food\impl\CouponCodeDetailDaoImpl.class +com\jwsaas\dao\food\RechargeParameterDao.class +com\jwsaas\service\food\impl\QimaiStoreLableServiceImpl.class +com\jwsaas\dao\wxyh\impl\WeixinUserDaoImpl.class +com\jwsaas\dao\ops\impl\TenantPosLoginLogDaoImpl.class +com\jwsaas\dao\food\AgentStoreDao.class +com\jwsaas\dao\food\ProgramStoreOrderProductDao.class +com\jwsaas\dao\food\ProductBatchNegativeStockDifferDao.class +com\jwsaas\dao\food\impl\CandaoStoreDaoImpl.class +com\jwsaas\dao\food\impl\StoreHandoverDetailDaoImpl.class +com\jwsaas\service\food\impl\ProductServiceImpl.class +com\jwsaas\service\food\impl\FeeItemServiceImpl.class +com\jwsaas\service\food\impl\QimaiProductAttributeServiceImpl.class +com\jwsaas\dao\food\ProductDao.class +com\jwsaas\dao\food\impl\QimaiProductTemplateStoreDaoImpl.class +com\jwsaas\dao\ops\CityDao.class +com\jwsaas\dao\ops\SetCodeDao.class +com\jwsaas\service\ops\impl\QimaiSetServiceImpl.class +com\jwsaas\dao\food\impl\PromotionCategoryDaoImpl.class +com\jwsaas\service\food\impl\PayTypeServiceImpl.class +com\jwsaas\util\TlRequest.class +com\jwsaas\service\food\impl\ProgramStoreServiceImpl.class +com\jwsaas\dao\ops\impl\ProductPermissionsDaoImpl.class +com\jwsaas\service\food\impl\MakeDetailServiceImpl.class +com\jwsaas\dao\food\impl\WxGoodsMakeDaoImpl.class +com\jwsaas\dao\food\ProgramProductCategoryDao.class +com\jwsaas\service\food\impl\StoreAccountServiceImpl.class +com\jwsaas\dao\food\impl\PromotionBlackListStoreDaoImpl.class +com\jwsaas\dao\food\impl\StoreTypeDaoImpl.class +com\jwsaas\dao\food\ProgramPromotionTaskDao.class +com\jwsaas\dao\food\impl\ProgramPromotionBlackListStoreDaoImpl.class +com\jwsaas\dao\food\ProductTemplateDetailDao.class +com\jwsaas\service\food\impl\PromotionTicketServiceImpl.class +com\jwsaas\dao\food\impl\ProgramEvaluateImageDaoImpl.class +com\jwsaas\dao\food\QimaiOrderDao.class +com\jwsaas\dao\food\impl\PosSetPlanModuleDaoImpl.class +com\jwsaas\dao\food\impl\ProgramStoreBusinessTicketDaoImpl.class +com\jwsaas\service\food\impl\StoreDeliveryOrderItemServiceImpl.class +com\jwsaas\service\food\impl\WxSalesPaymentServiceImpl.class +com\jwsaas\dao\food\impl\ProgramPromotionBlackListStoreAreaDaoImpl.class +com\jwsaas\dao\ops\AppBaiduBranchDao.class +com\jwsaas\dao\food\WxSalesPaymentDao.class +com\jwsaas\dao\food\MeituanOrderItemDao.class +com\jwsaas\util\JSONException.class +com\jwsaas\dao\food\impl\DispatchSettlePlanPayModeDaoImpl.class +com\jwsaas\dao\food\impl\StoreAccountDaoImpl.class +com\jwsaas\dao\food\QimaiProductTemplateDao.class +com\jwsaas\dao\food\impl\StoreLoginLogDaoImpl.class +com\jwsaas\dao\food\StoreDeliveryOrderItemDao.class +com\jwsaas\dao\food\impl\YunposSetStoreDaoImpl.class +com\jwsaas\dao\food\SaleClearDao.class +com\jwsaas\dao\food\impl\ReceiveDifferenceDetailDaoImpl.class +com\jwsaas\dao\ops\impl\AppWhitePlanDaoImpl.class +com\jwsaas\dao\food\DispatchpriceTicketMaterialDao.class +com\jwsaas\dao\food\MakeBurdenDao.class +com\jwsaas\service\food\impl\StoreStorageOutTicketLogServiceImpl.class +com\jwsaas\dao\food\StoreDepartmentDao.class +com\jwsaas\dao\food\CostTicketProductChangeDao.class +com\jwsaas\service\food\impl\DispatchpriceTicketStoreServiceImpl.class +com\jwsaas\dao\food\impl\SaleClearDaoImpl.class +com\jwsaas\dao\food\impl\ProgramProductTemplateDetailDaoImpl.class +com\jwsaas\service\food\impl\QimaiOrderPayServiceImpl.class +com\jwsaas\dao\BaseDao.class +com\jwsaas\dao\food\ProductMakeDao.class +com\jwsaas\service\food\impl\PurchaseTicketServiceImpl.class +com\jwsaas\service\ops\impl\AgentSubFuyouTicketServiceImpl.class +com\jwsaas\service\food\impl\AgentStoreServiceImpl.class +com\jwsaas\service\food\impl\KdsPlanServiceImpl.class +com\jwsaas\dao\food\impl\PromotionGoodsDaoImpl.class +com\jwsaas\dao\food\impl\StoreAccountDetailDaoImpl.class +com\jwsaas\dao\food\impl\StoreStockCheckTicketLogDaoImpl.class +com\jwsaas\dao\food\RoleDao.class +com\jwsaas\dao\food\impl\AgentStoreDaoImpl.class +com\jwsaas\dao\food\impl\ProgramPromotionTicketDaoImpl.class +com\jwsaas\dao\food\impl\CostTicketTemplateProductChangeDaoImpl.class +com\jwsaas\dao\food\impl\WxGoodsTemplateStoreDaoImpl.class +com\jwsaas\service\ops\impl\CityServiceImpl.class +com\jwsaas\dao\food\impl\CostTicketTemplateProductOtherChangeDaoImpl.class +com\jwsaas\service\food\impl\PurchasepriceTicketMaterialServiceImpl.class +com\jwsaas\dao\food\impl\PosSetPlanConfigDaoImpl.class +com\jwsaas\util\TlHttpUtils.class +com\jwsaas\service\food\impl\CouponStoreServiceImpl.class +com\jwsaas\service\food\impl\AdjustPriceProductServiceImpl.class +com\jwsaas\service\food\impl\StoreHandoverServiceImpl.class +com\jwsaas\dao\food\impl\QimaiAttributeCategoryDaoImpl.class +com\jwsaas\service\wxdc\impl\WeixinPayUnifiedOrderServiceImpl.class +com\jwsaas\dao\food\impl\ServerDataVersionDaoImpl.class +com\jwsaas\dao\ops\impl\PrinterInfoDaoImpl.class +com\jwsaas\service\ops\impl\MeituanBranchServiceImpl.class +com\jwsaas\dao\food\YunposSetDao.class +com\jwsaas\service\food\impl\AskGoodsDetailServiceImpl.class +com\jwsaas\dao\food\impl\StoreBusinessTicketInfoDaoImpl.class +com\jwsaas\dao\food\CostTicketPayTypeDao.class +com\jwsaas\service\food\impl\CouponServiceImpl.class +com\jwsaas\service\food\impl\StoreStorageServiceImpl.class +com\jwsaas\dao\food\impl\AdvertCaptionDaoImpl.class +com\jwsaas\dao\food\impl\CheckTicketLogDaoImpl.class +com\jwsaas\service\food\impl\KitPlanServiceImpl.class +com\jwsaas\dao\food\PosSetPlanDao.class +com\jwsaas\dao\shared\ModuleDao.class +com\jwsaas\dao\food\impl\VposProductEvaluateImageDaoImpl.class +com\jwsaas\service\ops\impl\ProductPermissionsServiceImpl.class +com\jwsaas\mybatis\NullDatabaseIdProvider.class +com\jwsaas\dao\food\impl\TaskScheduleDaoImpl.class +com\jwsaas\dao\food\CouponTicketDao.class +com\jwsaas\dao\food\impl\StoreDaoImpl.class +com\jwsaas\mybatis\support\OracleDialect.class +com\jwsaas\dao\food\StoreBusinessTicketDeliveryDao.class +com\jwsaas\dao\food\impl\StoreStockCheckTicketDetailDaoImpl.class +com\jwsaas\dao\food\impl\SupplierTypeDaoImpl.class +com\jwsaas\service\food\impl\WxAdPictureServiceImpl.class +com\jwsaas\dao\food\impl\StoreStorageTicketLogDaoImpl.class +com\jwsaas\dao\food\ProductSpecDao.class +com\jwsaas\dao\food\impl\PurchaseTicketLogDaoImpl.class +com\jwsaas\service\food\impl\DispatchSettlePlanServiceImpl.class +com\jwsaas\service\food\impl\PurchaseTicketDetailServiceImpl.class +com\jwsaas\service\ops\impl\TenantProductServiceImpl.class +com\jwsaas\dao\food\BrandDao.class +com\jwsaas\dao\food\StoreProductDao.class +com\jwsaas\service\food\impl\CheckTicketServiceImpl.class +com\jwsaas\service\food\impl\ProgramAdjustPriceStoreServiceImpl.class +com\jwsaas\dao\food\impl\CostFeeTypeDaoImpl.class +com\jwsaas\service\food\impl\StoreStockCheckTemplateServiceImpl.class +com\jwsaas\dao\food\CostTicketTemplateProductChangeDao.class +com\jwsaas\dao\food\ReceiveDifferenceTicketDao.class +com\jwsaas\mybatis\support\SqlSessionCallback.class +com\jwsaas\service\food\impl\WxSalesOrderServiceImpl$1.class +com\jwsaas\dao\food\PurchasepriceTicketMaterialDao.class +com\jwsaas\dao\food\ProgramProductTemplateDetailDao.class +com\jwsaas\dao\food\AgentDao.class +com\jwsaas\dao\food\CouponCodeDetailDao.class +com\jwsaas\dao\food\impl\ProgramEvaluateDaoImpl.class +com\jwsaas\dao\food\CouponDao.class +com\jwsaas\dao\food\impl\ProgramPromotionStoreDaoImpl.class +com\jwsaas\service\food\impl\StoretableServiceImpl.class +com\jwsaas\mybatis\plugins\PrimaryKeyGenerator.class +com\jwsaas\dao\shared\impl\ResourcesDaoImpl.class +com\jwsaas\dao\food\impl\DispatchpriceTicketStoreDaoImpl.class +com\jwsaas\service\food\impl\ProductKitPlanServiceImpl.class +com\jwsaas\dao\food\impl\ProgramStoreOrderProductInfoDaoImpl.class +com\jwsaas\dao\food\AdjustPriceTicketDao.class +com\jwsaas\cache\impl\RedissonConfiguration.class +com\jwsaas\dao\food\StorageTypeDao.class +com\jwsaas\dao\food\StorePayDao.class +com\jwsaas\dao\food\impl\MakeDetailDaoImpl.class +com\jwsaas\dao\wxdc\WeixinOrderPayDao.class +com\jwsaas\dao\food\impl\DispatchTicketLogDaoImpl.class +com\jwsaas\dao\food\impl\ProductMakeTemplateDetailDaoImpl.class +com\jwsaas\service\food\impl\PurchaseStorageTicketServiceImpl.class +com\jwsaas\dao\food\ShopMeituanOrderDao.class +com\jwsaas\dao\impl\TenantDaoImpl.class +com\jwsaas\dao\food\impl\PromotionBlackListGoodsDaoImpl.class +com\jwsaas\dao\food\impl\ThuselevelTicketDaoImpl.class +com\jwsaas\dao\food\impl\CategoryDaoImpl.class +com\jwsaas\dao\food\impl\StorageTypeDaoImpl.class +com\jwsaas\dao\food\impl\WxSalesPaymentDaoImpl.class +com\jwsaas\dao\food\OtherStorageTicketDetailDao.class +com\jwsaas\dao\food\impl\QimaiProductSpecDaoImpl.class +com\jwsaas\dao\food\VposUserSeriesDao.class +com\jwsaas\service\food\impl\VposStoreBusinessTicketInfoServiceImpl.class +com\jwsaas\dao\food\QimaiAdjustPriceGoodsDao.class +com\jwsaas\service\ops\impl\PosModuleServiceImpl.class +com\jwsaas\mybatis\domain\PageBounds.class +com\jwsaas\dao\food\StoreStockCheckTicketLogDao.class +com\jwsaas\service\food\impl\CouponTicketStoreServiceImpl.class +com\jwsaas\dao\food\impl\RoleDaoImpl.class +com\jwsaas\dao\food\ShopMeituanOrderItemDao.class +com\jwsaas\dao\food\impl\StoreOrderProductInfoDaoImpl.class +com\jwsaas\dao\wxdc\impl\WeixinPayUnifiedOrderDaoImpl.class +com\jwsaas\service\food\impl\QimaiProductChargeServiceImpl.class +com\jwsaas\service\food\impl\AskGoodsTemplateStoreServiceImpl.class +com\jwsaas\dao\food\DispatchpriceTicketDao.class +com\jwsaas\service\food\impl\StoreBusinessTicketTableServiceImpl.class +com\jwsaas\service\wxyh\impl\WeixinUserServiceImpl.class +com\jwsaas\dao\food\impl\QimaiStoreDaoImpl.class +com\jwsaas\service\ops\impl\AppWhitePlanServiceImpl.class +com\jwsaas\dao\food\CategoryDao.class +com\jwsaas\dao\food\CostFeeTypeDao.class +com\jwsaas\dao\food\impl\MeituanFoodDaoImpl.class +com\jwsaas\dao\food\impl\ProductTypeDaoImpl.class +com\jwsaas\dao\food\impl\ProgramPromotionSchemeDaoImpl.class +com\jwsaas\dao\food\ProductBatchNegativeStockDao.class +com\jwsaas\service\ops\impl\UpgradeStoreServiceImpl.class +com\jwsaas\service\food\impl\PromotionBlackListStoreServiceImpl.class +com\jwsaas\dao\food\impl\WxQrcodeSettingDaoImpl.class +com\jwsaas\service\food\impl\ProgramPromotionStoreServiceImpl.class +com\jwsaas\dao\food\impl\QimaiSuitDetailDaoImpl.class +com\jwsaas\dao\food\SplitPayResultDao.class +com\jwsaas\dao\ops\TenantLineProductDao.class +com\jwsaas\dao\food\FeeItemDao.class +com\jwsaas\dao\food\CostTicketTemplateProductOtherChangeDao.class +com\jwsaas\dao\food\CostFeeItemDao.class +com\jwsaas\dao\food\StoreAccountRechargeParameterDao.class +com\jwsaas\dao\food\StoreDispatchAccountLogDao.class +com\jwsaas\service\food\impl\ProgramStoreBusinessTicketServiceImpl.class +com\jwsaas\dao\food\QimaiAttributeDao.class +com\jwsaas\service\food\impl\ProductTypeServiceImpl.class +com\jwsaas\service\food\impl\CostTicketTemplateServiceImpl.class +com\jwsaas\dao\food\ProductBatchNumberDao.class +com\jwsaas\service\food\impl\ProgramProductServiceImpl.class +com\jwsaas\service\food\impl\ProgramProductCategoryServiceImpl.class +com\jwsaas\dao\wxdc\WeixinPayUnifiedOrderDao.class +com\jwsaas\service\food\impl\PromotionStoreAreaServiceImpl.class +com\jwsaas\dao\food\ProgramPromotionSchemeDao.class +com\jwsaas\dao\food\impl\BusinessPlanDaoImpl.class +com\jwsaas\dao\food\impl\QimaiProductTemplateDaoImpl.class +com\jwsaas\dao\food\ThuselevelTicketStoreDao.class +com\jwsaas\dao\food\QimaiOrderItemDao.class +com\jwsaas\service\food\impl\ReceiveDifferenceTicketPayServiceImpl.class +com\jwsaas\service\food\impl\PosSetPlanConfigServiceImpl.class +com\jwsaas\dao\food\impl\StoreBusinessTicketDeliveryDaoImpl.class +com\jwsaas\service\food\impl\PurchaseTemplateDetailServiceImpl.class +com\jwsaas\dao\food\StoreBusinessTicketTableDao.class +com\jwsaas\dao\food\QimaiStoreProductDao.class +com\jwsaas\service\food\impl\ProgramPromotionBlackListGoodsServiceImpl.class +com\jwsaas\dao\food\impl\StoreStockCheckTemplateDaoImpl.class +com\jwsaas\dao\food\impl\PromotionStoreDaoImpl.class +com\jwsaas\dao\food\VisitorDao.class +com\jwsaas\dao\food\impl\ReceiveDifferenceTicketDaoImpl.class +com\jwsaas\service\food\impl\StorageTypeServiceImpl.class +com\jwsaas\service\food\impl\WxStoreServiceImpl.class +com\jwsaas\service\shared\impl\ResourcesServiceImpl.class +com\jwsaas\dao\food\QimaiProductTemplateStoreDao.class +com\jwsaas\dao\food\ProductImageDao.class +com\jwsaas\dao\food\impl\VposStoreOrderProductMakeDaoImpl.class +com\jwsaas\datasource\advice\DataSourceThrowsAdvice.class +com\jwsaas\service\ops\impl\AppVersionServiceImpl.class +com\jwsaas\service\food\impl\ProductTemplateServiceImpl.class +com\jwsaas\dao\food\impl\MeituanFoodCategoryDaoImpl.class +com\jwsaas\dao\food\impl\ReceiveGoodsDetailDaoImpl.class +com\jwsaas\mybatis\support\Dialect.class +com\jwsaas\service\food\impl\StoreStockCheckTicketLogServiceImpl.class +com\jwsaas\dao\food\impl\PrintImageDaoImpl.class +com\jwsaas\dao\food\VposStoreBusinessTicketDao.class +com\jwsaas\service\food\impl\VposStoreOrderProductInfoServiceImpl.class +com\jwsaas\dao\food\impl\SplitFoodAccountDaoImpl.class +com\jwsaas\dao\food\PayTypeDao.class +com\jwsaas\service\food\impl\ProductBatchNegativeStockDifferServiceImpl.class +com\jwsaas\dao\food\impl\OtherStorageTicketLogDaoImpl.class +com\jwsaas\service\food\impl\StoreServiceImpl.class +com\jwsaas\service\food\impl\ProductUnitServiceImpl.class +com\jwsaas\dao\food\impl\ReceiveDifferenceTicketLogDaoImpl.class +com\jwsaas\cache\impl\RedisCacheServiceImpl.class +com\jwsaas\dao\food\impl\KdsPlanDaoImpl.class +com\jwsaas\dao\food\PurchaseTicketLogDao.class +com\jwsaas\dao\wxdc\WeixinUserDao.class +com\jwsaas\dao\food\impl\ProgramSettingDaoImpl.class +com\jwsaas\service\food\impl\WxGoodsTemplateServiceImpl.class +com\jwsaas\service\food\impl\SplitFoodAccountServiceImpl.class +com\jwsaas\service\food\impl\StoreBusinessTicketInfoServiceImpl.class +com\jwsaas\dao\food\impl\ProductTemplateDetailDaoImpl.class +com\jwsaas\service\food\impl\StoreDispatchAccountServiceImpl.class +com\jwsaas\dao\food\impl\StoreStorageTicketDetailDaoImpl.class +com\jwsaas\dao\food\impl\StoreCostManageDaoImpl.class +com\jwsaas\dao\food\impl\DfsFileDaoImpl.class +com\jwsaas\service\food\impl\MeituanFoodCategoryServiceImpl.class +com\jwsaas\service\food\impl\StoreWorkerServiceImpl.class +com\jwsaas\dao\food\impl\ProgramStoreBusinessTicketInfoDaoImpl.class +com\jwsaas\dao\food\WxSalesOrderItemDao.class +com\jwsaas\dao\food\BaiduOrderProductDao.class +com\jwsaas\dao\food\impl\QimaiProductDaoImpl.class +com\jwsaas\service\food\impl\ProductImageServiceImpl.class +com\jwsaas\dao\ops\UpgradeStoreDao.class +com\jwsaas\service\food\impl\ProgramStoreOrderProductMakeServiceImpl.class +com\jwsaas\service\food\impl\QimaiSuitDetailServiceImpl.class +com\jwsaas\dao\food\impl\VposUserDaoImpl.class +com\jwsaas\mybatis\plugins\MyBatisLogInterceptor.class +com\jwsaas\mybatis\plugins\PrimaryKeyInterceptor.class +com\jwsaas\service\food\impl\CouponTicketServiceImpl.class +com\jwsaas\dao\food\impl\CostTicketTemplateProductMoreChangeDaoImpl.class +com\jwsaas\dao\food\StoreHandoverDetailDao.class +com\jwsaas\dao\food\impl\QimaiAdjustPriceTicketDaoImpl.class +com\jwsaas\dao\food\impl\StoreOrderProductDaoImpl.class +com\jwsaas\dao\food\PosSetPlanConfigDao.class +com\jwsaas\dao\food\impl\VisitorAddressDaoImpl.class +com\jwsaas\dao\food\WxStoreGoodsDao.class +com\jwsaas\service\food\impl\StoreFeeCutLogServiceImpl.class +com\jwsaas\dao\food\impl\ProductStockLogDaoImpl.class +com\jwsaas\dao\food\ProductMakeTemplateDetailDao.class +com\jwsaas\dao\food\QimaiStoreLableDao.class +com\jwsaas\service\food\impl\DispatchTicketServiceImpl.class +com\jwsaas\service\food\impl\BaiduOrderServiceImpl.class +com\jwsaas\dao\food\CheckTicketDao.class +com\jwsaas\service\food\impl\PosRoleServiceImpl.class +com\jwsaas\dao\food\CouponTicketStoreDao.class +com\jwsaas\dao\ops\impl\UpgradeSchemeDaoImpl.class +com\jwsaas\service\food\impl\YunposSetServiceImpl.class +com\jwsaas\service\food\impl\PayModeServiceImpl.class +com\jwsaas\dao\food\impl\ProductStoreStockDaoImpl.class +com\jwsaas\service\ops\impl\ErrorInfoServiceImpl.class +com\jwsaas\dao\ops\AppWhitePlanDao.class +com\jwsaas\dao\food\PurchaseStorageTicketDetailDao.class +com\jwsaas\dao\food\WxAdjustPriceGoodsDao.class +com\jwsaas\dao\food\impl\ProductDaoImpl.class +com\jwsaas\service\food\impl\ProgramPromotionTaskServiceImpl.class +com\jwsaas\dao\food\impl\TicketPrintSettingDaoImpl.class +com\jwsaas\dao\food\QimaiAdjustPriceStoreDao.class +com\jwsaas\dao\ops\BankCodeDao.class +com\jwsaas\dao\food\ThuselevelTicketDao.class +com\jwsaas\service\food\impl\StoreAccountRechargeRecordServiceImpl.class +com\jwsaas\dao\food\impl\ProductBatchNegativeStockDifferDaoImpl.class +com\jwsaas\dao\food\StoreStockCheckTemplateDao.class +com\jwsaas\dao\food\impl\MakeTypeDaoImpl.class +com\jwsaas\service\food\impl\OtherStorageOutTicketLogServiceImpl.class +com\jwsaas\service\food\impl\StoreWorkerExtServiceImpl.class +com\jwsaas\service\food\impl\AskGoodsTicketServiceImpl.class +com\jwsaas\service\wxdc\impl\WeixinRechargeOrderServiceImpl.class +com\jwsaas\dao\food\impl\WxSalesOrderItemMakeDaoImpl.class +com\jwsaas\dao\food\impl\OtherStorageTicketDetailDaoImpl.class +com\jwsaas\dao\wxdc\impl\WeixinUserDaoImpl.class +com\jwsaas\service\food\impl\ErpPosSetServiceImpl.class +com\jwsaas\service\food\impl\StoreHandoverDetailServiceImpl.class +com\jwsaas\dao\food\ProductBatchStockDao.class +com\jwsaas\service\food\impl\CouponCodeDetailServiceImpl.class +com\jwsaas\service\ops\impl\CardReaderInfoServiceImpl.class +com\jwsaas\service\food\impl\SaleClearServiceImpl.class +com\jwsaas\dao\ops\CityCodeDao.class +com\jwsaas\dao\ops\impl\AppGuopanStoreInfoDaoImpl.class +com\jwsaas\mybatis\plugins\PagerInterceptor$1.class +com\jwsaas\dao\food\impl\PosSetPlanDaoImpl.class +com\jwsaas\dao\food\impl\QimaiAdjustPriceGoodsDaoImpl.class +com\jwsaas\dao\shared\AppAuthDao.class +com\jwsaas\dao\food\impl\PosRoleDaoImpl.class +com\jwsaas\dao\ops\impl\ElemeAuthorizeInfoDaoImpl.class +com\jwsaas\dao\food\ProgramPromotionTicketDao.class +com\jwsaas\dao\food\StoreFeeCutLogDao.class +com\jwsaas\service\food\impl\AskGoodsTicketLogServiceImpl.class +com\jwsaas\service\food\impl\ProgramProductTemplateStoreServiceImpl.class +com\jwsaas\service\food\impl\VisitorTagServiceImpl.class +com\jwsaas\dao\food\impl\StoreStorageTicketDaoImpl.class +com\jwsaas\dao\ops\ElemeAuthorizeInfoDao.class +com\jwsaas\dao\ops\impl\TenantPosInfoDaoImpl.class +com\jwsaas\service\food\impl\PromotionSchemeServiceImpl.class +com\jwsaas\service\food\impl\WxSalesOrderLogServiceImpl.class +com\jwsaas\service\food\impl\ProgramSettingServiceImpl.class +com\jwsaas\service\food\impl\StoreEnchashmentRecordServiceImpl.class +com\jwsaas\dao\food\impl\WxSalesOrderItemDaoImpl.class +com\jwsaas\service\food\impl\PurchaseStorageTicketLogServiceImpl.class +com\jwsaas\dao\food\impl\ShopMeituanOrderExtraDaoImpl.class +com\jwsaas\dao\food\PurchaseTicketDao.class +com\jwsaas\dao\food\impl\SplitPayLogDaoImpl.class +com\jwsaas\dao\food\PrintImageDao.class +com\jwsaas\service\food\impl\ProgramProductMakeServiceImpl.class +com\jwsaas\service\food\impl\ProductKdsPlanServiceImpl.class +com\jwsaas\dao\food\impl\StoretableAreaDaoImpl.class +com\jwsaas\dao\food\ProductStockDao.class +com\jwsaas\dao\food\StoreCostManageLogDao.class +com\jwsaas\dao\food\impl\AskGoodsTemplateDetailDaoImpl.class +com\jwsaas\dao\food\impl\AdvertPictureDaoImpl.class +com\jwsaas\dao\food\impl\ProgramProductMakeDaoImpl.class +com\jwsaas\dao\food\DispatchTicketDetailDao.class +com\jwsaas\util\TlHttpClient.class +com\jwsaas\datasource\DataSourceDescriptor.class +com\jwsaas\service\food\impl\CostTicketProductFixedChangeServiceImpl.class +com\jwsaas\dao\ops\AppInfoDao.class +com\jwsaas\dao\food\impl\QimaiAdjustPriceStoreDaoImpl.class +com\jwsaas\dao\food\WxdcDistributionAddressDao.class +com\jwsaas\dao\food\impl\StoreStorageOutTicketDetailDaoImpl.class +com\jwsaas\dao\food\SplitShopAccountDao.class +com\jwsaas\dao\food\impl\AskGoodsTemplateStoreDaoImpl.class +com\jwsaas\dao\food\StoreProductSaleStockDao.class +com\jwsaas\dao\food\ProductTypeLabelInfoDao.class +com\jwsaas\service\food\impl\ThuselevelTicketStoreServiceImpl.class +com\jwsaas\dao\wxyh\WeixinUserDao.class +com\jwsaas\dao\food\impl\QimaiStoreLableDaoImpl.class +com\jwsaas\dao\food\impl\StoreHandoverDetailPartDaoImpl.class +com\jwsaas\dao\ops\impl\CityCodeDaoImpl.class +com\jwsaas\service\food\impl\UserServiceImpl.class +com\jwsaas\dao\food\WxGoodsMakeDao.class +com\jwsaas\dao\food\impl\StoreBusinessTicketTableDaoImpl.class +com\jwsaas\dao\ops\PosModuleTypeDao.class +com\jwsaas\dao\food\impl\VposStorePayDaoImpl.class +com\jwsaas\dao\food\AdvertCaptionDao.class +com\jwsaas\service\food\impl\ReceiveDifferenceDetailServiceImpl.class +com\jwsaas\service\ops\impl\SetCodeServiceImpl.class +com\jwsaas\service\food\impl\VposProductEvaluateServiceImpl.class +com\jwsaas\dao\food\impl\ProgramProductTemplateStoreDaoImpl.class +com\jwsaas\dao\food\ProgramProductMakeDao.class +com\jwsaas\service\food\impl\ElemeOrderDetailServiceImpl.class +com\jwsaas\dao\food\impl\PurchasepriceTicketMaterialDaoImpl.class +com\jwsaas\service\food\impl\ProductTypeLabelInfoServiceImpl.class +com\jwsaas\dao\food\ReceiveGoodsTicketDao.class +com\jwsaas\dao\food\impl\StoreBusinessTicketCheckDaoImpl.class +com\jwsaas\dao\food\PurchaseTemplateDetailDao.class +com\jwsaas\service\food\impl\ProgramPromotionTicketServiceImpl.class +com\jwsaas\dao\food\ProgramPromotionCategoryDao.class +com\jwsaas\dao\food\StoreHandoverDetailPartDao.class +com\jwsaas\dao\food\UserDao.class +com\jwsaas\service\food\impl\CouponTicketProductServiceImpl.class +com\jwsaas\service\food\impl\PurchaseStorageTicketDetailServiceImpl.class +com\jwsaas\dao\food\impl\ReceiveGoodsTicketDaoImpl.class +com\jwsaas\dao\food\impl\PromotionStoreAreaDaoImpl.class +com\jwsaas\dao\food\impl\StoreStorageDaoImpl.class +com\jwsaas\dao\food\PaymentParameterDao.class +com\jwsaas\dao\food\impl\DispatchpriceTicketDaoImpl.class +com\jwsaas\dao\food\StorageDao.class +com\jwsaas\Main.class +com\jwsaas\service\food\impl\DeliverServiceImpl.class +com\jwsaas\dao\food\WxGoodsTemplateDao.class +com\jwsaas\service\food\impl\ShopMeituanOrderExtraServiceImpl.class +com\jwsaas\dao\food\impl\DeliverDaoImpl.class +com\jwsaas\dao\food\impl\StorageDaoImpl.class +com\jwsaas\dao\food\ProductBatchStockChangeDao.class +com\jwsaas\service\food\impl\ProductBatchStockServiceImpl.class +com\jwsaas\dao\food\VposProductEvaluateDao.class +com\jwsaas\dao\food\WxGoodsCategoryDao.class +com\jwsaas\service\food\impl\StoreCostRevenueServiceImpl.class +com\jwsaas\dao\ops\impl\AgentSubFuyouTicketDaoImpl.class +com\jwsaas\service\food\impl\ReceiveDifferenceTicketServiceImpl.class +com\jwsaas\dao\food\impl\ProductKdsPlanDaoImpl.class +com\jwsaas\dao\food\impl\StoreEnchashmentRecordDaoImpl.class +com\jwsaas\service\food\impl\ProgramPromotionGoodsServiceImpl.class +com\jwsaas\dao\food\impl\SupplierDaoImpl.class +com\jwsaas\dao\food\SplitPayLogDao.class +com\jwsaas\service\food\impl\StoreBusinessTicketServiceImpl.class +com\jwsaas\dao\food\impl\ProductBatchNegativeStockDaoImpl.class +com\jwsaas\service\food\impl\CandaoStoreServiceImpl.class +com\jwsaas\dao\ops\impl\AppShopmeituanSetStoreDaoImpl.class +com\jwsaas\dao\food\PromotionTicketDao.class +com\jwsaas\dao\ops\PrinterInfoDao.class +com\jwsaas\dao\food\impl\FeeItemDaoImpl.class +com\jwsaas\dao\food\impl\ProgramPromotionCategoryDaoImpl.class +com\jwsaas\service\food\impl\CostTicketProductOtherChangeServiceImpl.class +com\jwsaas\service\food\impl\StoreCostManageServiceImpl.class +com\jwsaas\mybatis\support\MySQLDialect.class +com\jwsaas\dao\food\impl\CheckTemplateDetailDaoImpl.class +com\jwsaas\dao\food\impl\WxPaymentParameterDaoImpl.class +com\jwsaas\dao\food\StoreCostRevenueDao.class +com\jwsaas\dao\food\ProgramAdjustPriceProductDao.class +com\jwsaas\dao\food\ProgramDeliverAddressDao.class +com\jwsaas\dao\food\OtherStorageTicketDao.class +com\jwsaas\dao\food\StoreEnchashmentRecordLogDao.class +com\jwsaas\service\ops\impl\TenantPosInfoServiceImpl.class +com\jwsaas\service\food\impl\AdvertPictureServiceImpl.class +com\jwsaas\dao\food\impl\CouponTicketStoreDaoImpl.class +com\jwsaas\dao\food\impl\CostTicketProductOtherChangeDaoImpl.class +com\jwsaas\dao\food\impl\StoretableDaoImpl.class +com\jwsaas\dao\food\CostTicketTemplateProductFixedChangeDao.class +com\jwsaas\dao\food\impl\StoreOperationLogDaoImpl.class +com\jwsaas\service\food\impl\PurchaseTemplateServiceImpl.class +com\jwsaas\dao\food\impl\PromotionScheduleDaoImpl.class +com\jwsaas\dao\ops\impl\AppInfoDaoImpl.class +com\jwsaas\dao\food\CostTicketDao.class +com\jwsaas\dao\food\AskGoodsTemplateDetailDao.class +com\jwsaas\service\food\impl\StoretableTypeServiceImpl.class +com\jwsaas\service\food\impl\StoreStockCheckTicketServiceImpl.class +com\jwsaas\datasource\advice\DataSourceAfterAdvice.class +com\jwsaas\service\food\impl\CostFeeItemServiceImpl.class +com\jwsaas\service\food\impl\StoreOrderProductServiceImpl.class +com\jwsaas\dao\food\VposProductEvaluateImageDao.class +com\jwsaas\dao\food\ProductTemplateDao.class +com\jwsaas\dao\food\PromotionGoodsDao.class +com\jwsaas\service\food\impl\DispatchpriceTicketServiceImpl.class +com\jwsaas\service\food\impl\WxGoodsTemplateDetailServiceImpl.class +com\jwsaas\dao\food\StoreBusinessTicketCheckDao.class +com\jwsaas\dao\food\impl\StoreDispatchAccountLogDaoImpl.class +com\jwsaas\dao\food\ProgramPromotionGoodsDao.class +com\jwsaas\dao\food\impl\VposStoreOrderProductInfoDaoImpl.class +com\jwsaas\service\food\impl\CheckTicketLogServiceImpl.class +com\jwsaas\service\food\impl\CostTicketProductTypeServiceImpl.class +com\jwsaas\service\food\impl\TicketPrintSettingServiceImpl.class +com\jwsaas\service\food\impl\VposStoreOrderProductMakeServiceImpl.class +com\jwsaas\dao\food\ProgramStoreDao.class +com\jwsaas\dao\food\impl\ProductBurdenDaoImpl.class +com\jwsaas\service\impl\HelloServiceImpl.class +com\jwsaas\dao\food\AskGoodsDetailDao.class +com\jwsaas\dao\food\CandaoStoreDao.class +com\jwsaas\dao\food\ProgramAdjustPriceStoreDao.class +com\jwsaas\dao\food\impl\PurchaseTemplateDaoImpl.class +com\jwsaas\dao\food\impl\ProgramProductTemplateDaoImpl.class +com\jwsaas\dao\ops\PosModuleDao.class +com\jwsaas\service\food\impl\MeituanOrderExtraServiceImpl.class +com\jwsaas\dao\food\impl\CostTicketDaoImpl.class +com\jwsaas\dao\food\VposStoreBusinessTicketInfoDao.class +com\jwsaas\dao\food\impl\WxStoreDaoImpl.class +com\jwsaas\service\food\impl\SplitPayResultServiceImpl.class +com\jwsaas\dao\food\impl\StoreCostRevenueDaoImpl.class +com\jwsaas\dao\food\impl\VposStoreBusinessTicketInfoDaoImpl.class +com\jwsaas\dao\food\impl\WxSalesOrderDaoImpl.class +com\jwsaas\service\food\impl\StorageServiceImpl.class +com\jwsaas\dao\food\ProgramPromotionStoreDao.class +com\jwsaas\dao\food\PromotionStoreDao.class +com\jwsaas\dao\food\impl\ProgramPromotionStoreAreaDaoImpl.class +com\jwsaas\dao\food\impl\VposAdPictureDaoImpl.class +com\jwsaas\dao\food\PayModeStoreDao.class +com\jwsaas\dao\food\StoreStorageTicketDao.class +com\jwsaas\service\food\impl\StoreStorageTicketLogServiceImpl.class +com\jwsaas\dao\ops\impl\QimaiSetDaoImpl.class +com\jwsaas\dao\food\ProgramProductTemplateDao.class +com\jwsaas\dao\food\PromotionCategoryDao.class +com\jwsaas\dao\food\impl\QimaiChargeDaoImpl.class +com\jwsaas\service\food\impl\StoreDepartmentServiceImpl.class +com\jwsaas\service\ops\impl\AppGuopanStoreInfoServiceImpl.class +com\jwsaas\dao\food\StoretableAreaDao.class +com\jwsaas\dao\food\impl\ProductStoreOutCollectDayDaoImpl.class +com\jwsaas\service\food\impl\StoreOrderProductInfoServiceImpl.class +com\jwsaas\dao\food\impl\ProductRatioDaoImpl.class +com\jwsaas\dao\food\impl\KitPlanDaoImpl.class +com\jwsaas\dao\food\impl\QimaiProductChargeDaoImpl.class +com\jwsaas\mybatis\SqlSessionTemplateFactory.class +com\jwsaas\service\food\impl\QimaiStoreServiceImpl.class +com\jwsaas\dao\food\impl\StoreStorageOutTicketDaoImpl.class +com\jwsaas\dao\food\VposStoreOrderProductInfoDao.class +com\jwsaas\dao\food\impl\WxSalesOrderLogDaoImpl.class +com\jwsaas\dao\food\StoreWorkerExtDao.class +com\jwsaas\service\ops\impl\TenantLineProductServiceImpl.class +com\jwsaas\service\food\impl\ProgramProductTemplateDetailServiceImpl.class +com\jwsaas\dao\wxdc\impl\WeixinPayResultDaoImpl.class +com\jwsaas\dao\food\impl\AskGoodsTicketPayDaoImpl.class +com\jwsaas\dao\food\ProgramStorePayDao.class +com\jwsaas\dao\food\ErpPosSetDao.class +com\jwsaas\dao\food\impl\QimaiStoreProductDaoImpl.class +com\jwsaas\dao\food\StoreStorageDao.class +com\jwsaas\dao\food\WxGoodsTemplateStoreDao.class +com\jwsaas\service\food\impl\ProgramStoreOrderProductServiceImpl.class +com\jwsaas\dao\ops\impl\AppBaiduBranchDaoImpl.class +com\jwsaas\dao\food\impl\CostTicketTemplateProductFixedChangeDaoImpl.class +com\jwsaas\dao\food\WxStoreDao.class +com\jwsaas\service\food\impl\VisitorAddressServiceImpl.class +com\jwsaas\service\food\impl\StoreAccountDetailServiceImpl.class +com\jwsaas\dao\food\CheckTicketDetailDao.class +com\jwsaas\dao\food\QimaiAttributeCategoryDao.class +com\jwsaas\service\food\impl\StoreDeliveryOrderServiceImpl.class +com\jwsaas\service\food\impl\PayModeStoreServiceImpl.class +com\jwsaas\service\food\impl\WxdcDistributionServiceImpl.class +com\jwsaas\dao\food\impl\ElemeOrderDetailDaoImpl.class +com\jwsaas\service\food\impl\ShopMeituanOrderServiceImpl.class +com\jwsaas\service\food\impl\BusinessPlanServiceImpl.class +com\jwsaas\dao\food\impl\BaiduOrderDaoImpl.class +com\jwsaas\dao\food\impl\SplitShopWithdrawalDaoImpl.class +com\jwsaas\dao\food\impl\QimaiOrderPayDaoImpl.class +com\jwsaas\dao\food\StoreOperationLogDao.class +com\jwsaas\service\food\impl\StoreStockCheckTemplateDetailServiceImpl.class +com\jwsaas\dao\food\VposUserDao.class +com\jwsaas\datasource\AbstractRoutingDataSource.class +com\jwsaas\dao\food\impl\RechargeParameterDaoImpl.class +com\jwsaas\dao\food\StoreStockCheckTicketDao.class +com\jwsaas\dao\food\YunposSetStoreDao.class +com\jwsaas\service\food\impl\ThuselevelTicketMaterialServiceImpl.class +com\jwsaas\dao\food\impl\ProgramStoreOrderProductMakeDaoImpl.class +com\jwsaas\dao\food\impl\ElemeOrderDetailGroupDaoImpl.class +com\jwsaas\dao\food\ProgramEvaluateImageDao.class +com\jwsaas\service\ops\impl\AppShopmeituanSetStoreServiceImpl.class +com\jwsaas\service\food\impl\MeituanOrderItemServiceImpl.class +com\jwsaas\service\food\impl\PurchasepriceTicketServiceImpl.class +com\jwsaas\service\food\impl\CostFeeTypeServiceImpl.class +com\jwsaas\dao\food\impl\StoretableTypeDaoImpl.class +com\jwsaas\dao\food\DispatchpriceTicketStoreDao.class +com\jwsaas\dao\ops\AppShopmeituanSetDao.class +com\jwsaas\dao\food\WxSalesOrderLogDao.class +com\jwsaas\dao\ops\TenantPosLoginLogDao.class +com\jwsaas\datasource\holder\DataSourceHolder.class +com\jwsaas\dao\ops\impl\WxBusinessCodeDaoImpl.class +com\jwsaas\service\food\impl\ElemeOrderDetailGroupServiceImpl.class +com\jwsaas\dao\food\impl\PurchaseStorageTicketLogDaoImpl.class +com\jwsaas\service\food\impl\ProductSuitDetailServiceImpl.class diff --git a/food-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/food-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..4b2f0f8 --- /dev/null +++ b/food-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,1136 @@ +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CouponTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketProductOtherChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PayModeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CheckTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ThuselevelTicketMaterialDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VisitorAddressDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreHandoverDetailPartDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramAdPictureServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStockCheckTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\CityServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\TicketPrintSettingServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\impl\WeixinRechargeOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\TaskScheduleServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\shared\impl\FunctionServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppBaiduBranchServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiStoreProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductUnitDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductChargeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramEvaluateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CandaoStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketProductTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreAccountRechargeRecordServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramAdjustPriceTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiSuitDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiChargeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ShopMeituanOrderExtraServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\UpgradeSchemeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposUserSeriesServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CouponDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxyh\impl\WeixinUserDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoretableAreaServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStorageTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreAccountDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\NullDatabaseIdProvider.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\BusinessPlanDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductBatchNegativeStockDifferServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreDispatchAccountLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DfsFileDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreOrderProductMakeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\ErrorInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ShopMeituanOrderItemDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreHandoverDetailPayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStockCheckTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreAccountRechargeRecordDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketTemplateProductOtherChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxAdjustPriceGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppVersionServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreDeliveryOrderItemDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppQimaiSetStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiOrderItemDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VisitorServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\KdsPlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreLoginLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreAccountDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AdjustPriceTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxQrcodeSettingDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosSetPlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionTaskDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxdcDistributionAddressDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\TenantPosLoginLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\Main.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchpriceTicketMaterialDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposStorePayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosSetPlanConfigDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\TenantLineProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\util\TlCommonConstants.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ThuselevelTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\cache\impl\RedissonConfiguration.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionSchemeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramDeliverAddressServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\BaiduFoodServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppWhiteDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxAdjustPriceTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductSpecDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\WeixinAccountDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\OtherStorageTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\QimaiSetDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductBatchStockServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionBlackListStoreAreaServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ReceiveDifferenceTicketPayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketTemplateProductMoreChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductStockLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramEvaluateImageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductRatioDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreOrderProductMakeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosRoleDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\domain\PageBounds.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\shared\impl\ResourcesServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostFeeItemDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoretableAreaDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\SqlSessionTemplateFactory.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppQimaiSetStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\TenantPosInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CheckTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreCostManageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductKitPlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxPaymentParameterDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CouponTicketProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\TaskScheduleDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketTemplateProductFixedChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxGoodsMakeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AgentServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductStoreStockLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PermissionsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PayModeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ReceiveDifferenceDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StorageTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AskGoodsTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreBusinessTicketInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosSetPlanResourcesDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\YunposSetDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductUnitDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StorageTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxAdjustPriceStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\ErrorInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStorageOutTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposStoreBusinessTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxSalesOrderLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ServerDataVersionDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\support\PropertiesUtils.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductBatchNegativeStockDifferDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreBusinessTicketDeliveryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AgentDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramEvaluateImageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ThuselevelTicketStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\TenantStoreAuthDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AskGoodsTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionSchemeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\BankCodeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SupplierTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ElemeCategoryFoodDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreFeeCutLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CheckTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\BaiduOrderProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\advice\DataSourceBeforeAdvice.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\shared\impl\ModuleServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchSettlePlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreCostManageLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\OtherStorageOutTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreCostRevenueDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxGoodsMakeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CouponStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\OtherStorageTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\CityDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ReceiveDifferenceDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\RoleDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreOrderProductInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ShopMeituanOrderItemDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\PrinterInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\UserDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStockCheckTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SupplierTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStockCheckTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreOrderProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductBatchNegativeStockDifferDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\MyBatisPrimaryKey.java +E:\food\food\food-server\src\main\java\com\jwsaas\util\TlRequest.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppWhiteDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\KdsPlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\BaiduFoodDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CouponTicketStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\holder\DataSourceHolder.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ReceiveDifferenceTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AskGoodsDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\OtherStorageTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\plugins\PrimaryKeyInterceptor.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposStorePayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreOrderProductInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\OtherStorageOutTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStockCheckTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketTemplateProductOtherChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchpriceTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreBusinessTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\TenantProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ErpPosSetServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxGoodsTemplateStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VisitorAddressServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CouponServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreDeliveryOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxGoodsTemplateStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductSuitDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\advice\DataSourceThrowsAdvice.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\UpgradePosServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\OtherStorageTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseStorageTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreDepartmentDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\MeituanBranchDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductTypeLabelInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreWorkerServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CouponTicketStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductSuitDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposStoreBusinessTicketInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStorageOutTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreAreaDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\wxdc\impl\WeixinRechargeOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\BusinessPlanDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionBlackListGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\MeituanBranchServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxSalesPaymentDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\impl\TenantDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductTypeLabelInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxSalesOrderItemPromoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\PosModuleDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiStoreLableDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreBusinessTicketDeliverDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductSpecDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\BrandDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StorageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreHandoverDetailPartServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramProductCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxPaymentParameterServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AdjustPriceStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\wxdc\impl\WeixinUserServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\ElemeAuthorizeInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramProductTemplateStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiAttributeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreCostManageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\OtherStorageOutTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStorageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionScheduleServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SplitPayLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\BaiduOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStorageTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AgentSubFuyouTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionTaskDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosPollcodeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\RechargeParameterServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductStoreStockDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\util\TlHttpClient.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SplitPayLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreBusinessTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreAccountRechargeParameterDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreBusinessTicketDeliveryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketTemplateProductChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\UpgradePosDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductMakeTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketProductOtherChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosRoleServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreBusinessTicketCheckServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreHandoverDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreDispatchAccountDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PayTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchpriceTicketStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreWorkerDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PayModeStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductStockDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreEnchashmentRecordLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\PosModuleTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposStoreBusinessTicketInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxAdjustPriceStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AskGoodsTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductStoreStockLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketProductFixedChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CouponDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStockCheckTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\CardReaderInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\SetCodeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\WeixinUserDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxGoodsTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreDispatchAccountLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ShopMeituanOrderItemServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\ProductPermissionsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionSchemeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreOrderProductMakeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramProductCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AdvertCaptionDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\FeeItemDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ElemeOrderDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\YunposSetStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AgentServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AgentSubFuyouTicketImageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramAdjustPriceTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AskGoodsTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosSetPlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductMakeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxyh\WeixinUserDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CouponTicketStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CouponTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\wxdc\impl\WeixinOrderPayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AskGoodsTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreBusinessTicketInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SupplierDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreOrderProductInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionBlackListGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\FunctionDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxSalesOrderLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\AppAuthDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreDepartmentServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiSuitDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AskGoodsTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreBusinessTicketCheckDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CheckTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketProductChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramProductCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductStoreStockServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\OtherStorageOutTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PrintImageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketProductMoreChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductMakeTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchpriceTicketMaterialDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreAccountDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseStorageTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchasepriceTicketMaterialServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramAdjustPriceStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketTemplateProductMoreChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketTemplateProductMoreChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposStoreOrderProductInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreFeeCutLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreWorkerExtDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketTemplateProductChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxGoodsMakeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\BaiduOrderProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketPayTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposStoreOrderProductInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\BusinessPlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionBlackListStoreAreaDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PrintImageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MeituanOrderExtraServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\RoutingDataSource.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AgentStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionBlackListStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreEnchashmentRecordDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketProductOtherChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ReceiveGoodsDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductAttributeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposProductEvaluateImageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ReceiveDifferenceTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStorageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreHandoverDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AskGoodsTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramAdPictureDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\TicketPrintSettingDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AdjustPriceProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStorageOutTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchasepriceTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxQrcodeSettingDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VisitorDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStorageOutTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CheckTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposStorePayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductBatchNumberServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoretableServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoretableDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\FeeItemServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionTaskDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketProductTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketTemplateProductChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductBurdenDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\TenantPosLoginLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SplitPayLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MeituanFoodServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\util\TlHttpUtils.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\plugins\PrimaryKeyGenerator.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\wxdc\impl\WeixinPayResultServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionStoreAreaServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\plugins\PagerInterceptor.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionBlackListStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreHandoverDetailPayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VisitorTagDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\impl\TenantServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\WeixinPayUnifiedOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramAdPictureDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionBlackListGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreBusinessTicketTableDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposStoreOrderProductMakeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiSuitDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionBlackListStoreAreaDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\wxdc\impl\WeixinAccountServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreOperationLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AdjustPriceProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\RoleDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\TenantProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductStockServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxSalesOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposUserDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreAccountServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\plugins\PluginAdapter.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductSuitDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductBurdenDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramEvaluateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreBusinessTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\TenantProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\advice\DataSourceAfterAdvice.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPaymentParameterDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramAdjustPriceProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ElemeOrderDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ShopMeituanOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiAdjustPriceStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\PrinterInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ElemeFoodCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SupplierServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductTemplateStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosSetPlanModuleServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\WxBusinessCodeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramAdjustPriceStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StorageTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchasepriceTicketMaterialDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SplitPayResultDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramProductTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosSetPlanModuleDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseStorageTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductMakeTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\wxdc\impl\WeixinPayUnifiedOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreLoginLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreDeliveryOrderItemDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxdcDistributionDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxPaymentParameterDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketProductTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppGuopanStoreInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\impl\WeixinPayResultDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ErpPosSetDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ReceiveDifferenceTicketPayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppWhitePlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ReceiveGoodsTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SplitShopAccountServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AskGoodsTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreEnchashmentRecordLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ReceiveGoodsDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MakeDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DeliverDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\impl\HelloServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramProductTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\BusinessPlanDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PayModeStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxSalesOrderItemDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductImageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseStorageTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStorageTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\WeixinOrderPayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxSalesOrderItemPromoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionStoreAreaServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ElemeOrderDetailGroupDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxAdPictureServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPaymentParameterDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreWorkerDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppVersionDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ShopMeituanOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MeituanFoodCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposProductEvaluateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosPollcodeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreOrderProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductBurdenServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ReceiveDifferenceTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStockCheckTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\UpgradeStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\OtherStorageOutTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreEnchashmentRecordLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductBatchStockDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppWhiteDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxSalesOrderItemMakeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\Filters\ServerDataVersionFilter.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\TenantLineProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ReceiveDifferenceDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStockCheckTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketPayTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxdcDistributionAddressDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductBatchNegativeStockDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosRoleDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionTaskServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStockCheckTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreWorkerExtServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\WeixinRechargeOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketProductFixedChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionStoreAreaDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\QimaiSetDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionStoreAreaDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseStorageTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CheckTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\ProductPermissionsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\BankCodeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MakeTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\impl\AppAuthDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\YunposSetServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosSetPlanResourcesServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionBlackListGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposAdPictureDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\ElemeAuthorizeInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiOrderPayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxGoodsCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\KitPlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AdvertPictureServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CouponCodeDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AdjustPriceStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\cache\impl\RedisCacheServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\TenantDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductStockDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\BaiduOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStorePayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxAdjustPriceTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostFeeTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreDeliveryOrderItemServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreCostManageLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SplitShopWithdrawalServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ReceiveGoodsDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\KdsPlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchasepriceDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\BaiduOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxGoodsTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ShopMeituanOrderExtraDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreHandoverDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MeituanOrderItemDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketProductChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ElemeCategoryFoodDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SplitShopWithdrawalDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PaymentParameterDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\impl\WeixinOrderPayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PayModeStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductKitPlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SplitFoodAccountDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStorePayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppQimaiSetStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductStoreOutCollectDayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DeliverServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxSalesOrderItemPromoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiAttributeCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreOrderProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductKdsPlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AgentStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AskGoodsTicketPayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionBlackListStoreAreaServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposCcbfzAccountServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PayModeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketTemplateProductFixedChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductSuitDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MeituanFoodDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiAttributeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreBusinessTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreBusinessTicketDeliveryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiAdjustPriceGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PermissionsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreOrderProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosSetPlanShortcutDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreProductSaleStockServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ThuselevelTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\wxyh\impl\WeixinUserServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ThuselevelTicketStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostFeeTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductBatchStockChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductSpecServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramSettingDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductChargeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AdjustPriceStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AskGoodsTicketPayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\support\OracleDialect.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreAccountDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AdvertCaptionServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposUserDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramIndexPictureServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposStoreOrderProductInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppShopmeituanSetDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreLoginLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostFeeItemDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposUserSeriesDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreHandoverDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AskGoodsTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\PosModuleTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DfsFileServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxAdPictureDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreAccountRechargeParameterDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxSalesOrderItemMakeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CouponCodeDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreBusinessTicketInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductSpecServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramEvaluateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxdcDistributionServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketTemplateProductOtherChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiOrderItemDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\util\TlSignUtils.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramDeliverAddressDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosSetPlanConfigDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\support\SQLUtils.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AskGoodsTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SaleClearDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\KitPlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AdvertPictureDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreAccountRechargeRecordDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\KitPlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreHandoverDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StorePayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CheckTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CouponTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppShopmeituanSetDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposStoreBusinessTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreCostManageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreBusinessTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramDeliverAddressDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\QimaiSetServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CouponStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AskGoodsTemplateStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ThuselevelTicketMaterialDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\BaiduFoodDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreBusinessTicketDeliverDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductMakeTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStorageTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\OtherStorageTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppWhitePlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramProductTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MakeTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductAttributeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\TenantLineProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DfsFileDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionTaskDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ElemeOrderDetailGroupServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductMakeTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramProductTemplateStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxGoodsTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ServerDataVersionServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionSchemeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposCcbfzAccountDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\ErrorInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxSalesOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStorageOutTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchasepriceServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionStoreAreaDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostFeeItemServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\RechargeParameterDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MeituanOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\UserServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CheckTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\ElemeAuthorizeInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionBlackListStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreOrderProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppGuopanStoreInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\TenantStoreAuthServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionBlackListGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\UpgradePosDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStockCheckTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStorageOutTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AgentDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\PosModuleServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppWhitePlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductRatioDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreOrderProductMakeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ThuselevelTicketMaterialServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MakeDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PrintImageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\ZfbBusinessCodeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PaymentParameterServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStockCheckTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\CityCodeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AskGoodsTicketPayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\support\SqlSessionCallback.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStorageTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ElemeFoodCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreHandoverServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxdcDistributionDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\OtherStorageOutTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\PosModuleTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MeituanOrderItemServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PermissionsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\TenantPosInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreDeliveryOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CheckTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposAdPictureDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductMakeTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchpriceTicketStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionBlackListStoreAreaDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductImageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AskGoodsDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\support\MySQLDialect.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxStoreGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoretableTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchSettlePlanPayModeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\OtherStorageOutTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SaleClearServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiAdjustPriceStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramIndexPictureDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionScheduleDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\WxBusinessCodeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductStockLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreOrderProductInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\BankCodeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ReceiveDifferenceTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SplitFoodAccountDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SplitFoodAccountServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StorageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AskGoodsTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\SetCodeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\CardReaderInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductStoreStockLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosSetPlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PayTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\util\JSONUtil.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposStoreBusinessTicketInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionBlackListGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VisitorDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\YunposSetStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AgentSubFuyouTicketImageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchpriceTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MeituanOrderServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductBatchNegativeStockDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposStoreOrderProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AskGoodsTemplateStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MeituanFoodDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppGuopanStoreInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\BusinessPlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiAdjustPriceGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiOrderPayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AgentSubFuyouTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppBaiduBranchDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreOrderProductInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\impl\BaseDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AdjustPriceProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VisitorTagDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppBaiduBranchDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreDispatchAccountServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionBlackListStoreAreaDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CheckTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreEnchashmentRecordDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreAccountDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DeliverDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreCostManageLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosSetPlanConfigServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxGoodsTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MeituanOrderExtraDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\util\JSONException.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\OtherStorageTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\OtherStorageTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreAccountRechargeParameterServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchasepriceTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ServerDataVersionDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AskGoodsTemplateStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionSchemeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchasepriceDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SplitStorePayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxSalesPaymentDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\AbstractRoutingDataSource.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramProductMakeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketProductChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SplitShopWithdrawalDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStockCheckTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductStoreOutCollectDayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VisitorAddressDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoretableTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CheckTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchSettlePlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionBlackListStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiAdjustPriceStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StorePayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreDeliveryOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxGoodsTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PromotionTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStorageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreBusinessTicketCheckDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AgentSubFuyouTicketImageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreBusinessTicketInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\ZfbBusinessCodeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductKitPlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\YunposSetStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionBlackListStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\UpgradeSchemeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramProductTemplateStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\FeeItemDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxGoodsCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ReceiveDifferenceTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStorageOutTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosSetPlanShortcutServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\YunposSetDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostTicketProductMoreChangeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\SetCodeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiChargeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductBatchNegativeStockServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramAdjustPriceTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductImageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductUnitServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StorePayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosSetPlanShortcutDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\holder\Identity.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStorageTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MeituanOrderItemDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\RechargeParameterDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\support\PostgreSQLDialect.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AdjustPriceTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\impl\WeixinUserDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiAdjustPriceTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchasepriceTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\ZfbBusinessCodeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AgentDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SplitShopAccountDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductMakeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramProductTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\TenantStoreAuthDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MakeDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AgentDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiAttributeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxStoreGoodsServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ReceiveGoodsTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreOrderProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductSpecDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\datasource\DataSourceDescriptor.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SaleClearDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ThuselevelTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\UpgradeStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VisitorTagServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxSalesOrderItemServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductBatchNumberDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramStoreBusinessTicketDeliverServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposProductEvaluateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CostTicketTemplateProductFixedChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\SplitStorePayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\BaiduOrderProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\UserDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposStoreBusinessTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AdvertPictureDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PaymentParameterDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketPayTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductMakeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductStoreStockDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiAttributeCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramProductTemplateDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\impl\WeixinPayUnifiedOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreBusinessTicketInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppShopmeituanSetStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MeituanFoodCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreCostRevenueDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramAdjustPriceProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreOrderProductMakeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchpriceTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\CityCodeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\BaseDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposStoreOrderProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PurchaseTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreBusinessTicketInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramProductTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposStoreOrderProductMakeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStorageTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\CityCodeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SplitPayResultDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppShopmeituanSetStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxSalesOrderDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiStoreProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\impl\ResourcesDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\handlers\AbstractTypeHandler.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchpriceTicketMaterialServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\shared\impl\AppAuthServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ShopMeituanOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposCcbfzAccountDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SplitShopAccountDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreBusinessTicketTableServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductTemplateStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ElemeOrderDetailGroupDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseStorageTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxStoreGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\ModuleDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PayTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchSettlePlanDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramIndexPictureDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreHandoverDetailPartDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoretableTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiStoreProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosSetPlanResourcesDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreDepartmentDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreCostRevenueServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\AppInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxGoodsCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramProductMakeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\ProductPermissionsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CouponCodeDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\BrandDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiStoreLableServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CandaoStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\UpgradeSchemeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStockCheckTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiAttributeCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AskGoodsTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\MakeBurdenServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SplitStorePayServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxSalesOrderLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\WeixinPayResultDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoretableDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CheckTemplateDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductKdsPlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CouponTicketProductDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseStorageTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CheckTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxQrcodeSettingServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchSettlePlanPayModeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StorageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStorageOutTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AgentSubFuyouTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\impl\BaseServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ElemeCategoryFoodServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreEnchashmentRecordServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxGoodsTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxSalesOrderItemDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketProductMoreChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramProductMakeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\wxdc\impl\WeixinAccountDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxSalesPaymentServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStorePayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseStorageTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductBatchNumberDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductRatioServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreAreaDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\MeituanBranchDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionStoreAreaDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxAdjustPriceStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductSuitServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\TenantPosLoginLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\impl\ModuleDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CouponTicketProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ReceiveDifferenceTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SupplierTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposProductEvaluateImageDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MakeTypeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductTypeLabelInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductTypeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PosInfoServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductBatchStockChangeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\SupplierDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductStoreOutCollectDayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiAdjustPriceGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\OtherStorageTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\impl\FunctionDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MakeBurdenDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppShopmeituanSetStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposStoreOrderProductServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchasepriceTicketMaterialDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiAdjustPriceTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiAdjustPriceTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\UpgradeStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\CostTicketProductFixedChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PromotionSchemeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductAttributeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreAreaServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CheckTemplateDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramAdjustPriceProductDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramPromotionCategoryDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiStoreLableDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\PurchaseTicketLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductTemplateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoretableAreaDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\OtherStorageTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\AppVersionDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreBusinessTicketTableDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\WxBusinessCodeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\AdjustPriceTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposStoreOrderProductMakeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposUserServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiChargeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductBatchStockChangeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxAdjustPriceTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductBatchStockDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductTemplateDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\BusinessPlanDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreOrderProductInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ErpPosSetDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStorageTicketDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\SplitPayResultServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ShopMeituanOrderExtraDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\TaskScheduleDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProductKdsPlanServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AskGoodsDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\DispatchpriceTicketStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\AdvertCaptionDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\QimaiProductChargeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreFeeCutLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxAdjustPriceGoodsDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramAdjustPriceStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\TicketPrintSettingDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MakeBurdenDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStorageOutTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreOperationLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\VposProductEvaluateDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchSettlePlanPayModeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxGoodsTemplateStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MeituanOrderExtraDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreStockCheckTicketLogDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPaymentParameterServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramStoreBusinessTicketDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\PrinterInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\ops\impl\AppShopmeituanSetServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CouponStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\DispatchTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\DispatchTicketDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\spring\SqlSessionFactoryBeanExt.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CostFeeTypeServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\CityDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ElemeOrderDetailDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\BrandServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ElemeFoodCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionBlackListStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\MeituanFoodCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ThuselevelTicketStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramSettingDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\plugins\MyBatisLogInterceptor.java +E:\food\food\food-server\src\main\java\com\jwsaas\mybatis\support\Dialect.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\shared\ResourcesDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\WxAdPictureDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProductStockLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreStockCheckTicketLogDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ReceiveGoodsTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionCategoryDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\RoleServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProductSuitDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\VposUserSeriesDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreStorageTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposProductEvaluateImageServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\CandaoStoreDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ReceiveDifferenceTicketPayDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\CheckTemplateServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\ProgramPromotionGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramStoreOrderProductMakeDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductTemplateStoreDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreDispatchAccountLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreProductSaleStockDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiProductCategoryServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\WxdcDistributionAddressServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\CardReaderInfoDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\impl\PosModuleDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreDispatchAccountDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PromotionScheduleDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxAdjustPriceGoodsDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\ops\TenantPosInfoDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramSettingServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\StoreOperationLogServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreProductSaleStockDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\WxSalesOrderItemMakeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\PosSetPlanModuleDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\StoreWorkerExtDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\AgentStoreServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\StoreHandoverDetailPayDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PurchaseStorageTicketDetailDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\impl\PosPollcodeDaoImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\ProgramEvaluateImageDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\QimaiOrderItemServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\VposAdPictureServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\OtherStorageOutTicketDetailServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiProductSpecDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\MeituanOrderDao.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\OtherStorageOutTicketServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\service\food\impl\ProgramPromotionTaskServiceImpl.java +E:\food\food\food-server\src\main\java\com\jwsaas\dao\food\QimaiOrderPayDao.java diff --git a/food-server/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/food-server/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29