Browse Source

修改域配置

master
zy_Java 5 years ago
parent
commit
000d42fbf6
  1. 4
      cloudutil/src/main/resources/application-util-test.yml
  2. 2
      tall/src/main/java/com/ccsens/tall/aspect/RobotAspect.java
  3. 65
      tall/src/main/java/com/ccsens/tall/bean/dto/DomainDto.java
  4. 139
      tall/src/main/java/com/ccsens/tall/bean/po/DomainNav.java
  5. 901
      tall/src/main/java/com/ccsens/tall/bean/po/DomainNavExample.java
  6. 11
      tall/src/main/java/com/ccsens/tall/bean/po/SysDomain.java
  7. 60
      tall/src/main/java/com/ccsens/tall/bean/po/SysDomainExample.java
  8. 31
      tall/src/main/java/com/ccsens/tall/bean/vo/DomainVo.java
  9. 11
      tall/src/main/java/com/ccsens/tall/persist/dao/DomainNavDao.java
  10. 10
      tall/src/main/java/com/ccsens/tall/persist/dao/SysDomainDao.java
  11. 30
      tall/src/main/java/com/ccsens/tall/persist/mapper/DomainNavMapper.java
  12. 3
      tall/src/main/java/com/ccsens/tall/service/AsyncService.java
  13. 23
      tall/src/main/java/com/ccsens/tall/service/ExcelService.java
  14. 1
      tall/src/main/java/com/ccsens/tall/service/IAsyncService.java
  15. 16
      tall/src/main/java/com/ccsens/tall/service/ISysDomainService.java
  16. 2
      tall/src/main/java/com/ccsens/tall/service/IUserService.java
  17. 42
      tall/src/main/java/com/ccsens/tall/service/SysDomainService.java
  18. 27
      tall/src/main/java/com/ccsens/tall/service/UserService.java
  19. 3
      tall/src/main/java/com/ccsens/tall/service/WpsService.java
  20. 14
      tall/src/main/java/com/ccsens/tall/web/DomainController.java
  21. 6
      tall/src/main/java/com/ccsens/tall/web/UserController.java
  22. 23
      tall/src/main/resources/application-test.yml
  23. 4
      tall/src/main/resources/application.yml
  24. 8
      tall/src/main/resources/druid-test.yml
  25. 22
      tall/src/main/resources/mapper_dao/SysDomainDao.xml
  26. 306
      tall/src/main/resources/mapper_raw/DomainNavMapper.xml
  27. 27
      tall/src/main/resources/mapper_raw/SysDomainMapper.xml

4
cloudutil/src/main/resources/application-util-test.yml

@ -20,8 +20,8 @@ eureka:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
# defaultZone: http://admin:admin@192.168.0.99:7010/eureka/
defaultZone: http://admin:admin@test.tall.wiki:7010/eureka/
defaultZone: http://admin:admin@192.168.0.99:7010/eureka/
# defaultZone: http://admin:admin@test.tall.wiki:7010/eureka/
instance:
# 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
prefer-ip-address: true

2
tall/src/main/java/com/ccsens/tall/aspect/RobotAspect.java

@ -24,8 +24,6 @@ import java.lang.reflect.Method;
@Aspect
@Component
public class RobotAspect {
@Autowired
private IRobotService robotService;
@Resource
private IAsyncService asyncService;

65
tall/src/main/java/com/ccsens/tall/bean/dto/DomainDto.java

@ -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;
}
}

139
tall/src/main/java/com/ccsens/tall/bean/po/DomainNav.java

@ -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();
}
}

901
tall/src/main/java/com/ccsens/tall/bean/po/DomainNavExample.java

@ -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);
}
}
}

11
tall/src/main/java/com/ccsens/tall/bean/po/SysDomain.java

