27 changed files with 1737 additions and 54 deletions
@ -0,0 +1,65 @@ |
|||
package com.ccsens.tall.bean.dto; |
|||
|
|||
import com.ccsens.tall.bean.vo.DomainVo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class DomainDto { |
|||
|
|||
@ApiModel("添加域配置信息") |
|||
@Data |
|||
public static class DomainInfo{ |
|||
@NotEmpty(message = "域名不能为空") |
|||
@ApiModelProperty("域名") |
|||
private String domainName; |
|||
@ApiModelProperty("Logo") |
|||
private String logo; |
|||
@ApiModelProperty("公司名") |
|||
private String companyName; |
|||
@ApiModelProperty("系统名") |
|||
private String systemName; |
|||
@ApiModelProperty("登陆背景图路径") |
|||
private String backdropUrl; |
|||
@ApiModelProperty("标题") |
|||
private String caption; |
|||
@ApiModelProperty("栏外标题") |
|||
private String headline; |
|||
@ApiModelProperty("是否显示日历 0不显示 1显示") |
|||
private Byte showCalendar; |
|||
@ApiModelProperty("不展示日历时。显示的项目的id") |
|||
private Long showProjectId; |
|||
@ApiModelProperty("常驻项目的id") |
|||
private Long foreverProjectId; |
|||
@ApiModelProperty("是否展示导航") |
|||
private Byte domainNav; |
|||
|
|||
@ApiModelProperty("域特有导航信息") |
|||
private List<DomainVo.DomainNavInfo> domainNavInfoList; |
|||
} |
|||
|
|||
@ApiModel("添加域导航信息") |
|||
@Data |
|||
public static class DomainNavInfo{ |
|||
@ApiModelProperty("首页") |
|||
private String text; |
|||
@ApiModelProperty("0 -> 内部链接, 1 -> 外部链接") |
|||
private Integer type; |
|||
@ApiModelProperty("导航对应的链接") |
|||
private String path; |
|||
@ApiModelProperty("参数") |
|||
private String params; |
|||
@ApiModelProperty("导航栏图标") |
|||
private String icon; |
|||
@ApiModelProperty("0 -> 左侧/上 1 -> 右侧/下") |
|||
private Integer position; |
|||
} |
|||
} |
@ -0,0 +1,139 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class DomainNav implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long domainId; |
|||
|
|||
private String text; |
|||
|
|||
private Byte type; |
|||
|
|||
private String path; |
|||
|
|||
private String params; |
|||
|
|||
private String icon; |
|||
|
|||
private Byte position; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getDomainId() { |
|||
return domainId; |
|||
} |
|||
|
|||
public void setDomainId(Long domainId) { |
|||
this.domainId = domainId; |
|||
} |
|||
|
|||
public String getText() { |
|||
return text; |
|||
} |
|||
|
|||
public void setText(String text) { |
|||
this.text = text == null ? null : text.trim(); |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getPath() { |
|||
return path; |
|||
} |
|||
|
|||
public void setPath(String path) { |
|||
this.path = path == null ? null : path.trim(); |
|||
} |
|||
|
|||
public String getParams() { |
|||
return params; |
|||
} |
|||
|
|||
public void setParams(String params) { |
|||
this.params = params == null ? null : params.trim(); |
|||
} |
|||
|
|||
public String getIcon() { |
|||
return icon; |
|||
} |
|||
|
|||
public void setIcon(String icon) { |
|||
this.icon = icon == null ? null : icon.trim(); |
|||
} |
|||
|
|||
public Byte getPosition() { |
|||
return position; |
|||
} |
|||
|
|||
public void setPosition(Byte position) { |
|||
this.position = position; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", domainId=").append(domainId); |
|||
sb.append(", text=").append(text); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", path=").append(path); |
|||
sb.append(", params=").append(params); |
|||
sb.append(", icon=").append(icon); |
|||
sb.append(", position=").append(position); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,901 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class DomainNavExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public DomainNavExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
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<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdIsNull() { |
|||
addCriterion("domain_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdIsNotNull() { |
|||
addCriterion("domain_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdEqualTo(Long value) { |
|||
addCriterion("domain_id =", value, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdNotEqualTo(Long value) { |
|||
addCriterion("domain_id <>", value, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdGreaterThan(Long value) { |
|||
addCriterion("domain_id >", value, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("domain_id >=", value, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdLessThan(Long value) { |
|||
addCriterion("domain_id <", value, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("domain_id <=", value, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdIn(List<Long> values) { |
|||
addCriterion("domain_id in", values, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdNotIn(List<Long> values) { |
|||
addCriterion("domain_id not in", values, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdBetween(Long value1, Long value2) { |
|||
addCriterion("domain_id between", value1, value2, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDomainIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("domain_id not between", value1, value2, "domainId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextIsNull() { |
|||
addCriterion("text is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextIsNotNull() { |
|||
addCriterion("text is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextEqualTo(String value) { |
|||
addCriterion("text =", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextNotEqualTo(String value) { |
|||
addCriterion("text <>", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextGreaterThan(String value) { |
|||
addCriterion("text >", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextGreaterThanOrEqualTo(String value) { |
|||
addCriterion("text >=", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextLessThan(String value) { |
|||
addCriterion("text <", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextLessThanOrEqualTo(String value) { |
|||
addCriterion("text <=", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextLike(String value) { |
|||
addCriterion("text like", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextNotLike(String value) { |
|||
addCriterion("text not like", value, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextIn(List<String> values) { |
|||
addCriterion("text in", values, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextNotIn(List<String> values) { |
|||
addCriterion("text not in", values, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextBetween(String value1, String value2) { |
|||
addCriterion("text between", value1, value2, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTextNotBetween(String value1, String value2) { |
|||
addCriterion("text not between", value1, value2, "text"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathIsNull() { |
|||
addCriterion("path is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathIsNotNull() { |
|||
addCriterion("path is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathEqualTo(String value) { |
|||
addCriterion("path =", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotEqualTo(String value) { |
|||
addCriterion("path <>", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathGreaterThan(String value) { |
|||
addCriterion("path >", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathGreaterThanOrEqualTo(String value) { |
|||
addCriterion("path >=", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathLessThan(String value) { |
|||
addCriterion("path <", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathLessThanOrEqualTo(String value) { |
|||
addCriterion("path <=", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathLike(String value) { |
|||
addCriterion("path like", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotLike(String value) { |
|||
addCriterion("path not like", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathIn(List<String> values) { |
|||
addCriterion("path in", values, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotIn(List<String> values) { |
|||
addCriterion("path not in", values, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathBetween(String value1, String value2) { |
|||
addCriterion("path between", value1, value2, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotBetween(String value1, String value2) { |
|||
addCriterion("path not between", value1, value2, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsIsNull() { |
|||
addCriterion("params is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsIsNotNull() { |
|||
addCriterion("params is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsEqualTo(String value) { |
|||
addCriterion("params =", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsNotEqualTo(String value) { |
|||
addCriterion("params <>", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsGreaterThan(String value) { |
|||
addCriterion("params >", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsGreaterThanOrEqualTo(String value) { |
|||
addCriterion("params >=", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsLessThan(String value) { |
|||
addCriterion("params <", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsLessThanOrEqualTo(String value) { |
|||
addCriterion("params <=", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsLike(String value) { |
|||
addCriterion("params like", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsNotLike(String value) { |
|||
addCriterion("params not like", value, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsIn(List<String> values) { |
|||
addCriterion("params in", values, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsNotIn(List<String> values) { |
|||
addCriterion("params not in", values, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsBetween(String value1, String value2) { |
|||
addCriterion("params between", value1, value2, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParamsNotBetween(String value1, String value2) { |
|||
addCriterion("params not between", value1, value2, "params"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconIsNull() { |
|||
addCriterion("icon is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconIsNotNull() { |
|||
addCriterion("icon is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconEqualTo(String value) { |
|||
addCriterion("icon =", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconNotEqualTo(String value) { |
|||
addCriterion("icon <>", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconGreaterThan(String value) { |
|||
addCriterion("icon >", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconGreaterThanOrEqualTo(String value) { |
|||
addCriterion("icon >=", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconLessThan(String value) { |
|||
addCriterion("icon <", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconLessThanOrEqualTo(String value) { |
|||
addCriterion("icon <=", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconLike(String value) { |
|||
addCriterion("icon like", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconNotLike(String value) { |
|||
addCriterion("icon not like", value, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconIn(List<String> values) { |
|||
addCriterion("icon in", values, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconNotIn(List<String> values) { |
|||
addCriterion("icon not in", values, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconBetween(String value1, String value2) { |
|||
addCriterion("icon between", value1, value2, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIconNotBetween(String value1, String value2) { |
|||
addCriterion("icon not between", value1, value2, "icon"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionIsNull() { |
|||
addCriterion("position is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionIsNotNull() { |
|||
addCriterion("position is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionEqualTo(Byte value) { |
|||
addCriterion("position =", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionNotEqualTo(Byte value) { |
|||
addCriterion("position <>", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionGreaterThan(Byte value) { |
|||
addCriterion("position >", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("position >=", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionLessThan(Byte value) { |
|||
addCriterion("position <", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionLessThanOrEqualTo(Byte value) { |
|||
addCriterion("position <=", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionIn(List<Byte> values) { |
|||
addCriterion("position in", values, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionNotIn(List<Byte> values) { |
|||
addCriterion("position not in", values, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionBetween(Byte value1, Byte value2) { |
|||
addCriterion("position between", value1, value2, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("position not between", value1, value2, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.persist.mapper.DomainNavMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Repository |
|||
public interface DomainNavDao extends DomainNavMapper { |
|||
} |
@ -1,8 +1,18 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.bean.vo.DomainVo; |
|||
import com.ccsens.tall.persist.mapper.SysDomainMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Repository |
|||
public interface SysDomainDao extends SysDomainMapper{ |
|||
/** |
|||
* 通过domainId查找导航信息 |
|||
* @param domainId |
|||
* @return |
|||
*/ |
|||
List<DomainVo.DomainNavInfo> queryDomainNavByDomainId(@Param("domainId") Long domainId); |
|||
} |
|||
|
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.DomainNav; |
|||
import com.ccsens.tall.bean.po.DomainNavExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface DomainNavMapper { |
|||
long countByExample(DomainNavExample example); |
|||
|
|||
int deleteByExample(DomainNavExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(DomainNav record); |
|||
|
|||
int insertSelective(DomainNav record); |
|||
|
|||
List<DomainNav> selectByExample(DomainNavExample example); |
|||
|
|||
DomainNav selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") DomainNav record, @Param("example") DomainNavExample example); |
|||
|
|||
int updateByExample(@Param("record") DomainNav record, @Param("example") DomainNavExample example); |
|||
|
|||
int updateByPrimaryKeySelective(DomainNav record); |
|||
|
|||
int updateByPrimaryKey(DomainNav record); |
|||
} |
@ -1,7 +1,23 @@ |
|||
package com.ccsens.tall.service; |
|||
|
|||
import com.ccsens.tall.bean.dto.DomainDto; |
|||
import com.ccsens.tall.bean.vo.DomainVo; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface ISysDomainService { |
|||
/** |
|||
* 根据名字查找域配置 |
|||
* @param domainName 域名 |
|||
* @return 返回域的详细信息 |
|||
*/ |
|||
DomainVo.DomainInfo getDomainByName(String domainName); |
|||
|
|||
/** |
|||
* 添加域配置信息 |
|||
* @param domainInfo 域详细配置信息 |
|||
* @return 返回域配置信息 |
|||
*/ |
|||
DomainVo.DomainInfo saveDomain(DomainDto.DomainInfo domainInfo); |
|||
} |
|||
|
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: dev |
|||
include: util-dev,common |
|||
active: test |
|||
include: util-test,common |
|||
|
@ -0,0 +1,22 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.dao.SysDomainDao"> |
|||
|
|||
<select id="queryDomainNavByDomainId" parameterType="java.util.Map" resultType="com.ccsens.tall.bean.vo.DomainVo$DomainNavInfo"> |
|||
SELECT |
|||
text, |
|||
`type`, |
|||
path, |
|||
params, |
|||
icon, |
|||
`position` |
|||
FROM |
|||
`t_sys_domain_navigation_bar` |
|||
WHERE |
|||
domain_id = #{domainId} |
|||
AND |
|||
rec_status = 0 |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,306 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.mapper.DomainNavMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.DomainNav"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="domain_id" jdbcType="BIGINT" property="domainId" /> |
|||
<result column="text" jdbcType="VARCHAR" property="text" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="path" jdbcType="VARCHAR" property="path" /> |
|||
<result column="params" jdbcType="VARCHAR" property="params" /> |
|||
<result column="icon" jdbcType="VARCHAR" property="icon" /> |
|||
<result column="position" jdbcType="TINYINT" property="position" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, domain_id, text, type, path, params, icon, position, created_at, updated_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.DomainNavExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_domain_navigation_bar |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_domain_navigation_bar |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_sys_domain_navigation_bar |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.DomainNavExample"> |
|||
delete from t_sys_domain_navigation_bar |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.DomainNav"> |
|||
insert into t_sys_domain_navigation_bar (id, domain_id, text, |
|||
type, path, params, |
|||
icon, position, created_at, |
|||
updated_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{domainId,jdbcType=BIGINT}, #{text,jdbcType=VARCHAR}, |
|||
#{type,jdbcType=TINYINT}, #{path,jdbcType=VARCHAR}, #{params,jdbcType=VARCHAR}, |
|||
#{icon,jdbcType=VARCHAR}, #{position,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.DomainNav"> |
|||
insert into t_sys_domain_navigation_bar |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="domainId != null"> |
|||
domain_id, |
|||
</if> |
|||
<if test="text != null"> |
|||
text, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="path != null"> |
|||
path, |
|||
</if> |
|||
<if test="params != null"> |
|||
params, |
|||
</if> |
|||
<if test="icon != null"> |
|||
icon, |
|||
</if> |
|||
<if test="position != null"> |
|||
position, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="domainId != null"> |
|||
#{domainId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="text != null"> |
|||
#{text,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="path != null"> |
|||
#{path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="params != null"> |
|||
#{params,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="icon != null"> |
|||
#{icon,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="position != null"> |
|||
#{position,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.DomainNavExample" resultType="java.lang.Long"> |
|||
select count(*) from t_sys_domain_navigation_bar |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_sys_domain_navigation_bar |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.domainId != null"> |
|||
domain_id = #{record.domainId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.text != null"> |
|||
text = #{record.text,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.path != null"> |
|||
path = #{record.path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.params != null"> |
|||
params = #{record.params,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.icon != null"> |
|||
icon = #{record.icon,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.position != null"> |
|||
position = #{record.position,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_sys_domain_navigation_bar |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
domain_id = #{record.domainId,jdbcType=BIGINT}, |
|||
text = #{record.text,jdbcType=VARCHAR}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
path = #{record.path,jdbcType=VARCHAR}, |
|||
params = #{record.params,jdbcType=VARCHAR}, |
|||
icon = #{record.icon,jdbcType=VARCHAR}, |
|||
position = #{record.position,jdbcType=TINYINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.DomainNav"> |
|||
update t_sys_domain_navigation_bar |
|||
<set> |
|||
<if test="domainId != null"> |
|||
domain_id = #{domainId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="text != null"> |
|||
text = #{text,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="path != null"> |
|||
path = #{path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="params != null"> |
|||
params = #{params,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="icon != null"> |
|||
icon = #{icon,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="position != null"> |
|||
position = #{position,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.DomainNav"> |
|||
update t_sys_domain_navigation_bar |
|||
set domain_id = #{domainId,jdbcType=BIGINT}, |
|||
text = #{text,jdbcType=VARCHAR}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
path = #{path,jdbcType=VARCHAR}, |
|||
params = #{params,jdbcType=VARCHAR}, |
|||
icon = #{icon,jdbcType=VARCHAR}, |
|||
position = #{position,jdbcType=TINYINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue