初始项目信息导入

pull/99/head
zhh 2018-04-13 13:50:33 +08:00
commit 42d8ff5fb3
293 changed files with 92543 additions and 0 deletions

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
# Maven #
target/
# IDEA #
.idea/
*.iml
# Eclipse #
.settings/
.classpath
.project

30
README.md Normal file
View File

@ -0,0 +1,30 @@
# mall
### 技术选型
#### 后端技术:
技术 | 名称
----|----
Spring Boot | 容器+MVC框架
Spring Security | 认证和授权框架
MyBatis | ORM框架
MyBatisGenerator | 代码生成
PageHelper | MyBatis物理分页插件
Thymeleaf | 模板引擎
Swagger-UI | 文档生产工具
Fluent-validator | 验证框架
####框架搭建
功能 | 完成
----|----
集成MyBatis | ✔
集成MyBatisGenerator | ✔
集成SpringSecurity | ✔
集成Swagger-UI |
集成Hibernator-Validator | ✔
对通用返回结果进行封装 | ✔
crud操作demo | ✔
添加分页查询功能 | ✔
集成日志功能 | ✔
集成监控功能 | ✔
包结构调整 | ✔

BIN
document/mind/促销.emmx Normal file

Binary file not shown.

BIN
document/mind/内容.emmx Normal file

Binary file not shown.

BIN
document/mind/商品.emmx Normal file

Binary file not shown.

BIN
document/mind/用户.emmx Normal file

Binary file not shown.

BIN
document/mind/订单.emmx Normal file

Binary file not shown.

BIN
document/mind/首页.emmx Normal file

Binary file not shown.

17420
document/pdm/mall.pdm Normal file

File diff suppressed because it is too large Load Diff

55
mall-admin/pom.xml Normal file
View File

@ -0,0 +1,55 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>mall-admin</artifactId>
<packaging>war</packaging>
<name>mall-admin</name>
<url>http://maven.apache.org</url>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.7.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>com.macro</groupId>
<artifactId>mall-mbg</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,16 @@
package com.macro.mall;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
*/
@SpringBootApplication
@MapperScan("com.macro.mall.mapper")
public class MallAdminApplication {
public static void main(String[] args) {
SpringApplication.run(MallAdminApplication.class, args);
}
}

View File

@ -0,0 +1,5 @@
spring.datasource.url=jdbc:mysql://localhost:3306/mall
spring.datasource.username=root
spring.datasource.password=root
#mybatisÅäÖÃ
mybatis.mapper-locations=classpath:mapper/*.xml,classpath*:com/**/mapper/*.xml

View File

@ -0,0 +1,7 @@
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>

View File

@ -0,0 +1,5 @@
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>

25
mall-demo/.gitignore vendored Normal file
View File

@ -0,0 +1,25 @@
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

BIN
mall-demo/.mvn/wrapper/maven-wrapper.jar vendored Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip

225
mall-demo/mvnw vendored Normal file
View File

@ -0,0 +1,225 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven2 Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME="`/usr/libexec/java_home`"
else
export JAVA_HOME="/Library/Java/Home"
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Migwn, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
# TODO classpath?
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`which java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=`cd "$wdir/.."; pwd`
fi
# end of workaround
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
echo $MAVEN_PROJECTBASEDIR
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

143
mall-demo/mvnw.cmd vendored Normal file
View File

@ -0,0 +1,143 @@
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%

86
mall-demo/pom.xml Normal file
View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.macro.mall</groupId>
<artifactId>mall-demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>mall-demo</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.7.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>com.macro</groupId>
<artifactId>mall-mbg</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,20 @@
package com.macro.mall;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@SpringBootApplication
@MapperScan("com.macro.mall.mapper")
public class MallDemoApplication extends WebMvcConfigurerAdapter{
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/login").setViewName("login");
}
public static void main(String[] args) {
SpringApplication.run(MallDemoApplication.class, args);
}
}

View File

@ -0,0 +1,56 @@
package com.macro.mall.demo.bo;
import com.macro.mall.model.UmsAdmin;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Arrays;
import java.util.Collection;
/**
* SpringSecurity
*/
public class AdminUserDetails implements UserDetails {
private UmsAdmin umsAdmin;
public AdminUserDetails(UmsAdmin umsAdmin) {
this.umsAdmin = umsAdmin;
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
//返回当前用户的权限
return Arrays.asList(new SimpleGrantedAuthority("TEST"));
}
@Override
public String getPassword() {
return umsAdmin.getPassword();
}
@Override
public String getUsername() {
return umsAdmin.getUsername();
}
@Override
public boolean isAccountNonExpired() {
return true;
}
@Override
public boolean isAccountNonLocked() {
return true;
}
@Override
public boolean isCredentialsNonExpired() {
return true;
}
@Override
public boolean isEnabled() {
return true;
}
}

View File

@ -0,0 +1,92 @@
package com.macro.mall.demo.bo;
import com.github.pagehelper.PageInfo;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
*/
public class CommonResult {
public static final int SUCCESS = 0;
public static final int FAILED = 1;
public static final int VALIDATE_FAILED = 2;
private int code;
private String message;
private Object data;
/**
*
*
* @param data
*/
public CommonResult success(Object data) {
this.code = SUCCESS;
this.message = "操作成功";
this.data = data;
return this;
}
/**
*
*/
public CommonResult pageSuccess(List data) {
PageInfo pageInfo = new PageInfo(data);
long totalPage = pageInfo.getTotal() / pageInfo.getPageSize();
Map<String, Object> result = new HashMap<>();
result.put("pageSize", pageInfo.getPageSize());
result.put("totalPage", totalPage);
result.put("pageNum", pageInfo.getPageNum());
result.put("list", pageInfo.getList());
this.code = SUCCESS;
this.message = "操作成功";
this.data = result;
return this;
}
/**
*
*/
public CommonResult failed() {
this.code = FAILED;
this.message = "操作失败";
return this;
}
/**
* 使
*
* @param message
*/
public CommonResult validateFailed(String message) {
this.code = VALIDATE_FAILED;
this.message = message;
return this;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
}

View File

@ -0,0 +1,77 @@
package com.macro.mall.demo.config;
import com.macro.mall.demo.bo.AdminUserDetails;
import com.macro.mall.mapper.UmsAdminMapper;
import com.macro.mall.model.UmsAdmin;
import com.macro.mall.model.UmsAdminExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import java.util.List;
/**
* SpringSecurity
*/
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private UmsAdminMapper umsAdminMapper;
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()//配置权限
// .antMatchers("/").access("hasRole('TEST')")//该路径需要TEST角色
// .antMatchers("/brand/list").authenticated()//该路径需要登录认证
// .antMatchers("/brand/list").hasAuthority("TEST")//该路径需要TEST权限
.antMatchers("/**").permitAll()
.and()//启用基于http的认证
.httpBasic()
.realmName("/")
.and()//配置登录页面
.formLogin()
.loginPage("/login")
.failureUrl("/login?error=true")
.and()//配置退出路径
.logout()
.logoutSuccessUrl("/")
// .and()//记住密码功能
// .rememberMe()
// .tokenValiditySeconds(60*60*24)
// .key("rememberMeKey")
.and()//关闭跨域伪造
.csrf()
.disable();
}
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.userDetailsService(userDetailsService()).passwordEncoder(new Md5PasswordEncoder());
}
@Bean
public UserDetailsService userDetailsService() {
//获取登录用户信息
return new UserDetailsService() {
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
UmsAdminExample example = new UmsAdminExample();
example.createCriteria().andUsernameEqualTo(username);
List<UmsAdmin> umsAdminList = umsAdminMapper.selectByExample(example);
if (umsAdminList != null && umsAdminList.size() > 0) {
return new AdminUserDetails(umsAdminList.get(0));
}
throw new UsernameNotFoundException("用户名或密码错误");
}
};
}
}

View File

@ -0,0 +1,37 @@
package com.macro.mall.demo.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* Swagger2API
*/
@Configuration
@EnableSwagger2
public class Swagger2Config {
@Bean
public Docket createRestApi(){
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("com.macro.mall.demo"))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("SwaggerUI演示")
.description("Demo模块")
.contact("macro")
.version("1.0")
.build();
}
}

