parent
89a220d8c0
commit
3f9ff8fcc1
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>beacon-cloud</artifactId>
|
||||
<groupId>com.mashibing</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>beacon-webmaster</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-spring-boot-web-starter</artifactId>
|
||||
<version>1.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>5.1.49</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid-spring-boot-starter</artifactId>
|
||||
<version>1.1.10</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>2.2.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.mybatis.generator</groupId>
|
||||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||||
<version>1.4.2</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>5.1.49</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,22 @@
|
||||
package com.mashibing.webmaster;
|
||||
|
||||
import org.apache.shiro.crypto.hash.Md5Hash;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author zjw
|
||||
* @description
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@MapperScan(basePackages = "com.mashibing.webmaster.mapper")
|
||||
public class WebMasterStarterApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(WebMasterStarterApp.class,args);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,165 @@
|
||||
package com.mashibing.webmaster.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class SmsMenu {
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Long parentId;
|
||||
|
||||
private String url;
|
||||
|
||||
private String icon;
|
||||
|
||||
private Integer type;
|
||||
|
||||
private Integer sort;
|
||||
|
||||
private Date created;
|
||||
|
||||
private Long createId;
|
||||
|
||||
private Date updated;
|
||||
|
||||
private Long updateId;
|
||||
|
||||
private Byte isDelete;
|
||||
|
||||
private String extend1;
|
||||
|
||||
private String extend2;
|
||||
|
||||
private String extend3;
|
||||
|
||||
private String extend4;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public Long getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Long parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url == null ? null : url.trim();
|
||||
}
|
||||
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon == null ? null : icon.trim();
|
||||
}
|
||||
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
public void setSort(Integer sort) {
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Date getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(Date created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public Long getCreateId() {
|
||||
return createId;
|
||||
}
|
||||
|
||||
public void setCreateId(Long createId) {
|
||||
this.createId = createId;
|
||||
}
|
||||
|
||||
public Date getUpdated() {
|
||||
return updated;
|
||||
}
|
||||
|
||||
public void setUpdated(Date updated) {
|
||||
this.updated = updated;
|
||||
}
|
||||
|
||||
public Long getUpdateId() {
|
||||
return updateId;
|
||||
}
|
||||
|
||||
public void setUpdateId(Long updateId) {
|
||||
this.updateId = updateId;
|
||||
}
|
||||
|
||||
public Byte getIsDelete() {
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
public void setIsDelete(Byte isDelete) {
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public String getExtend1() {
|
||||
return extend1;
|
||||
}
|
||||
|
||||
public void setExtend1(String extend1) {
|
||||
this.extend1 = extend1 == null ? null : extend1.trim();
|
||||
}
|
||||
|
||||
public String getExtend2() {
|
||||
return extend2;
|
||||
}
|
||||
|
||||
public void setExtend2(String extend2) {
|
||||
this.extend2 = extend2 == null ? null : extend2.trim();
|
||||
}
|
||||
|
||||
public String getExtend3() {
|
||||
return extend3;
|
||||
}
|
||||
|
||||
public void setExtend3(String extend3) {
|
||||
this.extend3 = extend3 == null ? null : extend3.trim();
|
||||
}
|
||||
|
||||
public String getExtend4() {
|
||||
return extend4;
|
||||
}
|
||||
|
||||
public void setExtend4(String extend4) {
|
||||
this.extend4 = extend4 == null ? null : extend4.trim();
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,115 @@
|
||||
package com.mashibing.webmaster.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class SmsRole {
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Date created;
|
||||
|
||||
private Long createId;
|
||||
|
||||
private Date updated;
|
||||
|
||||
private Long updateId;
|
||||
|
||||
private Byte isDelete;
|
||||
|
||||
private String extend1;
|
||||
|
||||
private String extend2;
|
||||
|
||||
private String extend3;
|
||||
|
||||
private String extend4;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
public Date getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(Date created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public Long getCreateId() {
|
||||
return createId;
|
||||
}
|
||||
|
||||
public void setCreateId(Long createId) {
|
||||
this.createId = createId;
|
||||
}
|
||||
|
||||
public Date getUpdated() {
|
||||
return updated;
|
||||
}
|
||||
|
||||
public void setUpdated(Date updated) {
|
||||
this.updated = updated;
|
||||
}
|
||||
|
||||
public Long getUpdateId() {
|
||||
return updateId;
|
||||
}
|
||||
|
||||
public void setUpdateId(Long updateId) {
|
||||
this.updateId = updateId;
|
||||
}
|
||||
|
||||
public Byte getIsDelete() {
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
public void setIsDelete(Byte isDelete) {
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public String getExtend1() {
|
||||
return extend1;
|
||||
}
|
||||
|
||||
public void setExtend1(String extend1) {
|
||||
this.extend1 = extend1 == null ? null : extend1.trim();
|
||||
}
|
||||
|
||||
public String getExtend2() {
|
||||
return extend2;
|
||||
}
|
||||
|
||||
public void setExtend2(String extend2) {
|
||||
this.extend2 = extend2 == null ? null : extend2.trim();
|
||||
}
|
||||
|
||||
public String getExtend3() {
|
||||
return extend3;
|
||||
}
|
||||
|
||||
public void setExtend3(String extend3) {
|
||||
this.extend3 = extend3 == null ? null : extend3.trim();
|
||||
}
|
||||
|
||||
public String getExtend4() {
|
||||
return extend4;
|
||||
}
|
||||
|
||||
public void setExtend4(String extend4) {
|
||||
this.extend4 = extend4 == null ? null : extend4.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,910 @@
|
||||
package com.mashibing.webmaster.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class SmsRoleExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public SmsRoleExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<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<>();
|
||||
}
|
||||
|
||||
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(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedIsNull() {
|
||||
addCriterion("created is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedIsNotNull() {
|
||||
addCriterion("created is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedEqualTo(Date value) {
|
||||
addCriterion("created =", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedNotEqualTo(Date value) {
|
||||
addCriterion("created <>", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedGreaterThan(Date value) {
|
||||
addCriterion("created >", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("created >=", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedLessThan(Date value) {
|
||||
addCriterion("created <", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedLessThanOrEqualTo(Date value) {
|
||||
addCriterion("created <=", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedIn(List<Date> values) {
|
||||
addCriterion("created in", values, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedNotIn(List<Date> values) {
|
||||
addCriterion("created not in", values, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedBetween(Date value1, Date value2) {
|
||||
addCriterion("created between", value1, value2, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedNotBetween(Date value1, Date value2) {
|
||||
addCriterion("created not between", value1, value2, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdIsNull() {
|
||||
addCriterion("create_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdIsNotNull() {
|
||||
addCriterion("create_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdEqualTo(Long value) {
|
||||
addCriterion("create_id =", value, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdNotEqualTo(Long value) {
|
||||
addCriterion("create_id <>", value, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdGreaterThan(Long value) {
|
||||
addCriterion("create_id >", value, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("create_id >=", value, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdLessThan(Long value) {
|
||||
addCriterion("create_id <", value, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("create_id <=", value, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdIn(List<Long> values) {
|
||||
addCriterion("create_id in", values, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdNotIn(List<Long> values) {
|
||||
addCriterion("create_id not in", values, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdBetween(Long value1, Long value2) {
|
||||
addCriterion("create_id between", value1, value2, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("create_id not between", value1, value2, "createId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedIsNull() {
|
||||
addCriterion("updated is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedIsNotNull() {
|
||||
addCriterion("updated is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedEqualTo(Date value) {
|
||||
addCriterion("updated =", value, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedNotEqualTo(Date value) {
|
||||
addCriterion("updated <>", value, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedGreaterThan(Date value) {
|
||||
addCriterion("updated >", value, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("updated >=", value, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedLessThan(Date value) {
|
||||
addCriterion("updated <", value, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedLessThanOrEqualTo(Date value) {
|
||||
addCriterion("updated <=", value, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedIn(List<Date> values) {
|
||||
addCriterion("updated in", values, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedNotIn(List<Date> values) {
|
||||
addCriterion("updated not in", values, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedBetween(Date value1, Date value2) {
|
||||
addCriterion("updated between", value1, value2, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdatedNotBetween(Date value1, Date value2) {
|
||||
addCriterion("updated not between", value1, value2, "updated");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdIsNull() {
|
||||
addCriterion("update_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdIsNotNull() {
|
||||
addCriterion("update_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdEqualTo(Long value) {
|
||||
addCriterion("update_id =", value, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdNotEqualTo(Long value) {
|
||||
addCriterion("update_id <>", value, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdGreaterThan(Long value) {
|
||||
addCriterion("update_id >", value, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("update_id >=", value, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdLessThan(Long value) {
|
||||
addCriterion("update_id <", value, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("update_id <=", value, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdIn(List<Long> values) {
|
||||
addCriterion("update_id in", values, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdNotIn(List<Long> values) {
|
||||
addCriterion("update_id not in", values, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdBetween(Long value1, Long value2) {
|
||||
addCriterion("update_id between", value1, value2, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("update_id not between", value1, value2, "updateId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIsNull() {
|
||||
addCriterion("is_delete is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIsNotNull() {
|
||||
addCriterion("is_delete is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteEqualTo(Byte value) {
|
||||
addCriterion("is_delete =", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotEqualTo(Byte value) {
|
||||
addCriterion("is_delete <>", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteGreaterThan(Byte value) {
|
||||
addCriterion("is_delete >", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteGreaterThanOrEqualTo(Byte value) {
|
||||
addCriterion("is_delete >=", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteLessThan(Byte value) {
|
||||
addCriterion("is_delete <", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteLessThanOrEqualTo(Byte value) {
|
||||
addCriterion("is_delete <=", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIn(List<Byte> values) {
|
||||
addCriterion("is_delete in", values, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotIn(List<Byte> values) {
|
||||
addCriterion("is_delete not in", values, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteBetween(Byte value1, Byte value2) {
|
||||
addCriterion("is_delete between", value1, value2, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotBetween(Byte value1, Byte value2) {
|
||||
addCriterion("is_delete not between", value1, value2, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1IsNull() {
|
||||
addCriterion("extend1 is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1IsNotNull() {
|
||||
addCriterion("extend1 is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1EqualTo(String value) {
|
||||
addCriterion("extend1 =", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1NotEqualTo(String value) {
|
||||
addCriterion("extend1 <>", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1GreaterThan(String value) {
|
||||
addCriterion("extend1 >", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1GreaterThanOrEqualTo(String value) {
|
||||
addCriterion("extend1 >=", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1LessThan(String value) {
|
||||
addCriterion("extend1 <", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1LessThanOrEqualTo(String value) {
|
||||
addCriterion("extend1 <=", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1Like(String value) {
|
||||
addCriterion("extend1 like", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1NotLike(String value) {
|
||||
addCriterion("extend1 not like", value, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1In(List<String> values) {
|
||||
addCriterion("extend1 in", values, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1NotIn(List<String> values) {
|
||||
addCriterion("extend1 not in", values, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1Between(String value1, String value2) {
|
||||
addCriterion("extend1 between", value1, value2, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend1NotBetween(String value1, String value2) {
|
||||
addCriterion("extend1 not between", value1, value2, "extend1");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2IsNull() {
|
||||
addCriterion("extend2 is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2IsNotNull() {
|
||||
addCriterion("extend2 is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2EqualTo(String value) {
|
||||
addCriterion("extend2 =", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2NotEqualTo(String value) {
|
||||
addCriterion("extend2 <>", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2GreaterThan(String value) {
|
||||
addCriterion("extend2 >", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2GreaterThanOrEqualTo(String value) {
|
||||
addCriterion("extend2 >=", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2LessThan(String value) {
|
||||
addCriterion("extend2 <", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2LessThanOrEqualTo(String value) {
|
||||
addCriterion("extend2 <=", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2Like(String value) {
|
||||
addCriterion("extend2 like", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2NotLike(String value) {
|
||||
addCriterion("extend2 not like", value, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2In(List<String> values) {
|
||||
addCriterion("extend2 in", values, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2NotIn(List<String> values) {
|
||||
addCriterion("extend2 not in", values, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2Between(String value1, String value2) {
|
||||
addCriterion("extend2 between", value1, value2, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend2NotBetween(String value1, String value2) {
|
||||
addCriterion("extend2 not between", value1, value2, "extend2");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3IsNull() {
|
||||
addCriterion("extend3 is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3IsNotNull() {
|
||||
addCriterion("extend3 is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3EqualTo(String value) {
|
||||
addCriterion("extend3 =", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3NotEqualTo(String value) {
|
||||
addCriterion("extend3 <>", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3GreaterThan(String value) {
|
||||
addCriterion("extend3 >", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3GreaterThanOrEqualTo(String value) {
|
||||
addCriterion("extend3 >=", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3LessThan(String value) {
|
||||
addCriterion("extend3 <", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3LessThanOrEqualTo(String value) {
|
||||
addCriterion("extend3 <=", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3Like(String value) {
|
||||
addCriterion("extend3 like", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3NotLike(String value) {
|
||||
addCriterion("extend3 not like", value, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3In(List<String> values) {
|
||||
addCriterion("extend3 in", values, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3NotIn(List<String> values) {
|
||||
addCriterion("extend3 not in", values, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3Between(String value1, String value2) {
|
||||
addCriterion("extend3 between", value1, value2, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend3NotBetween(String value1, String value2) {
|
||||
addCriterion("extend3 not between", value1, value2, "extend3");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4IsNull() {
|
||||
addCriterion("extend4 is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4IsNotNull() {
|
||||
addCriterion("extend4 is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4EqualTo(String value) {
|
||||
addCriterion("extend4 =", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4NotEqualTo(String value) {
|
||||
addCriterion("extend4 <>", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4GreaterThan(String value) {
|
||||
addCriterion("extend4 >", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4GreaterThanOrEqualTo(String value) {
|
||||
addCriterion("extend4 >=", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4LessThan(String value) {
|
||||
addCriterion("extend4 <", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4LessThanOrEqualTo(String value) {
|
||||
addCriterion("extend4 <=", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4Like(String value) {
|
||||
addCriterion("extend4 like", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4NotLike(String value) {
|
||||
addCriterion("extend4 not like", value, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4In(List<String> values) {
|
||||
addCriterion("extend4 in", values, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4NotIn(List<String> values) {
|
||||
addCriterion("extend4 not in", values, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4Between(String value1, String value2) {
|
||||
addCriterion("extend4 between", value1, value2, "extend4");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExtend4NotBetween(String value1, String value2) {
|
||||
addCriterion("extend4 not between", value1, value2, "extend4");
|
||||
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,165 @@
|
||||
package com.mashibing.webmaster.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class SmsUser {
|
||||
private Integer id;
|
||||
|
||||
private String username;
|
||||
|
||||
private String password;
|
||||
|
||||
private String salt;
|
||||
|
||||
private String nickname;
|
||||
|
||||
private Date created;
|
||||
|
||||
private Long createId;
|
||||
|
||||
private Date updated;
|
||||
|
||||
private Long updateId;
|
||||
|
||||
private Byte isDelete;
|
||||
|
||||
private String extend1;
|
||||
|
||||
private String extend2;
|
||||
|
||||
private String extend3;
|
||||
|
||||
private String extend4;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SmsUser{" +
|
||||
"id=" + id +
|
||||
", username='" + username + '\'' +
|
||||
", password='" + password + '\'' +
|
||||
", salt='" + salt + '\'' +
|
||||
", nickname='" + nickname + '\'' +
|
||||
", created=" + created +
|
||||
", createId=" + createId +
|
||||
", updated=" + updated +
|
||||
", updateId=" + updateId +
|
||||
", isDelete=" + isDelete +
|
||||
", extend1='" + extend1 + '\'' +
|
||||
", extend2='" + extend2 + '\'' +
|
||||
", extend3='" + extend3 + '\'' +
|
||||
", extend4='" + extend4 + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username == null ? null : username.trim();
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password == null ? null : password.trim();
|
||||
}
|
||||
|
||||
public String getSalt() {
|
||||
return salt;
|
||||
}
|
||||
|
||||
public void setSalt(String salt) {
|
||||
this.salt = salt == null ? null : salt.trim();
|
||||
}
|
||||
|
||||
public String getNickname() {
|
||||
return nickname;
|
||||
}
|
||||
|
||||
public void setNickname(String nickname) {
|
||||
this.nickname = nickname == null ? null : nickname.trim();
|
||||
}
|
||||
|
||||
public Date getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(Date created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public Long getCreateId() {
|
||||
return createId;
|
||||
}
|
||||
|
||||
public void setCreateId(Long createId) {
|
||||
this.createId = createId;
|
||||
}
|
||||
|
||||
public Date getUpdated() {
|
||||
return updated;
|
||||
}
|
||||
|
||||
public void setUpdated(Date updated) {
|
||||
this.updated = updated;
|
||||
}
|
||||
|
||||
public Long getUpdateId() {
|
||||
return updateId;
|
||||
}
|
||||
|
||||
public void setUpdateId(Long updateId) {
|
||||
this.updateId = updateId;
|
||||
}
|
||||
|
||||
public Byte getIsDelete() {
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
public void setIsDelete(Byte isDelete) {
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public String getExtend1() {
|
||||
return extend1;
|
||||
}
|
||||
|
||||
public void setExtend1(String extend1) {
|
||||
this.extend1 = extend1 == null ? null : extend1.trim();
|
||||
}
|
||||
|
||||
public String getExtend2() {
|
||||
return extend2;
|
||||
}
|
||||
|
||||
public void setExtend2(String extend2) {
|
||||
this.extend2 = extend2 == null ? null : extend2.trim();
|
||||
}
|
||||
|
||||
public String getExtend3() {
|
||||
return extend3;
|
||||
}
|
||||
|
||||
public void setExtend3(String extend3) {
|
||||
this.extend3 = extend3 == null ? null : extend3.trim();
|
||||
}
|
||||
|
||||
public String getExtend4() {
|
||||
return extend4;
|
||||
}
|
||||
|
||||
public void setExtend4(String extend4) {
|
||||
this.extend4 = extend4 == null ? null : extend4.trim();
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
package com.mashibing.webmaster.mapper;
|
||||
|
||||
import com.mashibing.webmaster.entity.SmsMenu;
|
||||
import com.mashibing.webmaster.entity.SmsMenuExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface SmsMenuMapper {
|
||||
long countByExample(SmsMenuExample example);
|
||||
|
||||
int deleteByExample(SmsMenuExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(SmsMenu row);
|
||||
|
||||
int insertSelective(SmsMenu row);
|
||||
|
||||
List<SmsMenu> selectByExample(SmsMenuExample example);
|
||||
|
||||
SmsMenu selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("row") SmsMenu row, @Param("example") SmsMenuExample example);
|
||||
|
||||
int updateByExample(@Param("row") SmsMenu row, @Param("example") SmsMenuExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(SmsMenu row);
|
||||
|
||||
int updateByPrimaryKey(SmsMenu row);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.mashibing.webmaster.mapper;
|
||||
|
||||
import com.mashibing.webmaster.entity.SmsRole;
|
||||
import com.mashibing.webmaster.entity.SmsRoleExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface SmsRoleMapper {
|
||||
long countByExample(SmsRoleExample example);
|
||||
|
||||
int deleteByExample(SmsRoleExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(SmsRole row);
|
||||
|
||||
int insertSelective(SmsRole row);
|
||||
|
||||
List<SmsRole> selectByExample(SmsRoleExample example);
|
||||
|
||||
SmsRole selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("row") SmsRole row, @Param("example") SmsRoleExample example);
|
||||
|
||||
int updateByExample(@Param("row") SmsRole row, @Param("example") SmsRoleExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(SmsRole row);
|
||||
|
||||
int updateByPrimaryKey(SmsRole row);
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.mashibing.webmaster.mapper;
|
||||
|
||||
import com.mashibing.webmaster.entity.SmsUser;
|
||||
import com.mashibing.webmaster.entity.SmsUserExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface SmsUserMapper {
|
||||
|
||||
long countByExample(SmsUserExample example);
|
||||
|
||||
int deleteByExample(SmsUserExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(SmsUser row);
|
||||
|
||||
int insertSelective(SmsUser row);
|
||||
|
||||
List<SmsUser> selectByExample(SmsUserExample example);
|
||||
|
||||
SmsUser selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("row") SmsUser row, @Param("example") SmsUserExample example);
|
||||
|
||||
int updateByExample(@Param("row") SmsUser row, @Param("example") SmsUserExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(SmsUser row);
|
||||
|
||||
int updateByPrimaryKey(SmsUser row);
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.mashibing.webmaster.service;
|
||||
|
||||
import com.mashibing.webmaster.entity.SmsUser;
|
||||
|
||||
/**
|
||||
* 用户信息的Service
|
||||
* @author zjw
|
||||
* @description
|
||||
*/
|
||||
public interface SmsUserService {
|
||||
|
||||
|
||||
/**
|
||||
* 根据用户名查询用户信息
|
||||
* @param username 用户名
|
||||
* @return
|
||||
*/
|
||||
SmsUser findByUsername(String username);
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.mashibing.webmaster.service.impl;
|
||||
|
||||
import com.mashibing.webmaster.entity.SmsUser;
|
||||
import com.mashibing.webmaster.entity.SmsUserExample;
|
||||
import com.mashibing.webmaster.mapper.SmsUserMapper;
|
||||
import com.mashibing.webmaster.service.SmsUserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zjw
|
||||
* @description
|
||||
*/
|
||||
@Service
|
||||
public class SmsUserServiceImpl implements SmsUserService {
|
||||
|
||||
@Resource
|
||||
private SmsUserMapper userMapper;
|
||||
|
||||
@Override
|
||||
public SmsUser findByUsername(String username) {
|
||||
//1、封装查询条件
|
||||
SmsUserExample example = new SmsUserExample();
|
||||
SmsUserExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andUsernameEqualTo(username);
|
||||
//2、基于userMapper查询
|
||||
List<SmsUser> list = userMapper.selectByExample(example);
|
||||
//3、返回
|
||||
return list != null ? list.get(0) : null;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
# MyBatis和dataSource配置
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: org.gjt.mm.mysql.Driver
|
||||
url: jdbc:mysql://114.116.226.76:3306/beacon_cloud?characterEncoding=utf-8
|
||||
username: root
|
||||
password: ZhengJinWei123!
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
# MyBatis
|
||||
mybatis:
|
||||
mapper-locations: classpath:mapper/*.xml
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
|
||||
# shiro配置
|
||||
shiro:
|
||||
# 默认登录页面
|
||||
loginUrl: /login.html
|
||||
# 没有权限的页面
|
||||
unauthorizedUrl: unauthorized.html
|
||||
|
@ -0,0 +1,385 @@
|
||||
<?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.mashibing.webmaster.mapper.SmsMenuMapper">
|
||||
<resultMap id="BaseResultMap" type="com.mashibing.webmaster.entity.SmsMenu">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
||||
<result column="type" jdbcType="INTEGER" property="type" />
|
||||
<result column="sort" jdbcType="INTEGER" property="sort" />
|
||||
<result column="created" jdbcType="TIMESTAMP" property="created" />
|
||||
<result column="create_id" jdbcType="BIGINT" property="createId" />
|
||||
<result column="updated" jdbcType="TIMESTAMP" property="updated" />
|
||||
<result column="update_id" jdbcType="BIGINT" property="updateId" />
|
||||
<result column="is_delete" jdbcType="TINYINT" property="isDelete" />
|
||||
<result column="extend1" jdbcType="VARCHAR" property="extend1" />
|
||||
<result column="extend2" jdbcType="VARCHAR" property="extend2" />
|
||||
<result column="extend3" jdbcType="VARCHAR" property="extend3" />
|
||||
<result column="extend4" jdbcType="VARCHAR" property="extend4" />
|
||||
</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, name, parent_id, url, icon, type, sort, created, create_id, updated, update_id,
|
||||
is_delete, extend1, extend2, extend3, extend4
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.mashibing.webmaster.entity.SmsMenuExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from sms_menu
|
||||
<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.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sms_menu
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from sms_menu
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.mashibing.webmaster.entity.SmsMenuExample">
|
||||
delete from sms_menu
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.mashibing.webmaster.entity.SmsMenu">
|
||||
insert into sms_menu (id, name, parent_id,
|
||||
url, icon, type, sort,
|
||||
created, create_id, updated,
|
||||
update_id, is_delete, extend1,
|
||||
extend2, extend3, extend4
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT},
|
||||
#{url,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
|
||||
#{created,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT}, #{updated,jdbcType=TIMESTAMP},
|
||||
#{updateId,jdbcType=BIGINT}, #{isDelete,jdbcType=TINYINT}, #{extend1,jdbcType=VARCHAR},
|
||||
#{extend2,jdbcType=VARCHAR}, #{extend3,jdbcType=VARCHAR}, #{extend4,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.mashibing.webmaster.entity.SmsMenu">
|
||||
insert into sms_menu
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="parentId != null">
|
||||
parent_id,
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url,
|
||||
</if>
|
||||
<if test="icon != null">
|
||||
icon,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort,
|
||||
</if>
|
||||
<if test="created != null">
|
||||
created,
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
create_id,
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
updated,
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
update_id,
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
extend1,
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
extend2,
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
extend3,
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
extend4,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parentId != null">
|
||||
#{parentId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
#{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="icon != null">
|
||||
#{icon,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
#{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="created != null">
|
||||
#{created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
#{createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
#{updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
#{updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
#{extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
#{extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
#{extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
#{extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.mashibing.webmaster.entity.SmsMenuExample" resultType="java.lang.Long">
|
||||
select count(*) from sms_menu
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update sms_menu
|
||||
<set>
|
||||
<if test="row.id != null">
|
||||
id = #{row.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="row.name != null">
|
||||
name = #{row.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.parentId != null">
|
||||
parent_id = #{row.parentId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="row.url != null">
|
||||
url = #{row.url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.icon != null">
|
||||
icon = #{row.icon,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.type != null">
|
||||
type = #{row.type,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="row.sort != null">
|
||||
sort = #{row.sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="row.created != null">
|
||||
created = #{row.created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="row.createId != null">
|
||||
create_id = #{row.createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="row.updated != null">
|
||||
updated = #{row.updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="row.updateId != null">
|
||||
update_id = #{row.updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="row.isDelete != null">
|
||||
is_delete = #{row.isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="row.extend1 != null">
|
||||
extend1 = #{row.extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend2 != null">
|
||||
extend2 = #{row.extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend3 != null">
|
||||
extend3 = #{row.extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend4 != null">
|
||||
extend4 = #{row.extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update sms_menu
|
||||
set id = #{row.id,jdbcType=INTEGER},
|
||||
name = #{row.name,jdbcType=VARCHAR},
|
||||
parent_id = #{row.parentId,jdbcType=BIGINT},
|
||||
url = #{row.url,jdbcType=VARCHAR},
|
||||
icon = #{row.icon,jdbcType=VARCHAR},
|
||||
type = #{row.type,jdbcType=INTEGER},
|
||||
sort = #{row.sort,jdbcType=INTEGER},
|
||||
created = #{row.created,jdbcType=TIMESTAMP},
|
||||
create_id = #{row.createId,jdbcType=BIGINT},
|
||||
updated = #{row.updated,jdbcType=TIMESTAMP},
|
||||
update_id = #{row.updateId,jdbcType=BIGINT},
|
||||
is_delete = #{row.isDelete,jdbcType=TINYINT},
|
||||
extend1 = #{row.extend1,jdbcType=VARCHAR},
|
||||
extend2 = #{row.extend2,jdbcType=VARCHAR},
|
||||
extend3 = #{row.extend3,jdbcType=VARCHAR},
|
||||
extend4 = #{row.extend4,jdbcType=VARCHAR}
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.mashibing.webmaster.entity.SmsMenu">
|
||||
update sms_menu
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parentId != null">
|
||||
parent_id = #{parentId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="icon != null">
|
||||
icon = #{icon,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="created != null">
|
||||
created = #{created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
create_id = #{createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
updated = #{updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
update_id = #{updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
extend1 = #{extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
extend2 = #{extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
extend3 = #{extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
extend4 = #{extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.mashibing.webmaster.entity.SmsMenu">
|
||||
update sms_menu
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
parent_id = #{parentId,jdbcType=BIGINT},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
icon = #{icon,jdbcType=VARCHAR},
|
||||
type = #{type,jdbcType=INTEGER},
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
created = #{created,jdbcType=TIMESTAMP},
|
||||
create_id = #{createId,jdbcType=BIGINT},
|
||||
updated = #{updated,jdbcType=TIMESTAMP},
|
||||
update_id = #{updateId,jdbcType=BIGINT},
|
||||
is_delete = #{isDelete,jdbcType=TINYINT},
|
||||
extend1 = #{extend1,jdbcType=VARCHAR},
|
||||
extend2 = #{extend2,jdbcType=VARCHAR},
|
||||
extend3 = #{extend3,jdbcType=VARCHAR},
|
||||
extend4 = #{extend4,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</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.mashibing.webmaster.mapper.SmsRoleMapper">
|
||||
<resultMap id="BaseResultMap" type="com.mashibing.webmaster.entity.SmsRole">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="created" jdbcType="TIMESTAMP" property="created" />
|
||||
<result column="create_id" jdbcType="BIGINT" property="createId" />
|
||||
<result column="updated" jdbcType="TIMESTAMP" property="updated" />
|
||||
<result column="update_id" jdbcType="BIGINT" property="updateId" />
|
||||
<result column="is_delete" jdbcType="TINYINT" property="isDelete" />
|
||||
<result column="extend1" jdbcType="VARCHAR" property="extend1" />
|
||||
<result column="extend2" jdbcType="VARCHAR" property="extend2" />
|
||||
<result column="extend3" jdbcType="VARCHAR" property="extend3" />
|
||||
<result column="extend4" jdbcType="VARCHAR" property="extend4" />
|
||||
</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, name, created, create_id, updated, update_id, is_delete, extend1, extend2, extend3,
|
||||
extend4
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.mashibing.webmaster.entity.SmsRoleExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from sms_role
|
||||
<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.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sms_role
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from sms_role
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.mashibing.webmaster.entity.SmsRoleExample">
|
||||
delete from sms_role
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.mashibing.webmaster.entity.SmsRole">
|
||||
insert into sms_role (id, name, created,
|
||||
create_id, updated, update_id,
|
||||
is_delete, extend1, extend2,
|
||||
extend3, extend4)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{created,jdbcType=TIMESTAMP},
|
||||
#{createId,jdbcType=BIGINT}, #{updated,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT},
|
||||
#{isDelete,jdbcType=TINYINT}, #{extend1,jdbcType=VARCHAR}, #{extend2,jdbcType=VARCHAR},
|
||||
#{extend3,jdbcType=VARCHAR}, #{extend4,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.mashibing.webmaster.entity.SmsRole">
|
||||
insert into sms_role
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="created != null">
|
||||
created,
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
create_id,
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
updated,
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
update_id,
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
extend1,
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
extend2,
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
extend3,
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
extend4,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="created != null">
|
||||
#{created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
#{createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
#{updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
#{updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
#{extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
#{extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
#{extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
#{extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.mashibing.webmaster.entity.SmsRoleExample" resultType="java.lang.Long">
|
||||
select count(*) from sms_role
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update sms_role
|
||||
<set>
|
||||
<if test="row.id != null">
|
||||
id = #{row.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="row.name != null">
|
||||
name = #{row.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.created != null">
|
||||
created = #{row.created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="row.createId != null">
|
||||
create_id = #{row.createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="row.updated != null">
|
||||
updated = #{row.updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="row.updateId != null">
|
||||
update_id = #{row.updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="row.isDelete != null">
|
||||
is_delete = #{row.isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="row.extend1 != null">
|
||||
extend1 = #{row.extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend2 != null">
|
||||
extend2 = #{row.extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend3 != null">
|
||||
extend3 = #{row.extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend4 != null">
|
||||
extend4 = #{row.extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update sms_role
|
||||
set id = #{row.id,jdbcType=INTEGER},
|
||||
name = #{row.name,jdbcType=VARCHAR},
|
||||
created = #{row.created,jdbcType=TIMESTAMP},
|
||||
create_id = #{row.createId,jdbcType=BIGINT},
|
||||
updated = #{row.updated,jdbcType=TIMESTAMP},
|
||||
update_id = #{row.updateId,jdbcType=BIGINT},
|
||||
is_delete = #{row.isDelete,jdbcType=TINYINT},
|
||||
extend1 = #{row.extend1,jdbcType=VARCHAR},
|
||||
extend2 = #{row.extend2,jdbcType=VARCHAR},
|
||||
extend3 = #{row.extend3,jdbcType=VARCHAR},
|
||||
extend4 = #{row.extend4,jdbcType=VARCHAR}
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.mashibing.webmaster.entity.SmsRole">
|
||||
update sms_role
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="created != null">
|
||||
created = #{created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
create_id = #{createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
updated = #{updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
update_id = #{updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
extend1 = #{extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
extend2 = #{extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
extend3 = #{extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
extend4 = #{extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.mashibing.webmaster.entity.SmsRole">
|
||||
update sms_role
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
created = #{created,jdbcType=TIMESTAMP},
|
||||
create_id = #{createId,jdbcType=BIGINT},
|
||||
updated = #{updated,jdbcType=TIMESTAMP},
|
||||
update_id = #{updateId,jdbcType=BIGINT},
|
||||
is_delete = #{isDelete,jdbcType=TINYINT},
|
||||
extend1 = #{extend1,jdbcType=VARCHAR},
|
||||
extend2 = #{extend2,jdbcType=VARCHAR},
|
||||
extend3 = #{extend3,jdbcType=VARCHAR},
|
||||
extend4 = #{extend4,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,353 @@
|
||||
<?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.mashibing.webmaster.mapper.SmsUserMapper">
|
||||
<resultMap id="BaseResultMap" type="com.mashibing.webmaster.entity.SmsUser">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="username" jdbcType="VARCHAR" property="username" />
|
||||
<result column="password" jdbcType="VARCHAR" property="password" />
|
||||
<result column="salt" jdbcType="VARCHAR" property="salt" />
|
||||
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
|
||||
<result column="created" jdbcType="TIMESTAMP" property="created" />
|
||||
<result column="create_id" jdbcType="BIGINT" property="createId" />
|
||||
<result column="updated" jdbcType="TIMESTAMP" property="updated" />
|
||||
<result column="update_id" jdbcType="BIGINT" property="updateId" />
|
||||
<result column="is_delete" jdbcType="TINYINT" property="isDelete" />
|
||||
<result column="extend1" jdbcType="VARCHAR" property="extend1" />
|
||||
<result column="extend2" jdbcType="VARCHAR" property="extend2" />
|
||||
<result column="extend3" jdbcType="VARCHAR" property="extend3" />
|
||||
<result column="extend4" jdbcType="VARCHAR" property="extend4" />
|
||||
</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, username, password, salt, nickname, created, create_id, updated, update_id, is_delete,
|
||||
extend1, extend2, extend3, extend4
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.mashibing.webmaster.entity.SmsUserExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from sms_user
|
||||
<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.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sms_user
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from sms_user
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.mashibing.webmaster.entity.SmsUserExample">
|
||||
delete from sms_user
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.mashibing.webmaster.entity.SmsUser">
|
||||
insert into sms_user (id, username, password,
|
||||
salt, nickname, created,
|
||||
create_id, updated, update_id,
|
||||
is_delete, extend1, extend2,
|
||||
extend3, extend4)
|
||||
values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
||||
#{salt,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{created,jdbcType=TIMESTAMP},
|
||||
#{createId,jdbcType=BIGINT}, #{updated,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT},
|
||||
#{isDelete,jdbcType=TINYINT}, #{extend1,jdbcType=VARCHAR}, #{extend2,jdbcType=VARCHAR},
|
||||
#{extend3,jdbcType=VARCHAR}, #{extend4,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.mashibing.webmaster.entity.SmsUser">
|
||||
insert into sms_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="username != null">
|
||||
username,
|
||||
</if>
|
||||
<if test="password != null">
|
||||
password,
|
||||
</if>
|
||||
<if test="salt != null">
|
||||
salt,
|
||||
</if>
|
||||
<if test="nickname != null">
|
||||
nickname,
|
||||
</if>
|
||||
<if test="created != null">
|
||||
created,
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
create_id,
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
updated,
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
update_id,
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
extend1,
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
extend2,
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
extend3,
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
extend4,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="username != null">
|
||||
#{username,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="password != null">
|
||||
#{password,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="salt != null">
|
||||
#{salt,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="nickname != null">
|
||||
#{nickname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="created != null">
|
||||
#{created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
#{createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
#{updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
#{updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
#{extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
#{extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
#{extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
#{extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.mashibing.webmaster.entity.SmsUserExample" resultType="java.lang.Long">
|
||||
select count(*) from sms_user
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update sms_user
|
||||
<set>
|
||||
<if test="row.id != null">
|
||||
id = #{row.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="row.username != null">
|
||||
username = #{row.username,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.password != null">
|
||||
password = #{row.password,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.salt != null">
|
||||
salt = #{row.salt,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.nickname != null">
|
||||
nickname = #{row.nickname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.created != null">
|
||||
created = #{row.created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="row.createId != null">
|
||||
create_id = #{row.createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="row.updated != null">
|
||||
updated = #{row.updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="row.updateId != null">
|
||||
update_id = #{row.updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="row.isDelete != null">
|
||||
is_delete = #{row.isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="row.extend1 != null">
|
||||
extend1 = #{row.extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend2 != null">
|
||||
extend2 = #{row.extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend3 != null">
|
||||
extend3 = #{row.extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.extend4 != null">
|
||||
extend4 = #{row.extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update sms_user
|
||||
set id = #{row.id,jdbcType=INTEGER},
|
||||
username = #{row.username,jdbcType=VARCHAR},
|
||||
password = #{row.password,jdbcType=VARCHAR},
|
||||
salt = #{row.salt,jdbcType=VARCHAR},
|
||||
nickname = #{row.nickname,jdbcType=VARCHAR},
|
||||
created = #{row.created,jdbcType=TIMESTAMP},
|
||||
create_id = #{row.createId,jdbcType=BIGINT},
|
||||
updated = #{row.updated,jdbcType=TIMESTAMP},
|
||||
update_id = #{row.updateId,jdbcType=BIGINT},
|
||||
is_delete = #{row.isDelete,jdbcType=TINYINT},
|
||||
extend1 = #{row.extend1,jdbcType=VARCHAR},
|
||||
extend2 = #{row.extend2,jdbcType=VARCHAR},
|
||||
extend3 = #{row.extend3,jdbcType=VARCHAR},
|
||||
extend4 = #{row.extend4,jdbcType=VARCHAR}
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.mashibing.webmaster.entity.SmsUser">
|
||||
update sms_user
|
||||
<set>
|
||||
<if test="username != null">
|
||||
username = #{username,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="password != null">
|
||||
password = #{password,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="salt != null">
|
||||
salt = #{salt,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="nickname != null">
|
||||
nickname = #{nickname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="created != null">
|
||||
created = #{created,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createId != null">
|
||||
create_id = #{createId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
updated = #{updated,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateId != null">
|
||||
update_id = #{updateId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="extend1 != null">
|
||||
extend1 = #{extend1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend2 != null">
|
||||
extend2 = #{extend2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend3 != null">
|
||||
extend3 = #{extend3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="extend4 != null">
|
||||
extend4 = #{extend4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.mashibing.webmaster.entity.SmsUser">
|
||||
update sms_user
|
||||
set username = #{username,jdbcType=VARCHAR},
|
||||
password = #{password,jdbcType=VARCHAR},
|
||||
salt = #{salt,jdbcType=VARCHAR},
|
||||
nickname = #{nickname,jdbcType=VARCHAR},
|
||||
created = #{created,jdbcType=TIMESTAMP},
|
||||
create_id = #{createId,jdbcType=BIGINT},
|
||||
updated = #{updated,jdbcType=TIMESTAMP},
|
||||
update_id = #{updateId,jdbcType=BIGINT},
|
||||
is_delete = #{isDelete,jdbcType=TINYINT},
|
||||
extend1 = #{extend1,jdbcType=VARCHAR},
|
||||
extend2 = #{extend2,jdbcType=VARCHAR},
|
||||
extend3 = #{extend3,jdbcType=VARCHAR},
|
||||
extend4 = #{extend4,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>充值管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">所属客户</div>
|
||||
<div class="col-sm-10">
|
||||
<select v-model="acount.clientid" name="sites" id="sites">
|
||||
<option v-for="item in sites" :value="item.id">{{ item.corpname }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">到账金额</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="acount.paidvalue" placeholder="到账金额(单位元)"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.config.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.all.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.parse.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/acount/acount.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,132 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>活动管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">标 题</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="activity.title" placeholder="汽车行业发展"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">描 述</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="activity.description" placeholder="资讯来源"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">图片</div>
|
||||
<div class="col-sm-10">
|
||||
<el-upload
|
||||
action="http://localhost:8080/ytupload"
|
||||
accept="image/jpeg,image/gif,image/png"
|
||||
:on-success="handleSuccess"
|
||||
name="mypic">
|
||||
<div slot="tip" class="el-upload__tip">请上传图片格式文件
|
||||
<el-button size="small" type="primary" style="text-align:right">自动上传</el-button>
|
||||
</div>
|
||||
</el-upload>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">活动创建者</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="activity.author"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">开始时间</div>
|
||||
<div class="col-sm-10">
|
||||
<el-date-picker
|
||||
v-model="activity.beginTime"
|
||||
type="datetime"
|
||||
format="yyyy-MM-dd HH:mm"
|
||||
value-format="yyyy-MM-dd HH:mm"
|
||||
:editable="false"
|
||||
placeholder="选择日期时间">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">结束时间</div>
|
||||
<div class="col-sm-10">
|
||||
<el-date-picker
|
||||
v-model="activity.endTime"
|
||||
type="datetime"
|
||||
format="yyyy-MM-dd HH:mm"
|
||||
value-format="yyyy-MM-dd HH:mm"
|
||||
:editable="false"
|
||||
placeholder="选择日期时间">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">活动链接</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="activity.link"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">SEO关键字</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="activity.seoKeywords"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.config.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.all.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.parse.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/activity/activity.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,106 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>灰度发布管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<input type="hidden" v-model="grayrelease.id"/>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">服务名称</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="grayrelease.serviceId" placeholder="服务名称"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">请求地址</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="grayrelease.path" placeholder="请求地址"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">频次</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="grayrelease.percent" placeholder="频次"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">版本标识</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="grayrelease.forward" placeholder="版本标识"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">启用状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="grayrelease.state">启用
|
||||
<input type="radio" value="0" v-model="grayrelease.state">停用
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">启用状态</div>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="0" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />停用-->
|
||||
<!-- </label>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="1" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />启用-->
|
||||
<!-- </label>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/api/garyrelease.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,106 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>api网关映射管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<input type="hidden" v-model="apimapping.id"/>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">api名称</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="apimapping.gatewayApiName" placeholder="api名称"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">映射网关</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="apimapping.serviceId" placeholder="映射网关"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">映射地址</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="apimapping.insideApiUrl" placeholder="映射地址"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">介绍</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="apimapping.description" placeholder="介绍"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">启用状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="apimapping.state">启用
|
||||
<input type="radio" value="0" v-model="apimapping.state">停用
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">启用状态</div>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="0" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />停用-->
|
||||
<!-- </label>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="1" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />启用-->
|
||||
<!-- </label>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/api/api.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,114 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>接口公共参数管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<input type="hidden" v-model="param.id"/>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">参数名</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="param.paramName" placeholder="参数名"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">参数类型</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="param.paramType" placeholder="参数类型"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="form-group">
|
||||
<div class="col-sm-2 control-label">创建日期</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="param.createDate" placeholder="创建日期"/>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">介绍</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="param.descripton" placeholder="介绍"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">是否必须</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="param.isMust">必须
|
||||
<input type="radio" value="0" v-model="param.isMust">可选
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">启用状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="param.enableState">启用
|
||||
<input type="radio" value="0" v-model="param.enableState">停用
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">启用状态</div>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="0" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />停用-->
|
||||
<!-- </label>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="1" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />启用-->
|
||||
<!-- </label>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/api/public_params.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>黑名单管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">手机黑名单</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="black.mobile" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/black/blacklist.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>短信通道管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">通道名称</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="channel.channelname" placeholder="通道名称"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">通道类型</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="0" v-model="channel.channeltype">全网
|
||||
<input type="radio" value="1" v-model="channel.channeltype">移动
|
||||
<input type="radio" value="2" v-model="channel.channeltype">联通
|
||||
<input type="radio" value="3" v-model="channel.channeltype">电信
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">账户接入号</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="channel.spnumber" placeholder="账户接入号"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">协议类型</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="channel.protocaltype">cmpp
|
||||
<input type="radio" value="2" v-model="channel.protocaltype">sgip
|
||||
<input type="radio" value="3" v-model="channel.protocaltype">smgp
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/channel/channel.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,94 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>客户管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">公司名称</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="client.corpname" placeholder="公司名称"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">公司地址</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="client.address" placeholder="公司地址"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">联系人</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="client.linkman" placeholder="联系人"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">手机号</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="client.mobile" placeholder="手机号"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">email</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="client.email" placeholder="email"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">客户经理</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="client.customermanager" placeholder="客户经理"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/client/client.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,129 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>客户接入管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">公司名称</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientbusiness.corpname" placeholder="公司名称"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">接入的用户名</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientbusiness.usercode" placeholder="接入的用户名"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">接入的密码</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientbusiness.pwd" placeholder="接入的密码"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">接入的IP地址</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientbusiness.ipaddress" placeholder="接入的IP地址"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">是否返回</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="clientbusiness.isreturnstatus">返回
|
||||
<input type="radio" value="0" v-model="clientbusiness.isreturnstatus">不返回
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">接收状态报告地址</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientbusiness.receivestatusurl"
|
||||
placeholder="接收状态报告地址"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">业务优先级</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" class="form-control" v-model="clientbusiness.priority" placeholder="业务优先级"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">使用方式</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="clientbusiness.usertype">http
|
||||
<input type="radio" value="2" v-model="clientbusiness.usertype">WEB
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">开通状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="0" v-model="clientbusiness.state">没开通
|
||||
<input type="radio" value="1" v-model="clientbusiness.state">开通
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">手机号</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientbusiness.mobile" placeholder="手机号"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">钱数(厘)</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientbusiness.money" placeholder="0"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/client/clientbusiness.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>客户通道管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">所属客户</div>
|
||||
<div class="col-sm-10">
|
||||
<select v-model="clientchannel.clientid" name="sites" id="sites">
|
||||
<option v-for="item in sites" :value="item.id">{{ item.corpname }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">扩展号</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" class="form-control" v-model="clientchannel.extendnumber"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">每条的价格</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="clientchannel.price" placeholder="价格(单位里)"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">所属通道</div>
|
||||
<div class="col-sm-10">
|
||||
<select v-model="clientchannel.channelid" name="channelsites" id="channelsites">
|
||||
<option v-for="item in channelsites" :value="item.id">{{ item.channelname }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/client/clientchannel.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>搜索短信</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">查询条件</div>
|
||||
<div class="panel-body">
|
||||
<form id="formSearch" class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>关键字</label>
|
||||
<input type="text" class="form-control" id="content">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>手机号</label>
|
||||
<input type="text" class="form-control" id="mobile">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>时间</label>
|
||||
<input type="date" class="form-control" id="starttime">
|
||||
<input type="date" class="form-control" id="stoptime">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label >公司</label>
|
||||
<select class="form-control" id="clientID" >
|
||||
<option value="">请选择</option>
|
||||
<option :value="item.id" v-for="item in sites">{{item.corpname}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" @click="reload">查询</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/client/search.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>短信发送管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">手机号</div>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" v-model="sms.mobile" rows="15" placeholder="手机之间换行"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">短信内容</div>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" v-model="sms.content"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="短信发送"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/client/smssend.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/sys/clientbusiness/pay">
|
||||
<input type="number" name="jine"><br>
|
||||
<input type="submit">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>数据同步通知管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">通知标记</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="notify.tag" placeholder="通知标记"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">通知介绍</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="notify.desp" placeholder="介绍"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">推送消息(依赖同步缓存)</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="notify.notifyState">启用
|
||||
<input type="radio" value="0" v-model="notify.notifyState">停用
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">同步缓存(停用会不推送)</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="notify.cacheState">启用
|
||||
<input type="radio" value="0" v-model="notify.cacheState">停用
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">启用状态</div>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="0" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />停用-->
|
||||
<!-- </label>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="1" name="notifyState" class="form-control radiosize" v-model="notify.notifyState" />启用-->
|
||||
<!-- </label>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/config/notify.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,103 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>数据同步通知管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">请求参数名</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="searchparams.name" placeholder="请求参数名"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">对应搜索参数列名</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="searchparams.cloum" placeholder="对应搜索参数列名"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">搜索类型</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="searchparams.type" placeholder="搜索类型如match,term,range"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">参数范围(range类型有效)</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="searchparams.tOrder" placeholder="0代表range起点,1代表range终点"/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">启用状态</div>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="0" name="state" class="form-control radiosize" v-model="searchparams.state" />停用-->
|
||||
<!-- </label>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="1" name="state" class="form-control radiosize" v-model="searchparams.state" />启用-->
|
||||
<!-- </label>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">启用状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="searchparams.state">启用
|
||||
<input type="radio" value="0" v-model="searchparams.state">停用
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/config/searchparams.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>敏感词管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">敏感词</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="message.dirtyword" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.config.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.all.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.parse.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/dirtyword/dirtyword.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/echarts/echarts.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
//1,初始化echarts
|
||||
var myEcharts = echarts.init(document.getElementById("bar"));
|
||||
//2,设置图形显示的数据选项
|
||||
var option = {
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: []
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value'
|
||||
},
|
||||
series: [{
|
||||
data: [],
|
||||
type: 'bar'
|
||||
}]
|
||||
};
|
||||
|
||||
$.get("/sys/echarts/bar", function (r) {
|
||||
//把真数据赋值给option
|
||||
option.xAxis.data = r.xAxis;
|
||||
option.series[0].data = r.seriesData;
|
||||
//3,把option设置给echarts对象 显示柱状图
|
||||
myEcharts.setOption(option);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div id="bar" style="width: 600px;height: 600px;">
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>部门员工数量</title>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/echarts/echarts.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
//1,初始化echarts对象
|
||||
var myEcharts = echarts.init(document.getElementById("pie"));
|
||||
//2, 指定图表的配置项和数据
|
||||
var option = {
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: []
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value'
|
||||
},
|
||||
series: [{
|
||||
data: [],
|
||||
type: 'line'
|
||||
}]
|
||||
};
|
||||
$.ajax({
|
||||
url: '/sys/echarts/line',
|
||||
dataType: 'json',
|
||||
success: function (r) {
|
||||
//给option赋值
|
||||
option.xAxis.data = r.xAxis;
|
||||
option.series[0].data = r.seriesData;
|
||||
// 使用刚指定的配置项和数据显示图表。
|
||||
myEcharts.setOption(option);
|
||||
}
|
||||
});
|
||||
// 使用刚指定的配置项和数据显示图表。
|
||||
// myEcharts.setOption(option); //因为ajax是异步的
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--图形的容器-->
|
||||
<div id="pie" style="width: 400px;height: 400px;">
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>成功率统计</title>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/echarts/echarts.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
//1,初始化echarts对象
|
||||
var myEcharts = echarts.init(document.getElementById("pie"));
|
||||
//2, 指定图表的配置项和数据
|
||||
var option = {
|
||||
title: {
|
||||
text: '标签热度比例',
|
||||
subtext: '真实有效',
|
||||
x: 'center'
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
formatter: "{a} <br/>{b} : {c} ({d}%)"
|
||||
},
|
||||
legend: {
|
||||
orient: 'vertical',
|
||||
left: 'left',
|
||||
data: []
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '标签热度比例',
|
||||
type: 'pie',
|
||||
radius: '55%',
|
||||
center: ['50%', '60%'],
|
||||
data: [],
|
||||
itemStyle: {
|
||||
emphasis: {
|
||||
shadowBlur: 10,
|
||||
shadowOffsetX: 0,
|
||||
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
$.ajax({
|
||||
url: '/sys/echarts/pie',
|
||||
dataType: 'json',
|
||||
success: function (r) {
|
||||
console.log(r);
|
||||
//给option赋值
|
||||
//R.ok().put("legendData",legendData).put("seriesData",seriesData);
|
||||
option.legend.data = r.legendData;
|
||||
option.series[0].data = r.seriesData;
|
||||
// 使用刚指定的配置项和数据显示图表。
|
||||
myEcharts.setOption(option);
|
||||
}
|
||||
});
|
||||
// 使用刚指定的配置项和数据显示图表。
|
||||
// myEcharts.setOption(option); //因为ajax是异步的
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!--图形的容器-->
|
||||
<div id="pie" style="width: 400px;height: 400px;">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>成功率统计</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/echarts/echarts.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
<div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">查询条件</div>
|
||||
<div class="panel-body">
|
||||
<form id="formSearch" class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>时间</label>
|
||||
<input type="date" class="form-control" id="start">
|
||||
<input type="date" class="form-control" id="end">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label >公司</label>
|
||||
<select class="form-control" id="clientID" >
|
||||
<option value="">请选择</option>
|
||||
<option :value="item.id" v-for="item in sites">{{item.corpname}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" @click="reload" >查询</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!--图形的容器 -->
|
||||
<div id="pie" style="width: 800px;height: 600px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/client/smspie.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>过滤策略管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">过滤器列表</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="filter.filters" placeholder="过滤器列表"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">启用状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="filter.filterState">启用
|
||||
<input type="radio" value="0" v-model="filter.filterState">停用
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">启用状态</div>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="0" name="filterState" class="form-control radiosize" v-model="filter.filterState" />停用-->
|
||||
<!-- </label>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="1" name="filterState" class="form-control radiosize" v-model="filter.filterState" />启用-->
|
||||
<!-- </label>-->
|
||||
|
||||
<!-- </div>-->
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/filter/apigatewayfilter.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>过滤策略管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">过滤器列表</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="filter.filters" placeholder="过滤器列表"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">启用状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="filter.filterState">启用
|
||||
<input type="radio" value="0" v-model="filter.filterState">停用
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">启用状态</div>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="0" name="filterState" class="form-control radiosize" v-model="filter.filterState" />停用-->
|
||||
<!-- </label>-->
|
||||
<!-- <label class="radio-inline">-->
|
||||
<!-- <input type="radio" value="1" name="filterState" class="form-control radiosize" v-model="filter.filterState" />启用-->
|
||||
<!-- </label>-->
|
||||
|
||||
<!-- </div>-->
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/filter/stragetyfilter.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,170 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>烽火云短信平台</title>
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="public/css/AdminLTE.min.css">
|
||||
<!-- AdminLTE Skins. Choose a skin from the css/skins
|
||||
folder instead of downloading all of them to reduce the load. -->
|
||||
<link rel="stylesheet" href="public/css/all-skins.min.css">
|
||||
<link rel="stylesheet" href="public/css/main.css">
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<!-- ADD THE CLASS layout-boxed TO GET A BOXED LAYOUT -->
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<!-- Site wrapper -->
|
||||
<div class="wrapper" id="dtapp" v-cloak>
|
||||
<header class="main-header">
|
||||
<a href="javascript:void(0);" class="logo">
|
||||
<!-- mini logo for sidebar mini 50x50 pixels -->
|
||||
<span class="logo-mini"><b>烽火云短信平台</b></span>
|
||||
<!-- logo for regular state and mobile devices -->
|
||||
<span class="logo-lg"><b>烽火云短信平台</b></span>
|
||||
</a>
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top" role="navigation">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
<div style="float:left;color:#fff;padding:15px 10px;">欢迎 {{user.username}}</div>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="javascript:;" @click="updatePassword"><i class="fa fa-lock"></i> 修改密码</a></li>
|
||||
<li><a href="logout"><i class="fa fa-sign-out"></i> 退出系统</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- =============================================== -->
|
||||
|
||||
<!-- Left side column. contains the sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<!-- /.search form -->
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu">
|
||||
<li class="header">导航菜单</li>
|
||||
<!-- vue生成的菜单 -->
|
||||
<menu-item :item="item" v-for="item in menuList"></menu-item>
|
||||
<!--<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-clock-o"></i>
|
||||
<span>定时任务</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="#sys/job.html"><i class="fa fa-circle-o"></i> 任务管理</a></li>
|
||||
<li><a href="#sys/schedule_log.html"><i class="fa fa-circle-o"></i> 任务日志</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-binoculars"></i>
|
||||
<span>系统监控</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="#druid/sql.html"><i class="fa fa-circle-o"></i> SQL监控</a></li>
|
||||
<li><a href="#sys/log.html"><i class="fa fa-circle-o"></i> 系统日志</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="fa fa-cog"></i>
|
||||
<span>系统管理</span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="#sys/user.html"><i class="fa fa-circle-o"></i> 用户管理</a></li>
|
||||
<li><a href="#sys/role1.html"><i class="fa fa-circle-o"></i> 角色管理</a></li>
|
||||
<li><a href="#sys/menu.html"><i class="fa fa-circle-o"></i> 菜单管理</a></li>
|
||||
<li><a href="#sys/config.html"><i class="fa fa-circle-o"></i> 参数管理</a></li>
|
||||
</ul>
|
||||
</li>-->
|
||||
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
<!-- =============================================== -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<ol class="breadcrumb" id="nav_title" style="position:static;float:none;">
|
||||
<li class="active"><i class="fa fa-home"
|
||||
style="font-size:20px;position:relative;top:2px;left:-3px;"></i> 首页
|
||||
</li>
|
||||
<li class="active">{{navTitle}}</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content" style="background:#fff;">
|
||||
<iframe scrolling="yes" frameborder="0"
|
||||
style="width:100%;min-height:200px;overflow:visible;background:#fff;" :src="main"></iframe>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- Add the sidebar's background. This div must be placed
|
||||
immediately after the control sidebar -->
|
||||
<div class="control-sidebar-bg"></div>
|
||||
|
||||
<!-- 修改密码 -->
|
||||
<div id="passwordLayer" style="display: none;">
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">账号</div>
|
||||
<span class="label label-success" style="vertical-align: bottom;">{{user.username}}</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">原密码</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="password" class="form-control" v-model="password" placeholder="原密码"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">新密码</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="newPassword" placeholder="新密码"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
|
||||
|
||||
<script src="public/libs/jquery.min.js"></script>
|
||||
<script src="public/libs/vue.min.js"></script>
|
||||
<script src="public/libs/router.js"></script>
|
||||
<script src="public/libs/bootstrap.min.js"></script>
|
||||
<script src="public/libs/app.js"></script>
|
||||
<script src="public/plugins/layer/layer.js"></script>
|
||||
<script src="public/js/index.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,200 @@
|
||||
{
|
||||
"menuList": [
|
||||
{
|
||||
"menuId": 1,
|
||||
"parentId": 0,
|
||||
"parentName": null,
|
||||
"name": "系统管理",
|
||||
"url": null,
|
||||
"perms": null,
|
||||
"type": 0,
|
||||
"icon": "fa fa-cog",
|
||||
"orderNum": 0,
|
||||
"open": null,
|
||||
"list": [
|
||||
{
|
||||
"menuId": 2,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "用户管理",
|
||||
"url": "sys/user.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-user",
|
||||
"orderNum": 1,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 3,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "角色管理",
|
||||
"url": "sys/role.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-user-secret",
|
||||
"orderNum": 2,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 4,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "菜单管理",
|
||||
"url": "sys/menu.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-th-list",
|
||||
"orderNum": 3,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 5,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "SQL监控",
|
||||
"url": "druid/sql.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-bug",
|
||||
"orderNum": 4,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 6,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "定时任务管理",
|
||||
"url": "sys/schedule.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-tasks",
|
||||
"orderNum": 5,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 27,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "参数管理",
|
||||
"url": "sys/config.html",
|
||||
"perms": "sys:config:list,sys:config:info,sys:config:save,sys:config:update,sys:config:delete",
|
||||
"type": 1,
|
||||
"icon": "fa fa-sun-o",
|
||||
"orderNum": 6,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 29,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "系统日志",
|
||||
"url": "sys/log.html",
|
||||
"perms": "sys:log:list",
|
||||
"type": 1,
|
||||
"icon": "fa fa-file-text-o",
|
||||
"orderNum": 7,
|
||||
"open": null,
|
||||
"list": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"menuId": 1,
|
||||
"parentId": 0,
|
||||
"parentName": null,
|
||||
"name": "伴我汽车管理",
|
||||
"url": null,
|
||||
"perms": null,
|
||||
"type": 0,
|
||||
"icon": "fa fa-cog",
|
||||
"orderNum": 0,
|
||||
"open": null,
|
||||
"list": [
|
||||
{
|
||||
"menuId": 2,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "咨询管理",
|
||||
"url": "article/article.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-user",
|
||||
"orderNum": 1,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 3,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "标签管理",
|
||||
"url": "tag/tag.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-user-secret",
|
||||
"orderNum": 2,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 3,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "车型库管理",
|
||||
"url": "car/car.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-user-secret",
|
||||
"orderNum": 2,
|
||||
"open": null,
|
||||
"list": null
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"code": 0,
|
||||
"permissions": [
|
||||
"sys:schedule:info",
|
||||
"sys:menu:update",
|
||||
"sys:menu:delete",
|
||||
"sys:config:info",
|
||||
"sys:generator:list",
|
||||
"sys:menu:list",
|
||||
"sys:config:save",
|
||||
"sys:menu:perms",
|
||||
"sys:config:update",
|
||||
"sys:schedule:resume",
|
||||
"sys:user:delete",
|
||||
"sys:config:list",
|
||||
"sys:user:update",
|
||||
"sys:role:list",
|
||||
"sys:menu:info",
|
||||
"sys:menu:select",
|
||||
"sys:schedule:update",
|
||||
"sys:schedule:save",
|
||||
"sys:role:select",
|
||||
"sys:user:list",
|
||||
"sys:menu:save",
|
||||
"sys:role:save",
|
||||
"sys:schedule:log",
|
||||
"sys:role:info",
|
||||
"sys:schedule:delete",
|
||||
"sys:role:update",
|
||||
"sys:schedule:list",
|
||||
"sys:user:info",
|
||||
"sys:generator:code",
|
||||
"sys:schedule:run",
|
||||
"sys:config:delete",
|
||||
"sys:role:delete",
|
||||
"sys:user:save",
|
||||
"sys:schedule:pause",
|
||||
"sys:log:list"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 108 KiB |
@ -0,0 +1,14 @@
|
||||
{
|
||||
"code": 0,
|
||||
"user": {
|
||||
"userId": 1,
|
||||
"username": "admin",
|
||||
"password": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918",
|
||||
"email": "100@qq.com",
|
||||
"mobile": "13666666666",
|
||||
"status": 1,
|
||||
"roleIdList": null,
|
||||
"createUserId": null,
|
||||
"createTime": "2017-06-01 15:33:20"
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>过滤策略管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button v-if="hasPermission('sys:menu:save')" class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:update')" class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button v-if="hasPermission('sys:menu:delete')" class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">限流时间范围(秒)</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="limit.limitTime" placeholder="限流时间范围(秒)"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">限制次数</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="limit.limitCount" placeholder="限制次数"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">描述</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="limit.despcription" placeholder="描述"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">启用状态</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="radio" value="1" v-model="limit.limitState">启用
|
||||
<input type="radio" value="0" v-model="limit.limitState">停用
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">-->
|
||||
<!-- <div class="col-sm-2 control-label">状态</div>-->
|
||||
<!-- <div class="col-sm-10">-->
|
||||
<!-- <input type="text" class="form-control" v-model="limit.limitState" placeholder="0停用1启用"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 选择菜单 -->
|
||||
<div id="menuLayer" style="display: none;padding:10px;">
|
||||
<ul id="menuTree" class="ztree"></ul>
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/limit/limit.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,120 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>烽火云短信平台</title>
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="public/css/AdminLTE.min.css">
|
||||
<!-- AdminLTE Skins. Choose a skin from the css/skins
|
||||
folder instead of downloading all of them to reduce the load. -->
|
||||
<link rel="stylesheet" href="public/css/all-skins.min.css">
|
||||
<link rel="stylesheet" href="public/css/main.css">
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body class="hold-transition login-page">
|
||||
<div class="login-box" id="rrapp" v-cloak>
|
||||
<div class="login-logo">
|
||||
<b>烽火云短信平台</b>
|
||||
</div>
|
||||
<!-- /.login-logo -->
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">用户登录</p>
|
||||
<div v-if="error" class="alert alert-danger alert-dismissible">
|
||||
<h4 style="margin-bottom: 0px;"><i class="fa fa-exclamation-triangle"></i> {{errorMsg}}</h4>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input type="text" class="form-control" v-model="user.username" placeholder="账号">
|
||||
<span class="glyphicon glyphicon-user form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input type="text" class="form-control" v-model="user.password" placeholder="密码">
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input type="text" class="form-control" v-model="user.captcha" @keyup.enter="login" placeholder="验证码">
|
||||
<span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<img alt="如果看不清楚,请单击图片刷新!" class="pointer" :src="src" @click="refreshCode">
|
||||
<a href="javascript:;" @click="refreshCode">点击刷新</a>
|
||||
</div>
|
||||
<div class="checkbox text-left">
|
||||
<label><input type="checkbox" v-model="user.rememberMe" value="true">记住我</label>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<div class="checkbox icheck">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-xs-4">
|
||||
<button type="button" class="btn btn-primary btn-block btn-flat" @click="login">登录</button>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.social-auth-links -->
|
||||
|
||||
</div>
|
||||
<!-- /.login-box-body -->
|
||||
</div>
|
||||
<!-- /.login-box -->
|
||||
<script src="public/libs/jquery.min.js"></script>
|
||||
<script src="public/libs/vue.min.js"></script>
|
||||
<script src="public/libs/bootstrap.min.js"></script>
|
||||
<script src="public/libs/jquery.slimscroll.min.js"></script>
|
||||
<script src="public/libs/fastclick.min.js"></script>
|
||||
<script src="public/libs/app.js"></script>
|
||||
<script type="text/javascript">
|
||||
var vm = new Vue({
|
||||
el: '#rrapp',
|
||||
data: {
|
||||
user: {},
|
||||
error: false,
|
||||
errorMsg: '',
|
||||
src: 'captcha.jpg'
|
||||
},
|
||||
beforeCreate: function () {
|
||||
if (self != top) {
|
||||
top.location.href = self.location.href;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
refreshCode: function () {
|
||||
this.src = "captcha.jpg?t=" + $.now();
|
||||
},
|
||||
login: function (event) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "sys/login",
|
||||
data: JSON.stringify(vm.user),
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
cache: false,
|
||||
success: function (result) {
|
||||
if (result.code == 0) {//登录成功
|
||||
parent.location.href = 'index.html';
|
||||
} else {
|
||||
vm.error = true;
|
||||
vm.errorMsg = result.msg;
|
||||
|
||||
vm.refreshCode();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>号段管理</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="stylesheet" href="../public/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../public/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="../public/plugins/ztree/css/metroStyle/metroStyle.css">
|
||||
<link rel="stylesheet" href="../public/css/main.css">
|
||||
<link rel="stylesheet" href="../public/css/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="dtapp" v-cloak>
|
||||
|
||||
<div v-show="showList">
|
||||
<div id="toolbar">
|
||||
<button class="btn btn-success " type="button" @click="add">
|
||||
<i class="fa fa-plus"></i> <span class="bold">新增</span>
|
||||
</button>
|
||||
<button class="btn btn-success " type="button" @click="update">
|
||||
<i class="fa fa-pencil-square-o"></i> <span class="bold">修改</span>
|
||||
</button>
|
||||
<button class="btn btn-danger " type="button" @click="del">
|
||||
<i class="fa fa-remove"></i> <span class="bold">删除</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<table id="table"></table>
|
||||
</div>
|
||||
|
||||
<div v-show="!showList" class="panel panel-default">
|
||||
<div class="panel-heading">{{title}}</div>
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">号段</div>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" v-model="phase.phase" placeholder="号段"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">省标识</div>
|
||||
<div class="col-sm-10">
|
||||
<select @change="getCitys($event)" v-model="phase.provId" name="sites" id="sites">
|
||||
<option v-for="item in sites" :value="item.id" >{{ item.areaname }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label">城市标识</div>
|
||||
<div class="col-sm-10">
|
||||
<select v-model="phase.cityId" name="citys" id="citys">
|
||||
<option v-for="item in citys" :value="item.id" >{{ item.areaname }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-2 control-label"></div>
|
||||
<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
|
||||
<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../public/libs/jquery.min.js"></script>
|
||||
<script src="../public/plugins/layer/layer.js"></script>
|
||||
<script src="../public/libs/bootstrap.min.js"></script>
|
||||
<script src="../public/libs/vue.js"></script>
|
||||
<script src="../public/libs/myindex.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="../public/plugins/ztree/jquery.ztree.all.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.config.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.all.js"></script>
|
||||
<script src="../public/plugins/ueditor/ueditor.parse.min.js"></script>
|
||||
<script src="../public/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
|
||||
<script src="../public/js/common.js"></script>
|
||||
<script src="../public/js/phase/phase.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,438 @@
|
||||
@charset "utf-8";
|
||||
/*
|
||||
* Copyright https://github.com/larryqin/larrycms
|
||||
*/
|
||||
/* 头部 */
|
||||
.header {
|
||||
height: 65px;
|
||||
border-bottom: 1px solid #404553;
|
||||
background-color: #393D49;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
width: 150px;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.header .layui-nav {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
padding: 0;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.header .layui-nav .layui-nav-item {
|
||||
margin: 0 20px;
|
||||
line-height: 66px;
|
||||
}
|
||||
|
||||
.body {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.layui-layout-admin .header-demo {
|
||||
border-bottom-color: #1AA094;
|
||||
}
|
||||
|
||||
.header-demo .logo {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
left: 10px;
|
||||
top: 8px;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-nav-item {
|
||||
margin: 0 10px;
|
||||
line-height: 70px;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-nav-item a {
|
||||
color: #999;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-nav-item:hover {
|
||||
border-bottom-color: #000;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-this {
|
||||
background-color: #000; /* #5FB878 */
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-nav-item a:hover,
|
||||
.header-demo .layui-nav .layui-this a {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-nav-item span.layui-nav-more {
|
||||
top: 32px;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-nav-item span.layui-nav-mored {
|
||||
top: 26px;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-this:after,
|
||||
.header-demo .layui-nav-bar {
|
||||
background-color: #393D49;
|
||||
}
|
||||
|
||||
.header-demo .layui-nav .layui-this a {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: #393D49;
|
||||
}
|
||||
|
||||
.admin-logo-box {
|
||||
width: 185px;
|
||||
height: 70px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.larry-side-menu {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
z-index: 19940201;
|
||||
left: 200px;
|
||||
color: white;
|
||||
text-align: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background-color: #1AA094;
|
||||
line-height: 30px;
|
||||
top: 23%;
|
||||
}
|
||||
|
||||
.larry-side-menu:hover {
|
||||
background-color: #5FB878;
|
||||
}
|
||||
|
||||
/* 头部左侧 */
|
||||
.layui-larry-menu {
|
||||
width: auto;
|
||||
height: 70px;
|
||||
position: absolute;
|
||||
left: 245px;
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
.layui-larry-menu ul.layui-nav {
|
||||
height: 70px;
|
||||
position: static;
|
||||
}
|
||||
|
||||
.layui-larry-menu ul.layui-nav li.layui-nav-item {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.layui-larry-menu ul.layui-nav li.layui-nav-item a {
|
||||
color: #F5F5F5;
|
||||
font-size: 14px;
|
||||
line-height: 60px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.layui-larry-menu ul.layui-nav li.layui-nav-item a i {
|
||||
padding-right: 5px;
|
||||
line-height: 70px;
|
||||
}
|
||||
|
||||
.layui-larry-menu ul.layui-nav .layui-this {
|
||||
background: #2B2E37;
|
||||
|
||||
}
|
||||
|
||||
.layui-larry-menu ul.layui-nav .layui-this::after {
|
||||
/* background: #2B2E37; */
|
||||
background: #1AA094;
|
||||
}
|
||||
|
||||
/* 头部右侧 */
|
||||
.header ul.larry-header-item {
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.header ul.larry-header-item li.layui-nav-item {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.header ul.larry-header-item .userimg {
|
||||
width: 40px;
|
||||
border-radius: 50%;
|
||||
-webkit-border-radius: 50%;
|
||||
-moz-border-radius: 50%;
|
||||
border: 4px solid #44576b;
|
||||
margin-top: -6px;
|
||||
}
|
||||
|
||||
.header ul.larry-header-item .layui-this {
|
||||
background: #393D49;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.header ul.larry-header-item .layui-this::after {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* ======================= */
|
||||
/* 左侧区域 */
|
||||
.layui-side-bg {
|
||||
background: #393D49;
|
||||
}
|
||||
|
||||
.layui-larry-side {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.layui-larry-side .user-photo {
|
||||
width: 200px;
|
||||
height: 120px;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.layui-larry-side .user-photo a.img {
|
||||
display: block;
|
||||
width: 76px;
|
||||
height: 76px;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.layui-larry-side .user-photo a.img img {
|
||||
display: block;
|
||||
border: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
-webkit-border-radius: 50%;
|
||||
-moz-border-radius: 50%;
|
||||
border: 4px solid #44576b;
|
||||
}
|
||||
|
||||
.layui-larry-side .user-photo p {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 25px;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
line-height: 25px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.layui-nav-tree li.layui-nav-item a {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.layui-nav-tree li.layui-nav-item a i {
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.layui-nav-tree li.layui-nav-item .layui-nav-child dd a {
|
||||
padding-left: 40px !important;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
.layui-nav-tree li.layui-nav-item .layui-nav-child dd a i {
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
/* 右侧主体区域 */
|
||||
.layui-body {
|
||||
bottom: 0;
|
||||
border-left: solid 2px #1AA094;
|
||||
}
|
||||
|
||||
.layui-tab-content {
|
||||
min-height: 150px;
|
||||
/* padding: 5px 0 0 0; */
|
||||
}
|
||||
|
||||
/* tab选项卡 */
|
||||
.layui-body {
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.layui-layout-admin .layui-body {
|
||||
top: 58px;
|
||||
}
|
||||
|
||||
.larry-tab-menu {
|
||||
width: 200px;
|
||||
height: 40px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.larry-tab-box .layui-tab-title li em {
|
||||
padding-left: 5px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
#admin-home i.layui-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.larry-tab-box {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* layui-tab-title start */
|
||||
.layui-tab-title .larry-tab-menu {
|
||||
display: inline-block;
|
||||
float: right;
|
||||
border: 1px solid red;
|
||||
position: relative;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.larry-test {
|
||||
|
||||
height: 40px;
|
||||
color: #000;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
font-size: 16px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.refresh_iframe {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 1px;
|
||||
height: 41px;
|
||||
background: #33AB9F;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
/* layui-tab-title end */
|
||||
.layui-tab-content {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.layui-tab-item {
|
||||
padding: 10px 0 0 10px;
|
||||
margin: 0px;
|
||||
|
||||
}
|
||||
|
||||
.layui-tab-content .layui-tab-item iframe {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.larry-tab-box > .layui-tab-title {
|
||||
border-bottom: 1px solid #1AA094;
|
||||
}
|
||||
|
||||
.larry-tab-box .layui-tab-title cite {
|
||||
font-style: normal;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.larry-tab-box > .layui-tab-title .layui-this {
|
||||
color: white;
|
||||
background-color: #1AA094;
|
||||
}
|
||||
|
||||
.larry-tab-box > .layui-tab-title .layui-this:after {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
#time {
|
||||
width: 100%;
|
||||
color: #fff;
|
||||
font-size: 60px;
|
||||
margin-bottom: 80px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.col-lg-12 {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: #FF6C60;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.col-lg-12 {
|
||||
width: 100%;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
body .layui-layout-admin .layui-larry-foot {
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
line-height: 30px;
|
||||
background-color: #eee;
|
||||
color: #666;
|
||||
font-weight: 300;
|
||||
border-left: 2px solid #1AA094;
|
||||
z-index: 998;
|
||||
}
|
||||
|
||||
body .layui-layout-admin .layui-larry-foot a {
|
||||
padding: 0 5px;
|
||||
|
||||
}
|
||||
|
||||
.layui-form-item .layui-input-inline {
|
||||
float: left;
|
||||
width: 350px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.laber-account {
|
||||
padding: 3px 6px;
|
||||
margin-top: 8px;
|
||||
width: auto;
|
||||
border-radius: 5px;
|
||||
text-align: left;
|
||||
background-color: #009688;
|
||||
color: #fff;
|
||||
}
|
||||
|
@ -0,0 +1,96 @@
|
||||
html {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.content-header {
|
||||
position: relative;
|
||||
padding: 0 0 3px 8px
|
||||
}
|
||||
|
||||
.content-header > .breadcrumb {
|
||||
position: relative;
|
||||
top: 0;
|
||||
right: 0;
|
||||
float: none;
|
||||
margin-top: 0px;
|
||||
padding-left: 10px;
|
||||
background: #ecf0f5;
|
||||
}
|
||||
|
||||
.main-footer {
|
||||
padding: 7px;
|
||||
color: #444;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.grid-btn {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.grid-btn .btn {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ml-10 {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.ml-10 {
|
||||
margin-left: 10px !important;
|
||||
}
|
||||
|
||||
.col-sm-10 {
|
||||
width: 70%;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.col-sm-2 {
|
||||
width: 24%;
|
||||
}
|
||||
}
|
||||
|
||||
tbody > tr > th {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.panel .table {
|
||||
margin: 0 0;
|
||||
}
|
||||
|
||||
.panel .pagination {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.panel-default > .panel-heading {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.row {
|
||||
border-top: 1px solid #ddd;
|
||||
margin: 0;
|
||||
padding: 20px 2px 0px 2px;
|
||||
}
|
||||
|
||||
.col-xs-6 {
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
.form-horizontal .form-group {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.form-horizontal {
|
||||
width: 550px;
|
||||
padding-top: 20px;
|
||||
}
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 451 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 114 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,43 @@
|
||||
$(function () {
|
||||
$.get("../sys/clientbusiness/all", function (r) {
|
||||
vm.sites = r.sites;
|
||||
});
|
||||
});
|
||||
var vm = new Vue({
|
||||
el:'#dtapp',
|
||||
data:{
|
||||
showList: true,
|
||||
title: null,
|
||||
sites: [],
|
||||
sms:{}
|
||||
},
|
||||
methods:{
|
||||
add: function(){
|
||||
vm.showList = false;
|
||||
vm.title = "新增";
|
||||
vm.sms = {parentName:null,parentId:0,type:1,orderNum:0};
|
||||
},
|
||||
saveOrUpdate: function (event) {
|
||||
var url = vm.sms.id == null ? "../sys/sms/save" : "../sys/sms/update";
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: JSON.stringify(vm.sms),
|
||||
success: function(r){
|
||||
if(r.code === 0){
|
||||
layer.alert(r.msg, function(index){
|
||||
layer.close(index);
|
||||
vm.reload();
|
||||
});
|
||||
}else{
|
||||
layer.alert(r.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reload: function (event) {
|
||||
vm.showList = true;
|
||||
$("#table").bootstrapTable('refresh');
|
||||
}
|
||||
}
|
||||
});
|
@ -0,0 +1,120 @@
|
||||
//生成菜单
|
||||
var menuItem = Vue.extend({
|
||||
name: 'menu-item',
|
||||
props: {item: {}},
|
||||
template: [
|
||||
'<li>',
|
||||
'<a v-if="item.type === 0" href="javascript:;">',
|
||||
'<i v-if="item.icon != null" :class="item.icon"></i>',
|
||||
'<span>{{item.name}}</span>',
|
||||
'<i class="fa fa-angle-left pull-right"></i>',
|
||||
'</a>',
|
||||
'<ul v-if="item.type === 0" class="treeview-menu">',
|
||||
'<menu-item :item="item" v-for="item in item.list"></menu-item>',
|
||||
'</ul>',
|
||||
'<a v-if="item.type === 1" :href="\'#\'+item.url"><i v-if="item.icon != null" :class="item.icon"></i><i v-else class="fa fa-circle-o"></i> {{item.name}}</a>',
|
||||
'</li>'
|
||||
].join('')
|
||||
});
|
||||
|
||||
//iframe自适应
|
||||
$(window).on('resize', function () {
|
||||
var $content = $('.content');
|
||||
$content.height($(this).height() - 120);
|
||||
$content.find('iframe').each(function () {
|
||||
$(this).height($content.height());
|
||||
});
|
||||
}).resize();
|
||||
|
||||
//注册菜单组件
|
||||
Vue.component('menuItem', menuItem);
|
||||
|
||||
var vm = new Vue({
|
||||
el: '#dtapp',
|
||||
data: {
|
||||
user: {},
|
||||
menuList: {},
|
||||
main: "sys/main.html",
|
||||
password: '',
|
||||
newPassword: '',
|
||||
navTitle: "控制台"
|
||||
},
|
||||
methods: {
|
||||
getMenuList: function (event) {
|
||||
//$.getJSON("json/menu_user.json?_"+$.now(), function(r){
|
||||
$.getJSON("sys/menu/user?_" + $.now(), function (r) {
|
||||
vm.menuList = r.menuList;
|
||||
window.permissions = r.permissions;
|
||||
});
|
||||
},
|
||||
getUser: function () {
|
||||
//$.getJSON("json/user_info.json?_"+$.now(), function(r){
|
||||
$.getJSON("sys/user/info?_" + $.now(), function (r) {
|
||||
vm.user = r.user;
|
||||
});
|
||||
},
|
||||
updatePassword: function () {
|
||||
layer.open({
|
||||
type: 1,
|
||||
skin: 'layui-layer-molv',
|
||||
title: "修改密码",
|
||||
area: ['550px', '270px'],
|
||||
shadeClose: false,
|
||||
content: jQuery("#passwordLayer"),
|
||||
btn: ['修改', '取消'],
|
||||
btn1: function (index) {
|
||||
var data = "password=" + vm.password + "&newPassword=" + vm.newPassword;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "sys/user/password",
|
||||
data: data,
|
||||
dataType: "json",
|
||||
success: function (result) {
|
||||
if (result.code == 0) {
|
||||
layer.close(index);
|
||||
layer.alert('修改成功', function (index) {
|
||||
location.reload();
|
||||
});
|
||||
} else {
|
||||
layer.alert(result.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
created: function () {
|
||||
this.getMenuList();
|
||||
this.getUser();
|
||||
},
|
||||
updated: function () {
|
||||
//路由
|
||||
var router = new Router();
|
||||
routerList(router, vm.menuList);
|
||||
router.start();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function routerList(router, menuList) {
|
||||
for (var key in menuList) {
|
||||
var menu = menuList[key];
|
||||
if (menu.type == 0) {
|
||||
routerList(router, menu.list);
|
||||
} else if (menu.type == 1) {
|
||||
router.add('#' + menu.url, function () {
|
||||
var url = window.location.hash;
|
||||
|
||||
//替换iframe的url
|
||||
vm.main = url.replace('#', '');
|
||||
|
||||
//导航菜单展开
|
||||
$(".treeview-menu li").removeClass("active");
|
||||
$("a[href='" + url + "']").parents("li").addClass("active");
|
||||
|
||||
vm.navTitle = $("a[href='" + url + "']").text();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
$(function () {
|
||||
var option = {
|
||||
url: '../schedule/job/list',
|
||||
pagination: true, //显示分页条
|
||||
sidePagination: 'server',//服务器端分页
|
||||
showRefresh: true, //显示刷新按钮
|
||||
search: true,
|
||||
toolbar: '#toolbar',
|
||||
striped: true, //设置为true会有隔行变色效果
|
||||
//idField: 'menuId',
|
||||
columns: [
|
||||
{
|
||||
field: 'menuId',
|
||||
title: '序号',
|
||||
width: 40,
|
||||
formatter: function (value, row, index) {
|
||||
var pageSize = $('#table').bootstrapTable('getOptions').pageSize;
|
||||
var pageNumber = $('#table').bootstrapTable('getOptions').pageNumber;
|
||||
return pageSize * (pageNumber - 1) + index + 1;
|
||||
}
|
||||
},
|
||||
{checkbox: true},
|
||||
{title: '任务ID', field: 'jobId'},
|
||||
{title: 'bean名称', field: 'beanName'},
|
||||
{title: '方法名称', field: 'methodName'},
|
||||
{title: '参数', field: 'params'},
|
||||
{title: 'cron表达式 ', field: 'cronExpression'},
|
||||
{title: '备注 ', field: 'remark'},
|
||||
{
|
||||
title: '状态', field: 'status', formatter: function (value, row, index) {
|
||||
return value === 0 ?
|
||||
'<span class="label label-success">正常</span>' :
|
||||
'<span class="label label-danger">暂停</span>';
|
||||
}
|
||||
},
|
||||
{title: '创建时间', field: 'createTime'}
|
||||
]
|
||||
};
|
||||
$('#table').bootstrapTable(option);
|
||||
});
|
||||
|
||||
var vm = new Vue({
|
||||
el: '#dtapp',
|
||||
data: {
|
||||
showList: true,
|
||||
title: null,
|
||||
scheduleJob: {}
|
||||
},
|
||||
methods: {
|
||||
del: function () {
|
||||
|
||||
doTask('jobId', '删除', 'job/del');
|
||||
},
|
||||
resume: function () {
|
||||
|
||||
doTask('jobId', '恢复', 'job/resume');
|
||||
},
|
||||
pause: function () {
|
||||
|
||||
doTask('jobId', '暂停', 'job/pause');
|
||||
},
|
||||
runOnce: function () {
|
||||
doTask('jobId', '立即执行', 'job/run');
|
||||
},
|
||||
add: function () {
|
||||
vm.showList = false;
|
||||
vm.title = "新增";
|
||||
vm.scheduleJob = {};
|
||||
},
|
||||
update: function () {
|
||||
var id = 'jobId';
|
||||
var jobId = getSelectedRow()[id];
|
||||
if (jobId == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$.get("../schedule/job/info/" + jobId, function (r) {
|
||||
vm.showList = false;
|
||||
vm.title = "修改";
|
||||
vm.scheduleJob = r.scheduleJob;
|
||||
});
|
||||
},
|
||||
saveOrUpdate: function () {
|
||||
var url = vm.scheduleJob.jobId == null ? "../schedule/job/save" : "../schedule/job/update";
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: JSON.stringify(vm.scheduleJob),
|
||||
success: function (r) {
|
||||
if (r.code === 0) {
|
||||
layer.alert(r.msg, function (index) {
|
||||
layer.close(index);
|
||||
vm.reload();
|
||||
});
|
||||
} else {
|
||||
layer.alert(r.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reload: function (event) {
|
||||
vm.showList = true;
|
||||
$("#table").bootstrapTable('refresh');
|
||||
}
|
||||
}
|
||||
});
|
@ -0,0 +1,49 @@
|
||||
$(function () {
|
||||
var option = {
|
||||
url: 'log/list',
|
||||
pagination: true, //显示分页条
|
||||
sidePagination: 'server',//服务器端分页
|
||||
showRefresh: true, //显示刷新按钮
|
||||
search: true,
|
||||
toolbar: '#toolbar',
|
||||
striped: true, //设置为true会有隔行变色效果
|
||||
columns: [
|
||||
{
|
||||
field: 'logId',
|
||||
title: '序号',
|
||||
width: 40,
|
||||
formatter: function (value, row, index) {
|
||||
var pageSize = $('#table').bootstrapTable('getOptions').pageSize;
|
||||
var pageNumber = $('#table').bootstrapTable('getOptions').pageNumber;
|
||||
return pageSize * (pageNumber - 1) + index + 1;
|
||||
}
|
||||
},
|
||||
{checkbox: true},
|
||||
{title: '日志ID', field: 'logId'},
|
||||
{title: '任务ID', field: 'jobId'},
|
||||
{title: 'bean名称', field: 'beanName'},
|
||||
{title: '方法名称', field: 'methodName'},
|
||||
{title: '参数', field: 'params'},
|
||||
{
|
||||
title: '状态', field: 'status', formatter: function (value, row, index) {
|
||||
return value === 0 ?
|
||||
'<span class="label label-success">成功</span>' :
|
||||
'<span class="label label-danger pointer" onclick="vm.showError(' + row.logId + ')">失败</span>';
|
||||
}
|
||||
},
|
||||
{title: '耗时(单位:毫秒)', field: 'times'},
|
||||
{title: '执行时间', field: 'createTime'}
|
||||
]
|
||||
};
|
||||
$('#table').bootstrapTable(option);
|
||||
});
|
||||
|
||||
var vm = new Vue({
|
||||
el: '#dtapp',
|
||||
methods: {
|
||||
del: function () {
|
||||
|
||||
doTask('logId', '删除', 'log/del');
|
||||
}
|
||||
}
|
||||
});
|
@ -0,0 +1,160 @@
|
||||
{
|
||||
"menuList": [
|
||||
{
|
||||
"menuId": 1,
|
||||
"parentId": 0,
|
||||
"parentName": null,
|
||||
"name": "系统管理",
|
||||
"url": null,
|
||||
"perms": null,
|
||||
"type": 0,
|
||||
"icon": "fa fa-cog",
|
||||
"orderNum": 0,
|
||||
"open": null,
|
||||
"list": [
|
||||
{
|
||||
"menuId": 2,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "用户管理",
|
||||
"url": "sys/user.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-user",
|
||||
"orderNum": 1,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 3,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "角色管理",
|
||||
"url": "sys/role.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-user-secret",
|
||||
"orderNum": 2,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 4,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "菜单管理",
|
||||
"url": "sys/menu.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-th-list",
|
||||
"orderNum": 3,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 5,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "SQL监控",
|
||||
"url": "druid/sql.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-bug",
|
||||
"orderNum": 4,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 6,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "定时任务管理",
|
||||
"url": "sys/schedule.html",
|
||||
"perms": null,
|
||||
"type": 1,
|
||||
"icon": "fa fa-tasks",
|
||||
"orderNum": 5,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 27,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "参数管理",
|
||||
"url": "sys/config.html",
|
||||
"perms": "sys:config:list,sys:config:info,sys:config:save,sys:config:update,sys:config:delete",
|
||||
"type": 1,
|
||||
"icon": "fa fa-sun-o",
|
||||
"orderNum": 6,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 29,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "系统日志",
|
||||
"url": "sys/log.html",
|
||||
"perms": "sys:log:list",
|
||||
"type": 1,
|
||||
"icon": "fa fa-file-text-o",
|
||||
"orderNum": 7,
|
||||
"open": null,
|
||||
"list": null
|
||||
},
|
||||
{
|
||||
"menuId": 28,
|
||||
"parentId": 1,
|
||||
"parentName": null,
|
||||
"name": "代码生成器",
|
||||
"url": "sys/generator.html",
|
||||
"perms": "sys:generator:list,sys:generator:code",
|
||||
"type": 1,
|
||||
"icon": "fa fa-rocket",
|
||||
"orderNum": 8,
|
||||
"open": null,
|
||||
"list": null
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"code": 0,
|
||||
"permissions": [
|
||||
"sys:schedule:info",
|
||||
"sys:menu:update",
|
||||
"sys:menu:delete",
|
||||
"sys:config:info",
|
||||
"sys:generator:list",
|
||||
"sys:menu:list",
|
||||
"sys:config:save",
|
||||
"sys:menu:perms",
|
||||
"sys:config:update",
|
||||
"sys:schedule:resume",
|
||||
"sys:user:delete",
|
||||
"sys:config:list",
|
||||
"sys:user:update",
|
||||
"sys:role:list",
|
||||
"sys:menu:info",
|
||||
"sys:menu:select",
|
||||
"sys:schedule:update",
|
||||
"sys:schedule:save",
|
||||
"sys:role:select",
|
||||
"sys:user:list",
|
||||
"sys:menu:save",
|
||||
"sys:role:save",
|
||||
"sys:schedule:log",
|
||||
"sys:role:info",
|
||||
"sys:schedule:delete",
|
||||
"sys:role:update",
|
||||
"sys:schedule:list",
|
||||
"sys:user:info",
|
||||
"sys:generator:code",
|
||||
"sys:schedule:run",
|
||||
"sys:config:delete",
|
||||
"sys:role:delete",
|
||||
"sys:user:save",
|
||||
"sys:schedule:pause",
|
||||
"sys:log:list"
|
||||
]
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
{
|
||||
"code": 0,
|
||||
"user": {
|
||||
"userId": 1,
|
||||
"username": "admin",
|
||||
"password": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918",
|
||||
"email": "100@qq.com",
|
||||
"mobile": "13666666666",
|
||||
"status": 1,
|
||||
"roleIdList": null,
|
||||
"createUserId": null,
|
||||
"createTime": "2017-06-01 15:33:20"
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue