diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/mapper/CmsMenuMapper.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/mapper/CmsMenuMapper.java new file mode 100644 index 00000000..c28f85cd --- /dev/null +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/mapper/CmsMenuMapper.java @@ -0,0 +1,30 @@ +package com.zheng.cms.dao.mapper; + +import com.zheng.cms.dao.model.CmsMenu; +import com.zheng.cms.dao.model.CmsMenuExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsMenuMapper { + long countByExample(CmsMenuExample example); + + int deleteByExample(CmsMenuExample example); + + int deleteByPrimaryKey(Integer pageId); + + int insert(CmsMenu record); + + int insertSelective(CmsMenu record); + + List selectByExample(CmsMenuExample example); + + CmsMenu selectByPrimaryKey(Integer pageId); + + int updateByExampleSelective(@Param("record") CmsMenu record, @Param("example") CmsMenuExample example); + + int updateByExample(@Param("record") CmsMenu record, @Param("example") CmsMenuExample example); + + int updateByPrimaryKeySelective(CmsMenu record); + + int updateByPrimaryKey(CmsMenu record); +} \ No newline at end of file diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/mapper/CmsTopicMapper.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/mapper/CmsTopicMapper.java new file mode 100644 index 00000000..9bc4eee3 --- /dev/null +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/mapper/CmsTopicMapper.java @@ -0,0 +1,30 @@ +package com.zheng.cms.dao.mapper; + +import com.zheng.cms.dao.model.CmsTopic; +import com.zheng.cms.dao.model.CmsTopicExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsTopicMapper { + long countByExample(CmsTopicExample example); + + int deleteByExample(CmsTopicExample example); + + int deleteByPrimaryKey(Integer topicId); + + int insert(CmsTopic record); + + int insertSelective(CmsTopic record); + + List selectByExample(CmsTopicExample example); + + CmsTopic selectByPrimaryKey(Integer topicId); + + int updateByExampleSelective(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); + + int updateByExample(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); + + int updateByPrimaryKeySelective(CmsTopic record); + + int updateByPrimaryKey(CmsTopic record); +} \ No newline at end of file diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticle.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticle.java index 9b6e3e5d..dcb19c09 100644 --- a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticle.java +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticle.java @@ -10,6 +10,13 @@ public class CmsArticle implements Serializable { */ private Integer articleId; + /** + * 所属专题 + * + * @mbg.generated + */ + private Integer topicId; + /** * 文章标题 * @@ -118,6 +125,14 @@ public class CmsArticle implements Serializable { this.articleId = articleId; } + public Integer getTopicId() { + return topicId; + } + + public void setTopicId(Integer topicId) { + this.topicId = topicId; + } + public String getTitle() { return title; } @@ -237,6 +252,7 @@ public class CmsArticle implements Serializable { sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", articleId=").append(articleId); + sb.append(", topicId=").append(topicId); sb.append(", title=").append(title); sb.append(", author=").append(author); sb.append(", fromurl=").append(fromurl); @@ -268,6 +284,7 @@ public class CmsArticle implements Serializable { } CmsArticle other = (CmsArticle) that; return (this.getArticleId() == null ? other.getArticleId() == null : this.getArticleId().equals(other.getArticleId())) + && (this.getTopicId() == null ? other.getTopicId() == null : this.getTopicId().equals(other.getTopicId())) && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor())) && (this.getFromurl() == null ? other.getFromurl() == null : this.getFromurl().equals(other.getFromurl())) @@ -289,6 +306,7 @@ public class CmsArticle implements Serializable { final int prime = 31; int result = 1; result = prime * result + ((getArticleId() == null) ? 0 : getArticleId().hashCode()); + result = prime * result + ((getTopicId() == null) ? 0 : getTopicId().hashCode()); result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode()); result = prime * result + ((getFromurl() == null) ? 0 : getFromurl().hashCode()); diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticleExample.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticleExample.java index 1264ef78..15968cbd 100644 --- a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticleExample.java +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsArticleExample.java @@ -187,6 +187,66 @@ public class CmsArticleExample implements Serializable { return (Criteria) this; } + public Criteria andTopicIdIsNull() { + addCriterion("topic_id is null"); + return (Criteria) this; + } + + public Criteria andTopicIdIsNotNull() { + addCriterion("topic_id is not null"); + return (Criteria) this; + } + + public Criteria andTopicIdEqualTo(Integer value) { + addCriterion("topic_id =", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotEqualTo(Integer value) { + addCriterion("topic_id <>", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdGreaterThan(Integer value) { + addCriterion("topic_id >", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdGreaterThanOrEqualTo(Integer value) { + addCriterion("topic_id >=", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdLessThan(Integer value) { + addCriterion("topic_id <", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdLessThanOrEqualTo(Integer value) { + addCriterion("topic_id <=", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdIn(List values) { + addCriterion("topic_id in", values, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotIn(List values) { + addCriterion("topic_id not in", values, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdBetween(Integer value1, Integer value2) { + addCriterion("topic_id between", value1, value2, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotBetween(Integer value1, Integer value2) { + addCriterion("topic_id not between", value1, value2, "topicId"); + return (Criteria) this; + } + public Criteria andTitleIsNull() { addCriterion("title is null"); return (Criteria) this; diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsMenu.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsMenu.java new file mode 100644 index 00000000..d143f609 --- /dev/null +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsMenu.java @@ -0,0 +1,146 @@ +package com.zheng.cms.dao.model; + +import java.io.Serializable; + +public class CmsMenu implements Serializable { + /** + * 编号 + * + * @mbg.generated + */ + private Integer pageId; + + /** + * 父菜单 + * + * @mbg.generated + */ + private Integer pid; + + /** + * 名称 + * + * @mbg.generated + */ + private String name; + + /** + * 链接 + * + * @mbg.generated + */ + private String url; + + /** + * 打开方式 + * + * @mbg.generated + */ + private String target; + + /** + * 排序 + * + * @mbg.generated + */ + private Long orders; + + private static final long serialVersionUID = 1L; + + public Integer getPageId() { + return pageId; + } + + public void setPageId(Integer pageId) { + this.pageId = pageId; + } + + public Integer getPid() { + return pid; + } + + public void setPid(Integer pid) { + this.pid = pid; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getTarget() { + return target; + } + + public void setTarget(String target) { + this.target = target; + } + + public Long getOrders() { + return orders; + } + + public void setOrders(Long orders) { + this.orders = orders; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", pageId=").append(pageId); + sb.append(", pid=").append(pid); + sb.append(", name=").append(name); + sb.append(", url=").append(url); + sb.append(", target=").append(target); + sb.append(", orders=").append(orders); + sb.append("]"); + return sb.toString(); + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + CmsMenu other = (CmsMenu) that; + return (this.getPageId() == null ? other.getPageId() == null : this.getPageId().equals(other.getPageId())) + && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid())) + && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) + && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl())) + && (this.getTarget() == null ? other.getTarget() == null : this.getTarget().equals(other.getTarget())) + && (this.getOrders() == null ? other.getOrders() == null : this.getOrders().equals(other.getOrders())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getPageId() == null) ? 0 : getPageId().hashCode()); + result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode()); + result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); + result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode()); + result = prime * result + ((getTarget() == null) ? 0 : getTarget().hashCode()); + result = prime * result + ((getOrders() == null) ? 0 : getOrders().hashCode()); + return result; + } +} \ No newline at end of file diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsMenuExample.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsMenuExample.java new file mode 100644 index 00000000..e5db76c8 --- /dev/null +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsMenuExample.java @@ -0,0 +1,613 @@ +package com.zheng.cms.dao.model; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +public class CmsMenuExample implements Serializable { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private static final long serialVersionUID = 1L; + + private Integer limit; + + private Integer offset; + + public CmsMenuExample() { + 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; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria implements Serializable { + 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 andPageIdIsNull() { + addCriterion("page_id is null"); + return (Criteria) this; + } + + public Criteria andPageIdIsNotNull() { + addCriterion("page_id is not null"); + return (Criteria) this; + } + + public Criteria andPageIdEqualTo(Integer value) { + addCriterion("page_id =", value, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdNotEqualTo(Integer value) { + addCriterion("page_id <>", value, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdGreaterThan(Integer value) { + addCriterion("page_id >", value, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdGreaterThanOrEqualTo(Integer value) { + addCriterion("page_id >=", value, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdLessThan(Integer value) { + addCriterion("page_id <", value, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdLessThanOrEqualTo(Integer value) { + addCriterion("page_id <=", value, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdIn(List values) { + addCriterion("page_id in", values, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdNotIn(List values) { + addCriterion("page_id not in", values, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdBetween(Integer value1, Integer value2) { + addCriterion("page_id between", value1, value2, "pageId"); + return (Criteria) this; + } + + public Criteria andPageIdNotBetween(Integer value1, Integer value2) { + addCriterion("page_id not between", value1, value2, "pageId"); + return (Criteria) this; + } + + public Criteria andPidIsNull() { + addCriterion("pid is null"); + return (Criteria) this; + } + + public Criteria andPidIsNotNull() { + addCriterion("pid is not null"); + return (Criteria) this; + } + + public Criteria andPidEqualTo(Integer value) { + addCriterion("pid =", value, "pid"); + return (Criteria) this; + } + + public Criteria andPidNotEqualTo(Integer value) { + addCriterion("pid <>", value, "pid"); + return (Criteria) this; + } + + public Criteria andPidGreaterThan(Integer value) { + addCriterion("pid >", value, "pid"); + return (Criteria) this; + } + + public Criteria andPidGreaterThanOrEqualTo(Integer value) { + addCriterion("pid >=", value, "pid"); + return (Criteria) this; + } + + public Criteria andPidLessThan(Integer value) { + addCriterion("pid <", value, "pid"); + return (Criteria) this; + } + + public Criteria andPidLessThanOrEqualTo(Integer value) { + addCriterion("pid <=", value, "pid"); + return (Criteria) this; + } + + public Criteria andPidIn(List values) { + addCriterion("pid in", values, "pid"); + return (Criteria) this; + } + + public Criteria andPidNotIn(List values) { + addCriterion("pid not in", values, "pid"); + return (Criteria) this; + } + + public Criteria andPidBetween(Integer value1, Integer value2) { + addCriterion("pid between", value1, value2, "pid"); + return (Criteria) this; + } + + public Criteria andPidNotBetween(Integer value1, Integer value2) { + addCriterion("pid not between", value1, value2, "pid"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andUrlIsNull() { + addCriterion("url is null"); + return (Criteria) this; + } + + public Criteria andUrlIsNotNull() { + addCriterion("url is not null"); + return (Criteria) this; + } + + public Criteria andUrlEqualTo(String value) { + addCriterion("url =", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotEqualTo(String value) { + addCriterion("url <>", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThan(String value) { + addCriterion("url >", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThanOrEqualTo(String value) { + addCriterion("url >=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThan(String value) { + addCriterion("url <", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThanOrEqualTo(String value) { + addCriterion("url <=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLike(String value) { + addCriterion("url like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotLike(String value) { + addCriterion("url not like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlIn(List values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List values) { + addCriterion("url not in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlBetween(String value1, String value2) { + addCriterion("url between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotBetween(String value1, String value2) { + addCriterion("url not between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andTargetIsNull() { + addCriterion("target is null"); + return (Criteria) this; + } + + public Criteria andTargetIsNotNull() { + addCriterion("target is not null"); + return (Criteria) this; + } + + public Criteria andTargetEqualTo(String value) { + addCriterion("target =", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetNotEqualTo(String value) { + addCriterion("target <>", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetGreaterThan(String value) { + addCriterion("target >", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetGreaterThanOrEqualTo(String value) { + addCriterion("target >=", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetLessThan(String value) { + addCriterion("target <", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetLessThanOrEqualTo(String value) { + addCriterion("target <=", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetLike(String value) { + addCriterion("target like", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetNotLike(String value) { + addCriterion("target not like", value, "target"); + return (Criteria) this; + } + + public Criteria andTargetIn(List values) { + addCriterion("target in", values, "target"); + return (Criteria) this; + } + + public Criteria andTargetNotIn(List values) { + addCriterion("target not in", values, "target"); + return (Criteria) this; + } + + public Criteria andTargetBetween(String value1, String value2) { + addCriterion("target between", value1, value2, "target"); + return (Criteria) this; + } + + public Criteria andTargetNotBetween(String value1, String value2) { + addCriterion("target not between", value1, value2, "target"); + return (Criteria) this; + } + + public Criteria andOrdersIsNull() { + addCriterion("orders is null"); + return (Criteria) this; + } + + public Criteria andOrdersIsNotNull() { + addCriterion("orders is not null"); + return (Criteria) this; + } + + public Criteria andOrdersEqualTo(Long value) { + addCriterion("orders =", value, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersNotEqualTo(Long value) { + addCriterion("orders <>", value, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersGreaterThan(Long value) { + addCriterion("orders >", value, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersGreaterThanOrEqualTo(Long value) { + addCriterion("orders >=", value, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersLessThan(Long value) { + addCriterion("orders <", value, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersLessThanOrEqualTo(Long value) { + addCriterion("orders <=", value, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersIn(List values) { + addCriterion("orders in", values, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersNotIn(List values) { + addCriterion("orders not in", values, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersBetween(Long value1, Long value2) { + addCriterion("orders between", value1, value2, "orders"); + return (Criteria) this; + } + + public Criteria andOrdersNotBetween(Long value1, Long value2) { + addCriterion("orders not between", value1, value2, "orders"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria implements Serializable { + + protected Criteria() { + super(); + } + } + + public static class Criterion implements Serializable { + 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/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPage.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPage.java index 73e6802d..619bc080 100644 --- a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPage.java +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPage.java @@ -3,20 +3,67 @@ package com.zheng.cms.dao.model; import java.io.Serializable; public class CmsPage implements Serializable { + /** + * 编码 + * + * @mbg.generated + */ private Integer pageId; + /** + * 父页面 + * + * @mbg.generated + */ private Integer pid; + /** + * 标题 + * + * @mbg.generated + */ + private String title; + + /** + * 别名 + * + * @mbg.generated + */ private String alias; + /** + * 关键字 + * + * @mbg.generated + */ private String keywords; + /** + * 描述 + * + * @mbg.generated + */ private String description; + /** + * 创建时间 + * + * @mbg.generated + */ private Long ctime; + /** + * 排序 + * + * @mbg.generated + */ private Long orders; + /** + * 页面内容 + * + * @mbg.generated + */ private String content; private static final long serialVersionUID = 1L; @@ -37,6 +84,14 @@ public class CmsPage implements Serializable { this.pid = pid; } + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + public String getAlias() { return alias; } @@ -93,6 +148,7 @@ public class CmsPage implements Serializable { sb.append("Hash = ").append(hashCode()); sb.append(", pageId=").append(pageId); sb.append(", pid=").append(pid); + sb.append(", title=").append(title); sb.append(", alias=").append(alias); sb.append(", keywords=").append(keywords); sb.append(", description=").append(description); @@ -117,6 +173,7 @@ public class CmsPage implements Serializable { CmsPage other = (CmsPage) that; return (this.getPageId() == null ? other.getPageId() == null : this.getPageId().equals(other.getPageId())) && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid())) + && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) && (this.getAlias() == null ? other.getAlias() == null : this.getAlias().equals(other.getAlias())) && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords())) && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())) @@ -131,6 +188,7 @@ public class CmsPage implements Serializable { int result = 1; result = prime * result + ((getPageId() == null) ? 0 : getPageId().hashCode()); result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode()); + result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); result = prime * result + ((getAlias() == null) ? 0 : getAlias().hashCode()); result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode()); result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPageExample.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPageExample.java index 72b335f4..6c938af0 100644 --- a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPageExample.java +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsPageExample.java @@ -247,6 +247,76 @@ public class CmsPageExample implements Serializable { 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; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + 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 andAliasIsNull() { addCriterion("alias is null"); return (Criteria) this; diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsTopic.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsTopic.java new file mode 100644 index 00000000..13413240 --- /dev/null +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsTopic.java @@ -0,0 +1,128 @@ +package com.zheng.cms.dao.model; + +import java.io.Serializable; + +public class CmsTopic implements Serializable { + /** + * 编号 + * + * @mbg.generated + */ + private Integer topicId; + + /** + * 标题 + * + * @mbg.generated + */ + private String title; + + /** + * 描述 + * + * @mbg.generated + */ + private String description; + + /** + * 链接 + * + * @mbg.generated + */ + private String url; + + /** + * 创建时间 + * + * @mbg.generated + */ + private Long ctime; + + private static final long serialVersionUID = 1L; + + public Integer getTopicId() { + return topicId; + } + + public void setTopicId(Integer topicId) { + this.topicId = topicId; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public Long getCtime() { + return ctime; + } + + public void setCtime(Long ctime) { + this.ctime = ctime; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", topicId=").append(topicId); + sb.append(", title=").append(title); + sb.append(", description=").append(description); + sb.append(", url=").append(url); + sb.append(", ctime=").append(ctime); + sb.append("]"); + return sb.toString(); + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + CmsTopic other = (CmsTopic) that; + return (this.getTopicId() == null ? other.getTopicId() == null : this.getTopicId().equals(other.getTopicId())) + && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) + && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())) + && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl())) + && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getTopicId() == null) ? 0 : getTopicId().hashCode()); + result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); + result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); + result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode()); + result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode()); + return result; + } +} \ No newline at end of file diff --git a/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsTopicExample.java b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsTopicExample.java new file mode 100644 index 00000000..5063a67c --- /dev/null +++ b/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsTopicExample.java @@ -0,0 +1,553 @@ +package com.zheng.cms.dao.model; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +public class CmsTopicExample implements Serializable { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private static final long serialVersionUID = 1L; + + private Integer limit; + + private Integer offset; + + public CmsTopicExample() { + 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; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getLimit() { + return limit; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getOffset() { + return offset; + } + + protected abstract static class GeneratedCriteria implements Serializable { + 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 andTopicIdIsNull() { + addCriterion("topic_id is null"); + return (Criteria) this; + } + + public Criteria andTopicIdIsNotNull() { + addCriterion("topic_id is not null"); + return (Criteria) this; + } + + public Criteria andTopicIdEqualTo(Integer value) { + addCriterion("topic_id =", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotEqualTo(Integer value) { + addCriterion("topic_id <>", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdGreaterThan(Integer value) { + addCriterion("topic_id >", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdGreaterThanOrEqualTo(Integer value) { + addCriterion("topic_id >=", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdLessThan(Integer value) { + addCriterion("topic_id <", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdLessThanOrEqualTo(Integer value) { + addCriterion("topic_id <=", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdIn(List values) { + addCriterion("topic_id in", values, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotIn(List values) { + addCriterion("topic_id not in", values, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdBetween(Integer value1, Integer value2) { + addCriterion("topic_id between", value1, value2, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotBetween(Integer value1, Integer value2) { + addCriterion("topic_id not between", value1, value2, "topicId"); + 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; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + 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 andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andUrlIsNull() { + addCriterion("url is null"); + return (Criteria) this; + } + + public Criteria andUrlIsNotNull() { + addCriterion("url is not null"); + return (Criteria) this; + } + + public Criteria andUrlEqualTo(String value) { + addCriterion("url =", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotEqualTo(String value) { + addCriterion("url <>", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThan(String value) { + addCriterion("url >", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThanOrEqualTo(String value) { + addCriterion("url >=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThan(String value) { + addCriterion("url <", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThanOrEqualTo(String value) { + addCriterion("url <=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLike(String value) { + addCriterion("url like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotLike(String value) { + addCriterion("url not like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlIn(List values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List values) { + addCriterion("url not in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlBetween(String value1, String value2) { + addCriterion("url between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotBetween(String value1, String value2) { + addCriterion("url not between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andCtimeIsNull() { + addCriterion("ctime is null"); + return (Criteria) this; + } + + public Criteria andCtimeIsNotNull() { + addCriterion("ctime is not null"); + return (Criteria) this; + } + + public Criteria andCtimeEqualTo(Long value) { + addCriterion("ctime =", value, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeNotEqualTo(Long value) { + addCriterion("ctime <>", value, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeGreaterThan(Long value) { + addCriterion("ctime >", value, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeGreaterThanOrEqualTo(Long value) { + addCriterion("ctime >=", value, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeLessThan(Long value) { + addCriterion("ctime <", value, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeLessThanOrEqualTo(Long value) { + addCriterion("ctime <=", value, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeIn(List values) { + addCriterion("ctime in", values, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeNotIn(List values) { + addCriterion("ctime not in", values, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeBetween(Long value1, Long value2) { + addCriterion("ctime between", value1, value2, "ctime"); + return (Criteria) this; + } + + public Criteria andCtimeNotBetween(Long value1, Long value2) { + addCriterion("ctime not between", value1, value2, "ctime"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria implements Serializable { + + protected Criteria() { + super(); + } + } + + public static class Criterion implements Serializable { + 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/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsMenuService.java b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsMenuService.java new file mode 100644 index 00000000..aa6267f9 --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsMenuService.java @@ -0,0 +1,13 @@ +package com.zheng.cms.rpc.api; + +import com.zheng.cms.dao.model.CmsMenu; +import com.zheng.cms.dao.model.CmsMenuExample; +import com.zheng.common.base.BaseService; + +/** + * 菜单service接口 + * Created by shuzheng on 2017/3/18. + */ +public interface CmsMenuService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsMenuServiceMock.java b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsMenuServiceMock.java new file mode 100644 index 00000000..365b1716 --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsMenuServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.cms.rpc.api; + +import com.zheng.cms.dao.mapper.CmsMenuMapper; +import com.zheng.cms.dao.model.CmsMenu; +import com.zheng.cms.dao.model.CmsMenuExample; +import com.zheng.common.base.BaseServiceMock; + +/** + * 降级实现CmsMenuService接口 + * Created by shuzheng on 2017/3/18. + */ +public class CmsMenuServiceMock extends BaseServiceMock implements CmsMenuService { + +} diff --git a/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsTopicService.java b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsTopicService.java new file mode 100644 index 00000000..4333d8e0 --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsTopicService.java @@ -0,0 +1,13 @@ +package com.zheng.cms.rpc.api; + +import com.zheng.cms.dao.model.CmsTopic; +import com.zheng.cms.dao.model.CmsTopicExample; +import com.zheng.common.base.BaseService; + +/** + * 专题service接口 + * Created by shuzheng on 2017/3/18. + */ +public interface CmsTopicService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsTopicServiceMock.java b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsTopicServiceMock.java new file mode 100644 index 00000000..715f4fc3 --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-api/src/main/java/com/zheng/cms/rpc/api/CmsTopicServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.cms.rpc.api; + +import com.zheng.cms.dao.mapper.CmsTopicMapper; +import com.zheng.cms.dao.model.CmsTopic; +import com.zheng.cms.dao.model.CmsTopicExample; +import com.zheng.common.base.BaseServiceMock; + +/** + * 降级实现CmsTopicService接口 + * Created by shuzheng on 2017/3/18. + */ +public class CmsTopicServiceMock extends BaseServiceMock implements CmsTopicService { + +} diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleCategoryMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleCategoryMapper.xml index e34c14c8..2779d318 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleCategoryMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleCategoryMapper.xml @@ -187,4 +187,190 @@ where article_category_id = #{articleCategoryId,jdbcType=INTEGER} + + + + + + + + + + + + + + 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} + + + + + + + + + + + article_category_id, article_id, category_id + + + + + delete from cms_article_category + where article_category_id = #{articleCategoryId,jdbcType=INTEGER} + + + delete from cms_article_category + + + + + + insert into cms_article_category (article_category_id, article_id, category_id + ) + values (#{articleCategoryId,jdbcType=INTEGER}, #{articleId,jdbcType=INTEGER}, #{categoryId,jdbcType=INTEGER} + ) + + + insert into cms_article_category + + + article_category_id, + + + article_id, + + + category_id, + + + + + #{articleCategoryId,jdbcType=INTEGER}, + + + #{articleId,jdbcType=INTEGER}, + + + #{categoryId,jdbcType=INTEGER}, + + + + + + update cms_article_category + + + article_category_id = #{record.articleCategoryId,jdbcType=INTEGER}, + + + article_id = #{record.articleId,jdbcType=INTEGER}, + + + category_id = #{record.categoryId,jdbcType=INTEGER}, + + + + + + + + update cms_article_category + set article_category_id = #{record.articleCategoryId,jdbcType=INTEGER}, + article_id = #{record.articleId,jdbcType=INTEGER}, + category_id = #{record.categoryId,jdbcType=INTEGER} + + + + + + update cms_article_category + + + article_id = #{articleId,jdbcType=INTEGER}, + + + category_id = #{categoryId,jdbcType=INTEGER}, + + + where article_category_id = #{articleCategoryId,jdbcType=INTEGER} + + + update cms_article_category + set article_id = #{articleId,jdbcType=INTEGER}, + category_id = #{categoryId,jdbcType=INTEGER} + where article_category_id = #{articleCategoryId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleMapper.xml index ed3a5b37..55bd4b51 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleMapper.xml @@ -1,6 +1,458 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + article_id, topic_id, title, author, fromurl, image, keywords, description, type, + allowcomments, status, user_id, readnumber, ctime, orders + + + content + + + + + + delete from cms_article + where article_id = #{articleId,jdbcType=INTEGER} + + + delete from cms_article + + + + + + insert into cms_article (article_id, topic_id, title, + author, fromurl, image, + keywords, description, type, + allowcomments, status, user_id, + readnumber, ctime, orders, + content) + values (#{articleId,jdbcType=INTEGER}, #{topicId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, + #{author,jdbcType=VARCHAR}, #{fromurl,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, + #{keywords,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, + #{allowcomments,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{userId,jdbcType=INTEGER}, + #{readnumber,jdbcType=INTEGER}, #{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT}, + #{content,jdbcType=LONGVARCHAR}) + + + insert into cms_article + + + article_id, + + + topic_id, + + + title, + + + author, + + + fromurl, + + + image, + + + keywords, + + + description, + + + type, + + + allowcomments, + + + status, + + + user_id, + + + readnumber, + + + ctime, + + + orders, + + + content, + + + + + #{articleId,jdbcType=INTEGER}, + + + #{topicId,jdbcType=INTEGER}, + + + #{title,jdbcType=VARCHAR}, + + + #{author,jdbcType=VARCHAR}, + + + #{fromurl,jdbcType=VARCHAR}, + + + #{image,jdbcType=VARCHAR}, + + + #{keywords,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{type,jdbcType=TINYINT}, + + + #{allowcomments,jdbcType=TINYINT}, + + + #{status,jdbcType=TINYINT}, + + + #{userId,jdbcType=INTEGER}, + + + #{readnumber,jdbcType=INTEGER}, + + + #{ctime,jdbcType=BIGINT}, + + + #{orders,jdbcType=BIGINT}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update cms_article + + + article_id = #{record.articleId,jdbcType=INTEGER}, + + + topic_id = #{record.topicId,jdbcType=INTEGER}, + + + title = #{record.title,jdbcType=VARCHAR}, + + + author = #{record.author,jdbcType=VARCHAR}, + + + fromurl = #{record.fromurl,jdbcType=VARCHAR}, + + + image = #{record.image,jdbcType=VARCHAR}, + + + keywords = #{record.keywords,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + type = #{record.type,jdbcType=TINYINT}, + + + allowcomments = #{record.allowcomments,jdbcType=TINYINT}, + + + status = #{record.status,jdbcType=TINYINT}, + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + readnumber = #{record.readnumber,jdbcType=INTEGER}, + + + ctime = #{record.ctime,jdbcType=BIGINT}, + + + orders = #{record.orders,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + + + + + + + update cms_article + set article_id = #{record.articleId,jdbcType=INTEGER}, + topic_id = #{record.topicId,jdbcType=INTEGER}, + title = #{record.title,jdbcType=VARCHAR}, + author = #{record.author,jdbcType=VARCHAR}, + fromurl = #{record.fromurl,jdbcType=VARCHAR}, + image = #{record.image,jdbcType=VARCHAR}, + keywords = #{record.keywords,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + type = #{record.type,jdbcType=TINYINT}, + allowcomments = #{record.allowcomments,jdbcType=TINYINT}, + status = #{record.status,jdbcType=TINYINT}, + user_id = #{record.userId,jdbcType=INTEGER}, + readnumber = #{record.readnumber,jdbcType=INTEGER}, + ctime = #{record.ctime,jdbcType=BIGINT}, + orders = #{record.orders,jdbcType=BIGINT}, + content = #{record.content,jdbcType=LONGVARCHAR} + + + + + + update cms_article + set article_id = #{record.articleId,jdbcType=INTEGER}, + topic_id = #{record.topicId,jdbcType=INTEGER}, + title = #{record.title,jdbcType=VARCHAR}, + author = #{record.author,jdbcType=VARCHAR}, + fromurl = #{record.fromurl,jdbcType=VARCHAR}, + image = #{record.image,jdbcType=VARCHAR}, + keywords = #{record.keywords,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + type = #{record.type,jdbcType=TINYINT}, + allowcomments = #{record.allowcomments,jdbcType=TINYINT}, + status = #{record.status,jdbcType=TINYINT}, + user_id = #{record.userId,jdbcType=INTEGER}, + readnumber = #{record.readnumber,jdbcType=INTEGER}, + ctime = #{record.ctime,jdbcType=BIGINT}, + orders = #{record.orders,jdbcType=BIGINT} + + + + + + update cms_article + + + topic_id = #{topicId,jdbcType=INTEGER}, + + + title = #{title,jdbcType=VARCHAR}, + + + author = #{author,jdbcType=VARCHAR}, + + + fromurl = #{fromurl,jdbcType=VARCHAR}, + + + image = #{image,jdbcType=VARCHAR}, + + + keywords = #{keywords,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=TINYINT}, + + + allowcomments = #{allowcomments,jdbcType=TINYINT}, + + + status = #{status,jdbcType=TINYINT}, + + + user_id = #{userId,jdbcType=INTEGER}, + + + readnumber = #{readnumber,jdbcType=INTEGER}, + + + ctime = #{ctime,jdbcType=BIGINT}, + + + orders = #{orders,jdbcType=BIGINT}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where article_id = #{articleId,jdbcType=INTEGER} + + + update cms_article + set topic_id = #{topicId,jdbcType=INTEGER}, + title = #{title,jdbcType=VARCHAR}, + author = #{author,jdbcType=VARCHAR}, + fromurl = #{fromurl,jdbcType=VARCHAR}, + image = #{image,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + type = #{type,jdbcType=TINYINT}, + allowcomments = #{allowcomments,jdbcType=TINYINT}, + status = #{status,jdbcType=TINYINT}, + user_id = #{userId,jdbcType=INTEGER}, + readnumber = #{readnumber,jdbcType=INTEGER}, + ctime = #{ctime,jdbcType=BIGINT}, + orders = #{orders,jdbcType=BIGINT}, + content = #{content,jdbcType=LONGVARCHAR} + where article_id = #{articleId,jdbcType=INTEGER} + + + update cms_article + set topic_id = #{topicId,jdbcType=INTEGER}, + title = #{title,jdbcType=VARCHAR}, + author = #{author,jdbcType=VARCHAR}, + fromurl = #{fromurl,jdbcType=VARCHAR}, + image = #{image,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + type = #{type,jdbcType=TINYINT}, + allowcomments = #{allowcomments,jdbcType=TINYINT}, + status = #{status,jdbcType=TINYINT}, + user_id = #{userId,jdbcType=INTEGER}, + readnumber = #{readnumber,jdbcType=INTEGER}, + ctime = #{ctime,jdbcType=BIGINT}, + orders = #{orders,jdbcType=BIGINT} + where article_id = #{articleId,jdbcType=INTEGER} + + diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleTagMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleTagMapper.xml index 05159b2f..364d7add 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleTagMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsArticleTagMapper.xml @@ -187,4 +187,190 @@ where article_tag_id = #{articleTagId,jdbcType=INTEGER} + + + + + + + + + + + + + + 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} + + + + + + + + + + + article_tag_id, article_id, tag_id + + + + + delete from cms_article_tag + where article_tag_id = #{articleTagId,jdbcType=INTEGER} + + + delete from cms_article_tag + + + + + + insert into cms_article_tag (article_tag_id, article_id, tag_id + ) + values (#{articleTagId,jdbcType=INTEGER}, #{articleId,jdbcType=INTEGER}, #{tagId,jdbcType=INTEGER} + ) + + + insert into cms_article_tag + + + article_tag_id, + + + article_id, + + + tag_id, + + + + + #{articleTagId,jdbcType=INTEGER}, + + + #{articleId,jdbcType=INTEGER}, + + + #{tagId,jdbcType=INTEGER}, + + + + + + update cms_article_tag + + + article_tag_id = #{record.articleTagId,jdbcType=INTEGER}, + + + article_id = #{record.articleId,jdbcType=INTEGER}, + + + tag_id = #{record.tagId,jdbcType=INTEGER}, + + + + + + + + update cms_article_tag + set article_tag_id = #{record.articleTagId,jdbcType=INTEGER}, + article_id = #{record.articleId,jdbcType=INTEGER}, + tag_id = #{record.tagId,jdbcType=INTEGER} + + + + + + update cms_article_tag + + + article_id = #{articleId,jdbcType=INTEGER}, + + + tag_id = #{tagId,jdbcType=INTEGER}, + + + where article_tag_id = #{articleTagId,jdbcType=INTEGER} + + + update cms_article_tag + set article_id = #{articleId,jdbcType=INTEGER}, + tag_id = #{tagId,jdbcType=INTEGER} + where article_tag_id = #{articleTagId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsBookMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsBookMapper.xml index 9b5fee22..9341943a 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsBookMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsBookMapper.xml @@ -187,4 +187,190 @@ where book_id = #{bookId,jdbcType=INTEGER} + + + + + + + + + + + + + + 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} + + + + + + + + + + + book_id, user_id, name + + + + + delete from cms_book + where book_id = #{bookId,jdbcType=INTEGER} + + + delete from cms_book + + + + + + insert into cms_book (book_id, user_id, name + ) + values (#{bookId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR} + ) + + + insert into cms_book + + + book_id, + + + user_id, + + + name, + + + + + #{bookId,jdbcType=INTEGER}, + + + #{userId,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + + + + update cms_book + + + book_id = #{record.bookId,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + + + + + + update cms_book + set book_id = #{record.bookId,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=INTEGER}, + name = #{record.name,jdbcType=VARCHAR} + + + + + + update cms_book + + + user_id = #{userId,jdbcType=INTEGER}, + + + name = #{name,jdbcType=VARCHAR}, + + + where book_id = #{bookId,jdbcType=INTEGER} + + + update cms_book + set user_id = #{userId,jdbcType=INTEGER}, + name = #{name,jdbcType=VARCHAR} + where book_id = #{bookId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryMapper.xml index eaa8d320..e8d8e384 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryMapper.xml @@ -296,4 +296,299 @@ where category_id = #{categoryId,jdbcType=INTEGER} + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + category_id, pid, level, name, description, icon, type, alias, ctime, orders + + + + + delete from cms_category + where category_id = #{categoryId,jdbcType=INTEGER} + + + delete from cms_category + + + + + + insert into cms_category (category_id, pid, level, + name, description, icon, + type, alias, ctime, + orders) + values (#{categoryId,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER}, #{level,jdbcType=TINYINT}, + #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, + #{type,jdbcType=TINYINT}, #{alias,jdbcType=VARCHAR}, #{ctime,jdbcType=BIGINT}, + #{orders,jdbcType=BIGINT}) + + + insert into cms_category + + + category_id, + + + pid, + + + level, + + + name, + + + description, + + + icon, + + + type, + + + alias, + + + ctime, + + + orders, + + + + + #{categoryId,jdbcType=INTEGER}, + + + #{pid,jdbcType=INTEGER}, + + + #{level,jdbcType=TINYINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{type,jdbcType=TINYINT}, + + + #{alias,jdbcType=VARCHAR}, + + + #{ctime,jdbcType=BIGINT}, + + + #{orders,jdbcType=BIGINT}, + + + + + + update cms_category + + + category_id = #{record.categoryId,jdbcType=INTEGER}, + + + pid = #{record.pid,jdbcType=INTEGER}, + + + level = #{record.level,jdbcType=TINYINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + icon = #{record.icon,jdbcType=VARCHAR}, + + + type = #{record.type,jdbcType=TINYINT}, + + + alias = #{record.alias,jdbcType=VARCHAR}, + + + ctime = #{record.ctime,jdbcType=BIGINT}, + + + orders = #{record.orders,jdbcType=BIGINT}, + + + + + + + + update cms_category + set category_id = #{record.categoryId,jdbcType=INTEGER}, + pid = #{record.pid,jdbcType=INTEGER}, + level = #{record.level,jdbcType=TINYINT}, + name = #{record.name,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + icon = #{record.icon,jdbcType=VARCHAR}, + type = #{record.type,jdbcType=TINYINT}, + alias = #{record.alias,jdbcType=VARCHAR}, + ctime = #{record.ctime,jdbcType=BIGINT}, + orders = #{record.orders,jdbcType=BIGINT} + + + + + + update cms_category + + + pid = #{pid,jdbcType=INTEGER}, + + + level = #{level,jdbcType=TINYINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=TINYINT}, + + + alias = #{alias,jdbcType=VARCHAR}, + + + ctime = #{ctime,jdbcType=BIGINT}, + + + orders = #{orders,jdbcType=BIGINT}, + + + where category_id = #{categoryId,jdbcType=INTEGER} + + + update cms_category + set pid = #{pid,jdbcType=INTEGER}, + level = #{level,jdbcType=TINYINT}, + name = #{name,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + type = #{type,jdbcType=TINYINT}, + alias = #{alias,jdbcType=VARCHAR}, + ctime = #{ctime,jdbcType=BIGINT}, + orders = #{orders,jdbcType=BIGINT} + where category_id = #{categoryId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryTagMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryTagMapper.xml index 7dc4e061..5b193013 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryTagMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCategoryTagMapper.xml @@ -187,4 +187,190 @@ where category_tag_id = #{categoryTagId,jdbcType=INTEGER} + + + + + + + + + + + + + + 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} + + + + + + + + + + + category_tag_id, category_id, tag_id + + + + + delete from cms_category_tag + where category_tag_id = #{categoryTagId,jdbcType=INTEGER} + + + delete from cms_category_tag + + + + + + insert into cms_category_tag (category_tag_id, category_id, tag_id + ) + values (#{categoryTagId,jdbcType=INTEGER}, #{categoryId,jdbcType=INTEGER}, #{tagId,jdbcType=INTEGER} + ) + + + insert into cms_category_tag + + + category_tag_id, + + + category_id, + + + tag_id, + + + + + #{categoryTagId,jdbcType=INTEGER}, + + + #{categoryId,jdbcType=INTEGER}, + + + #{tagId,jdbcType=INTEGER}, + + + + + + update cms_category_tag + + + category_tag_id = #{record.categoryTagId,jdbcType=INTEGER}, + + + category_id = #{record.categoryId,jdbcType=INTEGER}, + + + tag_id = #{record.tagId,jdbcType=INTEGER}, + + + + + + + + update cms_category_tag + set category_tag_id = #{record.categoryTagId,jdbcType=INTEGER}, + category_id = #{record.categoryId,jdbcType=INTEGER}, + tag_id = #{record.tagId,jdbcType=INTEGER} + + + + + + update cms_category_tag + + + category_id = #{categoryId,jdbcType=INTEGER}, + + + tag_id = #{tagId,jdbcType=INTEGER}, + + + where category_tag_id = #{categoryTagId,jdbcType=INTEGER} + + + update cms_category_tag + set category_id = #{categoryId,jdbcType=INTEGER}, + tag_id = #{tagId,jdbcType=INTEGER} + where category_tag_id = #{categoryTagId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCommentMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCommentMapper.xml index e7d2d1a9..745640d2 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCommentMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsCommentMapper.xml @@ -329,4 +329,332 @@ where comment_id = #{commentId,jdbcType=INTEGER} + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + comment_id, pid, article_id, user_id, status, ip, agent, ctime + + + content + + + + + + delete from cms_comment + where comment_id = #{commentId,jdbcType=INTEGER} + + + delete from cms_comment + + + + + + insert into cms_comment (comment_id, pid, article_id, + user_id, status, ip, + agent, ctime, content + ) + values (#{commentId,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER}, #{articleId,jdbcType=INTEGER}, + #{userId,jdbcType=INTEGER}, #{status,jdbcType=TINYINT}, #{ip,jdbcType=VARCHAR}, + #{agent,jdbcType=VARCHAR}, #{ctime,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR} + ) + + + insert into cms_comment + + + comment_id, + + + pid, + + + article_id, + + + user_id, + + + status, + + + ip, + + + agent, + + + ctime, + + + content, + + + + + #{commentId,jdbcType=INTEGER}, + + + #{pid,jdbcType=INTEGER}, + + + #{articleId,jdbcType=INTEGER}, + + + #{userId,jdbcType=INTEGER}, + + + #{status,jdbcType=TINYINT}, + + + #{ip,jdbcType=VARCHAR}, + + + #{agent,jdbcType=VARCHAR}, + + + #{ctime,jdbcType=BIGINT}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update cms_comment + + + comment_id = #{record.commentId,jdbcType=INTEGER}, + + + pid = #{record.pid,jdbcType=INTEGER}, + + + article_id = #{record.articleId,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + status = #{record.status,jdbcType=TINYINT}, + + + ip = #{record.ip,jdbcType=VARCHAR}, + + + agent = #{record.agent,jdbcType=VARCHAR}, + + + ctime = #{record.ctime,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + + + + + + + update cms_comment + set comment_id = #{record.commentId,jdbcType=INTEGER}, + pid = #{record.pid,jdbcType=INTEGER}, + article_id = #{record.articleId,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=INTEGER}, + status = #{record.status,jdbcType=TINYINT}, + ip = #{record.ip,jdbcType=VARCHAR}, + agent = #{record.agent,jdbcType=VARCHAR}, + ctime = #{record.ctime,jdbcType=BIGINT}, + content = #{record.content,jdbcType=LONGVARCHAR} + + + + + + update cms_comment + set comment_id = #{record.commentId,jdbcType=INTEGER}, + pid = #{record.pid,jdbcType=INTEGER}, + article_id = #{record.articleId,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=INTEGER}, + status = #{record.status,jdbcType=TINYINT}, + ip = #{record.ip,jdbcType=VARCHAR}, + agent = #{record.agent,jdbcType=VARCHAR}, + ctime = #{record.ctime,jdbcType=BIGINT} + + + + + + update cms_comment + + + pid = #{pid,jdbcType=INTEGER}, + + + article_id = #{articleId,jdbcType=INTEGER}, + + + user_id = #{userId,jdbcType=INTEGER}, + + + status = #{status,jdbcType=TINYINT}, + + + ip = #{ip,jdbcType=VARCHAR}, + + + agent = #{agent,jdbcType=VARCHAR}, + + + ctime = #{ctime,jdbcType=BIGINT}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where comment_id = #{commentId,jdbcType=INTEGER} + + + update cms_comment + set pid = #{pid,jdbcType=INTEGER}, + article_id = #{articleId,jdbcType=INTEGER}, + user_id = #{userId,jdbcType=INTEGER}, + status = #{status,jdbcType=TINYINT}, + ip = #{ip,jdbcType=VARCHAR}, + agent = #{agent,jdbcType=VARCHAR}, + ctime = #{ctime,jdbcType=BIGINT}, + content = #{content,jdbcType=LONGVARCHAR} + where comment_id = #{commentId,jdbcType=INTEGER} + + + update cms_comment + set pid = #{pid,jdbcType=INTEGER}, + article_id = #{articleId,jdbcType=INTEGER}, + user_id = #{userId,jdbcType=INTEGER}, + status = #{status,jdbcType=TINYINT}, + ip = #{ip,jdbcType=VARCHAR}, + agent = #{agent,jdbcType=VARCHAR}, + ctime = #{ctime,jdbcType=BIGINT} + where comment_id = #{commentId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsMenuMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsMenuMapper.xml new file mode 100644 index 00000000..a0c37418 --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsMenuMapper.xml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + page_id, pid, name, url, target, orders + + + + + delete from cms_menu + where page_id = #{pageId,jdbcType=INTEGER} + + + delete from cms_menu + + + + + + insert into cms_menu (page_id, pid, name, + url, target, orders) + values (#{pageId,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, + #{url,jdbcType=VARCHAR}, #{target,jdbcType=VARCHAR}, #{orders,jdbcType=BIGINT}) + + + insert into cms_menu + + + page_id, + + + pid, + + + name, + + + url, + + + target, + + + orders, + + + + + #{pageId,jdbcType=INTEGER}, + + + #{pid,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{url,jdbcType=VARCHAR}, + + + #{target,jdbcType=VARCHAR}, + + + #{orders,jdbcType=BIGINT}, + + + + + + update cms_menu + + + page_id = #{record.pageId,jdbcType=INTEGER}, + + + pid = #{record.pid,jdbcType=INTEGER}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + url = #{record.url,jdbcType=VARCHAR}, + + + target = #{record.target,jdbcType=VARCHAR}, + + + orders = #{record.orders,jdbcType=BIGINT}, + + + + + + + + update cms_menu + set page_id = #{record.pageId,jdbcType=INTEGER}, + pid = #{record.pid,jdbcType=INTEGER}, + name = #{record.name,jdbcType=VARCHAR}, + url = #{record.url,jdbcType=VARCHAR}, + target = #{record.target,jdbcType=VARCHAR}, + orders = #{record.orders,jdbcType=BIGINT} + + + + + + update cms_menu + + + pid = #{pid,jdbcType=INTEGER}, + + + name = #{name,jdbcType=VARCHAR}, + + + url = #{url,jdbcType=VARCHAR}, + + + target = #{target,jdbcType=VARCHAR}, + + + orders = #{orders,jdbcType=BIGINT}, + + + where page_id = #{pageId,jdbcType=INTEGER} + + + update cms_menu + set pid = #{pid,jdbcType=INTEGER}, + name = #{name,jdbcType=VARCHAR}, + url = #{url,jdbcType=VARCHAR}, + target = #{target,jdbcType=VARCHAR}, + orders = #{orders,jdbcType=BIGINT} + where page_id = #{pageId,jdbcType=INTEGER} + + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsPageMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsPageMapper.xml index 966609a5..e5032f01 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsPageMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsPageMapper.xml @@ -1,6 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + page_id, pid, title, alias, keywords, description, ctime, orders + + + content + + + + + + delete from cms_page + where page_id = #{pageId,jdbcType=INTEGER} + + + delete from cms_page + + + + + + insert into cms_page (page_id, pid, title, + alias, keywords, description, + ctime, orders, content + ) + values (#{pageId,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, + #{alias,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, + #{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR} + ) + + + insert into cms_page + + + page_id, + + + pid, + + + title, + + + alias, + + + keywords, + + + description, + + + ctime, + + + orders, + + + content, + + + + + #{pageId,jdbcType=INTEGER}, + + + #{pid,jdbcType=INTEGER}, + + + #{title,jdbcType=VARCHAR}, + + + #{alias,jdbcType=VARCHAR}, + + + #{keywords,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{ctime,jdbcType=BIGINT}, + + + #{orders,jdbcType=BIGINT}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update cms_page + + + page_id = #{record.pageId,jdbcType=INTEGER}, + + + pid = #{record.pid,jdbcType=INTEGER}, + + + title = #{record.title,jdbcType=VARCHAR}, + + + alias = #{record.alias,jdbcType=VARCHAR}, + + + keywords = #{record.keywords,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + ctime = #{record.ctime,jdbcType=BIGINT}, + + + orders = #{record.orders,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + + + + + + + update cms_page + set page_id = #{record.pageId,jdbcType=INTEGER}, + pid = #{record.pid,jdbcType=INTEGER}, + title = #{record.title,jdbcType=VARCHAR}, + alias = #{record.alias,jdbcType=VARCHAR}, + keywords = #{record.keywords,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + ctime = #{record.ctime,jdbcType=BIGINT}, + orders = #{record.orders,jdbcType=BIGINT}, + content = #{record.content,jdbcType=LONGVARCHAR} + + + + + + update cms_page + set page_id = #{record.pageId,jdbcType=INTEGER}, + pid = #{record.pid,jdbcType=INTEGER}, + title = #{record.title,jdbcType=VARCHAR}, + alias = #{record.alias,jdbcType=VARCHAR}, + keywords = #{record.keywords,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + ctime = #{record.ctime,jdbcType=BIGINT}, + orders = #{record.orders,jdbcType=BIGINT} + + + + + + update cms_page + + + pid = #{pid,jdbcType=INTEGER}, + + + title = #{title,jdbcType=VARCHAR}, + + + alias = #{alias,jdbcType=VARCHAR}, + + + keywords = #{keywords,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + ctime = #{ctime,jdbcType=BIGINT}, + + + orders = #{orders,jdbcType=BIGINT}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where page_id = #{pageId,jdbcType=INTEGER} + + + update cms_page + set pid = #{pid,jdbcType=INTEGER}, + title = #{title,jdbcType=VARCHAR}, + alias = #{alias,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + ctime = #{ctime,jdbcType=BIGINT}, + orders = #{orders,jdbcType=BIGINT}, + content = #{content,jdbcType=LONGVARCHAR} + where page_id = #{pageId,jdbcType=INTEGER} + + + update cms_page + set pid = #{pid,jdbcType=INTEGER}, + title = #{title,jdbcType=VARCHAR}, + alias = #{alias,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + ctime = #{ctime,jdbcType=BIGINT}, + orders = #{orders,jdbcType=BIGINT} + where page_id = #{pageId,jdbcType=INTEGER} + + diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsSettingMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsSettingMapper.xml index ffa285b9..136ce340 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsSettingMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsSettingMapper.xml @@ -187,4 +187,190 @@ where setting_id = #{settingId,jdbcType=INTEGER} + + + + + + + + + + + + + + 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} + + + + + + + + + + + setting_id, setting_key, setting_value + + + + + delete from cms_setting + where setting_id = #{settingId,jdbcType=INTEGER} + + + delete from cms_setting + + + + + + insert into cms_setting (setting_id, setting_key, setting_value + ) + values (#{settingId,jdbcType=INTEGER}, #{settingKey,jdbcType=VARCHAR}, #{settingValue,jdbcType=VARCHAR} + ) + + + insert into cms_setting + + + setting_id, + + + setting_key, + + + setting_value, + + + + + #{settingId,jdbcType=INTEGER}, + + + #{settingKey,jdbcType=VARCHAR}, + + + #{settingValue,jdbcType=VARCHAR}, + + + + + + update cms_setting + + + setting_id = #{record.settingId,jdbcType=INTEGER}, + + + setting_key = #{record.settingKey,jdbcType=VARCHAR}, + + + setting_value = #{record.settingValue,jdbcType=VARCHAR}, + + + + + + + + update cms_setting + set setting_id = #{record.settingId,jdbcType=INTEGER}, + setting_key = #{record.settingKey,jdbcType=VARCHAR}, + setting_value = #{record.settingValue,jdbcType=VARCHAR} + + + + + + update cms_setting + + + setting_key = #{settingKey,jdbcType=VARCHAR}, + + + setting_value = #{settingValue,jdbcType=VARCHAR}, + + + where setting_id = #{settingId,jdbcType=INTEGER} + + + update cms_setting + set setting_key = #{settingKey,jdbcType=VARCHAR}, + setting_value = #{settingValue,jdbcType=VARCHAR} + where setting_id = #{settingId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsTagMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsTagMapper.xml index d64ad77c..e082bf4f 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsTagMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsTagMapper.xml @@ -264,4 +264,267 @@ where tag_id = #{tagId,jdbcType=INTEGER} + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + tag_id, name, description, icon, type, alias, ctime, orders + + + + + delete from cms_tag + where tag_id = #{tagId,jdbcType=INTEGER} + + + delete from cms_tag + + + + + + insert into cms_tag (tag_id, name, description, + icon, type, alias, + ctime, orders) + values (#{tagId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, + #{icon,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{alias,jdbcType=VARCHAR}, + #{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT}) + + + insert into cms_tag + + + tag_id, + + + name, + + + description, + + + icon, + + + type, + + + alias, + + + ctime, + + + orders, + + + + + #{tagId,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{type,jdbcType=TINYINT}, + + + #{alias,jdbcType=VARCHAR}, + + + #{ctime,jdbcType=BIGINT}, + + + #{orders,jdbcType=BIGINT}, + + + + + + update cms_tag + + + tag_id = #{record.tagId,jdbcType=INTEGER}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + icon = #{record.icon,jdbcType=VARCHAR}, + + + type = #{record.type,jdbcType=TINYINT}, + + + alias = #{record.alias,jdbcType=VARCHAR}, + + + ctime = #{record.ctime,jdbcType=BIGINT}, + + + orders = #{record.orders,jdbcType=BIGINT}, + + + + + + + + update cms_tag + set tag_id = #{record.tagId,jdbcType=INTEGER}, + name = #{record.name,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + icon = #{record.icon,jdbcType=VARCHAR}, + type = #{record.type,jdbcType=TINYINT}, + alias = #{record.alias,jdbcType=VARCHAR}, + ctime = #{record.ctime,jdbcType=BIGINT}, + orders = #{record.orders,jdbcType=BIGINT} + + + + + + update cms_tag + + + name = #{name,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=TINYINT}, + + + alias = #{alias,jdbcType=VARCHAR}, + + + ctime = #{ctime,jdbcType=BIGINT}, + + + orders = #{orders,jdbcType=BIGINT}, + + + where tag_id = #{tagId,jdbcType=INTEGER} + + + update cms_tag + set name = #{name,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + type = #{type,jdbcType=TINYINT}, + alias = #{alias,jdbcType=VARCHAR}, + ctime = #{ctime,jdbcType=BIGINT}, + orders = #{orders,jdbcType=BIGINT} + where tag_id = #{tagId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsTopicMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsTopicMapper.xml new file mode 100644 index 00000000..dd91882e --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsTopicMapper.xml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + topic_id, title, description, url, ctime + + + + + delete from cms_topic + where topic_id = #{topicId,jdbcType=INTEGER} + + + delete from cms_topic + + + + + + insert into cms_topic (topic_id, title, description, + url, ctime) + values (#{topicId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, + #{url,jdbcType=VARCHAR}, #{ctime,jdbcType=BIGINT}) + + + insert into cms_topic + + + topic_id, + + + title, + + + description, + + + url, + + + ctime, + + + + + #{topicId,jdbcType=INTEGER}, + + + #{title,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{url,jdbcType=VARCHAR}, + + + #{ctime,jdbcType=BIGINT}, + + + + + + update cms_topic + + + topic_id = #{record.topicId,jdbcType=INTEGER}, + + + title = #{record.title,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + url = #{record.url,jdbcType=VARCHAR}, + + + ctime = #{record.ctime,jdbcType=BIGINT}, + + + + + + + + update cms_topic + set topic_id = #{record.topicId,jdbcType=INTEGER}, + title = #{record.title,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + url = #{record.url,jdbcType=VARCHAR}, + ctime = #{record.ctime,jdbcType=BIGINT} + + + + + + update cms_topic + + + title = #{title,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + url = #{url,jdbcType=VARCHAR}, + + + ctime = #{ctime,jdbcType=BIGINT}, + + + where topic_id = #{topicId,jdbcType=INTEGER} + + + update cms_topic + set title = #{title,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + url = #{url,jdbcType=VARCHAR}, + ctime = #{ctime,jdbcType=BIGINT} + where topic_id = #{topicId,jdbcType=INTEGER} + + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsUserMapper.xml b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsUserMapper.xml index 9f1fea38..d3e69842 100644 --- a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsUserMapper.xml +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/dao/mapper/CmsUserMapper.xml @@ -293,4 +293,296 @@ where user_id = #{userId,jdbcType=INTEGER} + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + user_id, username, password, nickname, sex, ctime + + + content + + + + + + delete from cms_user + where user_id = #{userId,jdbcType=INTEGER} + + + delete from cms_user + + + + + + insert into cms_user (user_id, username, password, + nickname, sex, ctime, + content) + values (#{userId,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, + #{nickname,jdbcType=VARCHAR}, #{sex,jdbcType=INTEGER}, #{ctime,jdbcType=BIGINT}, + #{content,jdbcType=LONGVARCHAR}) + + + insert into cms_user + + + user_id, + + + username, + + + password, + + + nickname, + + + sex, + + + ctime, + + + content, + + + + + #{userId,jdbcType=INTEGER}, + + + #{username,jdbcType=VARCHAR}, + + + #{password,jdbcType=VARCHAR}, + + + #{nickname,jdbcType=VARCHAR}, + + + #{sex,jdbcType=INTEGER}, + + + #{ctime,jdbcType=BIGINT}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update cms_user + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + username = #{record.username,jdbcType=VARCHAR}, + + + password = #{record.password,jdbcType=VARCHAR}, + + + nickname = #{record.nickname,jdbcType=VARCHAR}, + + + sex = #{record.sex,jdbcType=INTEGER}, + + + ctime = #{record.ctime,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + + + + + + + update cms_user + set user_id = #{record.userId,jdbcType=INTEGER}, + username = #{record.username,jdbcType=VARCHAR}, + password = #{record.password,jdbcType=VARCHAR}, + nickname = #{record.nickname,jdbcType=VARCHAR}, + sex = #{record.sex,jdbcType=INTEGER}, + ctime = #{record.ctime,jdbcType=BIGINT}, + content = #{record.content,jdbcType=LONGVARCHAR} + + + + + + update cms_user + set user_id = #{record.userId,jdbcType=INTEGER}, + username = #{record.username,jdbcType=VARCHAR}, + password = #{record.password,jdbcType=VARCHAR}, + nickname = #{record.nickname,jdbcType=VARCHAR}, + sex = #{record.sex,jdbcType=INTEGER}, + ctime = #{record.ctime,jdbcType=BIGINT} + + + + + + update cms_user + + + username = #{username,jdbcType=VARCHAR}, + + + password = #{password,jdbcType=VARCHAR}, + + + nickname = #{nickname,jdbcType=VARCHAR}, + + + sex = #{sex,jdbcType=INTEGER}, + + + ctime = #{ctime,jdbcType=BIGINT}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where user_id = #{userId,jdbcType=INTEGER} + + + update cms_user + set username = #{username,jdbcType=VARCHAR}, + password = #{password,jdbcType=VARCHAR}, + nickname = #{nickname,jdbcType=VARCHAR}, + sex = #{sex,jdbcType=INTEGER}, + ctime = #{ctime,jdbcType=BIGINT}, + content = #{content,jdbcType=LONGVARCHAR} + where user_id = #{userId,jdbcType=INTEGER} + + + update cms_user + set username = #{username,jdbcType=VARCHAR}, + password = #{password,jdbcType=VARCHAR}, + nickname = #{nickname,jdbcType=VARCHAR}, + sex = #{sex,jdbcType=INTEGER}, + ctime = #{ctime,jdbcType=BIGINT} + where user_id = #{userId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/rpc/service/impl/CmsMenuServiceImpl.java b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/rpc/service/impl/CmsMenuServiceImpl.java new file mode 100644 index 00000000..29c45dce --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/rpc/service/impl/CmsMenuServiceImpl.java @@ -0,0 +1,25 @@ +package com.zheng.cms.rpc.service.impl; + +import com.zheng.cms.dao.mapper.CmsMenuMapper; +import com.zheng.cms.dao.model.CmsMenu; +import com.zheng.cms.dao.model.CmsMenuExample; +import com.zheng.cms.rpc.api.CmsMenuService; +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * 菜单service实现 + * Created by shuzheng on 2017/3/18. + */ +@Service +@Transactional +@BaseService +public class CmsMenuServiceImpl extends BaseServiceImpl implements CmsMenuService { + + private static Logger _log = LoggerFactory.getLogger(CmsMenuServiceImpl.class); + +} \ No newline at end of file diff --git a/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/rpc/service/impl/CmsTopicServiceImpl.java b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/rpc/service/impl/CmsTopicServiceImpl.java new file mode 100644 index 00000000..d59d1709 --- /dev/null +++ b/zheng-cms/zheng-cms-rpc-service/src/main/java/com/zheng/cms/rpc/service/impl/CmsTopicServiceImpl.java @@ -0,0 +1,25 @@ +package com.zheng.cms.rpc.service.impl; + +import com.zheng.cms.dao.mapper.CmsTopicMapper; +import com.zheng.cms.dao.model.CmsTopic; +import com.zheng.cms.dao.model.CmsTopicExample; +import com.zheng.cms.rpc.api.CmsTopicService; +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * 专题service实现 + * Created by shuzheng on 2017/3/18. + */ +@Service +@Transactional +@BaseService +public class CmsTopicServiceImpl extends BaseServiceImpl implements CmsTopicService { + + private static Logger _log = LoggerFactory.getLogger(CmsTopicServiceImpl.class); + +} \ No newline at end of file