View File

@ -0,0 +1,115 @@
package com.macro.mall.demo.controller;
import com.macro.mall.demo.bo.CommonResult;
import com.macro.mall.demo.dto.PmsBrandDto;
import com.macro.mall.demo.service.DemoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* controller
*/
@Api(value = "demo", description = "demo详情")
@Controller
public class DemoController {
@Autowired
private DemoService demoService;
private static final Logger LOGGER = LoggerFactory.getLogger(DemoController.class);
@ApiOperation(value = "此处为首页")
@RequestMapping(value = "/", method = RequestMethod.GET)
@ResponseBody
public String hello() {
return "This is home!";
}
@ApiOperation(value = "获取品牌列表界面(网页显示)")
@RequestMapping(value = "/list", method = RequestMethod.GET)
public String getBrandListPage(Model model) {
model.addAttribute("brandList", demoService.listAllBrand());
return "demo";
}
@ApiOperation(value = "获取全部品牌列表")
@RequestMapping(value = "/brand/listAll", method = RequestMethod.GET)
@ResponseBody
public Object getBrandList() {
return new CommonResult().success(demoService.listAllBrand());
}
@ApiOperation(value = "添加品牌")
@RequestMapping(value = "/brand/create", method = RequestMethod.POST)
@ResponseBody
public Object createBrand(@Validated @RequestBody PmsBrandDto pmsBrand, BindingResult result) {
if (result.hasErrors()) {
return new CommonResult().validateFailed(result.getFieldError().getDefaultMessage());
}
CommonResult commonResult;
int count = demoService.createBrand(pmsBrand);
if (count == 1) {
commonResult = new CommonResult().success(pmsBrand);
LOGGER.debug("createBrand success:{}", pmsBrand);
} else {
commonResult = new CommonResult().failed();
LOGGER.debug("createBrand failed:{}", pmsBrand);
}
return commonResult;
}
@ApiOperation(value = "更新品牌")
@RequestMapping(value = "/brand/update/{id}", method = RequestMethod.POST)
@ResponseBody
public Object updateBrand(@PathVariable("id") Long id, @Validated @RequestBody PmsBrandDto pmsBrandDto,BindingResult result) {
if(result.hasErrors()){
return new CommonResult().validateFailed(result.getFieldError().getDefaultMessage());
}
CommonResult commonResult;
int count = demoService.updateBrand(id, pmsBrandDto);
if (count == 1) {
commonResult = new CommonResult().success(pmsBrandDto);
LOGGER.debug("updateBrand success:{}", pmsBrandDto);
} else {
commonResult = new CommonResult().failed();
LOGGER.debug("updateBrand failed:{}", pmsBrandDto);
}
return commonResult;
}
@ApiOperation(value = "删除品牌")
@RequestMapping(value = "/brand/delete/{id}", method = RequestMethod.GET)
@ResponseBody
public Object deleteBrand(@PathVariable("id") Long id) {
int count = demoService.deleteBrand(id);
if (count == 1) {
LOGGER.debug("deleteBrand success :id={}", id);
return new CommonResult().success(null);
} else {
LOGGER.debug("deleteBrand failed :id={}", id);
return new CommonResult().failed();
}
}
@ApiOperation(value = "分页获取品牌列表")
@RequestMapping(value = "/brand/list", method = RequestMethod.GET)
@ResponseBody
public Object listBrand(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
@RequestParam(value = "pageSize", defaultValue = "3") Integer pageSize) {
return new CommonResult().pageSuccess(demoService.listBrand(pageNum, pageSize));
}
@ApiOperation(value = "根据编号查询品牌信息")
@RequestMapping(value = "/brand/{id}", method = RequestMethod.GET)
@ResponseBody
public Object brand(@PathVariable("id") Long id) {
return new CommonResult().success(demoService.getBrand(id));
}
}

View File

