diff --git a/litemall-all/src/main/resources/application.yml b/litemall-all/src/main/resources/application.yml
index 3802b74f..5d88f408 100644
--- a/litemall-all/src/main/resources/application.yml
+++ b/litemall-all/src/main/resources/application.yml
@@ -5,7 +5,7 @@ spring:
encoding: UTF-8
server:
- port: 8080
+ port: 8082
logging:
level:
diff --git a/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeBase.java b/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeBase.java
new file mode 100644
index 00000000..59ccd79c
--- /dev/null
+++ b/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeBase.java
@@ -0,0 +1,122 @@
+package org.linlinjava.litemall.core.qcode;
+
+import cn.binarywang.wx.miniapp.api.WxMaService;
+import me.chanjar.weixin.common.error.WxErrorException;
+import org.linlinjava.litemall.core.storage.StorageService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.mock.web.MockMultipartFile;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.imageio.ImageIO;
+import java.awt.*;
+import java.awt.image.BufferedImage;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+
+public abstract class QCodeBase {
+
+ @Autowired
+ protected WxMaService wxMaService;
+
+ @Autowired
+ protected StorageService storageService;
+
+ protected abstract String getKeyName(String id);
+
+ /**
+ * 获取图片地址
+ *
+ * @param id
+ * @return
+ */
+ public String getShareImageUrl(String id) {
+ return storageService.generateUrl(getKeyName(id));
+ }
+
+ protected BufferedImage getQCode(String scene, String page) {
+ //创建该商品的二维码
+ File file = null;
+ try {
+ file = wxMaService.getQrcodeService().createWxaCodeUnlimit(scene, page);
+ FileInputStream inputStream = new FileInputStream(file);
+ BufferedImage qrCodeImage = ImageIO.read(inputStream);
+ return qrCodeImage;
+ } catch (WxErrorException | IOException e) {
+ e.printStackTrace();
+ }
+
+ return null;
+ }
+
+ protected void saveImage(String id, byte[] imageData) {
+ MultipartFile multipartFile = new MockMultipartFile(getKeyName(id), getKeyName(id), "image/jpeg", imageData);
+ //存储分享图
+ storageService.store(multipartFile, getKeyName(id));
+ }
+
+ /**
+ * 居中写文字
+ *
+ * @param baseImage
+ * @param textToWrite
+ * @param font
+ * @param color
+ * @param y
+ */
+ protected void drawTextInImgCenter(BufferedImage baseImage, String textToWrite, Font font, Color color, int y) {
+ Graphics2D g2D = (Graphics2D) baseImage.getGraphics();
+ g2D.setColor(color);
+
+ g2D.setFont(font);
+ g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+
+ // 计算文字长度,计算居中的x点坐标
+ FontMetrics fm = g2D.getFontMetrics(font);
+ int textWidth = fm.stringWidth(textToWrite);
+ int widthX = (baseImage.getWidth() - textWidth) / 2;
+ // 表示这段文字在图片上的位置(x,y) .第一个是你设置的内容。
+
+ g2D.drawString(textToWrite, widthX, y);
+ // 释放对象
+ g2D.dispose();
+ }
+
+ /**
+ * 写上文字
+ *
+ * @param baseImage
+ * @param textToWrite
+ * @param font
+ * @param color
+ * @param x
+ * @param y
+ */
+ protected void drawTextInImg(BufferedImage baseImage, String textToWrite, Font font, Color color, int x, int y) {
+ Graphics2D g2D = (Graphics2D) baseImage.getGraphics();
+ g2D.setColor(color);
+
+ g2D.setFont(font);
+ g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+
+ g2D.drawString(textToWrite, x, y);
+ g2D.dispose();
+ }
+
+ /**
+ * 画中画
+ *
+ * @param baseImage
+ * @param imageToWrite
+ * @param x
+ * @param y
+ * @param width
+ * @param height
+ */
+ protected void drawImgInImg(BufferedImage baseImage, BufferedImage imageToWrite, int x, int y, int width, int height) {
+ Graphics2D g2D = (Graphics2D) baseImage.getGraphics();
+ g2D.drawImage(imageToWrite, x, y, width, height, null);
+ g2D.dispose();
+ }
+}
diff --git a/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeGoodShare.java b/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeGoodShare.java
new file mode 100644
index 00000000..21570675
--- /dev/null
+++ b/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeGoodShare.java
@@ -0,0 +1,96 @@
+package org.linlinjava.litemall.core.qcode;
+
+import org.linlinjava.litemall.core.system.SystemConfig;
+import org.springframework.core.io.ClassPathResource;
+
+import javax.imageio.ImageIO;
+import java.awt.*;
+import java.awt.image.BufferedImage;
+import java.io.*;
+import java.net.URL;
+
+public class QCodeGoodShare extends QCodeBase {
+
+ @Override
+ protected String getKeyName(String id) {
+ return "GOOD_QCODE_" + id + ".jpg";
+ }
+
+ /**
+ * 创建商品分享图
+ *
+ * @param goodId
+ * @param goodPicUrl
+ * @param goodName
+ */
+ public void createGoodShareImage(String goodId, String goodPicUrl, String goodName) {
+ if (!SystemConfig.isAutoCreateShareImage())
+ return;
+
+ BufferedImage qrCodeImage = getQCode("goods," + goodId, "pages/index/index");
+ //将商品图片,商品名字,商城名字画到模版图中
+ byte[] imageData = new byte[0];
+ try {
+ imageData = drawPicture(qrCodeImage, goodPicUrl, goodName, SystemConfig.getMallName());
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ saveImage(goodId, imageData);
+ }
+
+ /**
+ * 将商品图片,商品名字画到模版图中
+ *
+ * @param qrCodeImage 二维码图片
+ * @param goodPicUrl 商品图片地址
+ * @param goodName 商品名称
+ * @return
+ * @throws IOException
+ */
+ private byte[] drawPicture(BufferedImage qrCodeImage, String goodPicUrl, String goodName, String shopName) throws IOException {
+ //底图
+ ClassPathResource redResource = new ClassPathResource("back.jpg");
+ BufferedImage red = ImageIO.read(redResource.getInputStream());
+
+
+ //商品图片
+ URL goodPic = new URL(goodPicUrl);
+ BufferedImage goodImage = ImageIO.read(goodPic);
+
+ // --- 画图 ---
+
+ //底层空白 bufferedImage
+ BufferedImage baseImage = new BufferedImage(red.getWidth(), red.getHeight(), BufferedImage.TYPE_4BYTE_ABGR_PRE);
+
+ //画上图片
+ drawImgInImg(baseImage, red, 0, 0, red.getWidth(), red.getHeight());
+
+ //画上商品图片
+ drawImgInImg(baseImage, goodImage, 56, 135, 720, 720);
+
+ //画上小程序二维码
+ drawImgInImg(baseImage, qrCodeImage, 442, 1006, 340, 340);
+
+
+ Font font = new Font("Microsoft YaHei", Font.PLAIN, 42);
+ Color color = new Color(167, 136, 69);
+
+ //写上商品名称
+ drawTextInImg(baseImage, goodName, font, color, 112, 955);
+
+ //写上商城名称
+ drawTextInImgCenter(baseImage, shopName, font, color, 98);
+
+
+ //转jpg
+ BufferedImage result = new BufferedImage(baseImage.getWidth(), baseImage
+ .getHeight(), BufferedImage.TYPE_3BYTE_BGR);
+ result.getGraphics().drawImage(baseImage, 0, 0, null);
+ ByteArrayOutputStream bs = new ByteArrayOutputStream();
+ ImageIO.write(result, "jpg", bs);
+
+ //最终byte数组
+ return bs.toByteArray();
+ }
+}
diff --git a/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeService.java b/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeService.java
index 277e5d42..7d637160 100644
--- a/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeService.java
+++ b/litemall-core/src/main/java/org/linlinjava/litemall/core/qcode/QCodeService.java
@@ -4,6 +4,7 @@ import cn.binarywang.wx.miniapp.api.WxMaService;
import me.chanjar.weixin.common.error.WxErrorException;
import org.linlinjava.litemall.core.storage.StorageService;
import org.linlinjava.litemall.core.system.SystemConfig;
+import org.linlinjava.litemall.db.domain.LitemallGroupon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;
import org.springframework.mock.web.MockMultipartFile;
@@ -24,6 +25,29 @@ public class QCodeService {
@Autowired
private StorageService storageService;
+
+ public void createGrouponShareImage(String goodName, String goodPicUrl, LitemallGroupon groupon) {
+ try {
+ //创建该商品的二维码
+ File file = wxMaService.getQrcodeService().createWxaCodeUnlimit("groupon," + groupon.getId(), "pages/index/index");
+ FileInputStream inputStream = new FileInputStream(file);
+ //将商品图片,商品名字,商城名字画到模版图中
+ byte[] imageData = drawPicture(inputStream, goodPicUrl, goodName, SystemConfig.getMallName());
+ MultipartFile multipartFile = new MockMultipartFile(file.getName(), file.getName(), "image/jpeg", imageData);
+ //存储分享图
+ storageService.store(multipartFile, getKeyName(groupon.getId().toString()));
+ } catch (WxErrorException e) {
+ e.printStackTrace();
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (FontFormatException e) {
+ e.printStackTrace();
+ }
+ }
+
+
/**
* 创建商品分享图
*
@@ -37,7 +61,7 @@ public class QCodeService {
try {
//创建该商品的二维码
- File file = wxMaService.getQrcodeService().createWxaCodeUnlimit(goodId, "pages/index/index");
+ File file = wxMaService.getQrcodeService().createWxaCodeUnlimit("goods," + goodId, "pages/index/index");
FileInputStream inputStream = new FileInputStream(file);
//将商品图片,商品名字,商城名字画到模版图中
byte[] imageData = drawPicture(inputStream, goodPicUrl, goodName, SystemConfig.getMallName());
@@ -103,7 +127,7 @@ public class QCodeService {
drawTextInImg(baseImage, goodName, 112, 955);
//写上商城名称
- drawTextInImgCenter(baseImage, shopName, 112, 98);
+ drawTextInImgCenter(baseImage, shopName, 98);
//转jpg
@@ -117,7 +141,7 @@ public class QCodeService {
return bs.toByteArray();
}
- private void drawTextInImgCenter(BufferedImage baseImage, String textToWrite, int x, int y) {
+ private void drawTextInImgCenter(BufferedImage baseImage, String textToWrite, int y) {
Graphics2D g2D = (Graphics2D) baseImage.getGraphics();
g2D.setColor(new Color(167, 136, 69));
@@ -133,12 +157,12 @@ public class QCodeService {
int widthX = (baseImage.getWidth() - textWidth) / 2;
// 表示这段文字在图片上的位置(x,y) .第一个是你设置的内容。
- g2D.drawString(textToWrite, widthX, 100);
+ g2D.drawString(textToWrite, widthX, y);
// 释放对象
g2D.dispose();
}
- private void drawTextInImg(BufferedImage baseImage, String textToWrite, int x, int y) throws IOException, FontFormatException {
+ private void drawTextInImg(BufferedImage baseImage, String textToWrite, int x, int y) {
Graphics2D g2D = (Graphics2D) baseImage.getGraphics();
g2D.setColor(new Color(167, 136, 69));
diff --git a/litemall-db/mybatis-generator/generatorConfig.xml b/litemall-db/mybatis-generator/generatorConfig.xml
index fa844055..5c1290d9 100644
--- a/litemall-db/mybatis-generator/generatorConfig.xml
+++ b/litemall-db/mybatis-generator/generatorConfig.xml
@@ -45,9 +45,9 @@
+ connectionURL="jdbc:mysql://127.0.0.1:3306/litemall2?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&verifyServerCertificate=false&useSSL=false"
+ userId="root"
+ password="Menethil.2822"/>
@@ -172,5 +172,15 @@
+
+
+
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java
new file mode 100644
index 00000000..51c1bd2e
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.java
@@ -0,0 +1,159 @@
+package org.linlinjava.litemall.db.dao;
+
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+import org.linlinjava.litemall.db.domain.LitemallGroupon;
+import org.linlinjava.litemall.db.domain.LitemallGrouponExample;
+
+public interface LitemallGrouponMapper {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ long countByExample(LitemallGrouponExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int deleteByExample(LitemallGrouponExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int deleteByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int insert(LitemallGroupon record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int insertSelective(LitemallGroupon record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGroupon selectOneByExample(LitemallGrouponExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGroupon selectOneByExampleSelective(@Param("example") LitemallGrouponExample example, @Param("selective") LitemallGroupon.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ List selectByExampleSelective(@Param("example") LitemallGrouponExample example, @Param("selective") LitemallGroupon.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ List selectByExample(LitemallGrouponExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGroupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGroupon.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ LitemallGroupon selectByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGroupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int updateByExampleSelective(@Param("record") LitemallGroupon record, @Param("example") LitemallGrouponExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int updateByExample(@Param("record") LitemallGroupon record, @Param("example") LitemallGrouponExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKeySelective(LitemallGroupon record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKey(LitemallGroupon record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByExample(@Param("example") LitemallGrouponExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByPrimaryKey(Integer id);
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java
new file mode 100644
index 00000000..3fcb2928
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.java
@@ -0,0 +1,159 @@
+package org.linlinjava.litemall.db.dao;
+
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+import org.linlinjava.litemall.db.domain.LitemallGrouponRules;
+import org.linlinjava.litemall.db.domain.LitemallGrouponRulesExample;
+
+public interface LitemallGrouponRulesMapper {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ long countByExample(LitemallGrouponRulesExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int deleteByExample(LitemallGrouponRulesExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int deleteByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int insert(LitemallGrouponRules record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int insertSelective(LitemallGrouponRules record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGrouponRules selectOneByExample(LitemallGrouponRulesExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGrouponRules selectOneByExampleSelective(@Param("example") LitemallGrouponRulesExample example, @Param("selective") LitemallGrouponRules.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ List selectByExampleSelective(@Param("example") LitemallGrouponRulesExample example, @Param("selective") LitemallGrouponRules.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ List selectByExample(LitemallGrouponRulesExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGrouponRules selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGrouponRules.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ LitemallGrouponRules selectByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ LitemallGrouponRules selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int updateByExampleSelective(@Param("record") LitemallGrouponRules record, @Param("example") LitemallGrouponRulesExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int updateByExample(@Param("record") LitemallGrouponRules record, @Param("example") LitemallGrouponRulesExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKeySelective(LitemallGrouponRules record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKey(LitemallGrouponRules record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByExample(@Param("example") LitemallGrouponRulesExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ int logicalDeleteByPrimaryKey(Integer id);
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGroupon.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGroupon.java
new file mode 100644
index 00000000..8aea8d56
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGroupon.java
@@ -0,0 +1,660 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.Arrays;
+
+public class LitemallGroupon {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static final Boolean NOT_DELETED = false;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static final Boolean IS_DELETED = true;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.id
+ *
+ * @mbg.generated
+ */
+ private Integer id;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.order_id
+ *
+ * @mbg.generated
+ */
+ private Integer orderId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.groupon_id
+ *
+ * @mbg.generated
+ */
+ private Integer grouponId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.rules_id
+ *
+ * @mbg.generated
+ */
+ private Integer rulesId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.user_id
+ *
+ * @mbg.generated
+ */
+ private Integer userId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.user_type
+ *
+ * @mbg.generated
+ */
+ private Boolean userType;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.add_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime addTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.expire_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime expireTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.share_url
+ *
+ * @mbg.generated
+ */
+ private String shareUrl;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.payed
+ *
+ * @mbg.generated
+ */
+ private Boolean payed;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.deleted
+ *
+ * @mbg.generated
+ */
+ private Boolean deleted;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon.version
+ *
+ * @mbg.generated
+ */
+ private Integer version;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.id
+ *
+ * @return the value of litemall_groupon.id
+ *
+ * @mbg.generated
+ */
+ public Integer getId() {
+ return id;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.id
+ *
+ * @param id the value for litemall_groupon.id
+ *
+ * @mbg.generated
+ */
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.order_id
+ *
+ * @return the value of litemall_groupon.order_id
+ *
+ * @mbg.generated
+ */
+ public Integer getOrderId() {
+ return orderId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.order_id
+ *
+ * @param orderId the value for litemall_groupon.order_id
+ *
+ * @mbg.generated
+ */
+ public void setOrderId(Integer orderId) {
+ this.orderId = orderId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.groupon_id
+ *
+ * @return the value of litemall_groupon.groupon_id
+ *
+ * @mbg.generated
+ */
+ public Integer getGrouponId() {
+ return grouponId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.groupon_id
+ *
+ * @param grouponId the value for litemall_groupon.groupon_id
+ *
+ * @mbg.generated
+ */
+ public void setGrouponId(Integer grouponId) {
+ this.grouponId = grouponId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.rules_id
+ *
+ * @return the value of litemall_groupon.rules_id
+ *
+ * @mbg.generated
+ */
+ public Integer getRulesId() {
+ return rulesId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.rules_id
+ *
+ * @param rulesId the value for litemall_groupon.rules_id
+ *
+ * @mbg.generated
+ */
+ public void setRulesId(Integer rulesId) {
+ this.rulesId = rulesId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.user_id
+ *
+ * @return the value of litemall_groupon.user_id
+ *
+ * @mbg.generated
+ */
+ public Integer getUserId() {
+ return userId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.user_id
+ *
+ * @param userId the value for litemall_groupon.user_id
+ *
+ * @mbg.generated
+ */
+ public void setUserId(Integer userId) {
+ this.userId = userId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.user_type
+ *
+ * @return the value of litemall_groupon.user_type
+ *
+ * @mbg.generated
+ */
+ public Boolean getUserType() {
+ return userType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.user_type
+ *
+ * @param userType the value for litemall_groupon.user_type
+ *
+ * @mbg.generated
+ */
+ public void setUserType(Boolean userType) {
+ this.userType = userType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.add_time
+ *
+ * @return the value of litemall_groupon.add_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getAddTime() {
+ return addTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.add_time
+ *
+ * @param addTime the value for litemall_groupon.add_time
+ *
+ * @mbg.generated
+ */
+ public void setAddTime(LocalDateTime addTime) {
+ this.addTime = addTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.expire_time
+ *
+ * @return the value of litemall_groupon.expire_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getExpireTime() {
+ return expireTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.expire_time
+ *
+ * @param expireTime the value for litemall_groupon.expire_time
+ *
+ * @mbg.generated
+ */
+ public void setExpireTime(LocalDateTime expireTime) {
+ this.expireTime = expireTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.share_url
+ *
+ * @return the value of litemall_groupon.share_url
+ *
+ * @mbg.generated
+ */
+ public String getShareUrl() {
+ return shareUrl;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.share_url
+ *
+ * @param shareUrl the value for litemall_groupon.share_url
+ *
+ * @mbg.generated
+ */
+ public void setShareUrl(String shareUrl) {
+ this.shareUrl = shareUrl;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.payed
+ *
+ * @return the value of litemall_groupon.payed
+ *
+ * @mbg.generated
+ */
+ public Boolean getPayed() {
+ return payed;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.payed
+ *
+ * @param payed the value for litemall_groupon.payed
+ *
+ * @mbg.generated
+ */
+ public void setPayed(Boolean payed) {
+ this.payed = payed;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.deleted
+ *
+ * @return the value of litemall_groupon.deleted
+ *
+ * @mbg.generated
+ */
+ public Boolean getDeleted() {
+ return deleted;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.deleted
+ *
+ * @param deleted the value for litemall_groupon.deleted
+ *
+ * @mbg.generated
+ */
+ public void setDeleted(Boolean deleted) {
+ this.deleted = deleted;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon.version
+ *
+ * @return the value of litemall_groupon.version
+ *
+ * @mbg.generated
+ */
+ public Integer getVersion() {
+ return version;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon.version
+ *
+ * @param version the value for litemall_groupon.version
+ *
+ * @mbg.generated
+ */
+ public void setVersion(Integer version) {
+ this.version = version;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", orderId=").append(orderId);
+ sb.append(", grouponId=").append(grouponId);
+ sb.append(", rulesId=").append(rulesId);
+ sb.append(", userId=").append(userId);
+ sb.append(", userType=").append(userType);
+ sb.append(", addTime=").append(addTime);
+ sb.append(", expireTime=").append(expireTime);
+ sb.append(", shareUrl=").append(shareUrl);
+ sb.append(", payed=").append(payed);
+ sb.append(", deleted=").append(deleted);
+ sb.append(", version=").append(version);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ @Override
+ public boolean equals(Object that) {
+ if (this == that) {
+ return true;
+ }
+ if (that == null) {
+ return false;
+ }
+ if (getClass() != that.getClass()) {
+ return false;
+ }
+ LitemallGroupon other = (LitemallGroupon) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
+ && (this.getGrouponId() == null ? other.getGrouponId() == null : this.getGrouponId().equals(other.getGrouponId()))
+ && (this.getRulesId() == null ? other.getRulesId() == null : this.getRulesId().equals(other.getRulesId()))
+ && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
+ && (this.getUserType() == null ? other.getUserType() == null : this.getUserType().equals(other.getUserType()))
+ && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getExpireTime() == null ? other.getExpireTime() == null : this.getExpireTime().equals(other.getExpireTime()))
+ && (this.getShareUrl() == null ? other.getShareUrl() == null : this.getShareUrl().equals(other.getShareUrl()))
+ && (this.getPayed() == null ? other.getPayed() == null : this.getPayed().equals(other.getPayed()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
+ && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+ result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
+ result = prime * result + ((getGrouponId() == null) ? 0 : getGrouponId().hashCode());
+ result = prime * result + ((getRulesId() == null) ? 0 : getRulesId().hashCode());
+ result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
+ result = prime * result + ((getUserType() == null) ? 0 : getUserType().hashCode());
+ result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getExpireTime() == null) ? 0 : getExpireTime().hashCode());
+ result = prime * result + ((getShareUrl() == null) ? 0 : getShareUrl().hashCode());
+ result = prime * result + ((getPayed() == null) ? 0 : getPayed().hashCode());
+ result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
+ result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
+ return result;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public void andLogicalDeleted(boolean deleted) {
+ setDeleted(deleted ? IS_DELETED : NOT_DELETED);
+ }
+
+ /**
+ * This enum was generated by MyBatis Generator.
+ * This enum corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public enum Column {
+ id("id", "id", "INTEGER"),
+ orderId("order_id", "orderId", "INTEGER"),
+ grouponId("groupon_id", "grouponId", "INTEGER"),
+ rulesId("rules_id", "rulesId", "INTEGER"),
+ userId("user_id", "userId", "INTEGER"),
+ userType("user_type", "userType", "BIT"),
+ addTime("add_time", "addTime", "TIMESTAMP"),
+ expireTime("expire_time", "expireTime", "TIMESTAMP"),
+ shareUrl("share_url", "shareUrl", "VARCHAR"),
+ payed("payed", "payed", "BIT"),
+ deleted("deleted", "deleted", "BIT"),
+ version("version", "version", "INTEGER");
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private final String column;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private final String javaProperty;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private final String jdbcType;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String value() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String getValue() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String getJavaProperty() {
+ return this.javaProperty;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String getJdbcType() {
+ return this.jdbcType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ Column(String column, String javaProperty, String jdbcType) {
+ this.column = column;
+ this.javaProperty = javaProperty;
+ this.jdbcType = jdbcType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String desc() {
+ return this.column + " DESC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String asc() {
+ return this.column + " ASC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Column[] excludes(Column ... excludes) {
+ ArrayList columns = new ArrayList<>(Arrays.asList(Column.values()));
+ if (excludes != null && excludes.length > 0) {
+ columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+ }
+ return columns.toArray(new Column[]{});
+ }
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponExample.java
new file mode 100644
index 00000000..03810591
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponExample.java
@@ -0,0 +1,1134 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+public class LitemallGrouponExample {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ protected String orderByClause;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ protected boolean distinct;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ protected List oredCriteria;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public LitemallGrouponExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public LitemallGrouponExample orderBy(String orderByClause) {
+ this.setOrderByClause(orderByClause);
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public LitemallGrouponExample orderBy(String ... orderByClauses) {
+ StringBuffer sb = new StringBuffer();
+ for (int i = 0; i < orderByClauses.length; i++) {
+ sb.append(orderByClauses[i]);
+ if (i < orderByClauses.length - 1) {
+ sb.append(" , ");
+ }
+ }
+ this.setOrderByClause(sb.toString());
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria(this);
+ return criteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Integer value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Integer value1, Integer value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdIsNull() {
+ addCriterion("order_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdIsNotNull() {
+ addCriterion("order_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdEqualTo(Integer value) {
+ addCriterion("order_id =", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdNotEqualTo(Integer value) {
+ addCriterion("order_id <>", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdGreaterThan(Integer value) {
+ addCriterion("order_id >", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("order_id >=", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdLessThan(Integer value) {
+ addCriterion("order_id <", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
+ addCriterion("order_id <=", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdIn(List values) {
+ addCriterion("order_id in", values, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdNotIn(List values) {
+ addCriterion("order_id not in", values, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdBetween(Integer value1, Integer value2) {
+ addCriterion("order_id between", value1, value2, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("order_id not between", value1, value2, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdIsNull() {
+ addCriterion("groupon_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdIsNotNull() {
+ addCriterion("groupon_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdEqualTo(Integer value) {
+ addCriterion("groupon_id =", value, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdNotEqualTo(Integer value) {
+ addCriterion("groupon_id <>", value, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdGreaterThan(Integer value) {
+ addCriterion("groupon_id >", value, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("groupon_id >=", value, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdLessThan(Integer value) {
+ addCriterion("groupon_id <", value, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdLessThanOrEqualTo(Integer value) {
+ addCriterion("groupon_id <=", value, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdIn(List values) {
+ addCriterion("groupon_id in", values, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdNotIn(List values) {
+ addCriterion("groupon_id not in", values, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdBetween(Integer value1, Integer value2) {
+ addCriterion("groupon_id between", value1, value2, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("groupon_id not between", value1, value2, "grouponId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdIsNull() {
+ addCriterion("rules_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdIsNotNull() {
+ addCriterion("rules_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdEqualTo(Integer value) {
+ addCriterion("rules_id =", value, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdNotEqualTo(Integer value) {
+ addCriterion("rules_id <>", value, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdGreaterThan(Integer value) {
+ addCriterion("rules_id >", value, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("rules_id >=", value, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdLessThan(Integer value) {
+ addCriterion("rules_id <", value, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdLessThanOrEqualTo(Integer value) {
+ addCriterion("rules_id <=", value, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdIn(List values) {
+ addCriterion("rules_id in", values, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdNotIn(List values) {
+ addCriterion("rules_id not in", values, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdBetween(Integer value1, Integer value2) {
+ addCriterion("rules_id between", value1, value2, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andRulesIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("rules_id not between", value1, value2, "rulesId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNull() {
+ addCriterion("user_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdEqualTo(Integer value) {
+ addCriterion("user_id =", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotEqualTo(Integer value) {
+ addCriterion("user_id <>", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThan(Integer value) {
+ addCriterion("user_id >", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("user_id >=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThan(Integer value) {
+ addCriterion("user_id <", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThanOrEqualTo(Integer value) {
+ addCriterion("user_id <=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdBetween(Integer value1, Integer value2) {
+ addCriterion("user_id between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeIsNull() {
+ addCriterion("user_type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeIsNotNull() {
+ addCriterion("user_type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeEqualTo(Boolean value) {
+ addCriterion("user_type =", value, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeNotEqualTo(Boolean value) {
+ addCriterion("user_type <>", value, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeGreaterThan(Boolean value) {
+ addCriterion("user_type >", value, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("user_type >=", value, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeLessThan(Boolean value) {
+ addCriterion("user_type <", value, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeLessThanOrEqualTo(Boolean value) {
+ addCriterion("user_type <=", value, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeIn(List values) {
+ addCriterion("user_type in", values, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeNotIn(List values) {
+ addCriterion("user_type not in", values, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeBetween(Boolean value1, Boolean value2) {
+ addCriterion("user_type between", value1, value2, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserTypeNotBetween(Boolean value1, Boolean value2) {
+ addCriterion("user_type not between", value1, value2, "userType");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIsNull() {
+ addCriterion("add_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIsNotNull() {
+ addCriterion("add_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeEqualTo(LocalDateTime value) {
+ addCriterion("add_time =", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("add_time <>", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThan(LocalDateTime value) {
+ addCriterion("add_time >", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time >=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThan(LocalDateTime value) {
+ addCriterion("add_time <", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time <=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIn(List values) {
+ addCriterion("add_time in", values, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotIn(List values) {
+ addCriterion("add_time not in", values, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time between", value1, value2, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time not between", value1, value2, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeIsNull() {
+ addCriterion("expire_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeIsNotNull() {
+ addCriterion("expire_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeEqualTo(LocalDateTime value) {
+ addCriterion("expire_time =", value, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("expire_time <>", value, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeGreaterThan(LocalDateTime value) {
+ addCriterion("expire_time >", value, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("expire_time >=", value, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeLessThan(LocalDateTime value) {
+ addCriterion("expire_time <", value, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("expire_time <=", value, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeIn(List values) {
+ addCriterion("expire_time in", values, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeNotIn(List values) {
+ addCriterion("expire_time not in", values, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("expire_time between", value1, value2, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpireTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("expire_time not between", value1, value2, "expireTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlIsNull() {
+ addCriterion("share_url is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlIsNotNull() {
+ addCriterion("share_url is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlEqualTo(String value) {
+ addCriterion("share_url =", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlNotEqualTo(String value) {
+ addCriterion("share_url <>", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlGreaterThan(String value) {
+ addCriterion("share_url >", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("share_url >=", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlLessThan(String value) {
+ addCriterion("share_url <", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlLessThanOrEqualTo(String value) {
+ addCriterion("share_url <=", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlLike(String value) {
+ addCriterion("share_url like", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlNotLike(String value) {
+ addCriterion("share_url not like", value, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlIn(List values) {
+ addCriterion("share_url in", values, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlNotIn(List values) {
+ addCriterion("share_url not in", values, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlBetween(String value1, String value2) {
+ addCriterion("share_url between", value1, value2, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andShareUrlNotBetween(String value1, String value2) {
+ addCriterion("share_url not between", value1, value2, "shareUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedIsNull() {
+ addCriterion("payed is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedIsNotNull() {
+ addCriterion("payed is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedEqualTo(Boolean value) {
+ addCriterion("payed =", value, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedNotEqualTo(Boolean value) {
+ addCriterion("payed <>", value, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedGreaterThan(Boolean value) {
+ addCriterion("payed >", value, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("payed >=", value, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedLessThan(Boolean value) {
+ addCriterion("payed <", value, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedLessThanOrEqualTo(Boolean value) {
+ addCriterion("payed <=", value, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedIn(List values) {
+ addCriterion("payed in", values, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedNotIn(List values) {
+ addCriterion("payed not in", values, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedBetween(Boolean value1, Boolean value2) {
+ addCriterion("payed between", value1, value2, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andPayedNotBetween(Boolean value1, Boolean value2) {
+ addCriterion("payed not between", value1, value2, "payed");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIsNull() {
+ addCriterion("deleted is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIsNotNull() {
+ addCriterion("deleted is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedEqualTo(Boolean value) {
+ addCriterion("deleted =", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotEqualTo(Boolean value) {
+ addCriterion("deleted <>", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThan(Boolean value) {
+ addCriterion("deleted >", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("deleted >=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThan(Boolean value) {
+ addCriterion("deleted <", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
+ addCriterion("deleted <=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIn(List values) {
+ addCriterion("deleted in", values, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotIn(List values) {
+ addCriterion("deleted not in", values, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
+ addCriterion("deleted between", value1, value2, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
+ addCriterion("deleted not between", value1, value2, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIsNull() {
+ addCriterion("version is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIsNotNull() {
+ addCriterion("version is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionEqualTo(Integer value) {
+ addCriterion("version =", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionNotEqualTo(Integer value) {
+ addCriterion("version <>", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionGreaterThan(Integer value) {
+ addCriterion("version >", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
+ addCriterion("version >=", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionLessThan(Integer value) {
+ addCriterion("version <", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionLessThanOrEqualTo(Integer value) {
+ addCriterion("version <=", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIn(List values) {
+ addCriterion("version in", values, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionNotIn(List values) {
+ addCriterion("version not in", values, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionBetween(Integer value1, Integer value2) {
+ addCriterion("version between", value1, value2, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionNotBetween(Integer value1, Integer value2) {
+ addCriterion("version not between", value1, value2, "version");
+ return (Criteria) this;
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated do_not_delete_during_merge
+ */
+ public static class Criteria extends GeneratedCriteria {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private LitemallGrouponExample example;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ protected Criteria(LitemallGrouponExample example) {
+ super();
+ this.example = example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public LitemallGrouponExample example() {
+ return this.example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
+ if (ifAdd) {
+ add.add(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andLogicalDeleted(boolean deleted) {
+ return deleted ? andDeletedEqualTo(LitemallGroupon.IS_DELETED) : andDeletedNotEqualTo(LitemallGroupon.IS_DELETED);
+ }
+
+ /**
+ * This interface was generated by MyBatis Generator.
+ * This interface corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public interface ICriteriaAdd {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ Criteria add(Criteria add);
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_groupon
+ *
+ * @mbg.generated
+ */
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRules.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRules.java
new file mode 100644
index 00000000..2bbca7b1
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRules.java
@@ -0,0 +1,550 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.Arrays;
+
+public class LitemallGrouponRules {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static final Boolean NOT_DELETED = false;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static final Boolean IS_DELETED = true;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.id
+ *
+ * @mbg.generated
+ */
+ private Integer id;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.goods_id
+ *
+ * @mbg.generated
+ */
+ private Integer goodsId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.goods_name
+ *
+ * @mbg.generated
+ */
+ private String goodsName;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.pic_url
+ *
+ * @mbg.generated
+ */
+ private String picUrl;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.discount
+ *
+ * @mbg.generated
+ */
+ private BigDecimal discount;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.discount_member
+ *
+ * @mbg.generated
+ */
+ private Integer discountMember;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.add_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime addTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.deleted
+ *
+ * @mbg.generated
+ */
+ private Boolean deleted;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_groupon_rules.version
+ *
+ * @mbg.generated
+ */
+ private Integer version;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.id
+ *
+ * @return the value of litemall_groupon_rules.id
+ *
+ * @mbg.generated
+ */
+ public Integer getId() {
+ return id;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.id
+ *
+ * @param id the value for litemall_groupon_rules.id
+ *
+ * @mbg.generated
+ */
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.goods_id
+ *
+ * @return the value of litemall_groupon_rules.goods_id
+ *
+ * @mbg.generated
+ */
+ public Integer getGoodsId() {
+ return goodsId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.goods_id
+ *
+ * @param goodsId the value for litemall_groupon_rules.goods_id
+ *
+ * @mbg.generated
+ */
+ public void setGoodsId(Integer goodsId) {
+ this.goodsId = goodsId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.goods_name
+ *
+ * @return the value of litemall_groupon_rules.goods_name
+ *
+ * @mbg.generated
+ */
+ public String getGoodsName() {
+ return goodsName;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.goods_name
+ *
+ * @param goodsName the value for litemall_groupon_rules.goods_name
+ *
+ * @mbg.generated
+ */
+ public void setGoodsName(String goodsName) {
+ this.goodsName = goodsName;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.pic_url
+ *
+ * @return the value of litemall_groupon_rules.pic_url
+ *
+ * @mbg.generated
+ */
+ public String getPicUrl() {
+ return picUrl;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.pic_url
+ *
+ * @param picUrl the value for litemall_groupon_rules.pic_url
+ *
+ * @mbg.generated
+ */
+ public void setPicUrl(String picUrl) {
+ this.picUrl = picUrl;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.discount
+ *
+ * @return the value of litemall_groupon_rules.discount
+ *
+ * @mbg.generated
+ */
+ public BigDecimal getDiscount() {
+ return discount;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.discount
+ *
+ * @param discount the value for litemall_groupon_rules.discount
+ *
+ * @mbg.generated
+ */
+ public void setDiscount(BigDecimal discount) {
+ this.discount = discount;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.discount_member
+ *
+ * @return the value of litemall_groupon_rules.discount_member
+ *
+ * @mbg.generated
+ */
+ public Integer getDiscountMember() {
+ return discountMember;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.discount_member
+ *
+ * @param discountMember the value for litemall_groupon_rules.discount_member
+ *
+ * @mbg.generated
+ */
+ public void setDiscountMember(Integer discountMember) {
+ this.discountMember = discountMember;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.add_time
+ *
+ * @return the value of litemall_groupon_rules.add_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getAddTime() {
+ return addTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.add_time
+ *
+ * @param addTime the value for litemall_groupon_rules.add_time
+ *
+ * @mbg.generated
+ */
+ public void setAddTime(LocalDateTime addTime) {
+ this.addTime = addTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.deleted
+ *
+ * @return the value of litemall_groupon_rules.deleted
+ *
+ * @mbg.generated
+ */
+ public Boolean getDeleted() {
+ return deleted;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.deleted
+ *
+ * @param deleted the value for litemall_groupon_rules.deleted
+ *
+ * @mbg.generated
+ */
+ public void setDeleted(Boolean deleted) {
+ this.deleted = deleted;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_groupon_rules.version
+ *
+ * @return the value of litemall_groupon_rules.version
+ *
+ * @mbg.generated
+ */
+ public Integer getVersion() {
+ return version;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_groupon_rules.version
+ *
+ * @param version the value for litemall_groupon_rules.version
+ *
+ * @mbg.generated
+ */
+ public void setVersion(Integer version) {
+ this.version = version;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", goodsId=").append(goodsId);
+ sb.append(", goodsName=").append(goodsName);
+ sb.append(", picUrl=").append(picUrl);
+ sb.append(", discount=").append(discount);
+ sb.append(", discountMember=").append(discountMember);
+ sb.append(", addTime=").append(addTime);
+ sb.append(", deleted=").append(deleted);
+ sb.append(", version=").append(version);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ @Override
+ public boolean equals(Object that) {
+ if (this == that) {
+ return true;
+ }
+ if (that == null) {
+ return false;
+ }
+ if (getClass() != that.getClass()) {
+ return false;
+ }
+ LitemallGrouponRules other = (LitemallGrouponRules) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
+ && (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
+ && (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))
+ && (this.getDiscount() == null ? other.getDiscount() == null : this.getDiscount().equals(other.getDiscount()))
+ && (this.getDiscountMember() == null ? other.getDiscountMember() == null : this.getDiscountMember().equals(other.getDiscountMember()))
+ && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
+ && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+ result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
+ result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
+ result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());
+ result = prime * result + ((getDiscount() == null) ? 0 : getDiscount().hashCode());
+ result = prime * result + ((getDiscountMember() == null) ? 0 : getDiscountMember().hashCode());
+ result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
+ result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
+ return result;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public void andLogicalDeleted(boolean deleted) {
+ setDeleted(deleted ? IS_DELETED : NOT_DELETED);
+ }
+
+ /**
+ * This enum was generated by MyBatis Generator.
+ * This enum corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public enum Column {
+ id("id", "id", "INTEGER"),
+ goodsId("goods_id", "goodsId", "INTEGER"),
+ goodsName("goods_name", "goodsName", "VARCHAR"),
+ picUrl("pic_url", "picUrl", "VARCHAR"),
+ discount("discount", "discount", "DECIMAL"),
+ discountMember("discount_member", "discountMember", "INTEGER"),
+ addTime("add_time", "addTime", "TIMESTAMP"),
+ deleted("deleted", "deleted", "BIT"),
+ version("version", "version", "INTEGER");
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private final String column;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private final String javaProperty;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private final String jdbcType;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String value() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String getValue() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String getJavaProperty() {
+ return this.javaProperty;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String getJdbcType() {
+ return this.jdbcType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ Column(String column, String javaProperty, String jdbcType) {
+ this.column = column;
+ this.javaProperty = javaProperty;
+ this.jdbcType = jdbcType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String desc() {
+ return this.column + " DESC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public String asc() {
+ return this.column + " ASC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public static Column[] excludes(Column ... excludes) {
+ ArrayList columns = new ArrayList<>(Arrays.asList(Column.values()));
+ if (excludes != null && excludes.length > 0) {
+ columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+ }
+ return columns.toArray(new Column[]{});
+ }
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRulesExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRulesExample.java
new file mode 100644
index 00000000..4843054f
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallGrouponRulesExample.java
@@ -0,0 +1,965 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+public class LitemallGrouponRulesExample {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ protected String orderByClause;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ protected boolean distinct;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ protected List oredCriteria;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public LitemallGrouponRulesExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public LitemallGrouponRulesExample orderBy(String orderByClause) {
+ this.setOrderByClause(orderByClause);
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public LitemallGrouponRulesExample orderBy(String ... orderByClauses) {
+ StringBuffer sb = new StringBuffer();
+ for (int i = 0; i < orderByClauses.length; i++) {
+ sb.append(orderByClauses[i]);
+ if (i < orderByClauses.length - 1) {
+ sb.append(" , ");
+ }
+ }
+ this.setOrderByClause(sb.toString());
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria(this);
+ return criteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Integer value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Integer value1, Integer value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdIsNull() {
+ addCriterion("goods_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdIsNotNull() {
+ addCriterion("goods_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdEqualTo(Integer value) {
+ addCriterion("goods_id =", value, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdNotEqualTo(Integer value) {
+ addCriterion("goods_id <>", value, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdGreaterThan(Integer value) {
+ addCriterion("goods_id >", value, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("goods_id >=", value, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdLessThan(Integer value) {
+ addCriterion("goods_id <", value, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
+ addCriterion("goods_id <=", value, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdIn(List values) {
+ addCriterion("goods_id in", values, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdNotIn(List values) {
+ addCriterion("goods_id not in", values, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
+ addCriterion("goods_id between", value1, value2, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("goods_id not between", value1, value2, "goodsId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameIsNull() {
+ addCriterion("goods_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameIsNotNull() {
+ addCriterion("goods_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameEqualTo(String value) {
+ addCriterion("goods_name =", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameNotEqualTo(String value) {
+ addCriterion("goods_name <>", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameGreaterThan(String value) {
+ addCriterion("goods_name >", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
+ addCriterion("goods_name >=", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameLessThan(String value) {
+ addCriterion("goods_name <", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameLessThanOrEqualTo(String value) {
+ addCriterion("goods_name <=", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameLike(String value) {
+ addCriterion("goods_name like", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameNotLike(String value) {
+ addCriterion("goods_name not like", value, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameIn(List values) {
+ addCriterion("goods_name in", values, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameNotIn(List values) {
+ addCriterion("goods_name not in", values, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameBetween(String value1, String value2) {
+ addCriterion("goods_name between", value1, value2, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andGoodsNameNotBetween(String value1, String value2) {
+ addCriterion("goods_name not between", value1, value2, "goodsName");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlIsNull() {
+ addCriterion("pic_url is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlIsNotNull() {
+ addCriterion("pic_url is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlEqualTo(String value) {
+ addCriterion("pic_url =", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlNotEqualTo(String value) {
+ addCriterion("pic_url <>", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlGreaterThan(String value) {
+ addCriterion("pic_url >", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("pic_url >=", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlLessThan(String value) {
+ addCriterion("pic_url <", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlLessThanOrEqualTo(String value) {
+ addCriterion("pic_url <=", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlLike(String value) {
+ addCriterion("pic_url like", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlNotLike(String value) {
+ addCriterion("pic_url not like", value, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlIn(List values) {
+ addCriterion("pic_url in", values, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlNotIn(List values) {
+ addCriterion("pic_url not in", values, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlBetween(String value1, String value2) {
+ addCriterion("pic_url between", value1, value2, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPicUrlNotBetween(String value1, String value2) {
+ addCriterion("pic_url not between", value1, value2, "picUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountIsNull() {
+ addCriterion("discount is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountIsNotNull() {
+ addCriterion("discount is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountEqualTo(BigDecimal value) {
+ addCriterion("discount =", value, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountNotEqualTo(BigDecimal value) {
+ addCriterion("discount <>", value, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountGreaterThan(BigDecimal value) {
+ addCriterion("discount >", value, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("discount >=", value, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountLessThan(BigDecimal value) {
+ addCriterion("discount <", value, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("discount <=", value, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountIn(List values) {
+ addCriterion("discount in", values, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountNotIn(List values) {
+ addCriterion("discount not in", values, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("discount between", value1, value2, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("discount not between", value1, value2, "discount");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberIsNull() {
+ addCriterion("discount_member is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberIsNotNull() {
+ addCriterion("discount_member is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberEqualTo(Integer value) {
+ addCriterion("discount_member =", value, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberNotEqualTo(Integer value) {
+ addCriterion("discount_member <>", value, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberGreaterThan(Integer value) {
+ addCriterion("discount_member >", value, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberGreaterThanOrEqualTo(Integer value) {
+ addCriterion("discount_member >=", value, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberLessThan(Integer value) {
+ addCriterion("discount_member <", value, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberLessThanOrEqualTo(Integer value) {
+ addCriterion("discount_member <=", value, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberIn(List values) {
+ addCriterion("discount_member in", values, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberNotIn(List values) {
+ addCriterion("discount_member not in", values, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberBetween(Integer value1, Integer value2) {
+ addCriterion("discount_member between", value1, value2, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andDiscountMemberNotBetween(Integer value1, Integer value2) {
+ addCriterion("discount_member not between", value1, value2, "discountMember");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIsNull() {
+ addCriterion("add_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIsNotNull() {
+ addCriterion("add_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeEqualTo(LocalDateTime value) {
+ addCriterion("add_time =", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("add_time <>", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThan(LocalDateTime value) {
+ addCriterion("add_time >", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time >=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThan(LocalDateTime value) {
+ addCriterion("add_time <", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time <=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeIn(List values) {
+ addCriterion("add_time in", values, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotIn(List values) {
+ addCriterion("add_time not in", values, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time between", value1, value2, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("add_time not between", value1, value2, "addTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIsNull() {
+ addCriterion("deleted is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIsNotNull() {
+ addCriterion("deleted is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedEqualTo(Boolean value) {
+ addCriterion("deleted =", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotEqualTo(Boolean value) {
+ addCriterion("deleted <>", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThan(Boolean value) {
+ addCriterion("deleted >", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("deleted >=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThan(Boolean value) {
+ addCriterion("deleted <", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
+ addCriterion("deleted <=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedIn(List values) {
+ addCriterion("deleted in", values, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotIn(List values) {
+ addCriterion("deleted not in", values, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
+ addCriterion("deleted between", value1, value2, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
+ addCriterion("deleted not between", value1, value2, "deleted");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIsNull() {
+ addCriterion("version is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIsNotNull() {
+ addCriterion("version is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionEqualTo(Integer value) {
+ addCriterion("version =", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionNotEqualTo(Integer value) {
+ addCriterion("version <>", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionGreaterThan(Integer value) {
+ addCriterion("version >", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
+ addCriterion("version >=", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionLessThan(Integer value) {
+ addCriterion("version <", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionLessThanOrEqualTo(Integer value) {
+ addCriterion("version <=", value, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionIn(List values) {
+ addCriterion("version in", values, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionNotIn(List values) {
+ addCriterion("version not in", values, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionBetween(Integer value1, Integer value2) {
+ addCriterion("version between", value1, value2, "version");
+ return (Criteria) this;
+ }
+
+ public Criteria andVersionNotBetween(Integer value1, Integer value2) {
+ addCriterion("version not between", value1, value2, "version");
+ return (Criteria) this;
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated do_not_delete_during_merge
+ */
+ public static class Criteria extends GeneratedCriteria {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ private LitemallGrouponRulesExample example;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ protected Criteria(LitemallGrouponRulesExample example) {
+ super();
+ this.example = example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public LitemallGrouponRulesExample example() {
+ return this.example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
+ if (ifAdd) {
+ add.add(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public Criteria andLogicalDeleted(boolean deleted) {
+ return deleted ? andDeletedEqualTo(LitemallGrouponRules.IS_DELETED) : andDeletedNotEqualTo(LitemallGrouponRules.IS_DELETED);
+ }
+
+ /**
+ * This interface was generated by MyBatis Generator.
+ * This interface corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ public interface ICriteriaAdd {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ * @project https://github.com/itfsw/mybatis-generator-plugin
+ */
+ Criteria add(Criteria add);
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_groupon_rules
+ *
+ * @mbg.generated
+ */
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java
index 67b9da0b..866cee3d 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrder.java
@@ -123,6 +123,15 @@ public class LitemallOrder {
*/
private BigDecimal integralPrice;
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_order.groupon_price
+ *
+ * @mbg.generated
+ */
+ private BigDecimal grouponPrice;
+
/**
*
* This field was generated by MyBatis Generator.
@@ -495,6 +504,30 @@ public class LitemallOrder {
this.integralPrice = integralPrice;
}
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_order.groupon_price
+ *
+ * @return the value of litemall_order.groupon_price
+ *
+ * @mbg.generated
+ */
+ public BigDecimal getGrouponPrice() {
+ return grouponPrice;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_order.groupon_price
+ *
+ * @param grouponPrice the value for litemall_order.groupon_price
+ *
+ * @mbg.generated
+ */
+ public void setGrouponPrice(BigDecimal grouponPrice) {
+ this.grouponPrice = grouponPrice;
+ }
+
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_order.order_price
@@ -806,6 +839,7 @@ public class LitemallOrder {
sb.append(", freightPrice=").append(freightPrice);
sb.append(", couponPrice=").append(couponPrice);
sb.append(", integralPrice=").append(integralPrice);
+ sb.append(", grouponPrice=").append(grouponPrice);
sb.append(", orderPrice=").append(orderPrice);
sb.append(", actualPrice=").append(actualPrice);
sb.append(", payId=").append(payId);
@@ -851,6 +885,7 @@ public class LitemallOrder {
&& (this.getFreightPrice() == null ? other.getFreightPrice() == null : this.getFreightPrice().equals(other.getFreightPrice()))
&& (this.getCouponPrice() == null ? other.getCouponPrice() == null : this.getCouponPrice().equals(other.getCouponPrice()))
&& (this.getIntegralPrice() == null ? other.getIntegralPrice() == null : this.getIntegralPrice().equals(other.getIntegralPrice()))
+ && (this.getGrouponPrice() == null ? other.getGrouponPrice() == null : this.getGrouponPrice().equals(other.getGrouponPrice()))
&& (this.getOrderPrice() == null ? other.getOrderPrice() == null : this.getOrderPrice().equals(other.getOrderPrice()))
&& (this.getActualPrice() == null ? other.getActualPrice() == null : this.getActualPrice().equals(other.getActualPrice()))
&& (this.getPayId() == null ? other.getPayId() == null : this.getPayId().equals(other.getPayId()))
@@ -886,6 +921,7 @@ public class LitemallOrder {
result = prime * result + ((getFreightPrice() == null) ? 0 : getFreightPrice().hashCode());
result = prime * result + ((getCouponPrice() == null) ? 0 : getCouponPrice().hashCode());
result = prime * result + ((getIntegralPrice() == null) ? 0 : getIntegralPrice().hashCode());
+ result = prime * result + ((getGrouponPrice() == null) ? 0 : getGrouponPrice().hashCode());
result = prime * result + ((getOrderPrice() == null) ? 0 : getOrderPrice().hashCode());
result = prime * result + ((getActualPrice() == null) ? 0 : getActualPrice().hashCode());
result = prime * result + ((getPayId() == null) ? 0 : getPayId().hashCode());
@@ -931,6 +967,7 @@ public class LitemallOrder {
freightPrice("freight_price", "freightPrice", "DECIMAL"),
couponPrice("coupon_price", "couponPrice", "DECIMAL"),
integralPrice("integral_price", "integralPrice", "DECIMAL"),
+ grouponPrice("groupon_price", "grouponPrice", "DECIMAL"),
orderPrice("order_price", "orderPrice", "DECIMAL"),
actualPrice("actual_price", "actualPrice", "DECIMAL"),
payId("pay_id", "payId", "VARCHAR"),
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java
index 546f2cf0..feb33e78 100644
--- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallOrderExample.java
@@ -927,6 +927,66 @@ public class LitemallOrderExample {
return (Criteria) this;
}
+ public Criteria andGrouponPriceIsNull() {
+ addCriterion("groupon_price is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceIsNotNull() {
+ addCriterion("groupon_price is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceEqualTo(BigDecimal value) {
+ addCriterion("groupon_price =", value, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceNotEqualTo(BigDecimal value) {
+ addCriterion("groupon_price <>", value, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceGreaterThan(BigDecimal value) {
+ addCriterion("groupon_price >", value, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceGreaterThanOrEqualTo(BigDecimal value) {
+ addCriterion("groupon_price >=", value, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceLessThan(BigDecimal value) {
+ addCriterion("groupon_price <", value, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceLessThanOrEqualTo(BigDecimal value) {
+ addCriterion("groupon_price <=", value, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceIn(List values) {
+ addCriterion("groupon_price in", values, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceNotIn(List values) {
+ addCriterion("groupon_price not in", values, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("groupon_price between", value1, value2, "grouponPrice");
+ return (Criteria) this;
+ }
+
+ public Criteria andGrouponPriceNotBetween(BigDecimal value1, BigDecimal value2) {
+ addCriterion("groupon_price not between", value1, value2, "grouponPrice");
+ return (Criteria) this;
+ }
+
public Criteria andOrderPriceIsNull() {
addCriterion("order_price is null");
return (Criteria) this;
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponRulesService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponRulesService.java
new file mode 100644
index 00000000..f520958c
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponRulesService.java
@@ -0,0 +1,35 @@
+package org.linlinjava.litemall.db.service;
+
+import org.linlinjava.litemall.db.dao.LitemallGrouponRulesMapper;
+import org.linlinjava.litemall.db.domain.LitemallGrouponRules;
+import org.linlinjava.litemall.db.domain.LitemallGrouponRulesExample;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Service
+public class LitemallGrouponRulesService {
+ @Resource
+ LitemallGrouponRulesMapper mapper;
+
+ public int createRules(LitemallGrouponRules rules) {
+ return mapper.insertSelective(rules);
+ }
+
+ public LitemallGrouponRules queryById(Integer id) {
+ return mapper.selectByPrimaryKey(id);
+ }
+
+ /**
+ * 查询某个商品关联的团购规则
+ *
+ * @param goodsId
+ * @return
+ */
+ public List queryByGoodsId(Integer goodsId) {
+ LitemallGrouponRulesExample example = new LitemallGrouponRulesExample();
+ example.or().andGoodsIdEqualTo(goodsId).andDeletedEqualTo(false);
+ return mapper.selectByExample(example);
+ }
+}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponService.java
new file mode 100644
index 00000000..75bd32a7
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallGrouponService.java
@@ -0,0 +1,81 @@
+package org.linlinjava.litemall.db.service;
+
+import org.linlinjava.litemall.db.dao.LitemallGrouponMapper;
+import org.linlinjava.litemall.db.domain.LitemallGroupon;
+import org.linlinjava.litemall.db.domain.LitemallGrouponExample;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Service
+public class LitemallGrouponService {
+ @Resource
+ LitemallGrouponMapper mapper;
+
+ /**
+ * 查询用户所有参与的团购
+ *
+ * @param userId
+ * @return
+ */
+ public List queryByUserId(Integer userId) {
+ LitemallGrouponExample example = new LitemallGrouponExample();
+ example.or().andUserIdEqualTo(userId).andDeletedEqualTo(false);
+ return mapper.selectByExample(example);
+ }
+
+ public LitemallGroupon queryByOrderId(Integer orderId) {
+ LitemallGrouponExample example = new LitemallGrouponExample();
+ example.or().andOrderIdEqualTo(orderId).andDeletedEqualTo(false);
+ return mapper.selectOneByExample(example);
+ }
+
+ /**
+ * 根据ID查询记录
+ *
+ * @param id
+ * @return
+ */
+ public LitemallGroupon queryById(Integer id) {
+ return mapper.selectByPrimaryKey(id);
+ }
+
+ /**
+ * 返回某个发起的团购参与人数
+ *
+ * @param grouponId
+ * @return
+ */
+ public int countGroupon(Integer grouponId) {
+ LitemallGrouponExample example = new LitemallGrouponExample();
+ example.or().andGrouponIdEqualTo(grouponId).andDeletedEqualTo(false);
+ return (int) mapper.countByExample(example);
+ }
+
+ /**
+ * 返回某个团购活动参与人数
+ *
+ * @param rulesId
+ * @return
+ */
+ public int countRules(Integer rulesId) {
+ LitemallGrouponExample example = new LitemallGrouponExample();
+ example.or().andRulesIdEqualTo(rulesId).andDeletedEqualTo(false);
+ return (int) mapper.countByExample(example);
+ }
+
+ public void update(LitemallGroupon groupon) {
+ mapper.updateByPrimaryKey(groupon);
+ }
+
+ /**
+ * 创建或参与一个团购
+ *
+ * @param groupon
+ * @return
+ */
+ public int createGroupon(LitemallGroupon groupon) {
+ return mapper.insertSelective(groupon);
+ }
+}
diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.xml
new file mode 100644
index 00000000..b6672582
--- /dev/null
+++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGrouponMapper.xml
@@ -0,0 +1,519 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+ id, order_id, groupon_id, rules_id, user_id, user_type, add_time, expire_time, share_url,
+ payed, deleted, version
+
+
+
+
+
+
+
+
+ delete from litemall_groupon
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ delete from litemall_groupon
+
+
+
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_groupon (order_id, groupon_id, rules_id,
+ user_id, user_type, add_time,
+ expire_time, share_url, payed,
+ deleted, version)
+ values (#{orderId,jdbcType=INTEGER}, #{grouponId,jdbcType=INTEGER}, #{rulesId,jdbcType=INTEGER},
+ #{userId,jdbcType=INTEGER}, #{userType,jdbcType=BIT}, #{addTime,jdbcType=TIMESTAMP},
+ #{expireTime,jdbcType=TIMESTAMP}, #{shareUrl,jdbcType=VARCHAR}, #{payed,jdbcType=BIT},
+ #{deleted,jdbcType=BIT}, #{version,jdbcType=INTEGER})
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_groupon
+
+
+ order_id,
+
+
+ groupon_id,
+
+
+ rules_id,
+
+
+ user_id,
+
+
+ user_type,
+
+
+ add_time,
+
+
+ expire_time,
+
+
+ share_url,
+
+
+ payed,
+
+
+ deleted,
+
+
+ version,
+
+
+
+
+ #{orderId,jdbcType=INTEGER},
+
+
+ #{grouponId,jdbcType=INTEGER},
+
+
+ #{rulesId,jdbcType=INTEGER},
+
+
+ #{userId,jdbcType=INTEGER},
+
+
+ #{userType,jdbcType=BIT},
+
+
+ #{addTime,jdbcType=TIMESTAMP},
+
+
+ #{expireTime,jdbcType=TIMESTAMP},
+
+
+ #{shareUrl,jdbcType=VARCHAR},
+
+
+ #{payed,jdbcType=BIT},
+
+
+ #{deleted,jdbcType=BIT},
+
+
+ #{version,jdbcType=INTEGER},
+
+
+
+
+
+
+ update litemall_groupon
+
+
+ id = #{record.id,jdbcType=INTEGER},
+
+
+ order_id = #{record.orderId,jdbcType=INTEGER},
+
+
+ groupon_id = #{record.grouponId,jdbcType=INTEGER},
+
+
+ rules_id = #{record.rulesId,jdbcType=INTEGER},
+
+
+ user_id = #{record.userId,jdbcType=INTEGER},
+
+
+ user_type = #{record.userType,jdbcType=BIT},
+
+
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+
+
+ expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
+
+
+ share_url = #{record.shareUrl,jdbcType=VARCHAR},
+
+
+ payed = #{record.payed,jdbcType=BIT},
+
+
+ deleted = #{record.deleted,jdbcType=BIT},
+
+
+ version = #{record.version,jdbcType=INTEGER},
+
+
+
+
+
+
+
+
+ update litemall_groupon
+ set id = #{record.id,jdbcType=INTEGER},
+ order_id = #{record.orderId,jdbcType=INTEGER},
+ groupon_id = #{record.grouponId,jdbcType=INTEGER},
+ rules_id = #{record.rulesId,jdbcType=INTEGER},
+ user_id = #{record.userId,jdbcType=INTEGER},
+ user_type = #{record.userType,jdbcType=BIT},
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+ expire_time = #{record.expireTime,jdbcType=TIMESTAMP},
+ share_url = #{record.shareUrl,jdbcType=VARCHAR},
+ payed = #{record.payed,jdbcType=BIT},
+ deleted = #{record.deleted,jdbcType=BIT},
+ version = #{record.version,jdbcType=INTEGER}
+
+
+
+
+
+
+ update litemall_groupon
+
+
+ order_id = #{orderId,jdbcType=INTEGER},
+
+
+ groupon_id = #{grouponId,jdbcType=INTEGER},
+
+
+ rules_id = #{rulesId,jdbcType=INTEGER},
+
+
+ user_id = #{userId,jdbcType=INTEGER},
+
+
+ user_type = #{userType,jdbcType=BIT},
+
+
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+
+
+ expire_time = #{expireTime,jdbcType=TIMESTAMP},
+
+
+ share_url = #{shareUrl,jdbcType=VARCHAR},
+
+
+ payed = #{payed,jdbcType=BIT},
+
+
+ deleted = #{deleted,jdbcType=BIT},
+
+
+ version = #{version,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update litemall_groupon
+ set order_id = #{orderId,jdbcType=INTEGER},
+ groupon_id = #{grouponId,jdbcType=INTEGER},
+ rules_id = #{rulesId,jdbcType=INTEGER},
+ user_id = #{userId,jdbcType=INTEGER},
+ user_type = #{userType,jdbcType=BIT},
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+ expire_time = #{expireTime,jdbcType=TIMESTAMP},
+ share_url = #{shareUrl,jdbcType=VARCHAR},
+ payed = #{payed,jdbcType=BIT},
+ deleted = #{deleted,jdbcType=BIT},
+ version = #{version,jdbcType=INTEGER}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+
+
+ update litemall_groupon set deleted = 1
+
+
+
+
+
+
+ update litemall_groupon set deleted = 1
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.xml
new file mode 100644
index 00000000..60615919
--- /dev/null
+++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallGrouponRulesMapper.xml
@@ -0,0 +1,472 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+ id, goods_id, goods_name, pic_url, discount, discount_member, add_time, deleted,
+ version
+
+
+
+
+
+
+
+
+ delete from litemall_groupon_rules
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ delete from litemall_groupon_rules
+
+
+
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_groupon_rules (goods_id, goods_name, pic_url,
+ discount, discount_member, add_time,
+ deleted, version)
+ values (#{goodsId,jdbcType=INTEGER}, #{goodsName,jdbcType=VARCHAR}, #{picUrl,jdbcType=VARCHAR},
+ #{discount,jdbcType=DECIMAL}, #{discountMember,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP},
+ #{deleted,jdbcType=BIT}, #{version,jdbcType=INTEGER})
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_groupon_rules
+
+
+ goods_id,
+
+
+ goods_name,
+
+
+ pic_url,
+
+
+ discount,
+
+
+ discount_member,
+
+
+ add_time,
+
+
+ deleted,
+
+
+ version,
+
+
+
+
+ #{goodsId,jdbcType=INTEGER},
+
+
+ #{goodsName,jdbcType=VARCHAR},
+
+
+ #{picUrl,jdbcType=VARCHAR},
+
+
+ #{discount,jdbcType=DECIMAL},
+
+
+ #{discountMember,jdbcType=INTEGER},
+
+
+ #{addTime,jdbcType=TIMESTAMP},
+
+
+ #{deleted,jdbcType=BIT},
+
+
+ #{version,jdbcType=INTEGER},
+
+
+
+
+
+
+ update litemall_groupon_rules
+
+
+ id = #{record.id,jdbcType=INTEGER},
+
+
+ goods_id = #{record.goodsId,jdbcType=INTEGER},
+
+
+ goods_name = #{record.goodsName,jdbcType=VARCHAR},
+
+
+ pic_url = #{record.picUrl,jdbcType=VARCHAR},
+
+
+ discount = #{record.discount,jdbcType=DECIMAL},
+
+
+ discount_member = #{record.discountMember,jdbcType=INTEGER},
+
+
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{record.deleted,jdbcType=BIT},
+
+
+ version = #{record.version,jdbcType=INTEGER},
+
+
+
+
+
+
+
+
+ update litemall_groupon_rules
+ set id = #{record.id,jdbcType=INTEGER},
+ goods_id = #{record.goodsId,jdbcType=INTEGER},
+ goods_name = #{record.goodsName,jdbcType=VARCHAR},
+ pic_url = #{record.picUrl,jdbcType=VARCHAR},
+ discount = #{record.discount,jdbcType=DECIMAL},
+ discount_member = #{record.discountMember,jdbcType=INTEGER},
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+ deleted = #{record.deleted,jdbcType=BIT},
+ version = #{record.version,jdbcType=INTEGER}
+
+
+
+
+
+
+ update litemall_groupon_rules
+
+
+ goods_id = #{goodsId,jdbcType=INTEGER},
+
+
+ goods_name = #{goodsName,jdbcType=VARCHAR},
+
+
+ pic_url = #{picUrl,jdbcType=VARCHAR},
+
+
+ discount = #{discount,jdbcType=DECIMAL},
+
+
+ discount_member = #{discountMember,jdbcType=INTEGER},
+
+
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{deleted,jdbcType=BIT},
+
+
+ version = #{version,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update litemall_groupon_rules
+ set goods_id = #{goodsId,jdbcType=INTEGER},
+ goods_name = #{goodsName,jdbcType=VARCHAR},
+ pic_url = #{picUrl,jdbcType=VARCHAR},
+ discount = #{discount,jdbcType=DECIMAL},
+ discount_member = #{discountMember,jdbcType=INTEGER},
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+ deleted = #{deleted,jdbcType=BIT},
+ version = #{version,jdbcType=INTEGER}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+
+
+ update litemall_groupon_rules set deleted = 1
+
+
+
+
+
+
+ update litemall_groupon_rules set deleted = 1
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml
index d8c5748f..017a4ade 100644
--- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml
+++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallOrderMapper.xml
@@ -17,6 +17,7 @@
+
@@ -102,8 +103,8 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, user_id, order_sn, order_status, consignee, mobile, address, goods_price, freight_price,
- coupon_price, integral_price, order_price, actual_price, pay_id, pay_time, ship_sn,
- ship_channel, ship_time, confirm_time, end_time, add_time, deleted, version
+ coupon_price, integral_price, groupon_price, order_price, actual_price, pay_id, pay_time,
+ ship_sn, ship_channel, ship_time, confirm_time, end_time, add_time, deleted, version