Browse Source

Merge branch 'dev' of chenweida/jw2.0 into dev

chenweida 8 years ago
parent
commit
dd930d7f52
28 changed files with 3137 additions and 42 deletions
  1. 1 1
      svr-lib-parent-pom/pom.xml
  2. 2 0
      svr/readme.MD
  3. 5 1
      svr/svr-user/pom.xml
  4. 1 1
      svr/svr-user/src/main/java/com/yihu/jw/Application.java
  5. 116 0
      svr/svr-base/src/main/java/com/yihu/jw/base/model/SystemDict.java
  6. 150 0
      svr/svr-base/src/main/java/com/yihu/jw/base/model/SystemDictList.java
  7. 8 0
      svr/svr-base/src/main/java/com/yihu/jw/hospital/dao/OrgDao.java
  8. 329 0
      svr/svr-base/src/main/java/com/yihu/jw/hospital/model/BaseOrg.java
  9. 209 0
      svr/svr-base/src/main/java/com/yihu/jw/hospital/model/BaseOrgDept.java
  10. 145 0
      svr/svr-base/src/main/java/com/yihu/jw/hospital/model/BaseOrgHospital.java
  11. 149 0
      svr/svr-base/src/main/java/com/yihu/jw/login/model/WlyyLoginAccount.java
  12. 147 0
      svr/svr-base/src/main/java/com/yihu/jw/login/model/WlyyLoginLog.java
  13. 14 0
      svr/svr-base/src/main/java/com/yihu/jw/user/contorller/EmployeeController.java
  14. 0 0
      svr/svr-base/src/main/java/com/yihu/jw/user/contorller/PatientController.java
  15. 439 0
      svr/svr-base/src/main/java/com/yihu/jw/user/model/BaseEmployee.java
  16. 350 0
      svr/svr-base/src/main/java/com/yihu/jw/user/model/BasePatient.java
  17. 187 0
      svr/svr-base/src/main/java/com/yihu/jw/user/model/BasePatientExtend.java
  18. 124 0
      svr/svr-base/src/main/java/com/yihu/jw/user/model/BasePatientWechat.java
  19. 10 0
      svr/svr-base/src/main/java/com/yihu/jw/user/service/EmployeeService.java
  20. 10 0
      svr/svr-base/src/main/java/com/yihu/jw/user/service/PatientService.java
  21. 14 0
      svr/svr-base/src/main/java/com/yihu/jw/wx/controller/WechatController.java
  22. 106 0
      svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxAccessToken.java
  23. 170 0
      svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxMenu.java
  24. 157 0
      svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxTemplate.java
  25. 227 0
      svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxWechat.java
  26. 67 0
      svr/svr-base/src/main/resources/application.yml
  27. 0 0
      svr/svr-base/src/main/resources/banner.txt
  28. 0 39
      svr/svr-user/src/main/resources/application.yml

+ 1 - 1
svr-lib-parent-pom/pom.xml

@ -26,7 +26,7 @@
        <module>../svr-discovery</module><!--发现服务-->
        <module>../svr-discovery</module><!--发现服务-->
        <!--业务微服务-->
        <!--业务微服务-->
        <module>../svr/svr-user</module><!--用户微服务-->
        <module>../svr/svr-base</module><!--基础微服务-->
        <!--网关-->
        <!--网关-->

+ 2 - 0
svr/readme.MD

@ -0,0 +1,2 @@
svr 相关的db设计
    svn:https://192.168.1.103:888/svn/outwindow/基础开发部/doc/i健康2.0/db

+ 5 - 1
svr/svr-user/pom.xml

@ -10,7 +10,7 @@
        <relativePath>../../svr-lib-parent-pom/pom.xml</relativePath>
        <relativePath>../../svr-lib-parent-pom/pom.xml</relativePath>
    </parent>
    </parent>
    <groupId>com.yihu</groupId>
    <groupId>com.yihu</groupId>
    <artifactId>svr-user</artifactId>
    <artifactId>svr-base</artifactId>
    <version>1.0.0</version>
    <version>1.0.0</version>
    <dependencies>
    <dependencies>
@ -47,5 +47,9 @@
            <artifactId>spring-cloud-starter-eureka-server</artifactId>
            <artifactId>spring-cloud-starter-eureka-server</artifactId>
        </dependency>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
    </dependencies>
    </dependencies>
</project>
</project>

+ 1 - 1
svr/svr-user/src/main/java/com/yihu/jw/Application.java

@ -12,7 +12,7 @@ import org.springframework.web.client.RestTemplate;
/**
/**
 * Created by chenweida on 2017/5/10.
 * Created by chenweida on 2017/5/10.
 */
 */
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@SpringBootApplication
@EnableDiscoveryClient//服务注册到发现服务
@EnableDiscoveryClient//服务注册到发现服务
public class Application {
public class Application {

+ 116 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/model/SystemDict.java

@ -0,0 +1,116 @@
package com.yihu.jw.base.model;// default package
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
/**
 * SystemDict entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "system_dict")
public class SystemDict implements java.io.Serializable {
	// Fields
	private Integer id;
	private String saasId;
	private String dictName;
	private String code;
	private String value;
	private String pyCode;
	private Integer sort;
	// Constructors
	/** default constructor */
	public SystemDict() {
	}
	/** minimal constructor */
	public SystemDict(Integer id, String dictName, String code, String value) {
		this.id = id;
		this.dictName = dictName;
		this.code = code;
		this.value = value;
	}
	/** full constructor */
	public SystemDict(Integer id, String saasId, String dictName, String code,
			String value, String pyCode, Integer sort) {
		this.id = id;
		this.saasId = saasId;
		this.dictName = dictName;
		this.code = code;
		this.value = value;
		this.pyCode = pyCode;
		this.sort = sort;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "saas_id", length = 100)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "dict_name", nullable = false, length = 50)
	public String getDictName() {
		return this.dictName;
	}
	public void setDictName(String dictName) {
		this.dictName = dictName;
	}
	@Column(name = "code", nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "value", nullable = false, length = 50)
	public String getValue() {
		return this.value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	@Column(name = "py_code", length = 50)
	public String getPyCode() {
		return this.pyCode;
	}
	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}
	@Column(name = "sort")
	public Integer getSort() {
		return this.sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
}

+ 150 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/model/SystemDictList.java

@ -0,0 +1,150 @@
package com.yihu.jw.base.model;// default package
import javax.persistence.*;
/**
 * SystemDictList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "system_dict_list")
public class SystemDictList implements java.io.Serializable {
	// Fields
	private Integer id;
	private String dictName;
	private String chineseName;
	private String pyCode;
	private String pid;
	private String remark;
	private String relationTable;
	private String relationColCode;
	private String relationColValue;
	private String relationColExtend;
	// Constructors
	/** default constructor */
	public SystemDictList() {
	}
	/** minimal constructor */
	public SystemDictList(Integer id, String dictName, String chineseName,
			String pid) {
		this.id = id;
		this.dictName = dictName;
		this.chineseName = chineseName;
		this.pid = pid;
	}
	/** full constructor */
	public SystemDictList(Integer id, String dictName, String chineseName,
			String pyCode, String pid, String remark, String relationTable,
			String relationColCode, String relationColValue,
			String relationColExtend) {
		this.id = id;
		this.dictName = dictName;
		this.chineseName = chineseName;
		this.pyCode = pyCode;
		this.pid = pid;
		this.remark = remark;
		this.relationTable = relationTable;
		this.relationColCode = relationColCode;
		this.relationColValue = relationColValue;
		this.relationColExtend = relationColExtend;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "dict_name", nullable = false, length = 50)
	public String getDictName() {
		return this.dictName;
	}
	public void setDictName(String dictName) {
		this.dictName = dictName;
	}
	@Column(name = "chinese_name", nullable = false, length = 50)
	public String getChineseName() {
		return this.chineseName;
	}
	public void setChineseName(String chineseName) {
		this.chineseName = chineseName;
	}
	@Column(name = "py_code", length = 50)
	public String getPyCode() {
		return this.pyCode;
	}
	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}
	@Column(name = "pid", nullable = false, length = 50)
	public String getPid() {
		return this.pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	@Column(name = "remark", length = 200)
	public String getRemark() {
		return this.remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "relation_table", length = 50)
	public String getRelationTable() {
		return this.relationTable;
	}
	public void setRelationTable(String relationTable) {
		this.relationTable = relationTable;
	}
	@Column(name = "relation_col_code", length = 50)
	public String getRelationColCode() {
		return this.relationColCode;
	}
	public void setRelationColCode(String relationColCode) {
		this.relationColCode = relationColCode;
	}
	@Column(name = "relation_col_value", length = 50)
	public String getRelationColValue() {
		return this.relationColValue;
	}
	public void setRelationColValue(String relationColValue) {
		this.relationColValue = relationColValue;
	}
	@Column(name = "relation_col_extend", length = 50)
	public String getRelationColExtend() {
		return this.relationColExtend;
	}
	public void setRelationColExtend(String relationColExtend) {
		this.relationColExtend = relationColExtend;
	}
}