@ -0,0 +1,100 @@
package com.macro.mall.demo.dto;
import com.macro.mall.demo.validator.FlagValidator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
/**
*
*/
@ApiModel(value = "PmsBrandDto")
public class PmsBrandDto {
@ApiModelProperty(value = "品牌名称",required = true)
@NotNull(message = "名称不能为空")
private String name;
@ApiModelProperty(value = "品牌首字母",required = true)
@NotNull(message = "首字母不能为空")
private String firstLetter;
@ApiModelProperty(value = "排序字段")
@Min(value = 0, message = "排序最小为0")
private Integer sort;
@ApiModelProperty(value = "是否为厂家制造商")
@FlagValidator(values = {"0","1"}, message = "厂家状态不正确")
private Integer factoryStatus;
@ApiModelProperty(value = "是否进行显示")
@FlagValidator(values = {"0","1"}, message = "显示状态不正确")
private Integer showStatus;
@ApiModelProperty(value = "品牌logo")
private String logo;
@ApiModelProperty(value = "品牌大图")
private String bigPic;
@ApiModelProperty(value = "品牌故事")
private String brandStory;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getFirstLetter() {
return firstLetter;
}
public void setFirstLetter(String firstLetter) {
this.firstLetter = firstLetter;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Integer getFactoryStatus() {
return factoryStatus;
}
public void setFactoryStatus(Integer factoryStatus) {
this.factoryStatus = factoryStatus;
}
public Integer getShowStatus() {
return showStatus;
}
public void setShowStatus(Integer showStatus) {
this.showStatus = showStatus;
}
public String getLogo() {
return logo;
}
public void setLogo(String logo) {
this.logo = logo;
}
public String getBigPic() {
return bigPic;
}
public void setBigPic(String bigPic) {
this.bigPic = bigPic;
}
public String getBrandStory() {
return brandStory;
}
public void setBrandStory(String brandStory) {
this.brandStory = brandStory;
}
}

View File

@ -0,0 +1,23 @@
package com.macro.mall.demo.service;
import com.macro.mall.demo.dto.PmsBrandDto;
import com.macro.mall.model.PmsBrand;
import java.util.List;
/**
* DemoService
*/
public interface DemoService {
List<PmsBrand> listAllBrand();
int createBrand(PmsBrandDto pmsBrandDto);
int updateBrand(Long id, PmsBrandDto pmsBrandDto);
int deleteBrand(Long id);
List<PmsBrand> listBrand(int pageNum, int pageSize);
PmsBrand getBrand(Long id);
}

View File

@ -0,0 +1,58 @@
package com.macro.mall.demo.service.impl;
import com.github.pagehelper.PageHelper;
import com.macro.mall.demo.dto.PmsBrandDto;
import com.macro.mall.demo.service.DemoService;
import com.macro.mall.mapper.PmsBrandMapper;
import com.macro.mall.model.PmsBrand;
import com.macro.mall.model.PmsBrandExample;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* DemoService
*/
@Service
public class DemoServiceImpl implements DemoService {
@Autowired
private PmsBrandMapper brandMapper;
@Override
public List<PmsBrand> listAllBrand() {
return brandMapper.selectByExample(new PmsBrandExample());
}
@Override
public int createBrand(PmsBrandDto pmsBrandDto) {
PmsBrand pmsBrand = new PmsBrand();
BeanUtils.copyProperties(pmsBrandDto,pmsBrand);
return brandMapper.insertSelective(pmsBrand);
}
@Override
public int updateBrand(Long id, PmsBrandDto pmsBrandDto) {
PmsBrand pmsBrand = new PmsBrand();
BeanUtils.copyProperties(pmsBrandDto,pmsBrand);
pmsBrand.setId(id);
return brandMapper.updateByPrimaryKeySelective(pmsBrand);
}
@Override
public int deleteBrand(Long id) {
return brandMapper.deleteByPrimaryKey(id);
}
@Override
public List<PmsBrand> listBrand(int pageNum, int pageSize) {
PageHelper.startPage(pageNum, pageSize);
return brandMapper.selectByExample(new PmsBrandExample());
}
@Override
public PmsBrand getBrand(Long id) {
return brandMapper.selectByPrimaryKey(id);
}
}

View File

@ -0,0 +1,22 @@
package com.macro.mall.demo.validator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
/**
*
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.PARAMETER})
@Constraint(validatedBy = FlagValidatorClass.class)
public @interface FlagValidator {
String[] values() default {};
String message() default "flag is not found";
Class<?>[] groups() default {};
Class<? extends Payload>[] payload() default {};
}

View File

@ -0,0 +1,27 @@
package com.macro.mall.demo.validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
*
*/
public class FlagValidatorClass implements ConstraintValidator<FlagValidator,Integer> {
private String[] values;
@Override
public void initialize(FlagValidator flagValidator) {
this.values = flagValidator.values();
}
@Override
public boolean isValid(Integer value, ConstraintValidatorContext constraintValidatorContext) {
boolean isValid = false;
for(int i=0;i<values.length;i++){
if(values[i].equals(String.valueOf(value))){
isValid = true;
break;
}
}
return isValid;
}
}

View File

@ -0,0 +1,16 @@
#数据库连接池配置
spring.datasource.url=jdbc:mysql://localhost:3306/mall
spring.datasource.username=root
spring.datasource.password=root
#mybatis配置
mybatis.mapper-locations=classpath:mapper/*.xml,classpath*:com/**/mapper/*.xml
#日志配置DEBUG,INFO,WARN,ERROR
logging.level.root=warn
#单独配置日志级别
logging.level.com.macro.mall=debug
#配置日志生成路径
#logging.path=/var/logs
#配置日志文件名称
#logging.file=demo_log.log

View File

@ -0,0 +1,33 @@
h2 {
color: blue;
}
body {
background-color: #cccccc;
font-family: arial,helvetica,sans-serif;
}
.bookHeadline {
font-size: 12pt;
font-weight: bold;
}
.bookDescription {
font-size: 10pt;
}
label {
font-weight: bold;
}
.error {
color: red;
}
.errorPage {
text-align:center;
}
.oops {
font-size: 76pt;
}

View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Demo Brand List</title>
<link rel="stylesheet" th:href="@{/style.css}"/>
</head>
<body>
<h2>all brand list</h2>
<ul>
<li th:each="brand : ${brandList}">
<span th:text="${brand.id}"></span>
<span th:text="${brand.name}"></span>
</li>
</ul>
</body>
</html>

View File

@ -0,0 +1,31 @@
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Login</title>
<link rel="stylesheet" th:href="@{/style.css}"></link>
</head>
<body onload='document.f.username.focus();'>
<div id="loginForm">
<h3>Login With Username and Password</h3>
<div class="error" th:if="${param.error}">
Incorrect username or password. Try again.
</div>
<form name='f' th:action="@{/login}" method='POST'>
<table>
<tr>
<td>User:</td>
<td><input type='text' name='username' value='' /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password' /></td>
</tr>
<tr>
<td colspan='2'><input name="submit" type="submit"
value="Login" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@ -0,0 +1,16 @@
package com.macro.mall;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class MallDemoApplicationTests {
@Test
public void contextLoads() {
}
}

34
mall-mbg/pom.xml Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>mall</artifactId>
<groupId>com.macro</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>mall-mbg</artifactId>
<dependencies>
<!-- MyBatis 生成器 -->
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.3</version>
</dependency>
<!-- MyBatis-->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.2</version>
</dependency>
<!--Mysql数据库驱动-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.42</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,37 @@
package com.macro.mall;
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCallback;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
/**
* MBG
*/
public class Generator {
public static void main(String[] args) throws Exception {
//MBG 执行过程中的警告信息
List<String> warnings = new ArrayList<String>();
//当生成的代码重复时,覆盖原代码
boolean overwrite = true;
//读取我们的 MBG 配置文件
InputStream is = Generator.class.getResourceAsStream("/generatorConfig.xml");
ConfigurationParser cp = new ConfigurationParser(warnings);
Configuration config = cp.parseConfiguration(is);
is.close();
DefaultShellCallback callback = new DefaultShellCallback(overwrite);
//创建 MBG
MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings);
//执行生成代码
myBatisGenerator.generate(null);
//输出警告信息
for (String warning : warnings) {
System.out.println(warning);
}
}
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsHelpCategory;
import com.macro.mall.model.CmsHelpCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsHelpCategoryMapper {
int countByExample(CmsHelpCategoryExample example);
int deleteByExample(CmsHelpCategoryExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsHelpCategory record);
int insertSelective(CmsHelpCategory record);
List<CmsHelpCategory> selectByExample(CmsHelpCategoryExample example);
CmsHelpCategory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsHelpCategory record, @Param("example") CmsHelpCategoryExample example);
int updateByExample(@Param("record") CmsHelpCategory record, @Param("example") CmsHelpCategoryExample example);
int updateByPrimaryKeySelective(CmsHelpCategory record);
int updateByPrimaryKey(CmsHelpCategory record);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsHelp;
import com.macro.mall.model.CmsHelpExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsHelpMapper {
int countByExample(CmsHelpExample example);
int deleteByExample(CmsHelpExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsHelp record);
int insertSelective(CmsHelp record);
List<CmsHelp> selectByExampleWithBLOBs(CmsHelpExample example);
List<CmsHelp> selectByExample(CmsHelpExample example);
CmsHelp selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsHelp record, @Param("example") CmsHelpExample example);
int updateByExampleWithBLOBs(@Param("record") CmsHelp record, @Param("example") CmsHelpExample example);
int updateByExample(@Param("record") CmsHelp record, @Param("example") CmsHelpExample example);
int updateByPrimaryKeySelective(CmsHelp record);
int updateByPrimaryKeyWithBLOBs(CmsHelp record);
int updateByPrimaryKey(CmsHelp record);
}

View File