@ -32,6 +32,8 @@ public class SysDomain implements Serializable {
private String foreverProjectId;
private Byte navigationBar;
private static final long serialVersionUID = 1L;
public Long getId() {
@ -146,6 +148,14 @@ public class SysDomain implements Serializable {
this.foreverProjectId = foreverProjectId == null ? null : foreverProjectId.trim();
}
public Byte getNavigationBar() {
return navigationBar;
}
public void setNavigationBar(Byte navigationBar) {
this.navigationBar = navigationBar;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@ -166,6 +176,7 @@ public class SysDomain implements Serializable {
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);
sb.append(", foreverProjectId=").append(foreverProjectId);
sb.append(", navigationBar=").append(navigationBar);
sb.append("]");
return sb.toString();
}

60
tall/src/main/java/com/ccsens/tall/bean/po/SysDomainExample.java

@ -1024,6 +1024,66 @@ public class SysDomainExample {
addCriterion("forever_project_id not between", value1, value2, "foreverProjectId");
return (Criteria) this;
}
public Criteria andNavigationBarIsNull() {
addCriterion("navigation_bar is null");
return (Criteria) this;
}
public Criteria andNavigationBarIsNotNull() {
addCriterion("navigation_bar is not null");
return (Criteria) this;
}
public Criteria andNavigationBarEqualTo(Byte value) {
addCriterion("navigation_bar =", value, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarNotEqualTo(Byte value) {
addCriterion("navigation_bar <>", value, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarGreaterThan(Byte value) {
addCriterion("navigation_bar >", value, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarGreaterThanOrEqualTo(Byte value) {
addCriterion("navigation_bar >=", value, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarLessThan(Byte value) {
addCriterion("navigation_bar <", value, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarLessThanOrEqualTo(Byte value) {
addCriterion("navigation_bar <=", value, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarIn(List<Byte> values) {
addCriterion("navigation_bar in", values, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarNotIn(List<Byte> values) {
addCriterion("navigation_bar not in", values, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarBetween(Byte value1, Byte value2) {
addCriterion("navigation_bar between", value1, value2, "navigationBar");
return (Criteria) this;
}
public Criteria andNavigationBarNotBetween(Byte value1, Byte value2) {
addCriterion("navigation_bar not between", value1, value2, "navigationBar");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

31
tall/src/main/java/com/ccsens/tall/bean/vo/DomainVo.java

@ -1,15 +1,17 @@
package com.ccsens.tall.bean.vo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* @author
*/
@Data
public class DomainVo {
@ApiModel
@ApiModel("根据名字查找域配置信息")
@Data
public static class DomainInfo{
@ApiModelProperty("配置信息的id")
@ -33,6 +35,27 @@ public class DomainVo {
private int showCalendar;
@ApiModelProperty("不展示日历时。显示的项目的id")
private Long showProjectId;
@ApiModelProperty("是否展示导航")
private int domainNav;
@ApiModelProperty("域特有导航信息")
private List<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;
}
}

11
tall/src/main/java/com/ccsens/tall/persist/dao/DomainNavDao.java

@ -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 {
}

10
tall/src/main/java/com/ccsens/tall/persist/dao/SysDomainDao.java

@ -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);
}

30
tall/src/main/java/com/ccsens/tall/persist/mapper/DomainNavMapper.java

@ -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);
}

3
tall/src/main/java/com/ccsens/tall/service/AsyncService.java

@ -11,6 +11,7 @@ import com.ccsens.util.annotation.OperateType;
import com.ccsens.util.wx.WxTemplateMessage;
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
@ -25,8 +26,10 @@ import java.util.Map;
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class AsyncService implements IAsyncService{
@Lazy
@Resource
private IRobotService robotService;
@Lazy
@Resource
private IProjectMessageService projectMessageService;

23
tall/src/main/java/com/ccsens/tall/service/ExcelService.java

@ -71,6 +71,8 @@ public class ExcelService implements IExcelService {
private IWpsService wpsService;
@Resource
private ProRoleDao proRoleDao;
@Resource
private ProPluginConfigDao proPluginConfigDao;
@Override
@ -906,19 +908,23 @@ public class ExcelService implements IExcelService {
}
if(allMemberId != 0) {
//添加日报
saveMeetingTask("日报", "每天", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId());
saveMeetingTask("日报", "每天", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId(),
"/home/report?type=\"day\"");
//添加周报
saveMeetingTask("周报", "每周一", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId());
saveMeetingTask("周报", "每周一", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId(),
"/home/report?type=\"week\"");
// TODO 添加季报
//添加月报
saveMeetingTask("月报", "每月1号", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId());
saveMeetingTask("月报", "每月1号", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId(),
"/home/report?type=\"month\"");
//添加年报
saveMeetingTask("年报", "每年第一天", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId());
saveMeetingTask("年报", "每年第一天", taskDetails, sysProject, pmRoleId, allMemberId, firstTaskDetail.getId(),
"/home/report?type=\"year\"");
}
}
private void saveMeetingTask(String name, String cycle, List<ProTaskDetail> taskDetails, SysProject sysProject,
Long checkerRoleId, Long executorRoleId,Long parentId) {
Long checkerRoleId, Long executorRoleId,Long parentId, String webPath) {
ProTaskDetail dayMeeting = new ProTaskDetail();
dayMeeting.setId(snowflake.nextId());
dayMeeting.setName(name);
@ -933,6 +939,13 @@ public class ExcelService implements IExcelService {
dayMeeting.setExecutorRole(executorRoleId);
dayMeeting.setHasGroup((byte) 0);
proTaskDetailService.saveTaskDetail(dayMeeting);
//添加任务配置(配置第三栏默认显示页面的路径)
ProPluginConfig proPluginConfig = new ProPluginConfig();
proPluginConfig.setId(snowflake.nextId());
proPluginConfig.setTaskId(dayMeeting.getId());
proPluginConfig.setWebPath(webPath);
proPluginConfigDao.insertSelective(proPluginConfig);
taskDetails.add(dayMeeting);
}

1
tall/src/main/java/com/ccsens/tall/service/IAsyncService.java

@ -11,6 +11,7 @@ import java.util.Map;
/**
* 异步方法
*/
public interface IAsyncService {
void sendRobotMessage(OperateType operateType, RobotUtil.Message message);

16
tall/src/main/java/com/ccsens/tall/service/ISysDomainService.java

@ -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);
}

2
tall/src/main/java/com/ccsens/tall/service/IUserService.java

@ -86,7 +86,7 @@ public interface IUserService {
UserVo.WxInfo updateUserInfo(Long currentUserId, UserDto.WxInfo userInfo);
void relievePhone(Long userId,String phone);
void relievePhone(Long userId,UserDto.WxBindingPhone phoneInfo);
UserVo.UserSign changePhoneNotPassword(Long userId,UserDto.WxBindingPhone phoneInfo) throws Exception;

42
tall/src/main/java/com/ccsens/tall/service/SysDomainService.java

@ -2,23 +2,33 @@ package com.ccsens.tall.service;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.ccsens.tall.bean.dto.DomainDto;
import com.ccsens.tall.bean.po.DomainNav;
import com.ccsens.tall.bean.po.SysDomain;
import com.ccsens.tall.bean.po.SysDomainExample;
import com.ccsens.tall.bean.vo.DomainVo;
import com.ccsens.tall.persist.dao.DomainNavDao;
import com.ccsens.tall.persist.dao.SysDomainDao;
import com.ccsens.util.PropUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.sql.Struct;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Service
public class SysDomainService implements ISysDomainService{
@Autowired
@Resource
private SysDomainDao sysDomainDao;
@Resource
private DomainNavDao domainNavDao;
@Resource
private Snowflake snowflake;
/**
* 根据域名获取域的配置信息
@ -33,6 +43,12 @@ public class SysDomainService implements ISysDomainService{
if (CollectionUtil.isNotEmpty(domainList)) {
domainInfo = new DomainVo.DomainInfo();
BeanUtil.copyProperties(domainList.get(0), domainInfo);
if(domainInfo.getDomainNav() != 0){
List<DomainVo.DomainNavInfo> domainNavInfoList = sysDomainDao.queryDomainNavByDomainId(domainInfo.getId());
if(CollectionUtil.isNotEmpty(domainNavInfoList)){
domainInfo.setDomainNavInfoList(domainNavInfoList);
}
}
}
}
if(ObjectUtil.isNull(domainInfo)){
@ -48,4 +64,24 @@ public class SysDomainService implements ISysDomainService{
}
return domainInfo;
}
@Override
public DomainVo.DomainInfo saveDomain(DomainDto.DomainInfo domainInfo) {
if(ObjectUtil.isNotNull(domainInfo)){
SysDomain sysDomain = new SysDomain();
BeanUtil.copyProperties(domainInfo, sysDomain);
sysDomain.setId(snowflake.nextId());
sysDomain.setNavigationBar(domainInfo.getDomainNav());
sysDomainDao.insertSelective(sysDomain);
if(CollectionUtil.isNotEmpty(domainInfo.getDomainNavInfoList())){
domainInfo.getDomainNavInfoList().forEach(domainNavInfo -> {
DomainNav domainNav = new DomainNav();
BeanUtil.copyProperties(domainNavInfo, domainNav);
domainNav.setId(snowflake.nextId());
domainNavDao.insertSelective(domainNav);
});
}
}
return getDomainByName(domainInfo.getDomainName());
}
}

27
tall/src/main/java/com/ccsens/tall/service/UserService.java

@ -1382,19 +1382,22 @@ public class UserService implements IUserService {
* 解除已绑定的手机号
*/
@Override
public void relievePhone(Long userId, String phone) {
SysAuthExample authExample = new SysAuthExample();
authExample.createCriteria().andUserIdEqualTo(userId)
.andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value)
.andIdentifierEqualTo(phone);
List<SysAuth> authList = authDao.selectByExample(authExample);
if (CollectionUtil.isNotEmpty(authList)) {
SysAuth auth = authList.get(0);
auth.setRecStatus((byte) 2);
authDao.updateByPrimaryKeySelective(auth);
}else {
throw new BaseException(CodeEnum.PHONE_ERR);
public void relievePhone(Long userId, UserDto.WxBindingPhone phoneInfo) {
if(isSmsCodeCorrect(phoneInfo.getPhone(),phoneInfo.getSmsCode())){
SysAuthExample authExample = new SysAuthExample();
authExample.createCriteria().andUserIdEqualTo(userId)
.andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value)
.andIdentifierEqualTo(phoneInfo.getPhone());
List<SysAuth> authList = authDao.selectByExample(authExample);
if (CollectionUtil.isNotEmpty(authList)) {
SysAuth auth = authList.get(0);
auth.setRecStatus((byte) 2);
authDao.updateByPrimaryKeySelective(auth);
}else {
throw new BaseException(CodeEnum.PHONE_ERR);
}
}
}
/**

3
tall/src/main/java/com/ccsens/tall/service/WpsService.java

@ -19,6 +19,7 @@ import com.ccsens.util.*;
import com.ccsens.util.exception.BaseException;
import io.jsonwebtoken.Claims;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@ -55,7 +56,7 @@ public class WpsService implements IWpsService {
@Resource
private Snowflake snowflake;
@Resource
private AsyncService asyncService;
private IAsyncService asyncService;
@Override
public List<String> queryVisitUrls(long businessId, byte businessType, String token, Map<String, String> params) {

14
tall/src/main/java/com/ccsens/tall/web/DomainController.java

@ -1,5 +1,7 @@
package com.ccsens.tall.web;
import com.ccsens.tall.bean.dto.DomainDto;
import com.ccsens.tall.bean.dto.TaskDto;
import com.ccsens.tall.bean.vo.DomainVo;
import com.ccsens.tall.bean.vo.ProjectVo;
import com.ccsens.tall.service.ISysDomainService;
@ -11,6 +13,7 @@ import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
@ -33,4 +36,15 @@ public class DomainController {
DomainVo.DomainInfo domainInfo = domainService.getDomainByName(domainName);
return JsonResponse.newInstance().ok(domainInfo);
}
@ApiOperation(value = "添加域配置",notes = "")
@ApiImplicitParams({
@ApiImplicitParam(name = "saveDomain", value = "域名", required = true, paramType = "query")
})
@RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<DomainVo.DomainInfo> saveDomain(HttpServletRequest request,
@Validated @RequestBody DomainDto.DomainInfo domainInfo) throws Exception {
DomainVo.DomainInfo domain = domainService.saveDomain(domainInfo);
return JsonResponse.newInstance().ok(domainInfo);
}
}

6
tall/src/main/java/com/ccsens/tall/web/UserController.java

@ -267,11 +267,11 @@ public class UserController {
@ApiOperation(value = "解绑手机号", notes = "")
@ApiImplicitParams({
})
@RequestMapping(value = "/relievePhone", method = RequestMethod.DELETE, produces = {"application/json;charset=UTF-8"})
@RequestMapping(value = "/relievePhone", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse relievePhone(HttpServletRequest request,
@RequestParam String phone) throws Exception {
@ApiParam @Validated @RequestBody UserDto.WxBindingPhone phoneInfo) throws Exception {
Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
userService.relievePhone(currentUserId,phone);
userService.relievePhone(currentUserId,phoneInfo);
return JsonResponse.newInstance().ok();
}

23
tall/src/main/resources/application-test.yml

@ -11,8 +11,8 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
# host: 127.0.0.1
host: api.ccsens.com
host: 127.0.0.1
# host: api.ccsens.com
password: 111111
port: 5672
username: admin
@ -32,14 +32,17 @@ swagger:
enable: true
eureka:
instance:
# ip-address: 192.168.0.99
ip-address: 49.233.89.188
#gatewayUrl: http://192.168.0.99/gateway/
#notGatewayUrl: http://192.168.0.99/
gatewayUrl: https://test.tall.wiki/gateway/
notGatewayUrl: https://test.tall.wiki/
ip-address: 192.168.0.99
# ip-address: 49.233.89.188
gatewayUrl: http://192.168.0.99/gateway/
notGatewayUrl: http://192.168.0.99/
#gatewayUrl: https://test.tall.wiki/gateway/
#notGatewayUrl: https://test.tall.wiki/
wx:
prefixUrl: https://www.tall.wiki/wxconfigurer-api/
#file:
# domain: https://test.tall.wiki/gateway/tall/v1.0/
# imgDomain: https://test.tall.wiki/gateway/tall/v1.0/uploads
file:
domain: https://test.tall.wiki/gateway/tall/v1.0/
imgDomain: https://test.tall.wiki/gateway/tall/v1.0/uploads
domain: http://192.168.0.99/gateway/tall/v1.0/
imgDomain: http://192.168.0.99/gateway/tall/v1.0/uploads

4
tall/src/main/resources/application.yml

@ -1,4 +1,4 @@
spring:
profiles:
active: dev
include: util-dev,common
active: test
include: util-test,common

8
tall/src/main/resources/druid-test.yml

@ -15,8 +15,8 @@ spring:
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 5
password:
# password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473
# password:
password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473
poolPreparedStatements: true
servletLogSlowSql: true
servletLoginPassword: 111111
@ -28,8 +28,8 @@ spring:
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8
# url: jdbc:mysql://test.tall.wiki/tall?useUnicode=true&characterEncoding=UTF-8
# url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://test.tall.wiki/tall?useUnicode=true&characterEncoding=UTF-8
username: root
validationQuery: SELECT 1 FROM DUAL
env: CCSENS_TALL

22
tall/src/main/resources/mapper_dao/SysDomainDao.xml

@ -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>

306
tall/src/main/resources/mapper_raw/DomainNavMapper.xml

@ -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>

27
tall/src/main/resources/mapper_raw/SysDomainMapper.xml

@ -16,6 +16,7 @@
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
<result column="forever_project_id" jdbcType="VARCHAR" property="foreverProjectId" />
<result column="navigation_bar" jdbcType="TINYINT" property="navigationBar" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -77,7 +78,7 @@
</sql>
<sql id="Base_Column_List">
id, domain_name, logo, company_name, system_name, backdrop_url, show_calendar, show_project_id,
caption, headline, created_at, updated_at, rec_status, forever_project_id
caption, headline, created_at, updated_at, rec_status, forever_project_id, navigation_bar
</sql>
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysDomainExample" resultMap="BaseResultMap">
select
@ -114,12 +115,14 @@
company_name, system_name, backdrop_url,
show_calendar, show_project_id, caption,
headline, created_at, updated_at,
rec_status, forever_project_id)
rec_status, forever_project_id, navigation_bar
)
values (#{id,jdbcType=BIGINT}, #{domainName,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR},
#{companyName,jdbcType=VARCHAR}, #{systemName,jdbcType=VARCHAR}, #{backdropUrl,jdbcType=VARCHAR},
#{showCalendar,jdbcType=TINYINT}, #{showProjectId,jdbcType=BIGINT}, #{caption,jdbcType=VARCHAR},
#{headline,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT}, #{foreverProjectId,jdbcType=VARCHAR})
#{recStatus,jdbcType=TINYINT}, #{foreverProjectId,jdbcType=VARCHAR}, #{navigationBar,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysDomain">
insert into t_sys_domain
@ -166,6 +169,9 @@
<if test="foreverProjectId != null">
forever_project_id,
</if>
<if test="navigationBar != null">
navigation_bar,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -210,6 +216,9 @@
<if test="foreverProjectId != null">
#{foreverProjectId,jdbcType=VARCHAR},
</if>
<if test="navigationBar != null">
#{navigationBar,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysDomainExample" resultType="java.lang.Long">
@ -263,6 +272,9 @@
<if test="record.foreverProjectId != null">
forever_project_id = #{record.foreverProjectId,jdbcType=VARCHAR},
</if>
<if test="record.navigationBar != null">
navigation_bar = #{record.navigationBar,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -283,7 +295,8 @@
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT},
forever_project_id = #{record.foreverProjectId,jdbcType=VARCHAR}
forever_project_id = #{record.foreverProjectId,jdbcType=VARCHAR},
navigation_bar = #{record.navigationBar,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -330,6 +343,9 @@
<if test="foreverProjectId != null">
forever_project_id = #{foreverProjectId,jdbcType=VARCHAR},
</if>
<if test="navigationBar != null">
navigation_bar = #{navigationBar,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
@ -347,7 +363,8 @@
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT},
forever_project_id = #{foreverProjectId,jdbcType=VARCHAR}
forever_project_id = #{foreverProjectId,jdbcType=VARCHAR},
navigation_bar = #{navigationBar,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
Loading…
Cancel
Save