+ 8 - 0
svr/svr-base/src/main/java/com/yihu/jw/hospital/dao/OrgDao.java

@ -0,0 +1,8 @@
package com.yihu.jw.hospital.dao;
/**
 * Created by chenweida on 2017/5/11.
 */
public interface OrgDao {
}

+ 329 - 0
svr/svr-base/src/main/java/com/yihu/jw/hospital/model/BaseOrg.java

@ -0,0 +1,329 @@
package com.yihu.jw.hospital.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * 机构表
 */
@Entity
@Table(name = "base_org")
public class BaseOrg implements java.io.Serializable {
	// Fields,
	private Integer id;//'业务无关主键'
	private String code;//'业务主键
	private String province;// '省份标识',
	private String provinceName;//'省份名称'
	private String city;//'城市标识'
	private String cityName;//城市名称
	private String town;//区标示
	private String townName;//区名称
	private String name;//机构名称
	private String alias;//'机构别名'
	private String spell;//'机构名称拼音首字母
	private String type;//'机构类型: 1.  医疗机构2.  企事业单位3.  政府机关4.  社会团体 5.药店 0.  部门 6.单位或者独立子公司7.基层机构 8.专业公共机构'
	private String address;//'机构详细地址'
	private String traffic;//'交通'
	private String photo;//'机构图片'
	private String saasId;//'saas配置id'
	private String longitude;//'经度'
	private String latitude;//'纬度'
	private String legalperson;//'法人'
	private String parentCode;//'上级机构code'
	private String combinationCode;//'医联体code'
	private String orgUrl;//'机构网址'
	private String del;//'作废标识,1正常,0作废'
	private String intro;//'机构简介'
	private Date createTime;//创建时间
	private Date updateTime;//修改时间
	// Constructors
	/** default constructor */
	public BaseOrg() {
	}
	/** minimal constructor */
	public BaseOrg(Integer id, String code, Date createTime, Date updateTime) {
		this.id = id;
		this.code = code;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	/** full constructor */
	public BaseOrg(Integer id, String code, String province,
			String provinceName, String city, String cityName, String town,
			String townName, String name, String alias, String spell,
			String type, String address, String traffic, String photo,
			String saasId, String longitude, String latitude,
			String legalperson, String parentCode, String combinationCode,
			String orgUrl, String del, String intro, Date createTime,
			Date updateTime) {
		this.id = id;
		this.code = code;
		this.province = province;
		this.provinceName = provinceName;
		this.city = city;
		this.cityName = cityName;
		this.town = town;
		this.townName = townName;
		this.name = name;
		this.alias = alias;
		this.spell = spell;
		this.type = type;
		this.address = address;
		this.traffic = traffic;
		this.photo = photo;
		this.saasId = saasId;
		this.longitude = longitude;
		this.latitude = latitude;
		this.legalperson = legalperson;
		this.parentCode = parentCode;
		this.combinationCode = combinationCode;
		this.orgUrl = orgUrl;
		this.del = del;
		this.intro = intro;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "province", length = 50)
	public String getProvince() {
		return this.province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	@Column(name = "province_name", length = 50)
	public String getProvinceName() {
		return this.provinceName;
	}
	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}
	@Column(name = "city", length = 50)
	public String getCity() {
		return this.city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	@Column(name = "city_name", length = 50)
	public String getCityName() {
		return this.cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	@Column(name = "town", length = 50)
	public String getTown() {
		return this.town;
	}
	public void setTown(String town) {
		this.town = town;
	}
	@Column(name = "town_name", length = 50)
	public String getTownName() {
		return this.townName;
	}
	public void setTownName(String townName) {
		this.townName = townName;
	}
	@Column(name = "name", length = 100)
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "alias", length = 10)
	public String getAlias() {
		return this.alias;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	@Column(name = "spell", length = 20)
	public String getSpell() {
		return this.spell;
	}
	public void setSpell(String spell) {
		this.spell = spell;
	}
	@Column(name = "type", length = 2)
	public String getType() {
		return this.type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "address", length = 300)
	public String getAddress() {
		return this.address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(name = "traffic", length = 500)
	public String getTraffic() {
		return this.traffic;
	}
	public void setTraffic(String traffic) {
		this.traffic = traffic;
	}
	@Column(name = "photo", length = 200)
	public String getPhoto() {
		return this.photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	@Column(name = "saas_id", length = 100)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "longitude", length = 10)
	public String getLongitude() {
		return this.longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	@Column(name = "latitude", length = 10)
	public String getLatitude() {
		return this.latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	@Column(name = "legalperson", length = 50)
	public String getLegalperson() {
		return this.legalperson;
	}
	public void setLegalperson(String legalperson) {
		this.legalperson = legalperson;
	}
	@Column(name = "parent_code", length = 100)
	public String getParentCode() {
		return this.parentCode;
	}
	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}
	@Column(name = "combination_code", length = 100)
	public String getCombinationCode() {
		return this.combinationCode;
	}
	public void setCombinationCode(String combinationCode) {
		this.combinationCode = combinationCode;
	}
	@Column(name = "org_url", length = 200)
	public String getOrgUrl() {
		return this.orgUrl;
	}
	public void setOrgUrl(String orgUrl) {
		this.orgUrl = orgUrl;
	}
	@Column(name = "del", length = 1)
	public String getDel() {
		return this.del;
	}
	public void setDel(String del) {
		this.del = del;
	}
	@Column(name = "intro", length = 65535)
	public String getIntro() {
		return this.intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}

+ 209 - 0
svr/svr-base/src/main/java/com/yihu/jw/hospital/model/BaseOrgDept.java

@ -0,0 +1,209 @@
package com.yihu.jw.hospital.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * 机构科室表
 */
@Entity
@Table(name = "base_org_dept")
public class BaseOrgDept implements java.io.Serializable {
	// Fields
	private Integer id;//'非业务主键'
	private String code;//'科室标识'
	private String name;//'科室名称'
	private String spell;//'科室名称拼音首字母
	private String del;//'删除标识,1正常,0删除'
	private String orgCode;//'关联 base_org code'
	private String bigdepartmentSn;//'国家一级标准科室SN'
	private String deptTel;//'科室电话'
	private String gloryName;//'科室荣誉字典(多选)国家重点科室,省级重点科室,医院特色专科'
	private String intro;//'科室介绍'
	private String floor;//'楼层号'
	private Integer sort;//'排序权重 默认0'
	private String parentCode;//'父科室code'
	private Date createTime;//创建时间
	private Date updateTime;//修改时间
	// Constructors
	/** default constructor */
	public BaseOrgDept() {
	}
	/** minimal constructor */
	public BaseOrgDept(Integer id, String code, String name, Date createTime,
			Date updateTime) {
		this.id = id;
		this.code = code;
		this.name = name;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	/** full constructor */
	public BaseOrgDept(Integer id, String code, String name, String spell,
			String del, String orgCode, String bigdepartmentSn, String deptTel,
			String gloryName, String intro, String floor, Integer sort,
			String parentCode, Date createTime, Date updateTime) {
		this.id = id;
		this.code = code;
		this.name = name;
		this.spell = spell;
		this.del = del;
		this.orgCode = orgCode;
		this.bigdepartmentSn = bigdepartmentSn;
		this.deptTel = deptTel;
		this.gloryName = gloryName;
		this.intro = intro;
		this.floor = floor;
		this.sort = sort;
		this.parentCode = parentCode;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "name", nullable = false, length = 50)
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "spell", length = 20)
	public String getSpell() {
		return this.spell;
	}
	public void setSpell(String spell) {
		this.spell = spell;
	}
	@Column(name = "del", length = 1)
	public String getDel() {
		return this.del;
	}
	public void setDel(String del) {
		this.del = del;
	}
	@Column(name = "org_code", length = 100)
	public String getOrgCode() {
		return this.orgCode;
	}
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	@Column(name = "bigdepartment_sn", length = 22)
	public String getBigdepartmentSn() {
		return this.bigdepartmentSn;
	}
	public void setBigdepartmentSn(String bigdepartmentSn) {
		this.bigdepartmentSn = bigdepartmentSn;
	}
	@Column(name = "dept_tel", length = 30)
	public String getDeptTel() {
		return this.deptTel;
	}
	public void setDeptTel(String deptTel) {
		this.deptTel = deptTel;
	}
	@Column(name = "glory_name", length = 500)
	public String getGloryName() {
		return this.gloryName;
	}
	public void setGloryName(String gloryName) {
		this.gloryName = gloryName;
	}
	@Column(name = "intro", length = 1000)
	public String getIntro() {
		return this.intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	@Column(name = "floor", length = 20)
	public String getFloor() {
		return this.floor;
	}
	public void setFloor(String floor) {
		this.floor = floor;
	}
	@Column(name = "sort")
	public Integer getSort() {
		return this.sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	@Column(name = "parent_code", length = 100)
	public String getParentCode() {
		return this.parentCode;
	}
	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}

+ 145 - 0
svr/svr-base/src/main/java/com/yihu/jw/hospital/model/BaseOrgHospital.java

@ -0,0 +1,145 @@
package com.yihu.jw.hospital.model;// default package
import javax.persistence.*;
import java.util.Date;
/**
 * 医院扩展信息表
 */
@Entity
@Table(name = "base_org_hospital")
public class BaseOrgHospital implements java.io.Serializable {
	// Fields
	private Integer id;//非业务主键
	private String code;//业务主键
	private String orgCode;//机构代码 关联base_org
	private String roadCode;//街道编码
	private String centerSite;//中心/站点
	private String ascriptionType;//医院归属1.部属医院2.省属医院3.市属医院9:未知
	private String levelId;//医院等级id:..参考国家标准
	private String levelName;//医院等级名称:三甲..参考国家标准
	private Date createTime;//创建时间
	private Date updateTime;//修改时间
	// Constructors
	/** default constructor */
	public BaseOrgHospital() {
	}
	/** minimal constructor */
	public BaseOrgHospital(Integer id, String code) {
		this.id = id;
		this.code = code;
	}
	/** full constructor */
	public BaseOrgHospital(Integer id, String code, String orgCode,
			String roadCode, String centerSite, String ascriptionType,
			String levelId, String levelName) {
		this.id = id;
		this.code = code;
		this.orgCode = orgCode;
		this.roadCode = roadCode;
		this.centerSite = centerSite;
		this.ascriptionType = ascriptionType;
		this.levelId = levelId;
		this.levelName = levelName;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "org_code", length = 100)
	public String getOrgCode() {
		return this.orgCode;
	}
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	@Column(name = "road_code", length = 200)
	public String getRoadCode() {
		return this.roadCode;
	}
	public void setRoadCode(String roadCode) {
		this.roadCode = roadCode;
	}
	@Column(name = "center_site", length = 200)
	public String getCenterSite() {
		return this.centerSite;
	}
	public void setCenterSite(String centerSite) {
		this.centerSite = centerSite;
	}
	@Column(name = "ascription_type", length = 2)
	public String getAscriptionType() {
		return this.ascriptionType;
	}
	public void setAscriptionType(String ascriptionType) {
		this.ascriptionType = ascriptionType;
	}
	@Column(name = "level_id", length = 20)
	public String getLevelId() {
		return this.levelId;
	}
	public void setLevelId(String levelId) {
		this.levelId = levelId;
	}
	@Column(name = "level_name", length = 20)
	public String getLevelName() {
		return this.levelName;
	}
	public void setLevelName(String levelName) {
		this.levelName = levelName;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}

+ 149 - 0
svr/svr-base/src/main/java/com/yihu/jw/login/model/WlyyLoginAccount.java

@ -0,0 +1,149 @@
package com.yihu.jw.login.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * 账号实体 包含医生 患者的账号
 */
@Entity
@Table(name = "wlyy_login_account")
public class WlyyLoginAccount implements java.io.Serializable {
	// Fields
	private Integer id;//'主键'
	private String code;//'业务code'
	private String userType;//'用户类型 1居民 2医生 或者行政管理员'
	private String password;//'密码'
	private String salt;//'盐值'
	private String accountStatus;//'状态 ( -2  锁定 -1 删除,0可用 )'
	private Date createTime;//'创建时间'
	private Date updateTime;//'修改时间'
	private String saasId;//'saas配置id'
	private String email;//'邮箱'
	// Constructors
	/** default constructor */
	public WlyyLoginAccount() {
	}
	/** minimal constructor */
	public WlyyLoginAccount(Integer id, Date createTime, Date updateTime) {
		this.id = id;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	/** full constructor */
	public WlyyLoginAccount(Integer id, String code, String userType,
			String password, String salt, String accountStatus, Date createTime,
			Date updateTime, String saasId, String email) {
		this.id = id;
		this.code = code;
		this.userType = userType;
		this.password = password;
		this.salt = salt;
		this.accountStatus = accountStatus;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.saasId = saasId;
		this.email = email;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", length = 100)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "user_type", precision = 2, scale = 0)
	public String getUserType() {
		return this.userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	@Column(name = "password", length = 100)
	public String getPassword() {
		return this.password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name = "salt", length = 100)
	public String getSalt() {
		return this.salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	@Column(name = "account_status", precision = 2, scale = 0)
	public String getAccountStatus() {
		return this.accountStatus;
	}
	public void setAccountStatus(String accountStatus) {
		this.accountStatus = accountStatus;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "saas_id", length = 100)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "email", length = 100)
	public String getEmail() {
		return this.email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
}

+ 147 - 0
svr/svr-base/src/main/java/com/yihu/jw/login/model/WlyyLoginLog.java

@ -0,0 +1,147 @@
package com.yihu.jw.login.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * 登陆日志
 */
@Entity
@Table(name = "wlyy_login_log")
public class WlyyLoginLog implements java.io.Serializable {
	// Fields
	private Integer id;//'主键'
	private String loginType;//'1 短信登录  2 密码登录'
	private String userCode;//'登录用户主键 患者code或者医生code'
	private String saasId;//'saas配置id'
	private String userType;//'1 患者 2医生 '
	private Date createTime;
	private Integer tokenId;//'tokenid'
	private String type;//'1 成功 2失败'
	private String errorMessage;//'错误信息'
	private String phone;//'电话号码'
	// Constructors
	/** default constructor */
	public WlyyLoginLog() {
	}
	/** minimal constructor */
	public WlyyLoginLog(Integer id, Date createTime) {
		this.id = id;
		this.createTime = createTime;
	}
	/** full constructor */
	public WlyyLoginLog(Integer id, String loginType, String userCode,
			String saasId, String userType, Date createTime, Integer tokenId,
			String type, String errorMessage, String phone) {
		this.id = id;
		this.loginType = loginType;
		this.userCode = userCode;
		this.saasId = saasId;
		this.userType = userType;
		this.createTime = createTime;
		this.tokenId = tokenId;
		this.type = type;
		this.errorMessage = errorMessage;
		this.phone = phone;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "login_type", length = 2)
	public String getLoginType() {
		return this.loginType;
	}
	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
	@Column(name = "user_code", length = 100)
	public String getUserCode() {
		return this.userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	@Column(name = "saas_id", length = 100)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "user_type", length = 2)
	public String getUserType() {
		return this.userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "token_id")
	public Integer getTokenId() {
		return this.tokenId;
	}
	public void setTokenId(Integer tokenId) {
		this.tokenId = tokenId;
	}
	@Column(name = "type", length = 1)
	public String getType() {
		return this.type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "error_message", length = 1000)
	public String getErrorMessage() {
		return this.errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	@Column(name = "phone", length = 20)
	public String getPhone() {
		return this.phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
}

+ 14 - 0
svr/svr-base/src/main/java/com/yihu/jw/user/contorller/EmployeeController.java

@ -0,0 +1,14 @@
package com.yihu.jw.user.contorller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * Created by chenweida on 2017/5/11.
 */
@RestController
@RequestMapping("/employee")
@Api(description = "医生,行政人员等非患者用户")
public class EmployeeController {
}

svr/svr-user/src/main/java/com/yihu/jw/user/contorller/PatientController.java → svr/svr-base/src/main/java/com/yihu/jw/user/contorller/PatientController.java


+ 439 - 0
svr/svr-base/src/main/java/com/yihu/jw/user/model/BaseEmployee.java

@ -0,0 +1,439 @@
package com.yihu.jw.user.model;// default package
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;
/**
 * 员工表
 */
@Entity
@Table(name = "base_employee")
public class BaseEmployee implements java.io.Serializable {
	// Fields
	private Integer id;//'业务无关主键
	private String code;//'业务标识'
	private String accountCode;//'关联wlyy_login_account账号code'
	private String name;//'姓名'
	private String sex;//'性别(1男,2女) 用国家标准字典'
	private String idcard;//' 身份证'
	private Date birthday;//'生日'
	private String photo;//'../../../images/d-male.png' comment '头像http地址
	private String mobile;//'手机号'
	private String province;//省
	private String provinceName;//省名称
	private String city;//市
	private String cityName;//市名称
	private String town;//区
	private String townName;//区名称
	private String hospital;//机构
	private String hospitalName;//机构名称
	private String dept;//科室
	private String deptName;//科室名称
	private String expertise;//'医生专长'
	private String introduce;//'医生介绍'
	private Date createTime;//创建时间
	private Date updateTime;//修改时间
	private String iscertified;//'资格是否认证通过,1是,0否'
	private String qrcode;//二维码地址
	private String del;//'1: 正常 0: 删除'
	private String identityType;//'身份类型 1 医生 2其他'
	private String isFamous;//'是否是名医 1是  0 不是'
	private String isPasswordPrompt;//'是否提示设置密码  1 提示过 0未提示'
	private String saasId;//'saas配置id
	private String administrativeName;//'行政职位名称'
	private String administrativeCode;//'行政职位code'
	private String job;//'职称
	private String jobName;//'职称名称
	private String spell;//'名称拼音首字母'
	// Constructors
	/** default constructor */
	public BaseEmployee() {
	}
	/** minimal constructor */
	public BaseEmployee(Integer id, String code, String mobile,
			Date updateTime, String iscertified) {
		this.id = id;
		this.code = code;
		this.mobile = mobile;
		this.updateTime = updateTime;
		this.iscertified = iscertified;
	}
	/** full constructor */
	public BaseEmployee(Integer id, String code, String accountCode,
			String name, String sex, String idcard, Date birthday,
			String photo, String mobile, String province, String provinceName,
			String city, String cityName, String town, String townName,
			String hospital, String hospitalName, String dept, String deptName,
			String expertise, String introduce, Date updateTime,
			String iscertified, String qrcode, String del, String identityType,
			String isFamous, String isPasswordPrompt, String saasId,
			String administrativeName, String administrativeCode, String job,
			String jobName, String spell) {
		this.id = id;
		this.code = code;
		this.accountCode = accountCode;
		this.name = name;
		this.sex = sex;
		this.idcard = idcard;
		this.birthday = birthday;
		this.photo = photo;
		this.mobile = mobile;
		this.province = province;
		this.provinceName = provinceName;
		this.city = city;
		this.cityName = cityName;
		this.town = town;
		this.townName = townName;
		this.hospital = hospital;
		this.hospitalName = hospitalName;
		this.dept = dept;
		this.deptName = deptName;
		this.expertise = expertise;
		this.introduce = introduce;
		this.updateTime = updateTime;
		this.iscertified = iscertified;
		this.qrcode = qrcode;
		this.del = del;
		this.identityType = identityType;
		this.isFamous = isFamous;
		this.isPasswordPrompt = isPasswordPrompt;
		this.saasId = saasId;
		this.administrativeName = administrativeName;
		this.administrativeCode = administrativeCode;
		this.job = job;
		this.jobName = jobName;
		this.spell = spell;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", unique = true, nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "account_code", length = 100)
	public String getAccountCode() {
		return this.accountCode;
	}
	public void setAccountCode(String accountCode) {
		this.accountCode = accountCode;
	}
	@Column(name = "name", length = 50)
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "sex", length = 2)
	public String getSex() {
		return this.sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	@Column(name = "idcard", length = 20)
	public String getIdcard() {
		return this.idcard;
	}
	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	@Temporal(TemporalType.DATE)
	@Column(name = "birthday", length = 0)
	public Date getBirthday() {
		return this.birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	@Column(name = "photo", length = 100)
	public String getPhoto() {
		return this.photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	@Column(name = "mobile", nullable = false, length = 20)
	public String getMobile() {
		return this.mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name = "province", length = 50)
	public String getProvince() {
		return this.province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	@Column(name = "province_name", length = 50)
	public String getProvinceName() {
		return this.provinceName;
	}
	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}
	@Column(name = "city", length = 50)
	public String getCity() {
		return this.city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	@Column(name = "city_name", length = 50)
	public String getCityName() {
		return this.cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	@Column(name = "town", length = 50)
	public String getTown() {
		return this.town;
	}
	public void setTown(String town) {
		this.town = town;
	}
	@Column(name = "town_name", length = 50)
	public String getTownName() {
		return this.townName;
	}
	public void setTownName(String townName) {
		this.townName = townName;
	}
	@Column(name = "hospital", length = 50)
	public String getHospital() {
		return this.hospital;
	}
	public void setHospital(String hospital) {
		this.hospital = hospital;
	}
	@Column(name = "hospital_name", length = 50)
	public String getHospitalName() {
		return this.hospitalName;
	}
	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}
	@Column(name = "dept", length = 50)
	public String getDept() {
		return this.dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	@Column(name = "dept_name", length = 50)
	public String getDeptName() {
		return this.deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	@Column(name = "expertise", length = 300)
	public String getExpertise() {
		return this.expertise;
	}
	public void setExpertise(String expertise) {
		this.expertise = expertise;
	}
	@Column(name = "introduce", length = 1500)
	public String getIntroduce() {
		return this.introduce;
	}
	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "iscertified", nullable = false, length = 1)
	public String getIscertified() {
		return this.iscertified;
	}
	public void setIscertified(String iscertified) {
		this.iscertified = iscertified;
	}
	@Column(name = "qrcode", length = 30)
	public String getQrcode() {
		return this.qrcode;
	}
	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}
	@Column(name = "del", length = 1)
	public String getDel() {
		return this.del;
	}
	public void setDel(String del) {
		this.del = del;
	}
	@Column(name = "identity_type", length = 1)
	public String getIdentityType() {
		return this.identityType;
	}
	public void setIdentityType(String identityType) {
		this.identityType = identityType;
	}
	@Column(name = "is_famous", length = 1)
	public String getIsFamous() {
		return this.isFamous;
	}
	public void setIsFamous(String isFamous) {
		this.isFamous = isFamous;
	}
	@Column(name = "is_password_prompt", length = 1)
	public String getIsPasswordPrompt() {
		return this.isPasswordPrompt;
	}
	public void setIsPasswordPrompt(String isPasswordPrompt) {
		this.isPasswordPrompt = isPasswordPrompt;
	}
	@Column(name = "saas_id", length = 100)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "administrative_name", length = 10)
	public String getAdministrativeName() {
		return this.administrativeName;
	}
	public void setAdministrativeName(String administrativeName) {
		this.administrativeName = administrativeName;
	}
	@Column(name = "administrative_code", length = 10)
	public String getAdministrativeCode() {
		return this.administrativeCode;
	}
	public void setAdministrativeCode(String administrativeCode) {
		this.administrativeCode = administrativeCode;
	}
	@Column(name = "job", length = 50)
	public String getJob() {
		return this.job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	@Column(name = "job_name", length = 50)
	public String getJobName() {
		return this.jobName;
	}
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	@Column(name = "spell", length = 10)
	public String getSpell() {
		return this.spell;
	}
	public void setSpell(String spell) {
		this.spell = spell;
	}
}

+ 350 - 0
svr/svr-base/src/main/java/com/yihu/jw/user/model/BasePatient.java

@ -0,0 +1,350 @@
package com.yihu.jw.user.model;// default package
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;
/**
 * 患者表
 */
@Entity
@Table(name = "base_patient")
public class BasePatient implements java.io.Serializable {
	// Fields
	private Integer id;//'业务无关主键'
	private String code;//'业务主键'
	private String accountCode;//'关联wlyy_login_account账号code'
	private String idcard;//'身份证号'
	private String name;//'姓名'
	private Date birthday;//'生日'
	private String sex;//'参考国家标准'
	private String mobile;//'手机号'
	private String phone;//''联系电话'
	private String ssc;//'社保卡号'
	private String photo;//default '../../../images/p-female.png' comment '头像http地址'
	private String province;//省
	private String provinceName;//省名称
	private String city;//市
	private String cityName;//市名称
	private String town;//区
	private String townName;//区名称
	private String street;//街道
	private String streetName;//街道名称
	private String address;//详细地址
	private Integer status;//'用户状态:1正常,0禁用,-1恶意注册,2审核中'
	private Date updateTime;//修改时间
	private Date createTime;//创建时间
	private String saasId;//'saas配置id
	private String email;//'邮箱'
	private String nation;//'籍贯'
	private String spell;//'名称拼音首字母'
	// Constructors
	/** default constructor */
	public BasePatient() {
	}
	/** minimal constructor */
	public BasePatient(Integer id, String code, String idcard, String photo,
			Date updateTime, Date createTime) {
		this.id = id;
		this.code = code;
		this.idcard = idcard;
		this.photo = photo;
		this.updateTime = updateTime;
		this.createTime = createTime;
	}
	/** full constructor */
	public BasePatient(Integer id, String code, String accountCode,
			String idcard, String name, Date birthday, String sex,
			String mobile, String phone, String ssc, String photo,
			String province, String provinceName, String city, String cityName,
			String town, String townName, String street, String streetName,
			String address, Integer status, Date updateTime, Date createTime,
			String saasId, String email, String nation, String spell) {
		this.id = id;
		this.code = code;
		this.accountCode = accountCode;
		this.idcard = idcard;
		this.name = name;
		this.birthday = birthday;
		this.sex = sex;
		this.mobile = mobile;
		this.phone = phone;
		this.ssc = ssc;
		this.photo = photo;
		this.province = province;
		this.provinceName = provinceName;
		this.city = city;
		this.cityName = cityName;
		this.town = town;
		this.townName = townName;
		this.street = street;
		this.streetName = streetName;
		this.address = address;
		this.status = status;
		this.updateTime = updateTime;
		this.createTime = createTime;
		this.saasId = saasId;
		this.email = email;
		this.nation = nation;
		this.spell = spell;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "account_code", length = 100)
	public String getAccountCode() {
		return this.accountCode;
	}
	public void setAccountCode(String accountCode) {
		this.accountCode = accountCode;
	}
	@Column(name = "idcard", unique = true, nullable = false, length = 50)
	public String getIdcard() {
		return this.idcard;
	}
	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	@Column(name = "name", length = 50)
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Temporal(TemporalType.DATE)
	@Column(name = "birthday", length = 0)
	public Date getBirthday() {
		return this.birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	@Column(name = "sex", length = 2)
	public String getSex() {
		return this.sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	@Column(name = "mobile", length = 11)
	public String getMobile() {
		return this.mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name = "phone", length = 200)
	public String getPhone() {
		return this.phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	@Column(name = "ssc", length = 50)
	public String getSsc() {
		return this.ssc;
	}
	public void setSsc(String ssc) {
		this.ssc = ssc;
	}
	@Column(name = "photo", nullable = false, length = 100)
	public String getPhoto() {
		return this.photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	@Column(name = "province", length = 50)
	public String getProvince() {
		return this.province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	@Column(name = "province_name", length = 50)
	public String getProvinceName() {
		return this.provinceName;
	}
	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}
	@Column(name = "city", length = 50)
	public String getCity() {
		return this.city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	@Column(name = "city_name", length = 50)
	public String getCityName() {
		return this.cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	@Column(name = "town", length = 50)
	public String getTown() {
		return this.town;
	}
	public void setTown(String town) {
		this.town = town;
	}
	@Column(name = "town_name", length = 50)
	public String getTownName() {
		return this.townName;
	}
	public void setTownName(String townName) {
		this.townName = townName;
	}
	@Column(name = "street", length = 50)
	public String getStreet() {
		return this.street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	@Column(name = "street_name", length = 100)
	public String getStreetName() {
		return this.streetName;
	}
	public void setStreetName(String streetName) {
		this.streetName = streetName;
	}
	@Column(name = "address", length = 200)
	public String getAddress() {
		return this.address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "saas_id", length = 100)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "email", length = 100)
	public String getEmail() {
		return this.email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	@Column(name = "nation", length = 50)
	public String getNation() {
		return this.nation;
	}
	public void setNation(String nation) {
		this.nation = nation;
	}
	@Column(name = "spell", length = 10)
	public String getSpell() {
		return this.spell;
	}
	public void setSpell(String spell) {
		this.spell = spell;
	}
}

+ 187 - 0
svr/svr-base/src/main/java/com/yihu/jw/user/model/BasePatientExtend.java

@ -0,0 +1,187 @@
package com.yihu.jw.user.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * BasePatientExtend entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "base_patient_extend")
public class BasePatientExtend implements java.io.Serializable {
	// Fields
	private Integer id;//'主键'
	private String code;//'业务code'
	private String patientCode;//'患者code关联 wlyy_patient'
	private Date entryDate;//'入职时间'
	private String workState;//'工作状态 1实习 2试用期 3转正 4兼职 5离职 6产假 7医疗期 8退休 9返聘'
	private Date workStateTime;//'状态开始时间'
	private String jobNumber;//'工号'
	private String companyId;//'企业id'
	private String companyName;//'企业名称'
	private String companyEmail;//'企业邮箱'
	private String remark;//'备注'
	private Date createTime;//'创建时间'
	private Date updateTime;//'修改时间'
	// Constructors
	/** default constructor */
	public BasePatientExtend() {
	}
	/** minimal constructor */
	public BasePatientExtend(Integer id, Date entryDate, Date workStateTime,
			Date createTime, Date updateTime) {
		this.id = id;
		this.entryDate = entryDate;
		this.workStateTime = workStateTime;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	/** full constructor */
	public BasePatientExtend(Integer id, String code, String patientCode,
			Date entryDate, String workState, Date workStateTime,
			String jobNumber, String companyId, String companyName,
			String companyEmail, String remark, Date createTime, Date updateTime) {
		this.id = id;
		this.code = code;
		this.patientCode = patientCode;
		this.entryDate = entryDate;
		this.workState = workState;
		this.workStateTime = workStateTime;
		this.jobNumber = jobNumber;
		this.companyId = companyId;
		this.companyName = companyName;
		this.companyEmail = companyEmail;
		this.remark = remark;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", length = 100)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "patient_code", length = 100)
	public String getPatientCode() {
		return this.patientCode;
	}
	public void setPatientCode(String patientCode) {
		this.patientCode = patientCode;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "entry_date", nullable = false, length = 0)
	public Date getEntryDate() {
		return this.entryDate;
	}
	public void setEntryDate(Date entryDate) {
		this.entryDate = entryDate;
	}
	@Column(name = "work_state", length = 2)
	public String getWorkState() {
		return this.workState;
	}
	public void setWorkState(String workState) {
		this.workState = workState;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "work_state_time", nullable = false, length = 0)
	public Date getWorkStateTime() {
		return this.workStateTime;
	}
	public void setWorkStateTime(Date workStateTime) {
		this.workStateTime = workStateTime;
	}
	@Column(name = "job_number", length = 20)
	public String getJobNumber() {
		return this.jobNumber;
	}
	public void setJobNumber(String jobNumber) {
		this.jobNumber = jobNumber;
	}
	@Column(name = "company_id", length = 100)
	public String getCompanyId() {
		return this.companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	@Column(name = "company_name", length = 30)
	public String getCompanyName() {
		return this.companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	@Column(name = "company_email", length = 50)
	public String getCompanyEmail() {
		return this.companyEmail;
	}
	public void setCompanyEmail(String companyEmail) {
		this.companyEmail = companyEmail;
	}
	@Column(name = "remark", length = 2000)
	public String getRemark() {
		return this.remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}

+ 124 - 0
svr/svr-base/src/main/java/com/yihu/jw/user/model/BasePatientWechat.java

@ -0,0 +1,124 @@
package com.yihu.jw.user.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * BasePatientWechat entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "base_patient_wechat")
public class BasePatientWechat implements java.io.Serializable {
	// Fields
	private Integer id;//'主键'
	private String code;//'业务主键'
	private String saasId;///saas配置
	private String wechatCode;//关联的微信code 关联表 Wx_Wechat
	private String patientCode;//'关联wlyy_patient表code'
	private String openid;//
	private String unionid;//'微信union_id'
	private Date createTime;//'创建时间'
	// Constructors
	/** default constructor */
	public BasePatientWechat() {
	}
	/** minimal constructor */
	public BasePatientWechat(Integer id, Date createTime) {
		this.id = id;
		this.createTime = createTime;
	}
	/** full constructor */
	public BasePatientWechat(Integer id, String code, String saasId,
			String wechatCode, String patientCode, String openid,
			String unionid, Date createTime) {
		this.id = id;
		this.code = code;
		this.saasId = saasId;
		this.wechatCode = wechatCode;
		this.patientCode = patientCode;
		this.openid = openid;
		this.unionid = unionid;
		this.createTime = createTime;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", length = 100)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "saas_id", length = 64)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "wechat_code", length = 10)
	public String getWechatCode() {
		return this.wechatCode;
	}
	public void setWechatCode(String wechatCode) {
		this.wechatCode = wechatCode;
	}
	@Column(name = "patient_code", length = 100)
	public String getPatientCode() {
		return this.patientCode;
	}
	public void setPatientCode(String patientCode) {
		this.patientCode = patientCode;
	}
	@Column(name = "openid", length = 50)
	public String getOpenid() {
		return this.openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	@Column(name = "unionid", length = 50)
	public String getUnionid() {
		return this.unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}

+ 10 - 0
svr/svr-base/src/main/java/com/yihu/jw/user/service/EmployeeService.java

@ -0,0 +1,10 @@
package com.yihu.jw.user.service;
import org.springframework.stereotype.Service;
/**
 * Created by chenweida on 2017/5/11.
 */
@Service
public class EmployeeService {
}

+ 10 - 0
svr/svr-base/src/main/java/com/yihu/jw/user/service/PatientService.java

@ -0,0 +1,10 @@
package com.yihu.jw.user.service;
import org.springframework.stereotype.Service;
/**
 * Created by chenweida on 2017/5/11.
 */
@Service
public class PatientService {
}

+ 14 - 0
svr/svr-base/src/main/java/com/yihu/jw/wx/controller/WechatController.java

@ -0,0 +1,14 @@
package com.yihu.jw.wx.controller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * Created by chenweida on 2017/5/11.
 */
@RestController
@RequestMapping("/wechat")
@Api(description = "微信相关操作")
public class WechatController {
}

+ 106 - 0
svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxAccessToken.java

@ -0,0 +1,106 @@
package com.yihu.jw.wx.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * 微信 accesstoken表
 */
@Entity
@Table(name = "wx_access_token")
public class WxAccessToken implements java.io.Serializable {
	// Fields
	private Integer id;//业务id
	private String wechatCode;//关联的微信code 关联表 Wx_Wechat
	private String accessToken;//调用微信返回的accesstoken
	private long addTimestamp;//创建时间
	private Integer expiresIn;//凭证有效时间(秒)
	private Date czrq;//操作时间
	// Constructors
	/** default constructor */
	public WxAccessToken() {
	}
	/** minimal constructor */
	public WxAccessToken(Integer id, String accessToken, long addTimestamp,
			Integer expiresIn, Date czrq) {
		this.id = id;
		this.accessToken = accessToken;
		this.addTimestamp = addTimestamp;
		this.expiresIn = expiresIn;
		this.czrq = czrq;
	}
	/** full constructor */
	public WxAccessToken(Integer id, String wechatCode, String accessToken,
			long addTimestamp, Integer expiresIn, Date czrq) {
		this.id = id;
		this.wechatCode = wechatCode;
		this.accessToken = accessToken;
		this.addTimestamp = addTimestamp;
		this.expiresIn = expiresIn;
		this.czrq = czrq;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "wechat_code", length = 64)
	public String getWechatCode() {
		return this.wechatCode;
	}
	public void setWechatCode(String wechatCode) {
		this.wechatCode = wechatCode;
	}
	@Column(name = "access_token", nullable = false, length = 300)
	public String getAccessToken() {
		return this.accessToken;
	}
	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	@Column(name = "add_timestamp", nullable = false, precision = 15, scale = 0)
	public long getAddTimestamp() {
		return this.addTimestamp;
	}
	public void setAddTimestamp(long addTimestamp) {
		this.addTimestamp = addTimestamp;
	}
	@Column(name = "expires_in", nullable = false)
	public Integer getExpiresIn() {
		return this.expiresIn;
	}
	public void setExpiresIn(Integer expiresIn) {
		this.expiresIn = expiresIn;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "czrq", nullable = false, length = 0)
	public Date getCzrq() {
		return this.czrq;
	}
	public void setCzrq(Date czrq) {
		this.czrq = czrq;
	}
}

+ 170 - 0
svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxMenu.java

@ -0,0 +1,170 @@
package com.yihu.jw.wx.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * 微信 菜单表
 */
@Entity
@Table(name = "wx_menu")
public class WxMenu implements java.io.Serializable {
	// Fields
	private Integer id;//菜单id
	private String wechatCode;//关联的微信code 关联表 Wx_Wechat
	private String supMenucode;//父菜单id 如果是一级菜单 此字段为空
	private String type;//菜单类型 1 view 2click
	private String name;//菜单名称
	private Integer sort;//菜单排序 父菜单排序 不包含子菜单那
	private String url;//url
	private String updateUser;//更新人
	private Date updateTime;//更新时间
	private Date createTime;//创建时间
	private String createUser;//创建人
	private String remark;//备注
	// Constructors
	/** default constructor */
	public WxMenu() {
	}
	/** minimal constructor */
	public WxMenu(Integer id) {
		this.id = id;
	}
	/** full constructor */
	public WxMenu(Integer id, String wechatCode, String supMenucode,
			String type, String name, Integer sort, String url,
			String updateUser, Date updateTime, Date createTime,
			String createUser, String remark) {
		this.id = id;
		this.wechatCode = wechatCode;
		this.supMenucode = supMenucode;
		this.type = type;
		this.name = name;
		this.sort = sort;
		this.url = url;
		this.updateUser = updateUser;
		this.updateTime = updateTime;
		this.createTime = createTime;
		this.createUser = createUser;
		this.remark = remark;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "wechat_code", length = 200)
	public String getWechatCode() {
		return this.wechatCode;
	}
	public void setWechatCode(String wechatCode) {
		this.wechatCode = wechatCode;
	}
	@Column(name = "sup_menucode", length = 200)
	public String getSupMenucode() {
		return this.supMenucode;
	}
	public void setSupMenucode(String supMenucode) {
		this.supMenucode = supMenucode;
	}
	@Column(name = "type", length = 20)
	public String getType() {
		return this.type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "name", length = 200)
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "sort")
	public Integer getSort() {
		return this.sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	@Column(name = "url", length = 1000)
	public String getUrl() {
		return this.url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	@Column(name = "update_user", length = 50)
	public String getUpdateUser() {
		return this.updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "create_user", length = 50)
	public String getCreateUser() {
		return this.createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@Column(name = "remark", length = 1000)
	public String getRemark() {
		return this.remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}

+ 157 - 0
svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxTemplate.java

@ -0,0 +1,157 @@
package com.yihu.jw.wx.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * WxTemplate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wx_template")
public class WxTemplate implements java.io.Serializable {
	// Fields
	private Integer id;//模板id
	private String code;//模板code
	private String name;//模板名称
	private String wechatCode;//关联的微信code 关联表 Wx_Wechat
	private String templateCode;//微信的模板code
	private String value;//模板值
	private String createUser;//创建人
	private String createUserName;//创建人名
	private Date createTime;//创建时间
	private String updateUser;//修改人
	private String updateUserName;//修改人名称
	private Date updateTime;//修改时间
	private String remark;
	// Constructors
	/** default constructor */
	public WxTemplate() {
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", length = 64)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "name", length = 200)
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "wechat_code", length = 64)
	public String getWechatCode() {
		return this.wechatCode;
	}
	public void setWechatCode(String wechatCode) {
		this.wechatCode = wechatCode;
	}
	@Column(name = "template_code", length = 100)
	public String getTemplateCode() {
		return this.templateCode;
	}
	public void setTemplateCode(String templateCode) {
		this.templateCode = templateCode;
	}
	@Column(name = "value", length = 2000)
	public String getValue() {
		return this.value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	@Column(name = "create_user", length = 200)
	public String getCreateUser() {
		return this.createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@Column(name = "create_user_name", length = 200)
	public String getCreateUserName() {
		return this.createUserName;
	}
	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "update_user", length = 200)
	public String geUpdateUser() {
		return this.updateUser;
	}
	public void seUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@Column(name = "update_user_name", length = 200)
	public String geUpdateUserName() {
		return this.updateUserName;
	}
	public void seUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date geUpdateTime() {
		return this.updateTime;
	}
	public void seUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "remark", length = 1000)
	public String getRemark() {
		return this.remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}

+ 227 - 0
svr/svr-base/src/main/java/com/yihu/jw/wx/model/WxWechat.java

@ -0,0 +1,227 @@
package com.yihu.jw.wx.model;// default package
import java.util.Date;
import javax.persistence.*;
/**
 * WxWechat entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wx_wechat")
public class WxWechat implements java.io.Serializable {
	// Fields
	private Integer id;//'主键
	private String code;//业务code
	private String saasId;//'saas配置id'
	private String weichatId;//微信的id
	private String name;//名称
	private String status;//'类型 -1 已删除 0待审核 1审核通过 2 审核不通过'
	private String type;//'1:服务号 2 订阅号
	private String appId;//'微信app_id'
	private String appSecret;//'微信app_secret'
	private String baseUrl;//'微信base_url'
	private String createUser;//'创建人'
	private String createUserName;//'创建人名'
	private Date createTime;//'创建时间'
	private String updateUser;//'修改人
	private String updateUserName;//'修改人名'
	private Date updateTime;//'修改时间'
	private String remark;//'备注'
	// Constructors
	/** default constructor */
	public WxWechat() {
	}
	/** minimal constructor */
	public WxWechat(Integer id, Date createTime, Date updateTime) {
		this.id = id;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}
	/** full constructor */
	public WxWechat(Integer id, String code, String saasId, String weichatId,
			String name, String status, String type, String appId,
			String appSecret, String baseUrl, String createUser,
			String createUserName, Date createTime, String updateUser,
			String updateUserName, Date updateTime, String remark) {
		this.id = id;
		this.code = code;
		this.saasId = saasId;
		this.weichatId = weichatId;
		this.name = name;
		this.status = status;
		this.type = type;
		this.appId = appId;
		this.appSecret = appSecret;
		this.baseUrl = baseUrl;
		this.createUser = createUser;
		this.createUserName = createUserName;
		this.createTime = createTime;
		this.updateUser = updateUser;
		this.updateUserName = updateUserName;
		this.updateTime = updateTime;
		this.remark = remark;
	}
	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "code", length = 64)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "saas_id", length = 50)
	public String getSaasId() {
		return this.saasId;
	}
	public void setSaasId(String saasId) {
		this.saasId = saasId;
	}
	@Column(name = "weichat_id", length = 50)
	public String getWeichatId() {
		return this.weichatId;
	}
	public void setWeichatId(String weichatId) {
		this.weichatId = weichatId;
	}
	@Column(name = "name", length = 200)
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "status", precision = 2, scale = 0)
	public String getStatus() {
		return this.status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name = "type", length = 2)
	public String getType() {
		return this.type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "app_id", length = 200)
	public String getAppId() {
		return this.appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	@Column(name = "app_secret", length = 200)
	public String getAppSecret() {
		return this.appSecret;
	}
	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	@Column(name = "base_url", length = 200)
	public String getBaseUrl() {
		return this.baseUrl;
	}
	public void setBaseUrl(String baseUrl) {
		this.baseUrl = baseUrl;
	}
	@Column(name = "create_user", length = 200)
	public String getCreateUser() {
		return this.createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@Column(name = "create_user_name", length = 200)
	public String getCreateUserName() {
		return this.createUserName;
	}
	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "update_user", length = 200)
	public String getUpdateUser() {
		return this.updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@Column(name = "update_user_name", length = 200)
	public String getUpdateUserName() {
		return this.updateUserName;
	}
	public void setUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", nullable = false, length = 0)
	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "remark", length = 1000)
	public String getRemark() {
		return this.remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}

+ 67 - 0
svr/svr-base/src/main/resources/application.yml

@ -0,0 +1,67 @@
server:
  port: 10020
spring:
  application:
    name:  svr-user  ##注册到发现服务的id 如果id一样 eurika会自动做负载
  cloud:
    config:
      enabled: false    ##是否加入配置服务
eureka:
  client:
    serviceUrl:
      #http://账号:密码@127.0.0.1:8761/eureka/
      defaultZone: http://user:123456@127.0.0.1:8761/eureka/
    healthcheck:
      enabled: true #启动监控检查
  instance:
    #eurika使用IP不使用host
    prefer-ip-address: true
    #定制化在eurika中显示的名称
    instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
spring:
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    max-active: 50
    max-idle: 50 #最大空闲连接
    min-idle: 10 #最小空闲连接
    validation-query-timeout: 20
    log-validation-errors: true
    validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
    validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
    test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
    test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
    idle-timeout: 30000
    connection-test-query: SELECT 1
    num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
    test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
    min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
    time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
  show_sql: true
  ejb:
    naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
---
spring:
  profiles: dev
  datasource:
    url: jdbc:mysql://172.19.103.77/jw2.0?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
    username: wlyy
    password: 123456
---
spring:
  profiles: test
---
spring:
  profiles: prod

svr/svr-user/src/main/resources/banner.txt → svr/svr-base/src/main/resources/banner.txt


+ 0 - 39
svr/svr-user/src/main/resources/application.yml

@ -1,39 +0,0 @@
server:
  port: 10020
spring:
  application:
    name:  svr-user  ##注册到发现服务的id 如果id一样 eurika会自动做负载
  cloud:
    config:
      enabled: false    ##是否加入配置服务
eureka:
  client:
    serviceUrl:
      #http://账号:密码@127.0.0.1:8761/eureka/
      defaultZone: http://user:123456@127.0.0.1:8761/eureka/
    healthcheck:
      enabled: true #启动监控检查
  instance:
    #eurika使用IP不使用host
    prefer-ip-address: true
    #定制化在eurika中显示的名称
    instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
---
spring:
  profiles: dev
---
spring:
  profiles: test
---
spring:
  profiles: prod