@ -0,0 +1,22 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsMemberReport;
import com.macro.mall.model.CmsMemberReportExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsMemberReportMapper {
int countByExample(CmsMemberReportExample example);
int deleteByExample(CmsMemberReportExample example);
int insert(CmsMemberReport record);
int insertSelective(CmsMemberReport record);
List<CmsMemberReport> selectByExample(CmsMemberReportExample example);
int updateByExampleSelective(@Param("record") CmsMemberReport record, @Param("example") CmsMemberReportExample example);
int updateByExample(@Param("record") CmsMemberReport record, @Param("example") CmsMemberReportExample example);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsPrefrenceArea;
import com.macro.mall.model.CmsPrefrenceAreaExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsPrefrenceAreaMapper {
int countByExample(CmsPrefrenceAreaExample example);
int deleteByExample(CmsPrefrenceAreaExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsPrefrenceArea record);
int insertSelective(CmsPrefrenceArea record);
List<CmsPrefrenceArea> selectByExampleWithBLOBs(CmsPrefrenceAreaExample example);
List<CmsPrefrenceArea> selectByExample(CmsPrefrenceAreaExample example);
CmsPrefrenceArea selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsPrefrenceArea record, @Param("example") CmsPrefrenceAreaExample example);
int updateByExampleWithBLOBs(@Param("record") CmsPrefrenceArea record, @Param("example") CmsPrefrenceAreaExample example);
int updateByExample(@Param("record") CmsPrefrenceArea record, @Param("example") CmsPrefrenceAreaExample example);
int updateByPrimaryKeySelective(CmsPrefrenceArea record);
int updateByPrimaryKeyWithBLOBs(CmsPrefrenceArea record);
int updateByPrimaryKey(CmsPrefrenceArea record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsPrefrenceAreaProductRelation;
import com.macro.mall.model.CmsPrefrenceAreaProductRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsPrefrenceAreaProductRelationMapper {
int countByExample(CmsPrefrenceAreaProductRelationExample example);
int deleteByExample(CmsPrefrenceAreaProductRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsPrefrenceAreaProductRelation record);
int insertSelective(CmsPrefrenceAreaProductRelation record);
List<CmsPrefrenceAreaProductRelation> selectByExample(CmsPrefrenceAreaProductRelationExample example);
CmsPrefrenceAreaProductRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsPrefrenceAreaProductRelation record, @Param("example") CmsPrefrenceAreaProductRelationExample example);
int updateByExample(@Param("record") CmsPrefrenceAreaProductRelation record, @Param("example") CmsPrefrenceAreaProductRelationExample example);
int updateByPrimaryKeySelective(CmsPrefrenceAreaProductRelation record);
int updateByPrimaryKey(CmsPrefrenceAreaProductRelation record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsSubjectCategory;
import com.macro.mall.model.CmsSubjectCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsSubjectCategoryMapper {
int countByExample(CmsSubjectCategoryExample example);
int deleteByExample(CmsSubjectCategoryExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsSubjectCategory record);
int insertSelective(CmsSubjectCategory record);
List<CmsSubjectCategory> selectByExample(CmsSubjectCategoryExample example);
CmsSubjectCategory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsSubjectCategory record, @Param("example") CmsSubjectCategoryExample example);
int updateByExample(@Param("record") CmsSubjectCategory record, @Param("example") CmsSubjectCategoryExample example);
int updateByPrimaryKeySelective(CmsSubjectCategory record);
int updateByPrimaryKey(CmsSubjectCategory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsSubjectComment;
import com.macro.mall.model.CmsSubjectCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsSubjectCommentMapper {
int countByExample(CmsSubjectCommentExample example);
int deleteByExample(CmsSubjectCommentExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsSubjectComment record);
int insertSelective(CmsSubjectComment record);
List<CmsSubjectComment> selectByExample(CmsSubjectCommentExample example);
CmsSubjectComment selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsSubjectComment record, @Param("example") CmsSubjectCommentExample example);
int updateByExample(@Param("record") CmsSubjectComment record, @Param("example") CmsSubjectCommentExample example);
int updateByPrimaryKeySelective(CmsSubjectComment record);
int updateByPrimaryKey(CmsSubjectComment record);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsSubject;
import com.macro.mall.model.CmsSubjectExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsSubjectMapper {
int countByExample(CmsSubjectExample example);
int deleteByExample(CmsSubjectExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsSubject record);
int insertSelective(CmsSubject record);
List<CmsSubject> selectByExampleWithBLOBs(CmsSubjectExample example);
List<CmsSubject> selectByExample(CmsSubjectExample example);
CmsSubject selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsSubject record, @Param("example") CmsSubjectExample example);
int updateByExampleWithBLOBs(@Param("record") CmsSubject record, @Param("example") CmsSubjectExample example);
int updateByExample(@Param("record") CmsSubject record, @Param("example") CmsSubjectExample example);
int updateByPrimaryKeySelective(CmsSubject record);
int updateByPrimaryKeyWithBLOBs(CmsSubject record);
int updateByPrimaryKey(CmsSubject record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsSubjectProductRelation;
import com.macro.mall.model.CmsSubjectProductRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsSubjectProductRelationMapper {
int countByExample(CmsSubjectProductRelationExample example);
int deleteByExample(CmsSubjectProductRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsSubjectProductRelation record);
int insertSelective(CmsSubjectProductRelation record);
List<CmsSubjectProductRelation> selectByExample(CmsSubjectProductRelationExample example);
CmsSubjectProductRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsSubjectProductRelation record, @Param("example") CmsSubjectProductRelationExample example);
int updateByExample(@Param("record") CmsSubjectProductRelation record, @Param("example") CmsSubjectProductRelationExample example);
int updateByPrimaryKeySelective(CmsSubjectProductRelation record);
int updateByPrimaryKey(CmsSubjectProductRelation record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsTopicCategory;
import com.macro.mall.model.CmsTopicCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsTopicCategoryMapper {
int countByExample(CmsTopicCategoryExample example);
int deleteByExample(CmsTopicCategoryExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsTopicCategory record);
int insertSelective(CmsTopicCategory record);
List<CmsTopicCategory> selectByExample(CmsTopicCategoryExample example);
CmsTopicCategory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsTopicCategory record, @Param("example") CmsTopicCategoryExample example);
int updateByExample(@Param("record") CmsTopicCategory record, @Param("example") CmsTopicCategoryExample example);
int updateByPrimaryKeySelective(CmsTopicCategory record);
int updateByPrimaryKey(CmsTopicCategory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsTopicComment;
import com.macro.mall.model.CmsTopicCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsTopicCommentMapper {
int countByExample(CmsTopicCommentExample example);
int deleteByExample(CmsTopicCommentExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsTopicComment record);
int insertSelective(CmsTopicComment record);
List<CmsTopicComment> selectByExample(CmsTopicCommentExample example);
CmsTopicComment selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsTopicComment record, @Param("example") CmsTopicCommentExample example);
int updateByExample(@Param("record") CmsTopicComment record, @Param("example") CmsTopicCommentExample example);
int updateByPrimaryKeySelective(CmsTopicComment record);
int updateByPrimaryKey(CmsTopicComment record);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.CmsTopic;
import com.macro.mall.model.CmsTopicExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsTopicMapper {
int countByExample(CmsTopicExample example);
int deleteByExample(CmsTopicExample example);
int deleteByPrimaryKey(Long id);
int insert(CmsTopic record);
int insertSelective(CmsTopic record);
List<CmsTopic> selectByExampleWithBLOBs(CmsTopicExample example);
List<CmsTopic> selectByExample(CmsTopicExample example);
CmsTopic selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example);
int updateByExampleWithBLOBs(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example);
int updateByExample(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example);
int updateByPrimaryKeySelective(CmsTopic record);
int updateByPrimaryKeyWithBLOBs(CmsTopic record);
int updateByPrimaryKey(CmsTopic record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.OmsCompanyAddress;
import com.macro.mall.model.OmsCompanyAddressExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OmsCompanyAddressMapper {
int countByExample(OmsCompanyAddressExample example);
int deleteByExample(OmsCompanyAddressExample example);
int deleteByPrimaryKey(Long id);
int insert(OmsCompanyAddress record);
int insertSelective(OmsCompanyAddress record);
List<OmsCompanyAddress> selectByExample(OmsCompanyAddressExample example);
OmsCompanyAddress selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") OmsCompanyAddress record, @Param("example") OmsCompanyAddressExample example);
int updateByExample(@Param("record") OmsCompanyAddress record, @Param("example") OmsCompanyAddressExample example);
int updateByPrimaryKeySelective(OmsCompanyAddress record);
int updateByPrimaryKey(OmsCompanyAddress record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.OmsOrderItem;
import com.macro.mall.model.OmsOrderItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OmsOrderItemMapper {
int countByExample(OmsOrderItemExample example);
int deleteByExample(OmsOrderItemExample example);
int deleteByPrimaryKey(Long id);
int insert(OmsOrderItem record);
int insertSelective(OmsOrderItem record);
List<OmsOrderItem> selectByExample(OmsOrderItemExample example);
OmsOrderItem selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example);
int updateByExample(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example);
int updateByPrimaryKeySelective(OmsOrderItem record);
int updateByPrimaryKey(OmsOrderItem record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.OmsOrder;
import com.macro.mall.model.OmsOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OmsOrderMapper {
int countByExample(OmsOrderExample example);
int deleteByExample(OmsOrderExample example);
int deleteByPrimaryKey(Long id);
int insert(OmsOrder record);
int insertSelective(OmsOrder record);
List<OmsOrder> selectByExample(OmsOrderExample example);
OmsOrder selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example);
int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example);
int updateByPrimaryKeySelective(OmsOrder record);
int updateByPrimaryKey(OmsOrder record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.OmsOrderOperateHistory;
import com.macro.mall.model.OmsOrderOperateHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OmsOrderOperateHistoryMapper {
int countByExample(OmsOrderOperateHistoryExample example);
int deleteByExample(OmsOrderOperateHistoryExample example);
int deleteByPrimaryKey(Long id);
int insert(OmsOrderOperateHistory record);
int insertSelective(OmsOrderOperateHistory record);
List<OmsOrderOperateHistory> selectByExample(OmsOrderOperateHistoryExample example);
OmsOrderOperateHistory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example);
int updateByExample(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example);
int updateByPrimaryKeySelective(OmsOrderOperateHistory record);
int updateByPrimaryKey(OmsOrderOperateHistory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.OmsOrderReturnApply;
import com.macro.mall.model.OmsOrderReturnApplyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OmsOrderReturnApplyMapper {
int countByExample(OmsOrderReturnApplyExample example);
int deleteByExample(OmsOrderReturnApplyExample example);
int deleteByPrimaryKey(Long id);
int insert(OmsOrderReturnApply record);
int insertSelective(OmsOrderReturnApply record);
List<OmsOrderReturnApply> selectByExample(OmsOrderReturnApplyExample example);
OmsOrderReturnApply selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example);
int updateByExample(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example);
int updateByPrimaryKeySelective(OmsOrderReturnApply record);
int updateByPrimaryKey(OmsOrderReturnApply record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.OmsOrderReturnReason;
import com.macro.mall.model.OmsOrderReturnReasonExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OmsOrderReturnReasonMapper {
int countByExample(OmsOrderReturnReasonExample example);
int deleteByExample(OmsOrderReturnReasonExample example);
int deleteByPrimaryKey(Long id);
int insert(OmsOrderReturnReason record);
int insertSelective(OmsOrderReturnReason record);
List<OmsOrderReturnReason> selectByExample(OmsOrderReturnReasonExample example);
OmsOrderReturnReason selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example);
int updateByExample(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example);
int updateByPrimaryKeySelective(OmsOrderReturnReason record);
int updateByPrimaryKey(OmsOrderReturnReason record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.OmsOrderSetting;
import com.macro.mall.model.OmsOrderSettingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OmsOrderSettingMapper {
int countByExample(OmsOrderSettingExample example);
int deleteByExample(OmsOrderSettingExample example);
int deleteByPrimaryKey(Long id);
int insert(OmsOrderSetting record);
int insertSelective(OmsOrderSetting record);
List<OmsOrderSetting> selectByExample(OmsOrderSettingExample example);
OmsOrderSetting selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example);
int updateByExample(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example);
int updateByPrimaryKeySelective(OmsOrderSetting record);
int updateByPrimaryKey(OmsOrderSetting record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsAlbum;
import com.macro.mall.model.PmsAlbumExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsAlbumMapper {
int countByExample(PmsAlbumExample example);
int deleteByExample(PmsAlbumExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsAlbum record);
int insertSelective(PmsAlbum record);
List<PmsAlbum> selectByExample(PmsAlbumExample example);
PmsAlbum selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example);
int updateByExample(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example);
int updateByPrimaryKeySelective(PmsAlbum record);
int updateByPrimaryKey(PmsAlbum record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsAlbumPic;
import com.macro.mall.model.PmsAlbumPicExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsAlbumPicMapper {
int countByExample(PmsAlbumPicExample example);
int deleteByExample(PmsAlbumPicExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsAlbumPic record);
int insertSelective(PmsAlbumPic record);
List<PmsAlbumPic> selectByExample(PmsAlbumPicExample example);
PmsAlbumPic selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example);
int updateByExample(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example);
int updateByPrimaryKeySelective(PmsAlbumPic record);
int updateByPrimaryKey(PmsAlbumPic record);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsBrand;
import com.macro.mall.model.PmsBrandExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsBrandMapper {
int countByExample(PmsBrandExample example);
int deleteByExample(PmsBrandExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsBrand record);
int insertSelective(PmsBrand record);
List<PmsBrand> selectByExampleWithBLOBs(PmsBrandExample example);
List<PmsBrand> selectByExample(PmsBrandExample example);
PmsBrand selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example);
int updateByExampleWithBLOBs(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example);
int updateByExample(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example);
int updateByPrimaryKeySelective(PmsBrand record);
int updateByPrimaryKeyWithBLOBs(PmsBrand record);
int updateByPrimaryKey(PmsBrand record);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsComment;
import com.macro.mall.model.PmsCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsCommentMapper {
int countByExample(PmsCommentExample example);
int deleteByExample(PmsCommentExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsComment record);
int insertSelective(PmsComment record);
List<PmsComment> selectByExampleWithBLOBs(PmsCommentExample example);
List<PmsComment> selectByExample(PmsCommentExample example);
PmsComment selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsComment record, @Param("example") PmsCommentExample example);
int updateByExampleWithBLOBs(@Param("record") PmsComment record, @Param("example") PmsCommentExample example);
int updateByExample(@Param("record") PmsComment record, @Param("example") PmsCommentExample example);
int updateByPrimaryKeySelective(PmsComment record);
int updateByPrimaryKeyWithBLOBs(PmsComment record);
int updateByPrimaryKey(PmsComment record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsCommentReplay;
import com.macro.mall.model.PmsCommentReplayExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsCommentReplayMapper {
int countByExample(PmsCommentReplayExample example);
int deleteByExample(PmsCommentReplayExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsCommentReplay record);
int insertSelective(PmsCommentReplay record);
List<PmsCommentReplay> selectByExample(PmsCommentReplayExample example);
PmsCommentReplay selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsCommentReplay record, @Param("example") PmsCommentReplayExample example);
int updateByExample(@Param("record") PmsCommentReplay record, @Param("example") PmsCommentReplayExample example);
int updateByPrimaryKeySelective(PmsCommentReplay record);
int updateByPrimaryKey(PmsCommentReplay record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsFeightTemplate;
import com.macro.mall.model.PmsFeightTemplateExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsFeightTemplateMapper {
int countByExample(PmsFeightTemplateExample example);
int deleteByExample(PmsFeightTemplateExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsFeightTemplate record);
int insertSelective(PmsFeightTemplate record);
List<PmsFeightTemplate> selectByExample(PmsFeightTemplateExample example);
PmsFeightTemplate selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsFeightTemplate record, @Param("example") PmsFeightTemplateExample example);
int updateByExample(@Param("record") PmsFeightTemplate record, @Param("example") PmsFeightTemplateExample example);
int updateByPrimaryKeySelective(PmsFeightTemplate record);
int updateByPrimaryKey(PmsFeightTemplate record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsMemberPrice;
import com.macro.mall.model.PmsMemberPriceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsMemberPriceMapper {
int countByExample(PmsMemberPriceExample example);
int deleteByExample(PmsMemberPriceExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsMemberPrice record);
int insertSelective(PmsMemberPrice record);
List<PmsMemberPrice> selectByExample(PmsMemberPriceExample example);
PmsMemberPrice selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsMemberPrice record, @Param("example") PmsMemberPriceExample example);
int updateByExample(@Param("record") PmsMemberPrice record, @Param("example") PmsMemberPriceExample example);
int updateByPrimaryKeySelective(PmsMemberPrice record);
int updateByPrimaryKey(PmsMemberPrice record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductAttributeCategory;
import com.macro.mall.model.PmsProductAttributeCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductAttributeCategoryMapper {
int countByExample(PmsProductAttributeCategoryExample example);
int deleteByExample(PmsProductAttributeCategoryExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductAttributeCategory record);
int insertSelective(PmsProductAttributeCategory record);
List<PmsProductAttributeCategory> selectByExample(PmsProductAttributeCategoryExample example);
PmsProductAttributeCategory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductAttributeCategory record, @Param("example") PmsProductAttributeCategoryExample example);
int updateByExample(@Param("record") PmsProductAttributeCategory record, @Param("example") PmsProductAttributeCategoryExample example);
int updateByPrimaryKeySelective(PmsProductAttributeCategory record);
int updateByPrimaryKey(PmsProductAttributeCategory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductAttribute;
import com.macro.mall.model.PmsProductAttributeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductAttributeMapper {
int countByExample(PmsProductAttributeExample example);
int deleteByExample(PmsProductAttributeExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductAttribute record);
int insertSelective(PmsProductAttribute record);
List<PmsProductAttribute> selectByExample(PmsProductAttributeExample example);
PmsProductAttribute selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductAttribute record, @Param("example") PmsProductAttributeExample example);
int updateByExample(@Param("record") PmsProductAttribute record, @Param("example") PmsProductAttributeExample example);
int updateByPrimaryKeySelective(PmsProductAttribute record);
int updateByPrimaryKey(PmsProductAttribute record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductAttributeValue;
import com.macro.mall.model.PmsProductAttributeValueExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductAttributeValueMapper {
int countByExample(PmsProductAttributeValueExample example);
int deleteByExample(PmsProductAttributeValueExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductAttributeValue record);
int insertSelective(PmsProductAttributeValue record);
List<PmsProductAttributeValue> selectByExample(PmsProductAttributeValueExample example);
PmsProductAttributeValue selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductAttributeValue record, @Param("example") PmsProductAttributeValueExample example);
int updateByExample(@Param("record") PmsProductAttributeValue record, @Param("example") PmsProductAttributeValueExample example);
int updateByPrimaryKeySelective(PmsProductAttributeValue record);
int updateByPrimaryKey(PmsProductAttributeValue record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductCategoryAttributeRelation;
import com.macro.mall.model.PmsProductCategoryAttributeRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductCategoryAttributeRelationMapper {
int countByExample(PmsProductCategoryAttributeRelationExample example);
int deleteByExample(PmsProductCategoryAttributeRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductCategoryAttributeRelation record);
int insertSelective(PmsProductCategoryAttributeRelation record);
List<PmsProductCategoryAttributeRelation> selectByExample(PmsProductCategoryAttributeRelationExample example);
PmsProductCategoryAttributeRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductCategoryAttributeRelation record, @Param("example") PmsProductCategoryAttributeRelationExample example);
int updateByExample(@Param("record") PmsProductCategoryAttributeRelation record, @Param("example") PmsProductCategoryAttributeRelationExample example);
int updateByPrimaryKeySelective(PmsProductCategoryAttributeRelation record);
int updateByPrimaryKey(PmsProductCategoryAttributeRelation record);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductCategory;
import com.macro.mall.model.PmsProductCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductCategoryMapper {
int countByExample(PmsProductCategoryExample example);
int deleteByExample(PmsProductCategoryExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductCategory record);
int insertSelective(PmsProductCategory record);
List<PmsProductCategory> selectByExampleWithBLOBs(PmsProductCategoryExample example);
List<PmsProductCategory> selectByExample(PmsProductCategoryExample example);
PmsProductCategory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example);
int updateByExampleWithBLOBs(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example);
int updateByExample(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example);
int updateByPrimaryKeySelective(PmsProductCategory record);
int updateByPrimaryKeyWithBLOBs(PmsProductCategory record);
int updateByPrimaryKey(PmsProductCategory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductFullReduction;
import com.macro.mall.model.PmsProductFullReductionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductFullReductionMapper {
int countByExample(PmsProductFullReductionExample example);
int deleteByExample(PmsProductFullReductionExample example);
int deleteByPrimaryKey(Integer id);
int insert(PmsProductFullReduction record);
int insertSelective(PmsProductFullReduction record);
List<PmsProductFullReduction> selectByExample(PmsProductFullReductionExample example);
PmsProductFullReduction selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example);
int updateByExample(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example);
int updateByPrimaryKeySelective(PmsProductFullReduction record);
int updateByPrimaryKey(PmsProductFullReduction record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductLadder;
import com.macro.mall.model.PmsProductLadderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductLadderMapper {
int countByExample(PmsProductLadderExample example);
int deleteByExample(PmsProductLadderExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductLadder record);
int insertSelective(PmsProductLadder record);
List<PmsProductLadder> selectByExample(PmsProductLadderExample example);
PmsProductLadder selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example);
int updateByExample(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example);
int updateByPrimaryKeySelective(PmsProductLadder record);
int updateByPrimaryKey(PmsProductLadder record);
}

View File

@ -0,0 +1,36 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProduct;
import com.macro.mall.model.PmsProductExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductMapper {
int countByExample(PmsProductExample example);
int deleteByExample(PmsProductExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProduct record);
int insertSelective(PmsProduct record);
List<PmsProduct> selectByExampleWithBLOBs(PmsProductExample example);
List<PmsProduct> selectByExample(PmsProductExample example);
PmsProduct selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProduct record, @Param("example") PmsProductExample example);
int updateByExampleWithBLOBs(@Param("record") PmsProduct record, @Param("example") PmsProductExample example);
int updateByExample(@Param("record") PmsProduct record, @Param("example") PmsProductExample example);
int updateByPrimaryKeySelective(PmsProduct record);
int updateByPrimaryKeyWithBLOBs(PmsProduct record);
int updateByPrimaryKey(PmsProduct record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductOperateLog;
import com.macro.mall.model.PmsProductOperateLogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductOperateLogMapper {
int countByExample(PmsProductOperateLogExample example);
int deleteByExample(PmsProductOperateLogExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductOperateLog record);
int insertSelective(PmsProductOperateLog record);
List<PmsProductOperateLog> selectByExample(PmsProductOperateLogExample example);
PmsProductOperateLog selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductOperateLog record, @Param("example") PmsProductOperateLogExample example);
int updateByExample(@Param("record") PmsProductOperateLog record, @Param("example") PmsProductOperateLogExample example);
int updateByPrimaryKeySelective(PmsProductOperateLog record);
int updateByPrimaryKey(PmsProductOperateLog record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsProductVertifyRecord;
import com.macro.mall.model.PmsProductVertifyRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsProductVertifyRecordMapper {
int countByExample(PmsProductVertifyRecordExample example);
int deleteByExample(PmsProductVertifyRecordExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsProductVertifyRecord record);
int insertSelective(PmsProductVertifyRecord record);
List<PmsProductVertifyRecord> selectByExample(PmsProductVertifyRecordExample example);
PmsProductVertifyRecord selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example);
int updateByExample(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example);
int updateByPrimaryKeySelective(PmsProductVertifyRecord record);
int updateByPrimaryKey(PmsProductVertifyRecord record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.PmsSkuStock;
import com.macro.mall.model.PmsSkuStockExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PmsSkuStockMapper {
int countByExample(PmsSkuStockExample example);
int deleteByExample(PmsSkuStockExample example);
int deleteByPrimaryKey(Long id);
int insert(PmsSkuStock record);
int insertSelective(PmsSkuStock record);
List<PmsSkuStock> selectByExample(PmsSkuStockExample example);
PmsSkuStock selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example);
int updateByExample(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example);
int updateByPrimaryKeySelective(PmsSkuStock record);
int updateByPrimaryKey(PmsSkuStock record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsCouponHistory;
import com.macro.mall.model.SmsCouponHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsCouponHistoryMapper {
int countByExample(SmsCouponHistoryExample example);
int deleteByExample(SmsCouponHistoryExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsCouponHistory record);
int insertSelective(SmsCouponHistory record);
List<SmsCouponHistory> selectByExample(SmsCouponHistoryExample example);
SmsCouponHistory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example);
int updateByExample(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example);
int updateByPrimaryKeySelective(SmsCouponHistory record);
int updateByPrimaryKey(SmsCouponHistory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsCoupon;
import com.macro.mall.model.SmsCouponExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsCouponMapper {
int countByExample(SmsCouponExample example);
int deleteByExample(SmsCouponExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsCoupon record);
int insertSelective(SmsCoupon record);
List<SmsCoupon> selectByExample(SmsCouponExample example);
SmsCoupon selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example);
int updateByExample(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example);
int updateByPrimaryKeySelective(SmsCoupon record);
int updateByPrimaryKey(SmsCoupon record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsCouponProductCategoryRelation;
import com.macro.mall.model.SmsCouponProductCategoryRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsCouponProductCategoryRelationMapper {
int countByExample(SmsCouponProductCategoryRelationExample example);
int deleteByExample(SmsCouponProductCategoryRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsCouponProductCategoryRelation record);
int insertSelective(SmsCouponProductCategoryRelation record);
List<SmsCouponProductCategoryRelation> selectByExample(SmsCouponProductCategoryRelationExample example);
SmsCouponProductCategoryRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example);
int updateByExample(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example);
int updateByPrimaryKeySelective(SmsCouponProductCategoryRelation record);
int updateByPrimaryKey(SmsCouponProductCategoryRelation record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsCouponProductRelation;
import com.macro.mall.model.SmsCouponProductRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsCouponProductRelationMapper {
int countByExample(SmsCouponProductRelationExample example);
int deleteByExample(SmsCouponProductRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsCouponProductRelation record);
int insertSelective(SmsCouponProductRelation record);
List<SmsCouponProductRelation> selectByExample(SmsCouponProductRelationExample example);
SmsCouponProductRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example);
int updateByExample(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example);
int updateByPrimaryKeySelective(SmsCouponProductRelation record);
int updateByPrimaryKey(SmsCouponProductRelation record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsFlashPromotionLog;
import com.macro.mall.model.SmsFlashPromotionLogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsFlashPromotionLogMapper {
int countByExample(SmsFlashPromotionLogExample example);
int deleteByExample(SmsFlashPromotionLogExample example);
int deleteByPrimaryKey(Integer id);
int insert(SmsFlashPromotionLog record);
int insertSelective(SmsFlashPromotionLog record);
List<SmsFlashPromotionLog> selectByExample(SmsFlashPromotionLogExample example);
SmsFlashPromotionLog selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example);
int updateByExample(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example);
int updateByPrimaryKeySelective(SmsFlashPromotionLog record);
int updateByPrimaryKey(SmsFlashPromotionLog record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsFlashPromotion;
import com.macro.mall.model.SmsFlashPromotionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsFlashPromotionMapper {
int countByExample(SmsFlashPromotionExample example);
int deleteByExample(SmsFlashPromotionExample example);
int deleteByPrimaryKey(Integer id);
int insert(SmsFlashPromotion record);
int insertSelective(SmsFlashPromotion record);
List<SmsFlashPromotion> selectByExample(SmsFlashPromotionExample example);
SmsFlashPromotion selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example);
int updateByExample(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example);
int updateByPrimaryKeySelective(SmsFlashPromotion record);
int updateByPrimaryKey(SmsFlashPromotion record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsHomeAdvertise;
import com.macro.mall.model.SmsHomeAdvertiseExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsHomeAdvertiseMapper {
int countByExample(SmsHomeAdvertiseExample example);
int deleteByExample(SmsHomeAdvertiseExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsHomeAdvertise record);
int insertSelective(SmsHomeAdvertise record);
List<SmsHomeAdvertise> selectByExample(SmsHomeAdvertiseExample example);
SmsHomeAdvertise selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsHomeAdvertise record, @Param("example") SmsHomeAdvertiseExample example);
int updateByExample(@Param("record") SmsHomeAdvertise record, @Param("example") SmsHomeAdvertiseExample example);
int updateByPrimaryKeySelective(SmsHomeAdvertise record);
int updateByPrimaryKey(SmsHomeAdvertise record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsHomeBrand;
import com.macro.mall.model.SmsHomeBrandExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsHomeBrandMapper {
int countByExample(SmsHomeBrandExample example);
int deleteByExample(SmsHomeBrandExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsHomeBrand record);
int insertSelective(SmsHomeBrand record);
List<SmsHomeBrand> selectByExample(SmsHomeBrandExample example);
SmsHomeBrand selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsHomeBrand record, @Param("example") SmsHomeBrandExample example);
int updateByExample(@Param("record") SmsHomeBrand record, @Param("example") SmsHomeBrandExample example);
int updateByPrimaryKeySelective(SmsHomeBrand record);
int updateByPrimaryKey(SmsHomeBrand record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsHomeNewProduct;
import com.macro.mall.model.SmsHomeNewProductExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsHomeNewProductMapper {
int countByExample(SmsHomeNewProductExample example);
int deleteByExample(SmsHomeNewProductExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsHomeNewProduct record);
int insertSelective(SmsHomeNewProduct record);
List<SmsHomeNewProduct> selectByExample(SmsHomeNewProductExample example);
SmsHomeNewProduct selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example);
int updateByExample(@Param("record") SmsHomeNewProduct record, @Param("example") SmsHomeNewProductExample example);
int updateByPrimaryKeySelective(SmsHomeNewProduct record);
int updateByPrimaryKey(SmsHomeNewProduct record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsHomeRecommendProduct;
import com.macro.mall.model.SmsHomeRecommendProductExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsHomeRecommendProductMapper {
int countByExample(SmsHomeRecommendProductExample example);
int deleteByExample(SmsHomeRecommendProductExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsHomeRecommendProduct record);
int insertSelective(SmsHomeRecommendProduct record);
List<SmsHomeRecommendProduct> selectByExample(SmsHomeRecommendProductExample example);
SmsHomeRecommendProduct selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example);
int updateByExample(@Param("record") SmsHomeRecommendProduct record, @Param("example") SmsHomeRecommendProductExample example);
int updateByPrimaryKeySelective(SmsHomeRecommendProduct record);
int updateByPrimaryKey(SmsHomeRecommendProduct record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.SmsHomeRecommendSubject;
import com.macro.mall.model.SmsHomeRecommendSubjectExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SmsHomeRecommendSubjectMapper {
int countByExample(SmsHomeRecommendSubjectExample example);
int deleteByExample(SmsHomeRecommendSubjectExample example);
int deleteByPrimaryKey(Long id);
int insert(SmsHomeRecommendSubject record);
int insertSelective(SmsHomeRecommendSubject record);
List<SmsHomeRecommendSubject> selectByExample(SmsHomeRecommendSubjectExample example);
SmsHomeRecommendSubject selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SmsHomeRecommendSubject record, @Param("example") SmsHomeRecommendSubjectExample example);
int updateByExample(@Param("record") SmsHomeRecommendSubject record, @Param("example") SmsHomeRecommendSubjectExample example);
int updateByPrimaryKeySelective(SmsHomeRecommendSubject record);
int updateByPrimaryKey(SmsHomeRecommendSubject record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsAdminLoginLog;
import com.macro.mall.model.UmsAdminLoginLogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsAdminLoginLogMapper {
int countByExample(UmsAdminLoginLogExample example);
int deleteByExample(UmsAdminLoginLogExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsAdminLoginLog record);
int insertSelective(UmsAdminLoginLog record);
List<UmsAdminLoginLog> selectByExample(UmsAdminLoginLogExample example);
UmsAdminLoginLog selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsAdminLoginLog record, @Param("example") UmsAdminLoginLogExample example);
int updateByExample(@Param("record") UmsAdminLoginLog record, @Param("example") UmsAdminLoginLogExample example);
int updateByPrimaryKeySelective(UmsAdminLoginLog record);
int updateByPrimaryKey(UmsAdminLoginLog record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsAdmin;
import com.macro.mall.model.UmsAdminExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsAdminMapper {
int countByExample(UmsAdminExample example);
int deleteByExample(UmsAdminExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsAdmin record);
int insertSelective(UmsAdmin record);
List<UmsAdmin> selectByExample(UmsAdminExample example);
UmsAdmin selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example);
int updateByExample(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example);
int updateByPrimaryKeySelective(UmsAdmin record);
int updateByPrimaryKey(UmsAdmin record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsGrowthChangeHistory;
import com.macro.mall.model.UmsGrowthChangeHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsGrowthChangeHistoryMapper {
int countByExample(UmsGrowthChangeHistoryExample example);
int deleteByExample(UmsGrowthChangeHistoryExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsGrowthChangeHistory record);
int insertSelective(UmsGrowthChangeHistory record);
List<UmsGrowthChangeHistory> selectByExample(UmsGrowthChangeHistoryExample example);
UmsGrowthChangeHistory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsGrowthChangeHistory record, @Param("example") UmsGrowthChangeHistoryExample example);
int updateByExample(@Param("record") UmsGrowthChangeHistory record, @Param("example") UmsGrowthChangeHistoryExample example);
int updateByPrimaryKeySelective(UmsGrowthChangeHistory record);
int updateByPrimaryKey(UmsGrowthChangeHistory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsIntegrationChangeHistory;
import com.macro.mall.model.UmsIntegrationChangeHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsIntegrationChangeHistoryMapper {
int countByExample(UmsIntegrationChangeHistoryExample example);
int deleteByExample(UmsIntegrationChangeHistoryExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsIntegrationChangeHistory record);
int insertSelective(UmsIntegrationChangeHistory record);
List<UmsIntegrationChangeHistory> selectByExample(UmsIntegrationChangeHistoryExample example);
UmsIntegrationChangeHistory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsIntegrationChangeHistory record, @Param("example") UmsIntegrationChangeHistoryExample example);
int updateByExample(@Param("record") UmsIntegrationChangeHistory record, @Param("example") UmsIntegrationChangeHistoryExample example);
int updateByPrimaryKeySelective(UmsIntegrationChangeHistory record);
int updateByPrimaryKey(UmsIntegrationChangeHistory record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsIntergrationConsumeSetting;
import com.macro.mall.model.UmsIntergrationConsumeSettingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsIntergrationConsumeSettingMapper {
int countByExample(UmsIntergrationConsumeSettingExample example);
int deleteByExample(UmsIntergrationConsumeSettingExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsIntergrationConsumeSetting record);
int insertSelective(UmsIntergrationConsumeSetting record);
List<UmsIntergrationConsumeSetting> selectByExample(UmsIntergrationConsumeSettingExample example);
UmsIntergrationConsumeSetting selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsIntergrationConsumeSetting record, @Param("example") UmsIntergrationConsumeSettingExample example);
int updateByExample(@Param("record") UmsIntergrationConsumeSetting record, @Param("example") UmsIntergrationConsumeSettingExample example);
int updateByPrimaryKeySelective(UmsIntergrationConsumeSetting record);
int updateByPrimaryKey(UmsIntergrationConsumeSetting record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberLevel;
import com.macro.mall.model.UmsMemberLevelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberLevelMapper {
int countByExample(UmsMemberLevelExample example);
int deleteByExample(UmsMemberLevelExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberLevel record);
int insertSelective(UmsMemberLevel record);
List<UmsMemberLevel> selectByExample(UmsMemberLevelExample example);
UmsMemberLevel selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberLevel record, @Param("example") UmsMemberLevelExample example);
int updateByExample(@Param("record") UmsMemberLevel record, @Param("example") UmsMemberLevelExample example);
int updateByPrimaryKeySelective(UmsMemberLevel record);
int updateByPrimaryKey(UmsMemberLevel record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberLoginLog;
import com.macro.mall.model.UmsMemberLoginLogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberLoginLogMapper {
int countByExample(UmsMemberLoginLogExample example);
int deleteByExample(UmsMemberLoginLogExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberLoginLog record);
int insertSelective(UmsMemberLoginLog record);
List<UmsMemberLoginLog> selectByExample(UmsMemberLoginLogExample example);
UmsMemberLoginLog selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberLoginLog record, @Param("example") UmsMemberLoginLogExample example);
int updateByExample(@Param("record") UmsMemberLoginLog record, @Param("example") UmsMemberLoginLogExample example);
int updateByPrimaryKeySelective(UmsMemberLoginLog record);
int updateByPrimaryKey(UmsMemberLoginLog record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMember;
import com.macro.mall.model.UmsMemberExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberMapper {
int countByExample(UmsMemberExample example);
int deleteByExample(UmsMemberExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMember record);
int insertSelective(UmsMember record);
List<UmsMember> selectByExample(UmsMemberExample example);
UmsMember selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMember record, @Param("example") UmsMemberExample example);
int updateByExample(@Param("record") UmsMember record, @Param("example") UmsMemberExample example);
int updateByPrimaryKeySelective(UmsMember record);
int updateByPrimaryKey(UmsMember record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberMemberTagRelation;
import com.macro.mall.model.UmsMemberMemberTagRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberMemberTagRelationMapper {
int countByExample(UmsMemberMemberTagRelationExample example);
int deleteByExample(UmsMemberMemberTagRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberMemberTagRelation record);
int insertSelective(UmsMemberMemberTagRelation record);
List<UmsMemberMemberTagRelation> selectByExample(UmsMemberMemberTagRelationExample example);
UmsMemberMemberTagRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberMemberTagRelation record, @Param("example") UmsMemberMemberTagRelationExample example);
int updateByExample(@Param("record") UmsMemberMemberTagRelation record, @Param("example") UmsMemberMemberTagRelationExample example);
int updateByPrimaryKeySelective(UmsMemberMemberTagRelation record);
int updateByPrimaryKey(UmsMemberMemberTagRelation record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberProductCategoryRelation;
import com.macro.mall.model.UmsMemberProductCategoryRelationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberProductCategoryRelationMapper {
int countByExample(UmsMemberProductCategoryRelationExample example);
int deleteByExample(UmsMemberProductCategoryRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberProductCategoryRelation record);
int insertSelective(UmsMemberProductCategoryRelation record);
List<UmsMemberProductCategoryRelation> selectByExample(UmsMemberProductCategoryRelationExample example);
UmsMemberProductCategoryRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberProductCategoryRelation record, @Param("example") UmsMemberProductCategoryRelationExample example);
int updateByExample(@Param("record") UmsMemberProductCategoryRelation record, @Param("example") UmsMemberProductCategoryRelationExample example);
int updateByPrimaryKeySelective(UmsMemberProductCategoryRelation record);
int updateByPrimaryKey(UmsMemberProductCategoryRelation record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberReceiveAddress;
import com.macro.mall.model.UmsMemberReceiveAddressExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberReceiveAddressMapper {
int countByExample(UmsMemberReceiveAddressExample example);
int deleteByExample(UmsMemberReceiveAddressExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberReceiveAddress record);
int insertSelective(UmsMemberReceiveAddress record);
List<UmsMemberReceiveAddress> selectByExample(UmsMemberReceiveAddressExample example);
UmsMemberReceiveAddress selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberReceiveAddress record, @Param("example") UmsMemberReceiveAddressExample example);
int updateByExample(@Param("record") UmsMemberReceiveAddress record, @Param("example") UmsMemberReceiveAddressExample example);
int updateByPrimaryKeySelective(UmsMemberReceiveAddress record);
int updateByPrimaryKey(UmsMemberReceiveAddress record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberRuleSetting;
import com.macro.mall.model.UmsMemberRuleSettingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberRuleSettingMapper {
int countByExample(UmsMemberRuleSettingExample example);
int deleteByExample(UmsMemberRuleSettingExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberRuleSetting record);
int insertSelective(UmsMemberRuleSetting record);
List<UmsMemberRuleSetting> selectByExample(UmsMemberRuleSettingExample example);
UmsMemberRuleSetting selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberRuleSetting record, @Param("example") UmsMemberRuleSettingExample example);
int updateByExample(@Param("record") UmsMemberRuleSetting record, @Param("example") UmsMemberRuleSettingExample example);
int updateByPrimaryKeySelective(UmsMemberRuleSetting record);
int updateByPrimaryKey(UmsMemberRuleSetting record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberStatisticsInfo;
import com.macro.mall.model.UmsMemberStatisticsInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberStatisticsInfoMapper {
int countByExample(UmsMemberStatisticsInfoExample example);
int deleteByExample(UmsMemberStatisticsInfoExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberStatisticsInfo record);
int insertSelective(UmsMemberStatisticsInfo record);
List<UmsMemberStatisticsInfo> selectByExample(UmsMemberStatisticsInfoExample example);
UmsMemberStatisticsInfo selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberStatisticsInfo record, @Param("example") UmsMemberStatisticsInfoExample example);
int updateByExample(@Param("record") UmsMemberStatisticsInfo record, @Param("example") UmsMemberStatisticsInfoExample example);
int updateByPrimaryKeySelective(UmsMemberStatisticsInfo record);
int updateByPrimaryKey(UmsMemberStatisticsInfo record);
}

View File

@ -0,0 +1,30 @@
package com.macro.mall.mapper;
import com.macro.mall.model.UmsMemberTag;
import com.macro.mall.model.UmsMemberTagExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UmsMemberTagMapper {
int countByExample(UmsMemberTagExample example);
int deleteByExample(UmsMemberTagExample example);
int deleteByPrimaryKey(Long id);
int insert(UmsMemberTag record);
int insertSelective(UmsMemberTag record);
List<UmsMemberTag> selectByExample(UmsMemberTagExample example);
UmsMemberTag selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UmsMemberTag record, @Param("example") UmsMemberTagExample example);
int updateByExample(@Param("record") UmsMemberTag record, @Param("example") UmsMemberTagExample example);
int updateByPrimaryKeySelective(UmsMemberTag record);
int updateByPrimaryKey(UmsMemberTag record);
}

Some files were not shown because too many files have changed in this diff Show More