diff --git a/README.md b/README.md index 048135b284..046e9a33bd 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ ## 前言 `mall`项目致力于打造一个完整的电商系统,采用现阶段流行技术实现。 - +[码云地址](https://gitee.com/tPrograming/mall): https://gitee.com/tPrograming/mall ## 项目文档 - 文档地址:[http://www.macrozheng.com](http://www.macrozheng.com) diff --git a/document/sql/mall.sql b/document/sql/mall.sql index 8af6f9cbdb..c39f80e5b8 100644 --- a/document/sql/mall.sql +++ b/document/sql/mall.sql @@ -2578,3 +2578,18 @@ INSERT INTO `ums_role_resource_relation` VALUES ('174', '1', '5'); INSERT INTO `ums_role_resource_relation` VALUES ('175', '1', '6'); INSERT INTO `ums_role_resource_relation` VALUES ('176', '1', '23'); INSERT INTO `ums_role_resource_relation` VALUES ('177', '1', '24'); + +-- ---------------------------- +-- Table structure for ums_feedback +-- ---------------------------- +DROP TABLE IF EXISTS `ums_feedback`; +CREATE TABLE `ums_feedback` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `type` varchar(100) NOT NULL DEFAULT '' COMMENT '', + `typeString` varchar(100) NOT NULL DEFAULT '' COMMENT '', + `desc` varchar(512) NOT NULL DEFAULT '' COMMENT '', + `tel` varchar(11) NOT NULL DEFAULT '' COMMENT '', + `uID` bigint(20) NOT NULL DEFAULT 0 COMMENT '', + `time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COMMENT='用户反馈表'; \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/CommentMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/CommentMapper.java new file mode 100644 index 0000000000..68680b08c0 --- /dev/null +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/CommentMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.Comment; +import com.macro.mall.model.CommentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CommentMapper { + long countByExample(CommentExample example); + + int deleteByExample(CommentExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(Comment record); + + int insertSelective(Comment record); + + List selectByExample(CommentExample example); + + Comment selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") Comment record, @Param("example") CommentExample example); + + int updateByExample(@Param("record") Comment record, @Param("example") CommentExample example); + + int updateByPrimaryKeySelective(Comment record); + + int updateByPrimaryKey(Comment record); +} \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/UmsFeedbackMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/UmsFeedbackMapper.java new file mode 100644 index 0000000000..e9f3fae3b2 --- /dev/null +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/UmsFeedbackMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsFeedback; +import com.macro.mall.model.UmsFeedbackExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsFeedbackMapper { + long countByExample(UmsFeedbackExample example); + + int deleteByExample(UmsFeedbackExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsFeedback record); + + int insertSelective(UmsFeedback record); + + List selectByExample(UmsFeedbackExample example); + + UmsFeedback selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") UmsFeedback record, @Param("example") UmsFeedbackExample example); + + int updateByExample(@Param("record") UmsFeedback record, @Param("example") UmsFeedbackExample example); + + int updateByPrimaryKeySelective(UmsFeedback record); + + int updateByPrimaryKey(UmsFeedback record); +} \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/model/Comment.java b/mall-mbg/src/main/java/com/macro/mall/model/Comment.java new file mode 100644 index 0000000000..f170bd6d30 --- /dev/null +++ b/mall-mbg/src/main/java/com/macro/mall/model/Comment.java @@ -0,0 +1,97 @@ +package com.macro.mall.model; + +import io.swagger.annotations.ApiModelProperty; +import java.io.Serializable; +import java.util.Date; + +public class Comment implements Serializable { + private Integer id; + + private String type; + + private String typestring; + + private String desc; + + private Integer tel; + + private Integer uid; + + private Date time; + + private static final long serialVersionUID = 1L; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getTypestring() { + return typestring; + } + + public void setTypestring(String typestring) { + this.typestring = typestring; + } + + public String getDesc() { + return desc; + } + + public void setDesc(String desc) { + this.desc = desc; + } + + public Integer getTel() { + return tel; + } + + public void setTel(Integer tel) { + this.tel = tel; + } + + public Integer getUid() { + return uid; + } + + public void setUid(Integer uid) { + this.uid = uid; + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", type=").append(type); + sb.append(", typestring=").append(typestring); + sb.append(", desc=").append(desc); + sb.append(", tel=").append(tel); + sb.append(", uid=").append(uid); + sb.append(", time=").append(time); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/model/CommentExample.java b/mall-mbg/src/main/java/com/macro/mall/model/CommentExample.java new file mode 100644 index 0000000000..d82c9d7dbf --- /dev/null +++ b/mall-mbg/src/main/java/com/macro/mall/model/CommentExample.java @@ -0,0 +1,651 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CommentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CommentExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(String value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(String value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(String value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(String value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(String value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(String value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLike(String value) { + addCriterion("type like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotLike(String value) { + addCriterion("type not like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeBetween(String value1, String value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(String value1, String value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypestringIsNull() { + addCriterion("typeString is null"); + return (Criteria) this; + } + + public Criteria andTypestringIsNotNull() { + addCriterion("typeString is not null"); + return (Criteria) this; + } + + public Criteria andTypestringEqualTo(String value) { + addCriterion("typeString =", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotEqualTo(String value) { + addCriterion("typeString <>", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringGreaterThan(String value) { + addCriterion("typeString >", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringGreaterThanOrEqualTo(String value) { + addCriterion("typeString >=", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringLessThan(String value) { + addCriterion("typeString <", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringLessThanOrEqualTo(String value) { + addCriterion("typeString <=", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringLike(String value) { + addCriterion("typeString like", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotLike(String value) { + addCriterion("typeString not like", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringIn(List values) { + addCriterion("typeString in", values, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotIn(List values) { + addCriterion("typeString not in", values, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringBetween(String value1, String value2) { + addCriterion("typeString between", value1, value2, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotBetween(String value1, String value2) { + addCriterion("typeString not between", value1, value2, "typestring"); + return (Criteria) this; + } + + public Criteria andDescIsNull() { + addCriterion("desc is null"); + return (Criteria) this; + } + + public Criteria andDescIsNotNull() { + addCriterion("desc is not null"); + return (Criteria) this; + } + + public Criteria andDescEqualTo(String value) { + addCriterion("desc =", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotEqualTo(String value) { + addCriterion("desc <>", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThan(String value) { + addCriterion("desc >", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThanOrEqualTo(String value) { + addCriterion("desc >=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThan(String value) { + addCriterion("desc <", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThanOrEqualTo(String value) { + addCriterion("desc <=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLike(String value) { + addCriterion("desc like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotLike(String value) { + addCriterion("desc not like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescIn(List values) { + addCriterion("desc in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotIn(List values) { + addCriterion("desc not in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescBetween(String value1, String value2) { + addCriterion("desc between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotBetween(String value1, String value2) { + addCriterion("desc not between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andTelIsNull() { + addCriterion("tel is null"); + return (Criteria) this; + } + + public Criteria andTelIsNotNull() { + addCriterion("tel is not null"); + return (Criteria) this; + } + + public Criteria andTelEqualTo(Integer value) { + addCriterion("tel =", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelNotEqualTo(Integer value) { + addCriterion("tel <>", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelGreaterThan(Integer value) { + addCriterion("tel >", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelGreaterThanOrEqualTo(Integer value) { + addCriterion("tel >=", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelLessThan(Integer value) { + addCriterion("tel <", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelLessThanOrEqualTo(Integer value) { + addCriterion("tel <=", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelIn(List values) { + addCriterion("tel in", values, "tel"); + return (Criteria) this; + } + + public Criteria andTelNotIn(List values) { + addCriterion("tel not in", values, "tel"); + return (Criteria) this; + } + + public Criteria andTelBetween(Integer value1, Integer value2) { + addCriterion("tel between", value1, value2, "tel"); + return (Criteria) this; + } + + public Criteria andTelNotBetween(Integer value1, Integer value2) { + addCriterion("tel not between", value1, value2, "tel"); + return (Criteria) this; + } + + public Criteria andUidIsNull() { + addCriterion("uID is null"); + return (Criteria) this; + } + + public Criteria andUidIsNotNull() { + addCriterion("uID is not null"); + return (Criteria) this; + } + + public Criteria andUidEqualTo(Integer value) { + addCriterion("uID =", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotEqualTo(Integer value) { + addCriterion("uID <>", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidGreaterThan(Integer value) { + addCriterion("uID >", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidGreaterThanOrEqualTo(Integer value) { + addCriterion("uID >=", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidLessThan(Integer value) { + addCriterion("uID <", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidLessThanOrEqualTo(Integer value) { + addCriterion("uID <=", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidIn(List values) { + addCriterion("uID in", values, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotIn(List values) { + addCriterion("uID not in", values, "uid"); + return (Criteria) this; + } + + public Criteria andUidBetween(Integer value1, Integer value2) { + addCriterion("uID between", value1, value2, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotBetween(Integer value1, Integer value2) { + addCriterion("uID not between", value1, value2, "uid"); + return (Criteria) this; + } + + public Criteria andTimeIsNull() { + addCriterion("time is null"); + return (Criteria) this; + } + + public Criteria andTimeIsNotNull() { + addCriterion("time is not null"); + return (Criteria) this; + } + + public Criteria andTimeEqualTo(Date value) { + addCriterion("time =", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotEqualTo(Date value) { + addCriterion("time <>", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThan(Date value) { + addCriterion("time >", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThanOrEqualTo(Date value) { + addCriterion("time >=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThan(Date value) { + addCriterion("time <", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThanOrEqualTo(Date value) { + addCriterion("time <=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeIn(List values) { + addCriterion("time in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotIn(List values) { + addCriterion("time not in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeBetween(Date value1, Date value2) { + addCriterion("time between", value1, value2, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotBetween(Date value1, Date value2) { + addCriterion("time not between", value1, value2, "time"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/model/UmsFeedback.java b/mall-mbg/src/main/java/com/macro/mall/model/UmsFeedback.java new file mode 100644 index 0000000000..6be4288462 --- /dev/null +++ b/mall-mbg/src/main/java/com/macro/mall/model/UmsFeedback.java @@ -0,0 +1,97 @@ +package com.macro.mall.model; + +import io.swagger.annotations.ApiModelProperty; +import java.io.Serializable; +import java.util.Date; + +public class UmsFeedback implements Serializable { + private Long id; + + private String type; + + private String typestring; + + private String desc; + + private String tel; + + private Long uid; + + private Date time; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getTypestring() { + return typestring; + } + + public void setTypestring(String typestring) { + this.typestring = typestring; + } + + public String getDesc() { + return desc; + } + + public void setDesc(String desc) { + this.desc = desc; + } + + public String getTel() { + return tel; + } + + public void setTel(String tel) { + this.tel = tel; + } + + public Long getUid() { + return uid; + } + + public void setUid(Long uid) { + this.uid = uid; + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", type=").append(type); + sb.append(", typestring=").append(typestring); + sb.append(", desc=").append(desc); + sb.append(", tel=").append(tel); + sb.append(", uid=").append(uid); + sb.append(", time=").append(time); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/model/UmsFeedbackExample.java b/mall-mbg/src/main/java/com/macro/mall/model/UmsFeedbackExample.java new file mode 100644 index 0000000000..ba6f4e3efc --- /dev/null +++ b/mall-mbg/src/main/java/com/macro/mall/model/UmsFeedbackExample.java @@ -0,0 +1,661 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsFeedbackExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsFeedbackExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(String value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(String value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(String value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(String value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(String value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(String value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLike(String value) { + addCriterion("type like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotLike(String value) { + addCriterion("type not like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeBetween(String value1, String value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(String value1, String value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypestringIsNull() { + addCriterion("typeString is null"); + return (Criteria) this; + } + + public Criteria andTypestringIsNotNull() { + addCriterion("typeString is not null"); + return (Criteria) this; + } + + public Criteria andTypestringEqualTo(String value) { + addCriterion("typeString =", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotEqualTo(String value) { + addCriterion("typeString <>", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringGreaterThan(String value) { + addCriterion("typeString >", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringGreaterThanOrEqualTo(String value) { + addCriterion("typeString >=", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringLessThan(String value) { + addCriterion("typeString <", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringLessThanOrEqualTo(String value) { + addCriterion("typeString <=", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringLike(String value) { + addCriterion("typeString like", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotLike(String value) { + addCriterion("typeString not like", value, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringIn(List values) { + addCriterion("typeString in", values, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotIn(List values) { + addCriterion("typeString not in", values, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringBetween(String value1, String value2) { + addCriterion("typeString between", value1, value2, "typestring"); + return (Criteria) this; + } + + public Criteria andTypestringNotBetween(String value1, String value2) { + addCriterion("typeString not between", value1, value2, "typestring"); + return (Criteria) this; + } + + public Criteria andDescIsNull() { + addCriterion("desc is null"); + return (Criteria) this; + } + + public Criteria andDescIsNotNull() { + addCriterion("desc is not null"); + return (Criteria) this; + } + + public Criteria andDescEqualTo(String value) { + addCriterion("desc =", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotEqualTo(String value) { + addCriterion("desc <>", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThan(String value) { + addCriterion("desc >", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThanOrEqualTo(String value) { + addCriterion("desc >=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThan(String value) { + addCriterion("desc <", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThanOrEqualTo(String value) { + addCriterion("desc <=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLike(String value) { + addCriterion("desc like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotLike(String value) { + addCriterion("desc not like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescIn(List values) { + addCriterion("desc in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotIn(List values) { + addCriterion("desc not in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescBetween(String value1, String value2) { + addCriterion("desc between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotBetween(String value1, String value2) { + addCriterion("desc not between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andTelIsNull() { + addCriterion("tel is null"); + return (Criteria) this; + } + + public Criteria andTelIsNotNull() { + addCriterion("tel is not null"); + return (Criteria) this; + } + + public Criteria andTelEqualTo(String value) { + addCriterion("tel =", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelNotEqualTo(String value) { + addCriterion("tel <>", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelGreaterThan(String value) { + addCriterion("tel >", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelGreaterThanOrEqualTo(String value) { + addCriterion("tel >=", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelLessThan(String value) { + addCriterion("tel <", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelLessThanOrEqualTo(String value) { + addCriterion("tel <=", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelLike(String value) { + addCriterion("tel like", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelNotLike(String value) { + addCriterion("tel not like", value, "tel"); + return (Criteria) this; + } + + public Criteria andTelIn(List values) { + addCriterion("tel in", values, "tel"); + return (Criteria) this; + } + + public Criteria andTelNotIn(List values) { + addCriterion("tel not in", values, "tel"); + return (Criteria) this; + } + + public Criteria andTelBetween(String value1, String value2) { + addCriterion("tel between", value1, value2, "tel"); + return (Criteria) this; + } + + public Criteria andTelNotBetween(String value1, String value2) { + addCriterion("tel not between", value1, value2, "tel"); + return (Criteria) this; + } + + public Criteria andUidIsNull() { + addCriterion("uID is null"); + return (Criteria) this; + } + + public Criteria andUidIsNotNull() { + addCriterion("uID is not null"); + return (Criteria) this; + } + + public Criteria andUidEqualTo(Long value) { + addCriterion("uID =", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotEqualTo(Long value) { + addCriterion("uID <>", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidGreaterThan(Long value) { + addCriterion("uID >", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidGreaterThanOrEqualTo(Long value) { + addCriterion("uID >=", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidLessThan(Long value) { + addCriterion("uID <", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidLessThanOrEqualTo(Long value) { + addCriterion("uID <=", value, "uid"); + return (Criteria) this; + } + + public Criteria andUidIn(List values) { + addCriterion("uID in", values, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotIn(List values) { + addCriterion("uID not in", values, "uid"); + return (Criteria) this; + } + + public Criteria andUidBetween(Long value1, Long value2) { + addCriterion("uID between", value1, value2, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotBetween(Long value1, Long value2) { + addCriterion("uID not between", value1, value2, "uid"); + return (Criteria) this; + } + + public Criteria andTimeIsNull() { + addCriterion("time is null"); + return (Criteria) this; + } + + public Criteria andTimeIsNotNull() { + addCriterion("time is not null"); + return (Criteria) this; + } + + public Criteria andTimeEqualTo(Date value) { + addCriterion("time =", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotEqualTo(Date value) { + addCriterion("time <>", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThan(Date value) { + addCriterion("time >", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThanOrEqualTo(Date value) { + addCriterion("time >=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThan(Date value) { + addCriterion("time <", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThanOrEqualTo(Date value) { + addCriterion("time <=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeIn(List values) { + addCriterion("time in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotIn(List values) { + addCriterion("time not in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeBetween(Date value1, Date value2) { + addCriterion("time between", value1, value2, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotBetween(Date value1, Date value2) { + addCriterion("time not between", value1, value2, "time"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/CommentMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/CommentMapper.xml new file mode 100644 index 0000000000..35f8d589e9 --- /dev/null +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/CommentMapper.xml @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + 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, type, typeString, desc, tel, uID, time + + + + + delete from comment + where id = #{id,jdbcType=INTEGER} + + + delete from comment + + + + + + + SELECT LAST_INSERT_ID() + + insert into comment (type, typeString, desc, + tel, uID, time) + values (#{type,jdbcType=VARCHAR}, #{typestring,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, + #{tel,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into comment + + + type, + + + typeString, + + + desc, + + + tel, + + + uID, + + + time, + + + + + #{type,jdbcType=VARCHAR}, + + + #{typestring,jdbcType=VARCHAR}, + + + #{desc,jdbcType=VARCHAR}, + + + #{tel,jdbcType=INTEGER}, + + + #{uid,jdbcType=INTEGER}, + + + #{time,jdbcType=TIMESTAMP}, + + + + + + update comment + + + id = #{record.id,jdbcType=INTEGER}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + typeString = #{record.typestring,jdbcType=VARCHAR}, + + + desc = #{record.desc,jdbcType=VARCHAR}, + + + tel = #{record.tel,jdbcType=INTEGER}, + + + uID = #{record.uid,jdbcType=INTEGER}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + + + + + + update comment + set id = #{record.id,jdbcType=INTEGER}, + type = #{record.type,jdbcType=VARCHAR}, + typeString = #{record.typestring,jdbcType=VARCHAR}, + desc = #{record.desc,jdbcType=VARCHAR}, + tel = #{record.tel,jdbcType=INTEGER}, + uID = #{record.uid,jdbcType=INTEGER}, + time = #{record.time,jdbcType=TIMESTAMP} + + + + + + update comment + + + type = #{type,jdbcType=VARCHAR}, + + + typeString = #{typestring,jdbcType=VARCHAR}, + + + desc = #{desc,jdbcType=VARCHAR}, + + + tel = #{tel,jdbcType=INTEGER}, + + + uID = #{uid,jdbcType=INTEGER}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + update comment + set type = #{type,jdbcType=VARCHAR}, + typeString = #{typestring,jdbcType=VARCHAR}, + desc = #{desc,jdbcType=VARCHAR}, + tel = #{tel,jdbcType=INTEGER}, + uID = #{uid,jdbcType=INTEGER}, + time = #{time,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsFeedbackMapper.xml b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsFeedbackMapper.xml new file mode 100644 index 0000000000..aba7ed6cfb --- /dev/null +++ b/mall-mbg/src/main/resources/com/macro/mall/mapper/UmsFeedbackMapper.xml @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + 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, type, typeString, desc, tel, uID, time + + + + + delete from ums_feedback + where id = #{id,jdbcType=BIGINT} + + + delete from ums_feedback + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_feedback (type, typeString, desc, + tel, uID, time) + values (#{type,jdbcType=VARCHAR}, #{typestring,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, + #{tel,jdbcType=VARCHAR}, #{uid,jdbcType=BIGINT}, #{time,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_feedback + + + type, + + + typeString, + + + desc, + + + tel, + + + uID, + + + time, + + + + + #{type,jdbcType=VARCHAR}, + + + #{typestring,jdbcType=VARCHAR}, + + + #{desc,jdbcType=VARCHAR}, + + + #{tel,jdbcType=VARCHAR}, + + + #{uid,jdbcType=BIGINT}, + + + #{time,jdbcType=TIMESTAMP}, + + + + + + update ums_feedback + + + id = #{record.id,jdbcType=BIGINT}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + typeString = #{record.typestring,jdbcType=VARCHAR}, + + + desc = #{record.desc,jdbcType=VARCHAR}, + + + tel = #{record.tel,jdbcType=VARCHAR}, + + + uID = #{record.uid,jdbcType=BIGINT}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + + + + + + update ums_feedback + set id = #{record.id,jdbcType=BIGINT}, + type = #{record.type,jdbcType=VARCHAR}, + typeString = #{record.typestring,jdbcType=VARCHAR}, + desc = #{record.desc,jdbcType=VARCHAR}, + tel = #{record.tel,jdbcType=VARCHAR}, + uID = #{record.uid,jdbcType=BIGINT}, + time = #{record.time,jdbcType=TIMESTAMP} + + + + + + update ums_feedback + + + type = #{type,jdbcType=VARCHAR}, + + + typeString = #{typestring,jdbcType=VARCHAR}, + + + desc = #{desc,jdbcType=VARCHAR}, + + + tel = #{tel,jdbcType=VARCHAR}, + + + uID = #{uid,jdbcType=BIGINT}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_feedback + set type = #{type,jdbcType=VARCHAR}, + typeString = #{typestring,jdbcType=VARCHAR}, + desc = #{desc,jdbcType=VARCHAR}, + tel = #{tel,jdbcType=VARCHAR}, + uID = #{uid,jdbcType=BIGINT}, + time = #{time,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/mall-mbg/src/main/resources/generatorConfig.xml b/mall-mbg/src/main/resources/generatorConfig.xml index b5ec296ce5..82c9f253c7 100644 --- a/mall-mbg/src/main/resources/generatorConfig.xml +++ b/mall-mbg/src/main/resources/generatorConfig.xml @@ -30,12 +30,12 @@ - + - + + targetProject="mall-mbg/src/main/java"/>