diff --git a/litemall-db/mybatis-generator/generatorConfig.xml b/litemall-db/mybatis-generator/generatorConfig.xml
index b68dca24..617d63f5 100644
--- a/litemall-db/mybatis-generator/generatorConfig.xml
+++ b/litemall-db/mybatis-generator/generatorConfig.xml
@@ -173,5 +173,11 @@
+
+
\ No newline at end of file
diff --git a/litemall-db/sql/litemall_table.sql b/litemall-db/sql/litemall_table.sql
index 9ad752ac..46b58592 100644
--- a/litemall-db/sql/litemall_table.sql
+++ b/litemall-db/sql/litemall_table.sql
@@ -512,7 +512,46 @@ CREATE TABLE `litemall_log` (
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='操作日志表';
+) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='操作日志表';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `litemall_notice`
+--
+
+DROP TABLE IF EXISTS `litemall_notice`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `litemall_notice` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `title` varchar(63) DEFAULT NULL COMMENT '通知标题',
+ `content` varchar(511) DEFAULT NULL COMMENT '通知内容',
+ `admin_id` int(11) DEFAULT '0' COMMENT '创建通知的管理员ID,如果是系统内置通知则是0.',
+ `add_time` datetime DEFAULT NULL COMMENT '创建时间',
+ `update_time` datetime DEFAULT NULL COMMENT '更新时间',
+ `deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='通知表';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `litemall_notice_admin`
+--
+
+DROP TABLE IF EXISTS `litemall_notice_admin`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `litemall_notice_admin` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `notice_id` int(11) DEFAULT NULL COMMENT '通知ID',
+ `notice_title` varchar(63) DEFAULT NULL COMMENT '通知标题',
+ `admin_id` int(11) DEFAULT NULL COMMENT '接收通知的管理员ID',
+ `read_time` datetime DEFAULT NULL COMMENT '阅读时间,如果是NULL则是未读状态',
+ `add_time` datetime DEFAULT NULL COMMENT '创建时间',
+ `update_time` datetime DEFAULT NULL COMMENT '更新时间',
+ `deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='通知管理员表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallNoticeAdminMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallNoticeAdminMapper.java
new file mode 100644
index 00000000..0005178d
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallNoticeAdminMapper.java
@@ -0,0 +1,152 @@
+package org.linlinjava.litemall.db.dao;
+
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+import org.linlinjava.litemall.db.domain.LitemallNoticeAdmin;
+import org.linlinjava.litemall.db.domain.LitemallNoticeAdminExample;
+
+public interface LitemallNoticeAdminMapper {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ long countByExample(LitemallNoticeAdminExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int deleteByExample(LitemallNoticeAdminExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int deleteByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int insert(LitemallNoticeAdmin record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int insertSelective(LitemallNoticeAdmin record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ LitemallNoticeAdmin selectOneByExample(LitemallNoticeAdminExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ LitemallNoticeAdmin selectOneByExampleSelective(@Param("example") LitemallNoticeAdminExample example, @Param("selective") LitemallNoticeAdmin.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ List selectByExampleSelective(@Param("example") LitemallNoticeAdminExample example, @Param("selective") LitemallNoticeAdmin.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ List selectByExample(LitemallNoticeAdminExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ LitemallNoticeAdmin selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallNoticeAdmin.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ LitemallNoticeAdmin selectByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ LitemallNoticeAdmin selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int updateByExampleSelective(@Param("record") LitemallNoticeAdmin record, @Param("example") LitemallNoticeAdminExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int updateByExample(@Param("record") LitemallNoticeAdmin record, @Param("example") LitemallNoticeAdminExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKeySelective(LitemallNoticeAdmin record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKey(LitemallNoticeAdmin record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int logicalDeleteByExample(@Param("example") LitemallNoticeAdminExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ int logicalDeleteByPrimaryKey(Integer id);
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallNoticeMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallNoticeMapper.java
new file mode 100644
index 00000000..ba16677b
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallNoticeMapper.java
@@ -0,0 +1,152 @@
+package org.linlinjava.litemall.db.dao;
+
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+import org.linlinjava.litemall.db.domain.LitemallNotice;
+import org.linlinjava.litemall.db.domain.LitemallNoticeExample;
+
+public interface LitemallNoticeMapper {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ long countByExample(LitemallNoticeExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int deleteByExample(LitemallNoticeExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int deleteByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int insert(LitemallNotice record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int insertSelective(LitemallNotice record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ LitemallNotice selectOneByExample(LitemallNoticeExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ LitemallNotice selectOneByExampleSelective(@Param("example") LitemallNoticeExample example, @Param("selective") LitemallNotice.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ List selectByExampleSelective(@Param("example") LitemallNoticeExample example, @Param("selective") LitemallNotice.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ List selectByExample(LitemallNoticeExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ LitemallNotice selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallNotice.Column ... selective);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ LitemallNotice selectByPrimaryKey(Integer id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ LitemallNotice selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int updateByExampleSelective(@Param("record") LitemallNotice record, @Param("example") LitemallNoticeExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int updateByExample(@Param("record") LitemallNotice record, @Param("example") LitemallNoticeExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKeySelective(LitemallNotice record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int updateByPrimaryKey(LitemallNotice record);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int logicalDeleteByExample(@Param("example") LitemallNoticeExample example);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ int logicalDeleteByPrimaryKey(Integer id);
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNotice.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNotice.java
new file mode 100644
index 00000000..ea2a383e
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNotice.java
@@ -0,0 +1,579 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.Arrays;
+
+public class LitemallNotice {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public static final Boolean IS_DELETED = Deleted.IS_DELETED.value();
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value();
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice.id
+ *
+ * @mbg.generated
+ */
+ private Integer id;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice.title
+ *
+ * @mbg.generated
+ */
+ private String title;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice.content
+ *
+ * @mbg.generated
+ */
+ private String content;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice.admin_id
+ *
+ * @mbg.generated
+ */
+ private Integer adminId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice.add_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime addTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice.deleted
+ *
+ * @mbg.generated
+ */
+ private Boolean deleted;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice.id
+ *
+ * @return the value of litemall_notice.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_notice.id
+ *
+ * @param id the value for litemall_notice.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_notice.title
+ *
+ * @return the value of litemall_notice.title
+ *
+ * @mbg.generated
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice.title
+ *
+ * @param title the value for litemall_notice.title
+ *
+ * @mbg.generated
+ */
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice.content
+ *
+ * @return the value of litemall_notice.content
+ *
+ * @mbg.generated
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice.content
+ *
+ * @param content the value for litemall_notice.content
+ *
+ * @mbg.generated
+ */
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice.admin_id
+ *
+ * @return the value of litemall_notice.admin_id
+ *
+ * @mbg.generated
+ */
+ public Integer getAdminId() {
+ return adminId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice.admin_id
+ *
+ * @param adminId the value for litemall_notice.admin_id
+ *
+ * @mbg.generated
+ */
+ public void setAdminId(Integer adminId) {
+ this.adminId = adminId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice.add_time
+ *
+ * @return the value of litemall_notice.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_notice.add_time
+ *
+ * @param addTime the value for litemall_notice.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_notice.update_time
+ *
+ * @return the value of litemall_notice.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice.update_time
+ *
+ * @param updateTime the value for litemall_notice.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public void andLogicalDeleted(boolean deleted) {
+ setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice.deleted
+ *
+ * @return the value of litemall_notice.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_notice.deleted
+ *
+ * @param deleted the value for litemall_notice.deleted
+ *
+ * @mbg.generated
+ */
+ public void setDeleted(Boolean deleted) {
+ this.deleted = deleted;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", IS_DELETED=").append(IS_DELETED);
+ sb.append(", NOT_DELETED=").append(NOT_DELETED);
+ sb.append(", id=").append(id);
+ sb.append(", title=").append(title);
+ sb.append(", content=").append(content);
+ sb.append(", adminId=").append(adminId);
+ sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
+ sb.append(", deleted=").append(deleted);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ @Override
+ public boolean equals(Object that) {
+ if (this == that) {
+ return true;
+ }
+ if (that == null) {
+ return false;
+ }
+ if (getClass() != that.getClass()) {
+ return false;
+ }
+ LitemallNotice other = (LitemallNotice) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
+ && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
+ && (this.getAdminId() == null ? other.getAdminId() == null : this.getAdminId().equals(other.getAdminId()))
+ && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+ result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
+ result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
+ result = prime * result + ((getAdminId() == null) ? 0 : getAdminId().hashCode());
+ result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
+ result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
+ return result;
+ }
+
+ /**
+ * This enum was generated by MyBatis Generator.
+ * This enum corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public enum Deleted {
+ NOT_DELETED(new Boolean("0"), "未删除"),
+ IS_DELETED(new Boolean("1"), "已删除");
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private final Boolean value;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private final String name;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ Deleted(Boolean value, String name) {
+ this.value = value;
+ this.name = name;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Boolean getValue() {
+ return this.value;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Boolean value() {
+ return this.value;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String getName() {
+ return this.name;
+ }
+ }
+
+ /**
+ * This enum was generated by MyBatis Generator.
+ * This enum corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public enum Column {
+ id("id", "id", "INTEGER", false),
+ title("title", "title", "VARCHAR", false),
+ content("content", "content", "VARCHAR", false),
+ adminId("admin_id", "adminId", "INTEGER", false),
+ addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private static final String BEGINNING_DELIMITER = "`";
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private static final String ENDING_DELIMITER = "`";
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private final String column;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private final boolean isColumnNameDelimited;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private final String javaProperty;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ private final String jdbcType;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String value() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String getValue() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String getJavaProperty() {
+ return this.javaProperty;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String getJdbcType() {
+ return this.jdbcType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+ this.column = column;
+ this.javaProperty = javaProperty;
+ this.jdbcType = jdbcType;
+ this.isColumnNameDelimited = isColumnNameDelimited;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String desc() {
+ return this.getEscapedColumnName() + " DESC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String asc() {
+ return this.getEscapedColumnName() + " ASC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ 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[]{});
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String getEscapedColumnName() {
+ if (this.isColumnNameDelimited) {
+ return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+ } else {
+ return this.column;
+ }
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public String getAliasedEscapedColumnName() {
+ return this.getEscapedColumnName();
+ }
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeAdmin.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeAdmin.java
new file mode 100644
index 00000000..75ec721f
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeAdmin.java
@@ -0,0 +1,616 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.Arrays;
+
+public class LitemallNoticeAdmin {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public static final Boolean IS_DELETED = Deleted.IS_DELETED.value();
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value();
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.id
+ *
+ * @mbg.generated
+ */
+ private Integer id;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.notice_id
+ *
+ * @mbg.generated
+ */
+ private Integer noticeId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.notice_title
+ *
+ * @mbg.generated
+ */
+ private String noticeTitle;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.admin_id
+ *
+ * @mbg.generated
+ */
+ private Integer adminId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.read_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime readTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.add_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime addTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.update_time
+ *
+ * @mbg.generated
+ */
+ private LocalDateTime updateTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column litemall_notice_admin.deleted
+ *
+ * @mbg.generated
+ */
+ private Boolean deleted;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice_admin.id
+ *
+ * @return the value of litemall_notice_admin.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_notice_admin.id
+ *
+ * @param id the value for litemall_notice_admin.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_notice_admin.notice_id
+ *
+ * @return the value of litemall_notice_admin.notice_id
+ *
+ * @mbg.generated
+ */
+ public Integer getNoticeId() {
+ return noticeId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice_admin.notice_id
+ *
+ * @param noticeId the value for litemall_notice_admin.notice_id
+ *
+ * @mbg.generated
+ */
+ public void setNoticeId(Integer noticeId) {
+ this.noticeId = noticeId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice_admin.notice_title
+ *
+ * @return the value of litemall_notice_admin.notice_title
+ *
+ * @mbg.generated
+ */
+ public String getNoticeTitle() {
+ return noticeTitle;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice_admin.notice_title
+ *
+ * @param noticeTitle the value for litemall_notice_admin.notice_title
+ *
+ * @mbg.generated
+ */
+ public void setNoticeTitle(String noticeTitle) {
+ this.noticeTitle = noticeTitle;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice_admin.admin_id
+ *
+ * @return the value of litemall_notice_admin.admin_id
+ *
+ * @mbg.generated
+ */
+ public Integer getAdminId() {
+ return adminId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice_admin.admin_id
+ *
+ * @param adminId the value for litemall_notice_admin.admin_id
+ *
+ * @mbg.generated
+ */
+ public void setAdminId(Integer adminId) {
+ this.adminId = adminId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice_admin.read_time
+ *
+ * @return the value of litemall_notice_admin.read_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getReadTime() {
+ return readTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice_admin.read_time
+ *
+ * @param readTime the value for litemall_notice_admin.read_time
+ *
+ * @mbg.generated
+ */
+ public void setReadTime(LocalDateTime readTime) {
+ this.readTime = readTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice_admin.add_time
+ *
+ * @return the value of litemall_notice_admin.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_notice_admin.add_time
+ *
+ * @param addTime the value for litemall_notice_admin.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_notice_admin.update_time
+ *
+ * @return the value of litemall_notice_admin.update_time
+ *
+ * @mbg.generated
+ */
+ public LocalDateTime getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column litemall_notice_admin.update_time
+ *
+ * @param updateTime the value for litemall_notice_admin.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(LocalDateTime updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public void andLogicalDeleted(boolean deleted) {
+ setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column litemall_notice_admin.deleted
+ *
+ * @return the value of litemall_notice_admin.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_notice_admin.deleted
+ *
+ * @param deleted the value for litemall_notice_admin.deleted
+ *
+ * @mbg.generated
+ */
+ public void setDeleted(Boolean deleted) {
+ this.deleted = deleted;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", IS_DELETED=").append(IS_DELETED);
+ sb.append(", NOT_DELETED=").append(NOT_DELETED);
+ sb.append(", id=").append(id);
+ sb.append(", noticeId=").append(noticeId);
+ sb.append(", noticeTitle=").append(noticeTitle);
+ sb.append(", adminId=").append(adminId);
+ sb.append(", readTime=").append(readTime);
+ sb.append(", addTime=").append(addTime);
+ sb.append(", updateTime=").append(updateTime);
+ sb.append(", deleted=").append(deleted);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ @Override
+ public boolean equals(Object that) {
+ if (this == that) {
+ return true;
+ }
+ if (that == null) {
+ return false;
+ }
+ if (getClass() != that.getClass()) {
+ return false;
+ }
+ LitemallNoticeAdmin other = (LitemallNoticeAdmin) that;
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+ && (this.getNoticeId() == null ? other.getNoticeId() == null : this.getNoticeId().equals(other.getNoticeId()))
+ && (this.getNoticeTitle() == null ? other.getNoticeTitle() == null : this.getNoticeTitle().equals(other.getNoticeTitle()))
+ && (this.getAdminId() == null ? other.getAdminId() == null : this.getAdminId().equals(other.getAdminId()))
+ && (this.getReadTime() == null ? other.getReadTime() == null : this.getReadTime().equals(other.getReadTime()))
+ && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
+ && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+ result = prime * result + ((getNoticeId() == null) ? 0 : getNoticeId().hashCode());
+ result = prime * result + ((getNoticeTitle() == null) ? 0 : getNoticeTitle().hashCode());
+ result = prime * result + ((getAdminId() == null) ? 0 : getAdminId().hashCode());
+ result = prime * result + ((getReadTime() == null) ? 0 : getReadTime().hashCode());
+ result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
+ result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
+ return result;
+ }
+
+ /**
+ * This enum was generated by MyBatis Generator.
+ * This enum corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public enum Deleted {
+ NOT_DELETED(new Boolean("0"), "未删除"),
+ IS_DELETED(new Boolean("1"), "已删除");
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private final Boolean value;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private final String name;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ Deleted(Boolean value, String name) {
+ this.value = value;
+ this.name = name;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Boolean getValue() {
+ return this.value;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Boolean value() {
+ return this.value;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String getName() {
+ return this.name;
+ }
+ }
+
+ /**
+ * This enum was generated by MyBatis Generator.
+ * This enum corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public enum Column {
+ id("id", "id", "INTEGER", false),
+ noticeId("notice_id", "noticeId", "INTEGER", false),
+ noticeTitle("notice_title", "noticeTitle", "VARCHAR", false),
+ adminId("admin_id", "adminId", "INTEGER", false),
+ readTime("read_time", "readTime", "TIMESTAMP", false),
+ addTime("add_time", "addTime", "TIMESTAMP", false),
+ updateTime("update_time", "updateTime", "TIMESTAMP", false),
+ deleted("deleted", "deleted", "BIT", false);
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private static final String BEGINNING_DELIMITER = "`";
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private static final String ENDING_DELIMITER = "`";
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private final String column;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private final boolean isColumnNameDelimited;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private final String javaProperty;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ private final String jdbcType;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String value() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String getValue() {
+ return this.column;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String getJavaProperty() {
+ return this.javaProperty;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String getJdbcType() {
+ return this.jdbcType;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+ this.column = column;
+ this.javaProperty = javaProperty;
+ this.jdbcType = jdbcType;
+ this.isColumnNameDelimited = isColumnNameDelimited;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String desc() {
+ return this.getEscapedColumnName() + " DESC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String asc() {
+ return this.getEscapedColumnName() + " ASC";
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ 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[]{});
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String getEscapedColumnName() {
+ if (this.isColumnNameDelimited) {
+ return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+ } else {
+ return this.column;
+ }
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String getAliasedEscapedColumnName() {
+ return this.getEscapedColumnName();
+ }
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeAdminExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeAdminExample.java
new file mode 100644
index 00000000..c3b233d0
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeAdminExample.java
@@ -0,0 +1,1496 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+public class LitemallNoticeAdminExample {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ protected String orderByClause;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ protected boolean distinct;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ protected List oredCriteria;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeAdminExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @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_notice_admin
+ *
+ * @mbg.generated
+ */
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @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_notice_admin
+ *
+ * @mbg.generated
+ */
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @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_notice_admin
+ *
+ * @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_notice_admin
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeAdminExample orderBy(String orderByClause) {
+ this.setOrderByClause(orderByClause);
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeAdminExample 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_notice_admin
+ *
+ * @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_notice_admin
+ *
+ * @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_notice_admin
+ *
+ * @mbg.generated
+ */
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ return example.createCriteria();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeAdminExample when(boolean condition, IExampleWhen then) {
+ if (condition) {
+ then.example(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeAdminExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+ if (condition) {
+ then.example(this);
+ } else {
+ otherwise.example(this);
+ }
+ return this;
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_notice_admin
+ *
+ * @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;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
+ 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 andNoticeIdIsNull() {
+ addCriterion("notice_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdIsNotNull() {
+ addCriterion("notice_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdEqualTo(Integer value) {
+ addCriterion("notice_id =", value, "noticeId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeIdEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_id = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdNotEqualTo(Integer value) {
+ addCriterion("notice_id <>", value, "noticeId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeIdNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_id <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdGreaterThan(Integer value) {
+ addCriterion("notice_id >", value, "noticeId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeIdGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_id > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("notice_id >=", value, "noticeId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeIdGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_id >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdLessThan(Integer value) {
+ addCriterion("notice_id <", value, "noticeId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeIdLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_id < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdLessThanOrEqualTo(Integer value) {
+ addCriterion("notice_id <=", value, "noticeId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeIdLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_id <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdIn(List values) {
+ addCriterion("notice_id in", values, "noticeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdNotIn(List values) {
+ addCriterion("notice_id not in", values, "noticeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdBetween(Integer value1, Integer value2) {
+ addCriterion("notice_id between", value1, value2, "noticeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("notice_id not between", value1, value2, "noticeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleIsNull() {
+ addCriterion("notice_title is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleIsNotNull() {
+ addCriterion("notice_title is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleEqualTo(String value) {
+ addCriterion("notice_title =", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeTitleEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_title = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleNotEqualTo(String value) {
+ addCriterion("notice_title <>", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeTitleNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_title <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleGreaterThan(String value) {
+ addCriterion("notice_title >", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeTitleGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_title > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleGreaterThanOrEqualTo(String value) {
+ addCriterion("notice_title >=", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeTitleGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_title >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleLessThan(String value) {
+ addCriterion("notice_title <", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeTitleLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_title < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleLessThanOrEqualTo(String value) {
+ addCriterion("notice_title <=", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andNoticeTitleLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("notice_title <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleLike(String value) {
+ addCriterion("notice_title like", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleNotLike(String value) {
+ addCriterion("notice_title not like", value, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleIn(List values) {
+ addCriterion("notice_title in", values, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleNotIn(List values) {
+ addCriterion("notice_title not in", values, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleBetween(String value1, String value2) {
+ addCriterion("notice_title between", value1, value2, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ public Criteria andNoticeTitleNotBetween(String value1, String value2) {
+ addCriterion("notice_title not between", value1, value2, "noticeTitle");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdIsNull() {
+ addCriterion("admin_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdIsNotNull() {
+ addCriterion("admin_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdEqualTo(Integer value) {
+ addCriterion("admin_id =", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("admin_id = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdNotEqualTo(Integer value) {
+ addCriterion("admin_id <>", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("admin_id <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdGreaterThan(Integer value) {
+ addCriterion("admin_id >", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("admin_id > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("admin_id >=", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("admin_id >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdLessThan(Integer value) {
+ addCriterion("admin_id <", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("admin_id < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdLessThanOrEqualTo(Integer value) {
+ addCriterion("admin_id <=", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("admin_id <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdIn(List values) {
+ addCriterion("admin_id in", values, "adminId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdNotIn(List values) {
+ addCriterion("admin_id not in", values, "adminId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdBetween(Integer value1, Integer value2) {
+ addCriterion("admin_id between", value1, value2, "adminId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("admin_id not between", value1, value2, "adminId");
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeIsNull() {
+ addCriterion("read_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeIsNotNull() {
+ addCriterion("read_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeEqualTo(LocalDateTime value) {
+ addCriterion("read_time =", value, "readTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andReadTimeEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("read_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("read_time <>", value, "readTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andReadTimeNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("read_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeGreaterThan(LocalDateTime value) {
+ addCriterion("read_time >", value, "readTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andReadTimeGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("read_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("read_time >=", value, "readTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andReadTimeGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("read_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeLessThan(LocalDateTime value) {
+ addCriterion("read_time <", value, "readTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andReadTimeLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("read_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("read_time <=", value, "readTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andReadTimeLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("read_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeIn(List values) {
+ addCriterion("read_time in", values, "readTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeNotIn(List values) {
+ addCriterion("read_time not in", values, "readTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("read_time between", value1, value2, "readTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andReadTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("read_time not between", value1, value2, "readTime");
+ 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;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("add_time <>", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThan(LocalDateTime value) {
+ addCriterion("add_time >", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time >=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThan(LocalDateTime value) {
+ addCriterion("add_time <", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time <=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString());
+ 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 andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ 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;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotEqualTo(Boolean value) {
+ addCriterion("deleted <>", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedNotEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThan(Boolean value) {
+ addCriterion("deleted >", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedGreaterThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("deleted >=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThan(Boolean value) {
+ addCriterion("deleted <", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedLessThanColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
+ addCriterion("deleted <=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedLessThanOrEqualToColumn(LitemallNoticeAdmin.Column column) {
+ addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString());
+ 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;
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_notice_admin
+ *
+ * @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_notice_admin
+ *
+ * @mbg.generated
+ */
+ private LitemallNoticeAdminExample example;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ protected Criteria(LitemallNoticeAdminExample example) {
+ super();
+ this.example = example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeAdminExample example() {
+ return this.example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ @Deprecated
+ 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_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria when(boolean condition, ICriteriaWhen then) {
+ if (condition) {
+ then.criteria(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+ if (condition) {
+ then.criteria(this);
+ } else {
+ otherwise.criteria(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ public Criteria andLogicalDeleted(boolean deleted) {
+ return deleted ? andDeletedEqualTo(LitemallNoticeAdmin.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallNoticeAdmin.Deleted.IS_DELETED.value());
+ }
+
+ @Deprecated
+ public interface ICriteriaAdd {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ Criteria add(Criteria add);
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_notice_admin
+ *
+ * @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);
+ }
+ }
+
+ public interface ICriteriaWhen {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ void criteria(Criteria criteria);
+ }
+
+ public interface IExampleWhen {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice_admin
+ *
+ * @mbg.generated
+ */
+ void example(org.linlinjava.litemall.db.domain.LitemallNoticeAdminExample example);
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeExample.java
new file mode 100644
index 00000000..e57225ee
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallNoticeExample.java
@@ -0,0 +1,1380 @@
+package org.linlinjava.litemall.db.domain;
+
+import java.time.LocalDateTime;
+import java.util.ArrayList;
+import java.util.List;
+
+public class LitemallNoticeExample {
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ protected String orderByClause;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ protected boolean distinct;
+
+ /**
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ protected List oredCriteria;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @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_notice
+ *
+ * @mbg.generated
+ */
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @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_notice
+ *
+ * @mbg.generated
+ */
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @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_notice
+ *
+ * @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_notice
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeExample orderBy(String orderByClause) {
+ this.setOrderByClause(orderByClause);
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeExample 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_notice
+ *
+ * @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_notice
+ *
+ * @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_notice
+ *
+ * @mbg.generated
+ */
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public static Criteria newAndCreateCriteria() {
+ LitemallNoticeExample example = new LitemallNoticeExample();
+ return example.createCriteria();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeExample when(boolean condition, IExampleWhen then) {
+ if (condition) {
+ then.example(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+ if (condition) {
+ then.example(this);
+ } else {
+ otherwise.example(this);
+ }
+ return this;
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_notice
+ *
+ * @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;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdNotEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdGreaterThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdGreaterThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdLessThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andIdLessThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
+ 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 andTitleIsNull() {
+ addCriterion("title is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleIsNotNull() {
+ addCriterion("title is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleEqualTo(String value) {
+ addCriterion("title =", value, "title");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andTitleEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("title = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotEqualTo(String value) {
+ addCriterion("title <>", value, "title");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andTitleNotEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("title <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleGreaterThan(String value) {
+ addCriterion("title >", value, "title");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andTitleGreaterThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("title > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleGreaterThanOrEqualTo(String value) {
+ addCriterion("title >=", value, "title");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andTitleGreaterThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("title >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleLessThan(String value) {
+ addCriterion("title <", value, "title");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andTitleLessThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("title < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleLessThanOrEqualTo(String value) {
+ addCriterion("title <=", value, "title");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andTitleLessThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("title <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleLike(String value) {
+ addCriterion("title like", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotLike(String value) {
+ addCriterion("title not like", value, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleIn(List values) {
+ addCriterion("title in", values, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotIn(List values) {
+ addCriterion("title not in", values, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleBetween(String value1, String value2) {
+ addCriterion("title between", value1, value2, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andTitleNotBetween(String value1, String value2) {
+ addCriterion("title not between", value1, value2, "title");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentIsNull() {
+ addCriterion("content is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentIsNotNull() {
+ addCriterion("content is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentEqualTo(String value) {
+ addCriterion("content =", value, "content");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andContentEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("content = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andContentNotEqualTo(String value) {
+ addCriterion("content <>", value, "content");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andContentNotEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("content <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andContentGreaterThan(String value) {
+ addCriterion("content >", value, "content");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andContentGreaterThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("content > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andContentGreaterThanOrEqualTo(String value) {
+ addCriterion("content >=", value, "content");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andContentGreaterThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("content >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andContentLessThan(String value) {
+ addCriterion("content <", value, "content");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andContentLessThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("content < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andContentLessThanOrEqualTo(String value) {
+ addCriterion("content <=", value, "content");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andContentLessThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("content <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andContentLike(String value) {
+ addCriterion("content like", value, "content");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentNotLike(String value) {
+ addCriterion("content not like", value, "content");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentIn(List values) {
+ addCriterion("content in", values, "content");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentNotIn(List values) {
+ addCriterion("content not in", values, "content");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentBetween(String value1, String value2) {
+ addCriterion("content between", value1, value2, "content");
+ return (Criteria) this;
+ }
+
+ public Criteria andContentNotBetween(String value1, String value2) {
+ addCriterion("content not between", value1, value2, "content");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdIsNull() {
+ addCriterion("admin_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdIsNotNull() {
+ addCriterion("admin_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdEqualTo(Integer value) {
+ addCriterion("admin_id =", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("admin_id = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdNotEqualTo(Integer value) {
+ addCriterion("admin_id <>", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdNotEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("admin_id <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdGreaterThan(Integer value) {
+ addCriterion("admin_id >", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdGreaterThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("admin_id > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("admin_id >=", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdGreaterThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("admin_id >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdLessThan(Integer value) {
+ addCriterion("admin_id <", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdLessThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("admin_id < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdLessThanOrEqualTo(Integer value) {
+ addCriterion("admin_id <=", value, "adminId");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAdminIdLessThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("admin_id <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdIn(List values) {
+ addCriterion("admin_id in", values, "adminId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdNotIn(List values) {
+ addCriterion("admin_id not in", values, "adminId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdBetween(Integer value1, Integer value2) {
+ addCriterion("admin_id between", value1, value2, "adminId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAdminIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("admin_id not between", value1, value2, "adminId");
+ 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;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("add_time <>", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeNotEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThan(LocalDateTime value) {
+ addCriterion("add_time >", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeGreaterThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time >=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThan(LocalDateTime value) {
+ addCriterion("add_time <", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeLessThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("add_time <=", value, "addTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andAddTimeLessThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString());
+ 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 andUpdateTimeIsNull() {
+ addCriterion("update_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIsNotNull() {
+ addCriterion("update_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
+ addCriterion("update_time =", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
+ addCriterion("update_time <>", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeNotEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
+ addCriterion("update_time >", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeGreaterThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time >=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThan(LocalDateTime value) {
+ addCriterion("update_time <", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeLessThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
+ addCriterion("update_time <=", value, "updateTime");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeIn(List values) {
+ addCriterion("update_time in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotIn(List values) {
+ addCriterion("update_time not in", values, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time between", value1, value2, "updateTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
+ addCriterion("update_time not between", value1, value2, "updateTime");
+ 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;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedNotEqualTo(Boolean value) {
+ addCriterion("deleted <>", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedNotEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThan(Boolean value) {
+ addCriterion("deleted >", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedGreaterThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
+ addCriterion("deleted >=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThan(Boolean value) {
+ addCriterion("deleted <", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedLessThanColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString());
+ return (Criteria) this;
+ }
+
+ public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
+ addCriterion("deleted <=", value, "deleted");
+ return (Criteria) this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andDeletedLessThanOrEqualToColumn(LitemallNotice.Column column) {
+ addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString());
+ 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;
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_notice
+ *
+ * @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_notice
+ *
+ * @mbg.generated
+ */
+ private LitemallNoticeExample example;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ protected Criteria(LitemallNoticeExample example) {
+ super();
+ this.example = example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public LitemallNoticeExample example() {
+ return this.example;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ @Deprecated
+ 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_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria when(boolean condition, ICriteriaWhen then) {
+ if (condition) {
+ then.criteria(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+ if (condition) {
+ then.criteria(this);
+ } else {
+ otherwise.criteria(this);
+ }
+ return this;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ public Criteria andLogicalDeleted(boolean deleted) {
+ return deleted ? andDeletedEqualTo(LitemallNotice.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallNotice.Deleted.IS_DELETED.value());
+ }
+
+ @Deprecated
+ public interface ICriteriaAdd {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ Criteria add(Criteria add);
+ }
+ }
+
+ /**
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table litemall_notice
+ *
+ * @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);
+ }
+ }
+
+ public interface ICriteriaWhen {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ void criteria(Criteria criteria);
+ }
+
+ public interface IExampleWhen {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table litemall_notice
+ *
+ * @mbg.generated
+ */
+ void example(org.linlinjava.litemall.db.domain.LitemallNoticeExample example);
+ }
+}
\ No newline at end of file
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallNoticeAdminService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallNoticeAdminService.java
new file mode 100644
index 00000000..78cf8d19
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallNoticeAdminService.java
@@ -0,0 +1,130 @@
+package org.linlinjava.litemall.db.service;
+
+import com.github.pagehelper.PageHelper;
+import org.linlinjava.litemall.db.dao.LitemallNoticeAdminMapper;
+import org.linlinjava.litemall.db.domain.*;
+import org.springframework.stereotype.Service;
+import org.springframework.util.StringUtils;
+
+import javax.annotation.Resource;
+import java.time.LocalDateTime;
+import java.util.List;
+
+@Service
+public class LitemallNoticeAdminService {
+ @Resource
+ private LitemallNoticeAdminMapper noticeAdminMapper;
+
+ public List querySelective(String title, String type, Integer adminId, Integer page, Integer limit, String sort, String order) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ LitemallNoticeAdminExample.Criteria criteria = example.createCriteria();
+
+ if(!StringUtils.isEmpty(title)){
+ criteria.andNoticeTitleLike("%" + title + "%");
+ }
+
+ if(type.equals("read")){
+ criteria.andReadTimeIsNotNull();
+ }
+ else if(type.equals("unread")){
+ criteria.andReadTimeIsNull();
+ }
+ criteria.andAdminIdEqualTo(adminId);
+ criteria.andDeletedEqualTo(false);
+
+ if (!StringUtils.isEmpty(sort) && !StringUtils.isEmpty(order)) {
+ example.setOrderByClause(sort + " " + order);
+ }
+
+ PageHelper.startPage(page, limit);
+ return noticeAdminMapper.selectByExample(example);
+ }
+
+ public LitemallNoticeAdmin find(Integer noticeId, Integer adminId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andNoticeIdEqualTo(noticeId).andAdminIdEqualTo(adminId).andDeletedEqualTo(false);
+ return noticeAdminMapper.selectOneByExample(example);
+ }
+
+ public void add(LitemallNoticeAdmin noticeAdmin) {
+ noticeAdmin.setAddTime(LocalDateTime.now());
+ noticeAdmin.setUpdateTime(LocalDateTime.now());
+ noticeAdminMapper.insertSelective(noticeAdmin);
+ }
+
+ public void update(LitemallNoticeAdmin noticeAdmin) {
+ noticeAdmin.setUpdateTime(LocalDateTime.now());
+ noticeAdminMapper.updateByPrimaryKeySelective(noticeAdmin);
+ }
+
+ public void markReadByIds(List ids, Integer adminId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andIdIn(ids).andAdminIdEqualTo(adminId).andDeletedEqualTo(false);
+ LitemallNoticeAdmin noticeAdmin = new LitemallNoticeAdmin();
+ LocalDateTime now = LocalDateTime.now();
+ noticeAdmin.setReadTime(now);
+ noticeAdmin.setUpdateTime(now);
+ noticeAdminMapper.updateByExampleSelective(noticeAdmin, example);
+ }
+
+ public void deleteById(Integer id, Integer adminId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andIdEqualTo(id).andAdminIdEqualTo(adminId).andDeletedEqualTo(false);
+ LitemallNoticeAdmin noticeAdmin = new LitemallNoticeAdmin();
+ noticeAdmin.setUpdateTime(LocalDateTime.now());
+ noticeAdmin.setDeleted(true);
+ noticeAdminMapper.updateByExampleSelective(noticeAdmin, example);
+ }
+
+ public void deleteByIds(List ids, Integer adminId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andIdIn(ids).andAdminIdEqualTo(adminId).andDeletedEqualTo(false);
+ LitemallNoticeAdmin noticeAdmin = new LitemallNoticeAdmin();
+ noticeAdmin.setUpdateTime(LocalDateTime.now());
+ noticeAdmin.setDeleted(true);
+ noticeAdminMapper.updateByExampleSelective(noticeAdmin, example);
+ }
+
+ public int countUnread(Integer adminId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andAdminIdEqualTo(adminId).andReadTimeIsNull().andDeletedEqualTo(false);
+ return (int)noticeAdminMapper.countByExample(example);
+ }
+
+ public List queryByNoticeId(Integer noticeId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andNoticeIdEqualTo(noticeId).andDeletedEqualTo(false);
+ return noticeAdminMapper.selectByExample(example);
+ }
+
+ public void deleteByNoticeId(Integer id) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andNoticeIdEqualTo(id).andDeletedEqualTo(false);
+ LitemallNoticeAdmin noticeAdmin = new LitemallNoticeAdmin();
+ noticeAdmin.setUpdateTime(LocalDateTime.now());
+ noticeAdmin.setDeleted(true);
+ noticeAdminMapper.updateByExampleSelective(noticeAdmin, example);
+ }
+
+ public void deleteByNoticeIds(List ids) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andNoticeIdIn(ids).andDeletedEqualTo(false);
+ LitemallNoticeAdmin noticeAdmin = new LitemallNoticeAdmin();
+ noticeAdmin.setUpdateTime(LocalDateTime.now());
+ noticeAdmin.setDeleted(true);
+ noticeAdminMapper.updateByExampleSelective(noticeAdmin, example);
+ }
+
+ public int countReadByNoticeId(Integer noticeId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andNoticeIdEqualTo(noticeId).andReadTimeIsNotNull().andDeletedEqualTo(false);
+ return (int)noticeAdminMapper.countByExample(example);
+ }
+
+ public void updateByNoticeId(LitemallNoticeAdmin noticeAdmin, Integer noticeId) {
+ LitemallNoticeAdminExample example = new LitemallNoticeAdminExample();
+ example.or().andNoticeIdEqualTo(noticeId).andDeletedEqualTo(false);
+ noticeAdmin.setUpdateTime(LocalDateTime.now());
+ noticeAdminMapper.updateByExampleSelective(noticeAdmin, example);
+ }
+}
diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallNoticeService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallNoticeService.java
new file mode 100644
index 00000000..af710215
--- /dev/null
+++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallNoticeService.java
@@ -0,0 +1,69 @@
+package org.linlinjava.litemall.db.service;
+
+import com.github.pagehelper.PageHelper;
+import org.linlinjava.litemall.db.dao.LitemallNoticeMapper;
+import org.linlinjava.litemall.db.domain.LitemallNotice;
+import org.linlinjava.litemall.db.domain.LitemallNoticeAdmin;
+import org.linlinjava.litemall.db.domain.LitemallNoticeAdminExample;
+import org.linlinjava.litemall.db.domain.LitemallNoticeExample;
+import org.springframework.stereotype.Service;
+import org.springframework.util.StringUtils;
+
+import javax.annotation.Resource;
+import java.time.LocalDateTime;
+import java.util.List;
+
+@Service
+public class LitemallNoticeService {
+ @Resource
+ private LitemallNoticeMapper noticeMapper;
+
+
+ public List querySelective(String title, String content, Integer page, Integer limit, String sort, String order) {
+ LitemallNoticeExample example = new LitemallNoticeExample();
+ LitemallNoticeExample.Criteria criteria = example.createCriteria();
+
+ if (!StringUtils.isEmpty(title)) {
+ criteria.andTitleLike("%" + title + "%");
+ }
+ if (!StringUtils.isEmpty(content)) {
+ criteria.andContentLike("%" + content + "%");
+ }
+ criteria.andDeletedEqualTo(false);
+
+ if (!StringUtils.isEmpty(sort) && !StringUtils.isEmpty(order)) {
+ example.setOrderByClause(sort + " " + order);
+ }
+
+ PageHelper.startPage(page, limit);
+ return noticeMapper.selectByExample(example);
+ }
+
+ public int updateById(LitemallNotice notice) {
+ notice.setUpdateTime(LocalDateTime.now());
+ return noticeMapper.updateByPrimaryKeySelective(notice);
+ }
+
+ public void deleteById(Integer id) {
+ noticeMapper.logicalDeleteByPrimaryKey(id);
+ }
+
+ public void add(LitemallNotice notice) {
+ notice.setAddTime(LocalDateTime.now());
+ notice.setUpdateTime(LocalDateTime.now());
+ noticeMapper.insertSelective(notice);
+ }
+
+ public LitemallNotice findById(Integer id) {
+ return noticeMapper.selectByPrimaryKey(id);
+ }
+
+ public void deleteByIds(List ids) {
+ LitemallNoticeExample example = new LitemallNoticeExample();
+ example.or().andIdIn(ids).andDeletedEqualTo(false);
+ LitemallNotice notice = new LitemallNotice();
+ notice.setUpdateTime(LocalDateTime.now());
+ notice.setDeleted(true);
+ noticeMapper.updateByExampleSelective(notice, example);
+ }
+}
diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallNoticeAdminMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallNoticeAdminMapper.xml
new file mode 100644
index 00000000..93cb203d
--- /dev/null
+++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallNoticeAdminMapper.xml
@@ -0,0 +1,442 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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, notice_id, notice_title, admin_id, read_time, add_time, update_time, deleted
+
+
+
+
+
+
+
+
+ delete from litemall_notice_admin
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ delete from litemall_notice_admin
+
+
+
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_notice_admin (notice_id, notice_title, admin_id,
+ read_time, add_time, update_time,
+ deleted)
+ values (#{noticeId,jdbcType=INTEGER}, #{noticeTitle,jdbcType=VARCHAR}, #{adminId,jdbcType=INTEGER},
+ #{readTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
+ #{deleted,jdbcType=BIT})
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_notice_admin
+
+
+ notice_id,
+
+
+ notice_title,
+
+
+ admin_id,
+
+
+ read_time,
+
+
+ add_time,
+
+
+ update_time,
+
+
+ deleted,
+
+
+
+
+ #{noticeId,jdbcType=INTEGER},
+
+
+ #{noticeTitle,jdbcType=VARCHAR},
+
+
+ #{adminId,jdbcType=INTEGER},
+
+
+ #{readTime,jdbcType=TIMESTAMP},
+
+
+ #{addTime,jdbcType=TIMESTAMP},
+
+
+ #{updateTime,jdbcType=TIMESTAMP},
+
+
+ #{deleted,jdbcType=BIT},
+
+
+
+
+
+
+ update litemall_notice_admin
+
+
+ id = #{record.id,jdbcType=INTEGER},
+
+
+ notice_id = #{record.noticeId,jdbcType=INTEGER},
+
+
+ notice_title = #{record.noticeTitle,jdbcType=VARCHAR},
+
+
+ admin_id = #{record.adminId,jdbcType=INTEGER},
+
+
+ read_time = #{record.readTime,jdbcType=TIMESTAMP},
+
+
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+
+
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{record.deleted,jdbcType=BIT},
+
+
+
+
+
+
+
+
+ update litemall_notice_admin
+ set id = #{record.id,jdbcType=INTEGER},
+ notice_id = #{record.noticeId,jdbcType=INTEGER},
+ notice_title = #{record.noticeTitle,jdbcType=VARCHAR},
+ admin_id = #{record.adminId,jdbcType=INTEGER},
+ read_time = #{record.readTime,jdbcType=TIMESTAMP},
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+ deleted = #{record.deleted,jdbcType=BIT}
+
+
+
+
+
+
+ update litemall_notice_admin
+
+
+ notice_id = #{noticeId,jdbcType=INTEGER},
+
+
+ notice_title = #{noticeTitle,jdbcType=VARCHAR},
+
+
+ admin_id = #{adminId,jdbcType=INTEGER},
+
+
+ read_time = #{readTime,jdbcType=TIMESTAMP},
+
+
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+
+
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{deleted,jdbcType=BIT},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update litemall_notice_admin
+ set notice_id = #{noticeId,jdbcType=INTEGER},
+ notice_title = #{noticeTitle,jdbcType=VARCHAR},
+ admin_id = #{adminId,jdbcType=INTEGER},
+ read_time = #{readTime,jdbcType=TIMESTAMP},
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
+ deleted = #{deleted,jdbcType=BIT}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+
+
+ update litemall_notice_admin set deleted = 1
+
+
+
+
+
+
+ update litemall_notice_admin 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/LitemallNoticeMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallNoticeMapper.xml
new file mode 100644
index 00000000..c57f947b
--- /dev/null
+++ b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallNoticeMapper.xml
@@ -0,0 +1,427 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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, title, content, admin_id, add_time, update_time, deleted
+
+
+
+
+
+
+
+
+ delete from litemall_notice
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ delete from litemall_notice
+
+
+
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_notice (title, content, admin_id,
+ add_time, update_time, deleted
+ )
+ values (#{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{adminId,jdbcType=INTEGER},
+ #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}
+ )
+
+
+
+
+ SELECT LAST_INSERT_ID()
+
+ insert into litemall_notice
+
+
+ title,
+
+
+ content,
+
+
+ admin_id,
+
+
+ add_time,
+
+
+ update_time,
+
+
+ deleted,
+
+
+
+
+ #{title,jdbcType=VARCHAR},
+
+
+ #{content,jdbcType=VARCHAR},
+
+
+ #{adminId,jdbcType=INTEGER},
+
+
+ #{addTime,jdbcType=TIMESTAMP},
+
+
+ #{updateTime,jdbcType=TIMESTAMP},
+
+
+ #{deleted,jdbcType=BIT},
+
+
+
+
+
+
+ update litemall_notice
+
+
+ id = #{record.id,jdbcType=INTEGER},
+
+
+ title = #{record.title,jdbcType=VARCHAR},
+
+
+ content = #{record.content,jdbcType=VARCHAR},
+
+
+ admin_id = #{record.adminId,jdbcType=INTEGER},
+
+
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+
+
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{record.deleted,jdbcType=BIT},
+
+
+
+
+
+
+
+
+ update litemall_notice
+ set id = #{record.id,jdbcType=INTEGER},
+ title = #{record.title,jdbcType=VARCHAR},
+ content = #{record.content,jdbcType=VARCHAR},
+ admin_id = #{record.adminId,jdbcType=INTEGER},
+ add_time = #{record.addTime,jdbcType=TIMESTAMP},
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+ deleted = #{record.deleted,jdbcType=BIT}
+
+
+
+
+
+
+ update litemall_notice
+
+
+ title = #{title,jdbcType=VARCHAR},
+
+
+ content = #{content,jdbcType=VARCHAR},
+
+
+ admin_id = #{adminId,jdbcType=INTEGER},
+
+
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+
+
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{deleted,jdbcType=BIT},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+ update litemall_notice
+ set title = #{title,jdbcType=VARCHAR},
+ content = #{content,jdbcType=VARCHAR},
+ admin_id = #{adminId,jdbcType=INTEGER},
+ add_time = #{addTime,jdbcType=TIMESTAMP},
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
+ deleted = #{deleted,jdbcType=BIT}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+
+
+ update litemall_notice set deleted = 1
+
+
+
+
+
+
+ update litemall_notice set deleted = 1
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file