Browse Source

Merge remote-tracking branch 'origin/dev' into dev

suxiaoyang 6 years ago
parent
commit
bf2cb6f897
100 changed files with 2635 additions and 940 deletions
  1. 15 13
      common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseCityDO.java
  2. 100 0
      common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseCommitteeDO.java
  3. 13 11
      common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseProvinceDO.java
  4. 21 19
      common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseStreetDO.java
  5. 18 16
      common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseTownDO.java
  6. 77 0
      common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictDiseaseDO.java
  7. 18 16
      common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictHealthProblemDO.java
  8. 15 13
      common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictHospitalDeptDO.java
  9. 27 25
      common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictIcd10DO.java
  10. 15 13
      common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictJobTitleDO.java
  11. 18 16
      common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictMedicineDO.java
  12. 88 88
      common/common-entity/src/main/java/com/yihu/jw/entity/base/doctor/BaseDoctorDO.java
  13. 28 26
      common/common-entity/src/main/java/com/yihu/jw/entity/base/doctor/BaseDoctorHospitalDO.java
  14. 10 10
      common/common-entity/src/main/java/com/yihu/jw/entity/base/doctor/BaseDoctorRoleDictDO.java
  15. 82 100
      common/common-entity/src/main/java/com/yihu/jw/entity/base/org/BaseOrgDO.java
  16. 111 107
      common/common-entity/src/main/java/com/yihu/jw/entity/base/patient/BasePatientDO.java
  17. 233 0
      common/common-entity/src/main/java/com/yihu/jw/entity/base/peopel_num/BasePeopleNumDO.java
  18. 51 26
      common/common-entity/src/main/java/com/yihu/jw/entity/base/team/BaseTeamDO.java
  19. 51 26
      common/common-entity/src/main/java/com/yihu/jw/entity/base/team/baseTeamDO.java
  20. 12 0
      common/common-entity/src/main/java/com/yihu/jw/entity/specialist/HospitalServiceItemDO.java
  21. 1 1
      common/common-entity/src/main/java/com/yihu/jw/entity/specialist/SpecialistServiceItemDO.java
  22. 14 0
      common/common-request-mapping/src/main/java/com/yihu/jw/rm/base/BaseRequestMapping.java
  23. 2 0
      common/common-request-mapping/src/main/java/com/yihu/jw/rm/specialist/SpecialistMapping.java
  24. 20 11
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseCityVO.java
  25. 103 0
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/area/BaseCommitteeVO.java
  26. 18 11
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseProvinceVO.java
  27. 28 15
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseStreetVO.java
  28. 24 13
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseTownVO.java
  29. 80 0
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictDiseaseVO.java
  30. 23 12
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictHealthProblemVO.java
  31. 19 10
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictHospitalDeptVO.java
  32. 35 18
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictIcd10VO.java
  33. 19 10
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictJobTitleVO.java
  34. 23 12
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictMedicineVO.java
  35. 38 21
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseDoctorHospitalVO.java
  36. 14 9
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseDoctorRoleDictVO.java
  37. 119 61
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseDoctorVO.java
  38. 80 43
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseOrgVO.java
  39. 151 78
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BasePatientVO.java
  40. 236 0
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/people_num/BasePeopleNumVO.java
  41. 18 11
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseTeamMemberVO.java
  42. 26 15
      common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseTeamVO.java
  43. 92 6
      server/svr-authentication/src/main/java/com/yihu/jw/security/core/userdetails/jdbc/WlyyUserDetailsService.java
  44. 10 4
      server/svr-authentication/src/main/java/com/yihu/jw/security/oauth2/provider/endpoint/WlyyLoginEndpoint.java
  45. 27 1
      sql/init.sql
  46. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseCityDao.java
  47. 20 0
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/area/BaseCommitteeDao.java
  48. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseProvinceDao.java
  49. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseStreetDao.java
  50. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseTownDao.java
  51. 21 0
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/dict/DictDiseaseDao.java
  52. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictHealthProblemDao.java
  53. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictHospitalDeptDao.java
  54. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictIcd10Dao.java
  55. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictJobTitleDao.java
  56. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictMedicineDao.java
  57. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseDoctorDao.java
  58. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseDoctorHospitalDao.java
  59. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseDoctorRoleDictDao.java
  60. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseOrgDao.java
  61. 21 0
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/people_num/BasePeopleNumDao.java
  62. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseTeamDao.java
  63. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseTeamMemberDao.java
  64. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseCityEndpoint.java
  65. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseProvinceEndpoint.java
  66. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseStreetEndpoint.java
  67. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseTownEndpoint.java
  68. 104 0
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/dict/DictDiseaseEndpoint.java
  69. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/doctor/BaseDoctorEndpoint.java
  70. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/doctor/BaseDoctorHospitalEndpoint.java
  71. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/doctor/BaseDoctorRoleDictEndpoint.java
  72. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/org/BaseOrgEndpoint.java
  73. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/patient/BasePatientEndpoint.java
  74. 105 0
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/people_num/BasePeopleNumEndpoint.java
  75. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/team/BaseTeamEndpoint.java
  76. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/team/BaseTeamMemberEndpoint.java
  77. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/wx/WechatCoreController.java
  78. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/wx/WxMenuController.java
  79. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/wx/WxTemplateController.java
  80. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseCityService.java
  81. 22 0
      svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseCommitteeService.java
  82. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseProvinceService.java
  83. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseStreetService.java
  84. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseTownService.java
  85. 22 0
      svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictDiseaseService.java
  86. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictHealthProblemService.java
  87. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictHospitalDeptService.java
  88. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictIcd10Service.java
  89. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictJobTitleService.java
  90. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictMedicineService.java
  91. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/doctor/BaseDoctorHospitalService.java
  92. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/doctor/BaseDoctorRoleDictService.java
  93. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/doctor/BaseDoctorService.java
  94. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/org/BaseOrgService.java
  95. 22 0
      svr/svr-base/src/main/java/com/yihu/jw/base/service/people_num/BasePeopleNumService.java
  96. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/team/BaseTeamMemberService.java
  97. 1 1
      svr/svr-base/src/main/java/com/yihu/jw/base/service/team/BaseTeamService.java
  98. 2 2
      svr/svr-base/src/main/java/com/yihu/jw/base/service/team/TeamService.java
  99. 29 7
      svr/svr-wlyy-specialist/src/main/java/com/yihu/jw/controller/SpecialistHospitalServiceItemController.java
  100. 0 0
      svr/svr-wlyy-specialist/src/main/java/com/yihu/jw/controller/SpecialistServiceItemController.java

+ 15 - 13
common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseCityDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * 城市字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,24 +19,25 @@ import java.util.Date;
public class BaseCityDO extends IntegerIdentityEntity {
    /**
	* 省编码
	*/
    private String province;
	 * 省编码
	 */
	private String province;
    /**
	* 城市编码
	*/
    private String code;
	 * 城市编码
	 */
	private String code;
    /**
	* 城市名称
	*/
    private String name;
	 * 城市名称
	 */
	private String name;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "province")

+ 100 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseCommitteeDO.java

@ -0,0 +1,100 @@
package com.yihu.jw.entity.base.area;
import com.yihu.jw.entity.UuidIdentityEntityWithOperator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* 居委会实体
*
* @author Administrator on  2018年09月05日
*
*/
@Entity
@Table(name = "base_committee")
public class BaseCommitteeDO extends UuidIdentityEntityWithOperator {
    /**
	 * 省标识
	 */
	private String province;
    /**
	 * 市标识
	 */
	private String city;
    /**
	 * 区县标识
	 */
	private String town;
    /**
	 * 街道标识
	 */
	private String street;
    /**
	 * 居委会标识
	 */
	private String code;
    /**
	 * 居委会名称
	 */
	private String name;
	@Column(name = "province")
    public String getProvince() {
        return province;
    }
    public void setProvince(String province) {
        this.province = province;
    }
	@Column(name = "city")
    public String getCity() {
        return city;
    }
    public void setCity(String city) {
        this.city = city;
    }
	@Column(name = "town")
    public String getTown() {
        return town;
    }
    public void setTown(String town) {
        this.town = town;
    }
	@Column(name = "street")
    public String getStreet() {
        return street;
    }
    public void setStreet(String street) {
        this.street = street;
    }
	@Column(name = "code")
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
	@Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}

+ 13 - 11
common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseProvinceDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -8,9 +9,9 @@ import java.util.Date;
/**
 * 省字典实体
 * 省份字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,19 +19,20 @@ import java.util.Date;
public class BaseProvinceDO extends IntegerIdentityEntity {
    /**
	* 省份编码
	*/
    private String code;
	 * 省份编码
	 */
	private String code;
    /**
	* 省份名称
	*/
    private String name;
	 * 省份名称
	 */
	private String name;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "code")

+ 21 - 19
common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseStreetDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * 街道字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,34 +19,35 @@ import java.util.Date;
public class BaseStreetDO extends IntegerIdentityEntity {
    /**
	* 省标识
	*/
    private String province;
	 * 省标识
	 */
	private String province;
    /**
	* 市标识
	*/
    private String city;
	 * 市标识
	 */
	private String city;
    /**
	* 区县标识
	*/
    private String town;
	 * 区县标识
	 */
	private String town;
    /**
	* 街道标识
	*/
    private String code;
	 * 街道标识
	 */
	private String code;
    /**
	* 街道名称
	*/
    private String name;
	 * 街道名称
	 */
	private String name;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "province")

+ 18 - 16
common/common-entity/src/main/java/com/yihu/jw/entity/base/area/BaseTownDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * 区县字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,29 +19,30 @@ import java.util.Date;
public class BaseTownDO extends IntegerIdentityEntity {
    /**
	* 省编码
	*/
    private String province;
	 * 省编码
	 */
	private String province;
    /**
	* 城市编码
	*/
    private String city;
	 * 城市编码
	 */
	private String city;
    /**
	* 区县编码
	*/
    private String code;
	 * 区县编码
	 */
	private String code;
    /**
	* 区县名称
	*/
    private String name;
	 * 区县名称
	 */
	private String name;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "province")

+ 77 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictDiseaseDO.java

@ -0,0 +1,77 @@
package com.yihu.jw.entity.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
/**
 * 病种字典实体
 * 
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@Table(name = "dict_disease")
public class DictDiseaseDO extends IntegerIdentityEntity {
    /**
	 * saas配置id,null标识公共字典
	 */
	private String saasId;
    /**
	 * 疾病编码
	 */
	private String code;
    /**
	 * 疾病名称
	 */
	private String name;
    /**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "saas_id")
    public String getSaasId() {
        return saasId;
    }
    public void setSaasId(String saasId) {
        this.saasId = saasId;
    }
	@Column(name = "code")
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
	@Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
	@Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}

+ 18 - 16
common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictHealthProblemDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * 健康问题字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,29 +19,30 @@ import java.util.Date;
public class DictHealthProblemDO extends IntegerIdentityEntity {
    /**
	* saas配置id,null标识公共字典
	*/
    private String saasId;
	 * saas配置id,null标识公共字典
	 */
	private String saasId;
    /**
	* 字典编码
	*/
    private String code;
	 * 字典编码
	 */
	private String code;
    /**
	* 字典名称
	*/
    private String name;
	 * 字典名称
	 */
	private String name;
    /**
	* 描述
	*/
    private String description;
	 * 描述
	 */
	private String description;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "saas_id")

+ 15 - 13
common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictHospitalDeptDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * 医院科室字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,24 +19,25 @@ import java.util.Date;
public class DictHospitalDeptDO extends IntegerIdentityEntity {
    /**
	* saas配置id,null标识公共字典
	*/
    private String saasId;
	 * saas配置id,null标识公共字典
	 */
	private String saasId;
    /**
	* 科室标识
	*/
    private String code;
	 * 科室标识
	 */
	private String code;
    /**
	* 科室名称
	*/
    private String name;
	 * 科室名称
	 */
	private String name;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "saas_id")

+ 27 - 25
common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictIcd10DO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * ICD10字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,44 +19,45 @@ import java.util.Date;
public class DictIcd10DO extends IntegerIdentityEntity {
    /**
	* saas配置id,null标识公共字典
	*/
    private String saasId;
	 * saas配置id,null标识公共字典
	 */
	private String saasId;
    /**
	* icd10字典编码
	*/
    private String code;
	 * icd10字典编码
	 */
	private String code;
    /**
	* icd10字典名称
	*/
    private String name;
	 * icd10字典名称
	 */
	private String name;
    /**
	* 字典名称拼音首字母
	*/
    private String phoneticCode;
	 * 字典名称拼音首字母
	 */
	private String phoneticCode;
    /**
	* 是否慢病
	*/
    private String chronicFlag;
	 * 是否慢病
	 */
	private String chronicFlag;
    /**
	* 是否传染病
	*/
    private String infectiousFlag;
	 * 是否传染病
	 */
	private String infectiousFlag;
    /**
	* 描述
	*/
    private String description;
	 * 描述
	 */
	private String description;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "saas_id")

+ 15 - 13
common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictJobTitleDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * 职称字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,24 +19,25 @@ import java.util.Date;
public class DictJobTitleDO extends IntegerIdentityEntity {
    /**
	* saas配置id,null标识公共字典
	*/
    private String saasId;
	 * saas配置id,null标识公共字典
	 */
	private String saasId;
    /**
	* 职称标识
	*/
    private String code;
	 * 职称标识
	 */
	private String code;
    /**
	* 职称名
	*/
    private String name;
	 * 职称名
	 */
	private String name;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "saas_id")

+ 18 - 16
common/common-entity/src/main/java/com/yihu/jw/entity/base/dict/DictMedicineDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -10,7 +11,7 @@ import java.util.Date;
/**
 * 药品字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,29 +19,30 @@ import java.util.Date;
public class DictMedicineDO extends IntegerIdentityEntity {
    /**
	* saas配置id,null标识公共字典
	*/
    private String saasId;
	 * saas配置id,null标识公共字典
	 */
	private String saasId;
    /**
	* 药品编码
	*/
    private String code;
	 * 药品编码
	 */
	private String code;
    /**
	* 药品名称
	*/
    private String name;
	 * 药品名称
	 */
	private String name;
    /**
	* 药品类型:1健康记录
	*/
    private String type;
	 * 药品类型:1健康记录
	 */
	private String type;
    /**
	* 创建时间
	*/
    private Date createTime;
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "saas_id")

+ 88 - 88
common/common-entity/src/main/java/com/yihu/jw/entity/base/doctor/BaseDoctorDO.java

@ -9,9 +9,9 @@ import java.util.Date;
/**
* 医生基础信息实体
* 医生基本信息实体
*
* @author litaohong on  2018年08月31日
* @author Administrator on  2018年09月05日
*
*/
@Entity
@ -19,144 +19,146 @@ import java.util.Date;
public class BaseDoctorDO extends UuidIdentityEntityWithOperator {
    /**
	* 机构id
	*/
    private String orgId;
	 * 机构id
	 */
	private String orgId;
    /**
	* 密码
	*/
    private String password;
	 * 密码
	 */
	private String password;
    /**
	* 
	*/
    private String salt;
	 * 
	 */
	private String salt;
    /**
	* 姓名
	*/
    private String name;
	 * 姓名
	 */
	private String name;
    /**
	* 性别(1男,2女) 用国家标准字典
	*/
    private String sex;
	 * 性别(1男,2女) 用国家标准字典
	 */
	private String sex;
    /**
	* 医生专长
	*/
    private String expertise;
	 * 医生专长
	 */
	private String expertise;
    /**
	* 医生介绍
	*/
    private String introduce;
	 * 医生介绍
	 */
	private String introduce;
    /**
	*  身份证
	*/
    private String idcard;
	 *  身份证
	 */
	private String idcard;
    /**
	* 生日
	*/
    private Date birthday;
	 * 生日
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date birthday;
    /**
	* 头像http地址
	*/
    private String photo;
	 * 头像http地址
	 */
	private String photo;
    /**
	* 手机号
	*/
    private String mobile;
	 * 手机号
	 */
	private String mobile;
    /**
	* 医生二维码
	*/
    private String qrcode;
	 * 医生二维码
	 */
	private String qrcode;
    /**
	* 省代码
	*/
    private String provinceCode;
	 * 省代码
	 */
	private String provinceCode;
    /**
	* 省名称
	*/
    private String provinceName;
	 * 省名称
	 */
	private String provinceName;
    /**
	* 市代码
	*/
    private String cityCode;
	 * 市代码
	 */
	private String cityCode;
    /**
	* 市名称
	*/
    private String cityName;
	 * 市名称
	 */
	private String cityName;
    /**
	* 区县代码
	*/
    private String townCode;
	 * 区县代码
	 */
	private String townCode;
    /**
	* 区县名称
	*/
    private String townName;
	 * 区县名称
	 */
	private String townName;
    /**
	* 街道代码
	*/
    private String streetCode;
	 * 街道代码
	 */
	private String streetCode;
    /**
	* 街道名称
	*/
    private String streetName;
	 * 街道名称
	 */
	private String streetName;
    /**
	* 资格是否认证通过,1是,0否
	*/
    private String iscertified;
	 * 资格是否认证通过,1是,0否
	 */
	private String iscertified;
    /**
	* 是否是名医,1是,0否
	*/
    private String isFamous;
	 * 是否是名医,1是,0否
	 */
	private String isFamous;
    /**
	* 是否提示设置密码  1 提示过 0未提示
	*/
    private String isPasswordPrompt;
	 * 是否提示设置密码  1 提示过 0未提示
	 */
	private String isPasswordPrompt;
    /**
	* 名称拼音首字母
	*/
    private String spell;
	 * 名称拼音首字母
	 */
	private String spell;
    /**
	* CA证书过期时间
	*/
    private Date certifiedOvertime;
	 * CA证书过期时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date certifiedOvertime;
    /**
	* CA证书编号
	*/
    private String certificateNum;
	 * CA证书编号
	 */
	private String certificateNum;
    /**
	* 
	*/
    private String openid;
	 * 用户微信openid
	 */
	private String openid;
    /**
	* 作废标识,1正常,0作废
	*/
    private String del;
	 * 作废标识,1正常,0作废
	 */
	private String del;
	@Column(name = "org_id")
@ -223,7 +225,6 @@ public class BaseDoctorDO extends UuidIdentityEntityWithOperator {
        this.idcard = idcard;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@Column(name = "birthday")
    public Date getBirthday() {
        return birthday;
@ -352,7 +353,6 @@ public class BaseDoctorDO extends UuidIdentityEntityWithOperator {
        this.spell = spell;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@Column(name = "certified_overtime")
    public Date getCertifiedOvertime() {
        return certifiedOvertime;

+ 28 - 26
common/common-entity/src/main/java/com/yihu/jw/entity/base/doctor/BaseDoctorHospitalDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.doctor;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.IntegerIdentityEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -8,9 +9,9 @@ import java.util.Date;
/**
 * 医生职业信息实体
 * 医生执业信息实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,44 +19,45 @@ import java.util.Date;
public class BaseDoctorHospitalDO extends IntegerIdentityEntity {
    /**
	* 医院标识
	*/
    private String hospCode;
	 * 医院标识
	 */
	private String hospCode;
    /**
	* 医院名称
	*/
    private String hospName;
	 * 医院名称
	 */
	private String hospName;
    /**
	* 医生角色标识
	*/
    private String roleCode;
	 * 医生角色标识
	 */
	private String roleCode;
    /**
	* 医院角色名称
	*/
    private String roleName;
	 * 医院角色名称
	 */
	private String roleName;
    /**
	* 职称代码
	*/
    private String jobTitleCode;
	 * 职称代码
	 */
	private String jobTitleCode;
    /**
	* 职称名称
	*/
    private String jobTitleName;
	 * 职称名称
	 */
	private String jobTitleName;
    /**
	* 作废标识,1正常,0作废
	*/
    private String del;
	 * 作废标识,1正常,0作废
	 */
	private String del;
    /**
	* 
	*/
    private Date createTime;
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "hosp_code")

+ 10 - 10
common/common-entity/src/main/java/com/yihu/jw/entity/base/doctor/BaseDoctorRoleDictDO.java

@ -10,7 +10,7 @@ import java.util.Date;
/**
 * 医生角色字典实体
 * 
 * @author litaohong on  2018年08月31日
 * @author Administrator on  2018年09月05日
 *
 */
@Entity
@ -18,19 +18,19 @@ import java.util.Date;
public class BaseDoctorRoleDictDO extends IntegerIdentityEntity {
    /**
	* 角色code
	*/
    private String code;
	 * 角色code
	 */
	private String code;
    /**
	* 角色名称:全科医生、专科医生、健康管理师、管理员等
	*/
    private String name;
	 * 角色名称:全科医生、专科医生、健康管理师、管理员等
	 */
	private String name;
    /**
	* 作废标识,1正常,0作废
	*/
    private String del;
	 * 作废标识,1正常,0作废
	 */
	private String del;
	@Column(name = "code")

+ 82 - 100
common/common-entity/src/main/java/com/yihu/jw/entity/base/org/BaseOrgDO.java

@ -1,7 +1,6 @@
package com.yihu.jw.entity.base.org;
import com.yihu.jw.entity.UuidIdentityEntityWithOperator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@ -9,280 +8,263 @@ import java.util.Date;
/**
 * 机构信息实体
 *
 * @author litaohong on  2018年08月31日
 */
* 机构信息(医院)实体
*
* @author Administrator on  2018年09月05日
*
*/
@Entity
@Table(name = "base_org")
public class BaseOrgDO extends UuidIdentityEntityWithOperator {
    /**
     * saas化配置
     */
    private String saasid;
	 * saas化配置
	 */
	private String saasid;
    /**
     * 省份标识
     */
    private String provinceCode;
	 * 省份标识
	 */
	private String provinceCode;
    /**
     * 城市标识
     */
    private String cityCode;
	 * 城市标识
	 */
	private String cityCode;
    /**
     * 区县标识
     */
    private String townCode;
	 * 区县标识
	 */
	private String townCode;
    /**
     * 机构名称
     */
    private String name;
	 * 机构名称
	 */
	private String name;
    /**
     * 机构别名
     */
    private String alias;
	 * 机构别名
	 */
	private String alias;
    /**
     * 机构名称拼音首字母
     */
    private String spell;
	 * 机构名称拼音首字母
	 */
	private String spell;
    /**
     * 机构类型: 1.  医疗机构2.  企事业单位3.  政府机关4.  社会团体 5.药店 0.  部门 6.单位或者独立子公司7.基层机构 8.专业公共机构
     */
    private String type;
	 * 机构类型: 1.  医疗机构2.  企事业单位3.  政府机关4.  社会团体 5.药店 0.  部门 6.单位或者独立子公司7.基层机构 8.专业公共机构
	 */
	private String type;
    /**
     * 机构简介
     */
    private String brief;
	 * 机构简介
	 */
	private String brief;
    /**
     * 机构详细地址
     */
    private String address;
	 * 机构详细地址
	 */
	private String address;
    /**
     * 机构图片
     */
    private String photo;
	 * 机构图片
	 */
	private String photo;
    /**
     * 经度
     */
    private String longitude;
	 * 经度
	 */
	private String longitude;
    /**
     * 纬度
     */
    private String latitude;
	 * 纬度
	 */
	private String latitude;
    /**
     * 法人
     */
    private String legalperson;
	 * 法人
	 */
	private String legalperson;
    /**
     * 机构管理员
     */
    private String orgAdmin;
	 * 机构管理员
	 */
	private String orgAdmin;
    /**
     * 机构网址
     */
    private String orgUrl;
	 * 机构网址
	 */
	private String orgUrl;
    /**
     * 机构简介
     */
    private String intro;
	 * 机构简介
	 */
	private String intro;
    /**
     * 机构二维码
     */
    private String qrcode;
	 * 机构二维码
	 */
	private String qrcode;
    /**
     * 作废标识,1正常,0作废
     */
    private String del;
	 * 作废标识,1正常,0作废
	 */
	private String del;
    @Column(name = "saasid")
	@Column(name = "saasid")
    public String getSaasid() {
        return saasid;
    }
    public void setSaasid(String saasid) {
        this.saasid = saasid;
    }
    @Column(name = "province_code")
	@Column(name = "province_code")
    public String getProvinceCode() {
        return provinceCode;
    }
    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }
    @Column(name = "city_code")
	@Column(name = "city_code")
    public String getCityCode() {
        return cityCode;
    }
    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }
    @Column(name = "town_code")
	@Column(name = "town_code")
    public String getTownCode() {
        return townCode;
    }
    public void setTownCode(String townCode) {
        this.townCode = townCode;
    }
    @Column(name = "name")
	@Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "alias")
	@Column(name = "alias")
    public String getAlias() {
        return alias;
    }
    public void setAlias(String alias) {
        this.alias = alias;
    }
    @Column(name = "spell")
	@Column(name = "spell")
    public String getSpell() {
        return spell;
    }
    public void setSpell(String spell) {
        this.spell = spell;
    }
    @Column(name = "type")
	@Column(name = "type")
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    @Column(name = "brief")
	@Column(name = "brief")
    public String getBrief() {
        return brief;
    }
    public void setBrief(String brief) {
        this.brief = brief;
    }
    @Column(name = "address")
	@Column(name = "address")
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    @Column(name = "photo")
	@Column(name = "photo")
    public String getPhoto() {
        return photo;
    }
    public void setPhoto(String photo) {
        this.photo = photo;
    }
    @Column(name = "longitude")
	@Column(name = "longitude")
    public String getLongitude() {
        return longitude;
    }
    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }
    @Column(name = "latitude")
	@Column(name = "latitude")
    public String getLatitude() {
        return latitude;
    }
    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }
    @Column(name = "legalperson")
	@Column(name = "legalperson")
    public String getLegalperson() {
        return legalperson;
    }
    public void setLegalperson(String legalperson) {
        this.legalperson = legalperson;
    }
    @Column(name = "org_admin")
	@Column(name = "org_admin")
    public String getOrgAdmin() {
        return orgAdmin;
    }
    public void setOrgAdmin(String orgAdmin) {
        this.orgAdmin = orgAdmin;
    }
    @Column(name = "org_url")
	@Column(name = "org_url")
    public String getOrgUrl() {
        return orgUrl;
    }
    public void setOrgUrl(String orgUrl) {
        this.orgUrl = orgUrl;
    }
    @Column(name = "intro")
	@Column(name = "intro")
    public String getIntro() {
        return intro;
    }
    public void setIntro(String intro) {
        this.intro = intro;
    }
    @Column(name = "qrcode")
	@Column(name = "qrcode")
    public String getQrcode() {
        return qrcode;
    }
    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }
    @Column(name = "del")
	@Column(name = "del")
    public String getDel() {
        return del;
    }
    public void setDel(String del) {
        this.del = del;
    }
}

+ 111 - 107
common/common-entity/src/main/java/com/yihu/jw/entity/base/patient/BasePatientDO.java

@ -1,5 +1,6 @@
package com.yihu.jw.entity.base.patient;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.UuidIdentityEntityWithOperator;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -8,9 +9,9 @@ import java.util.Date;
/**
* 居民信息实体
* 居民信息(居民就是患者)实体
*
* @author litaohong on  2018年08月31日
* @author Administrator on  2018年09月05日
*
*/
@Entity
@ -18,179 +19,182 @@ import java.util.Date;
public class BasePatientDO extends UuidIdentityEntityWithOperator {
    /**
	* saas配置id
	*/
    private String saasId;
	 * saas配置id
	 */
	private String saasId;
    /**
	* 身份证号
	*/
    private String idcard;
	 * 身份证号
	 */
	private String idcard;
    /**
	* 登录密码
	*/
    private String password;
	 * 登录密码
	 */
	private String password;
    /**
	*
	*/
    private String salt;
	 *
	 */
	private String salt;
    /**
	* 姓名
	*/
    private String name;
	 * 姓名
	 */
	private String name;
    /**
	* 生日
	*/
    private Date birthday;
	 * 生日
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date birthday;
    /**
	* 性别,1男,2女
	*/
    private Integer sex;
	 * 性别,1男,2女
	 */
	private Integer sex;
    /**
	* 手机号
	*/
    private String mobile;
	 * 手机号
	 */
	private String mobile;
    /**
	* 联系电话
	*/
    private String phone;
	 * 联系电话
	 */
	private String phone;
    /**
	* 社保卡号
	*/
    private String ssc;
	 * 社保卡号
	 */
	private String ssc;
    /**
	* 头像http地址
	*/
    private String photo;
	 * 头像http地址
	 */
	private String photo;
    /**
	* 省编码
	*/
    private String provinceCode;
	 * 省编码
	 */
	private String provinceCode;
    /**
	* 市编码
	*/
    private String cityCode;
	 * 市编码
	 */
	private String cityCode;
    /**
	* 区县编码
	*/
    private String townCode;
	 * 区县编码
	 */
	private String townCode;
    /**
	* 街道编码
	*/
    private String streetCode;
	 * 街道编码
	 */
	private String streetCode;
    /**
	* 具体详细地址
	*/
    private String address;
	 * 具体详细地址
	 */
	private String address;
    /**
	* 疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病
	*/
    private String disease;
	 * 疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病
	 */
	private String disease;
    /**
	* 病情:0绿标,1黄标,2红标,3重点关注,
	*/
    private String diseaseCondition;
	 * 病情:0绿标,1黄标,2红标,3重点关注,
	 */
	private String diseaseCondition;
    /**
	* 总积分
	*/
    private String points;
	 * 总积分
	 */
	private String points;
    /**
	* 病历总数
	*/
    private String recordAmount;
	 * 病历总数
	 */
	private String recordAmount;
    /**
	* 微信编号
	*/
    private String openid;
	 * 微信编号
	 */
	private String openid;
    /**
	* 用户状态:1正常,0禁用,-1恶意注册,2审核中
	*/
    private String patientStatus;
	 * 用户状态:1正常,0禁用,-1恶意注册,2审核中
	 */
	private String patientStatus;
    /**
	* 联系方式备注【基卫】
	*/
    private String mobileRemarks;
	 * 联系方式备注【基卫】
	 */
	private String mobileRemarks;
    /**
	* 第一次添加open的时间
	*/
    private Date openidTime;
	 * 第一次添加open的时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date openidTime;
    /**
	* 居委会代码
	*/
    private String sickVillage;
	 * 居委会代码
	 */
	private String sickVillage;
    /**
	*
	*/
    private String sickVillageName;
	 *
	 */
	private String sickVillageName;
    /**
	* 绑定电子社保卡主体(共济为操作人code)
	*/
    private String principalCode;
	 * 绑定电子社保卡主体(共济为操作人code)
	 */
	private String principalCode;
    /**
	* 是否绑定电子社保卡 (0否 1是)
	*/
    private String sicardStatus;
	 * 是否绑定电子社保卡 (0否 1是)
	 */
	private String sicardStatus;
    /**
	* 电子社保卡绑定时间
	*/
    private Date sicardTime;
	 * 电子社保卡绑定时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date sicardTime;
    /**
	* 是否分配过微信标签
	*/
    private Integer isWxtag;
	 * 是否分配过微信标签
	 */
	private Integer isWxtag;
    /**
	* 微信tagId
	*/
    private String wxtagid;
	 * 微信tagId
	 */
	private String wxtagid;
    /**
	* 居民预警状态:0为标准,1为预警状态
	*/
    private Integer standardStatus;
	 * 居民预警状态:0为标准,1为预警状态
	 */
	private Integer standardStatus;
    /**
	* 医疗保险号
	*/
    private String medicareNumber;
	 * 医疗保险号
	 */
	private String medicareNumber;
    /**
	* unionId 开发平台唯一标识
	*/
    private String unionid;
	 * unionId 开发平台唯一标识
	 */
	private String unionid;
    /**
	* 作废标识,1正常,0作废
	*/
    private String del;
	 * 作废标识,1正常,0作废
	 */
	private String del;
	@Column(name = "saas_id")

+ 233 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/base/peopel_num/BasePeopleNumDO.java

@ -0,0 +1,233 @@
package com.yihu.jw.entity.base.peopel_num;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.entity.UuidIdentityEntityWithOperator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
/**
* 基础人口基数信息实体
*
* @author Administrator on  2018年09月05日
*
*/
@Entity
@Table(name = "base_people_num")
public class BasePeopleNumDO extends UuidIdentityEntityWithOperator {
    /**
	 * saas化的id
	 */
	private String saasId;
    /**
	 * 所属省代码
	 */
	private String provinceCode;
    /**
	 * 所属市代码
	 */
	private String cityCode;
    /**
	 * 所属区代码
	 */
	private String districtCode;
    /**
	 * 所属具体名称
	 */
	private String name;
    /**
	 * 人口数
	 */
	private Integer num;
    /**
	 * 类别 0是省,1是市,2是区,3是机构
	 */
	private String type;
    /**
	 * 每年的人口数
	 */
	private Integer year;
    /**
	 * 高血压发病数
	 */
	private Integer gxyNum;
    /**
	 * 糖尿病发病数
	 */
	private Integer tnbNum;
    /**
	 * 65岁以上老年人口数
	 */
	private Integer sixFiveNum;
    /**
	 * 高血压任务数
	 */
	private Integer gxyTaskNum;
    /**
	 * 糖尿病任务数
	 */
	private Integer tnbTaskNum;
    /**
	 * 65岁以上老年人口任务数
	 */
	private Integer sixFiveTaskNum;
    /**
	 * 户籍人口任务数
	 */
	private Integer taskNum;
    /**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date createTime;
	@Column(name = "saas_id")
    public String getSaasId() {
        return saasId;
    }
    public void setSaasId(String saasId) {
        this.saasId = saasId;
    }
	@Column(name = "province_code")
    public String getProvinceCode() {
        return provinceCode;
    }
    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }
	@Column(name = "city_code")
    public String getCityCode() {
        return cityCode;
    }
    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }
	@Column(name = "district_code")
    public String getDistrictCode() {
        return districtCode;
    }
    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }
	@Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
	@Column(name = "num")
    public Integer getNum() {
        return num;
    }
    public void setNum(Integer num) {
        this.num = num;
    }
	@Column(name = "type")
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
	@Column(name = "year")
    public Integer getYear() {
        return year;
    }
    public void setYear(Integer year) {
        this.year = year;
    }
	@Column(name = "gxy_num")
    public Integer getGxyNum() {
        return gxyNum;
    }
    public void setGxyNum(Integer gxyNum) {
        this.gxyNum = gxyNum;
    }
	@Column(name = "tnb_num")
    public Integer getTnbNum() {
        return tnbNum;
    }
    public void setTnbNum(Integer tnbNum) {
        this.tnbNum = tnbNum;
    }
	@Column(name = "six_five_num")
    public Integer getSixFiveNum() {
        return sixFiveNum;
    }
    public void setSixFiveNum(Integer sixFiveNum) {
        this.sixFiveNum = sixFiveNum;
    }
	@Column(name = "gxy_task_num")
    public Integer getGxyTaskNum() {
        return gxyTaskNum;
    }
    public void setGxyTaskNum(Integer gxyTaskNum) {
        this.gxyTaskNum = gxyTaskNum;
    }
	@Column(name = "tnb_task_num")
    public Integer getTnbTaskNum() {
        return tnbTaskNum;
    }
    public void setTnbTaskNum(Integer tnbTaskNum) {
        this.tnbTaskNum = tnbTaskNum;
    }
	@Column(name = "six_five_task_num")
    public Integer getSixFiveTaskNum() {
        return sixFiveTaskNum;
    }
    public void setSixFiveTaskNum(Integer sixFiveTaskNum) {
        this.sixFiveTaskNum = sixFiveTaskNum;
    }
	@Column(name = "task_num")
    public Integer getTaskNum() {
        return taskNum;
    }
    public void setTaskNum(Integer taskNum) {
        this.taskNum = taskNum;
    }
	@Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}

+ 51 - 26
common/common-entity/src/main/java/com/yihu/jw/entity/base/team/BaseTeamDO.java

@ -1,76 +1,101 @@
package com.yihu.jw.entity.base.team;
import com.yihu.jw.entity.UuidIdentityEntityWithOperator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
/**
 * Created by Trick on 2018/8/31.
 */
* 团队信息实体
*
* @author litaohong on  2018年08月31日
*
*/
@Entity
@Table(name = "base_team")
public class BaseTeamDO extends UuidIdentityEntityWithOperator {
    private String saasid;//saas化',
    private String name;//团队名称',
    private String leaderId;//领导医生标识',
    private String teamNum;//团队人数',
    private String qrcode;//团队二维码',
    private String del;//作废标识,1正常,0作废',
    /**
	* 机构id
	*/
    private String orgId;
    @Column(name = "saasid")
    public String getSaasid() {
        return saasid;
    }
    /**
	* 团队名称
	*/
    private String name;
    /**
	* 领导医生标识
	*/
    private String leaderId;
    /**
	* 团队人数
	*/
    private String teamNum;
    public void setSaasid(String saasid) {
        this.saasid = saasid;
    /**
	* 团队二维码
	*/
    private String qrcode;
    /**
	* 作废标识,1正常,0作废
	*/
    private String del;
	@Column(name = "org_id")
    public String getOrgId() {
        return orgId;
    }
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    @Column(name = "name")
	@Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "leader_id")
	@Column(name = "leader_id")
    public String getLeaderId() {
        return leaderId;
    }
    public void setLeaderId(String leaderId) {
        this.leaderId = leaderId;
    }
    @Column(name = "team_num")
	@Column(name = "team_num")
    public String getTeamNum() {
        return teamNum;
    }
    public void setTeamNum(String teamNum) {
        this.teamNum = teamNum;
    }
    @Column(name = "qrcode")
	@Column(name = "qrcode")
    public String getQrcode() {
        return qrcode;
    }
    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }
    @Column(name = "del")
	@Column(name = "del")
    public String getDel() {
        return del;
    }
    public void setDel(String del) {
        this.del = del;
    }
}
}

+ 51 - 26
common/common-entity/src/main/java/com/yihu/jw/entity/base/team/baseTeamDO.java

@ -1,76 +1,101 @@
package com.yihu.jw.entity.base.team;
import com.yihu.jw.entity.UuidIdentityEntityWithOperator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
/**
 * Created by Trick on 2018/8/31.
 */
* 团队信息实体
*
* @author litaohong on  2018年08月31日
*
*/
@Entity
@Table(name = "base_team")
public class BaseTeamDO extends UuidIdentityEntityWithOperator {
    private String saasid;//saas化',
    private String name;//团队名称',
    private String leaderId;//领导医生标识',
    private String teamNum;//团队人数',
    private String qrcode;//团队二维码',
    private String del;//作废标识,1正常,0作废',
    /**
	* 机构id
	*/
    private String orgId;
    @Column(name = "saasid")
    public String getSaasid() {
        return saasid;
    }
    /**
	* 团队名称
	*/
    private String name;
    /**
	* 领导医生标识
	*/
    private String leaderId;
    /**
	* 团队人数
	*/
    private String teamNum;
    public void setSaasid(String saasid) {
        this.saasid = saasid;
    /**
	* 团队二维码
	*/
    private String qrcode;
    /**
	* 作废标识,1正常,0作废
	*/
    private String del;
	@Column(name = "org_id")
    public String getOrgId() {
        return orgId;
    }
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    @Column(name = "name")
	@Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "leader_id")
	@Column(name = "leader_id")
    public String getLeaderId() {
        return leaderId;
    }
    public void setLeaderId(String leaderId) {
        this.leaderId = leaderId;
    }
    @Column(name = "team_num")
	@Column(name = "team_num")
    public String getTeamNum() {
        return teamNum;
    }
    public void setTeamNum(String teamNum) {
        this.teamNum = teamNum;
    }
    @Column(name = "qrcode")
	@Column(name = "qrcode")
    public String getQrcode() {
        return qrcode;
    }
    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }
    @Column(name = "del")
	@Column(name = "del")
    public String getDel() {
        return del;
    }
    public void setDel(String del) {
        this.del = del;
    }
}
}

+ 12 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/specialist/HospitalServiceItemDO.java

@ -44,6 +44,9 @@ public class HospitalServiceItemDO extends UuidIdentityEntityWithOperator implem
    @Transient
    private Integer flag;//标识(1:社区,2、医院,3、社区、医院)
    @Column(name = "imediate")
    private Integer imediate;//(1:立即生效、0:未立即生效 )
    @Transient
    private SpecialistServiceItemDO specialistServiceItemDO;
@ -127,4 +130,13 @@ public class HospitalServiceItemDO extends UuidIdentityEntityWithOperator implem
    public void setFlag(Integer flag) {
        this.flag = flag;
    }
    @Column(name = "imediate")
    public Integer getImediate() {
        return imediate;
    }
    public void setImediate(Integer imediate) {
        this.imediate = imediate;
    }
}

+ 1 - 1
common/common-entity/src/main/java/com/yihu/jw/entity/specialist/SpecialistServiceItemDO.java

@ -74,7 +74,7 @@ public class SpecialistServiceItemDO extends UuidIdentityEntityWithOperator impl
    private Integer status; //删除状态
    @Transient
    public Integer flag;
    public Integer flag;//标识(1:社区,2、医院,3、社区、医院)
    @Column(name = "saas_id")

+ 14 - 0
common/common-request-mapping/src/main/java/com/yihu/jw/rm/base/BaseRequestMapping.java

@ -256,6 +256,13 @@ public class BaseRequestMapping {
        public static final String PREFIX  = "/basePatient";
    }
    /**
     * 基础人口基数
     */
    public static class BasePeopleNum extends Basic {
        public static final String PREFIX  = "/basePeopleNum";
    }
    /**
     * 省份字典
@ -303,6 +310,13 @@ public class BaseRequestMapping {
        public static final String PREFIX  = "/dictHealthProblem";
    }
    /**
     * 健康问题字典
     */
    public static class DictDisease extends Basic {
        public static final String PREFIX  = "/dictDisease";
    }
    /**
     * 医院科室字典

+ 2 - 0
common/common-request-mapping/src/main/java/com/yihu/jw/rm/specialist/SpecialistMapping.java

@ -100,5 +100,7 @@ public class SpecialistMapping {
        public static final String selectByCondition="/selectByCondition";
        public static final String deleteHospitalItem = "/deleteHospitalItem";
        public static final String selectByHospital1 = "/selectByHospital1";
        public static final String importData1 = "/importData1";
        public static final String importData2 = "/importData2";
    }
}

+ 20 - 11
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseCityVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,19 +23,31 @@ import java.util.Date;
public class BaseCityVO extends IntegerIdentityVO{
    /**
	省编码	*/
	 * 省编码
	 */
	@ApiModelProperty(value = "省编码", example = "模块1")
    private String province;
    /**
	城市编码	*/
	 * 城市编码
	 */
	@ApiModelProperty(value = "城市编码", example = "模块1")
    private String code;
    /**
	城市名称	*/
	 * 城市名称
	 */
	@ApiModelProperty(value = "城市名称", example = "模块1")
    private String name;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "省编码", example = "模块1")
    public String getProvince() {
        return province;
    }
@ -42,7 +55,6 @@ public class BaseCityVO extends IntegerIdentityVO{
        this.province = province;
    }
	@ApiModelProperty(value = "城市编码", example = "模块1")
    public String getCode() {
        return code;
    }
@ -50,7 +62,6 @@ public class BaseCityVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "城市名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -58,7 +69,6 @@ public class BaseCityVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -67,5 +77,4 @@ public class BaseCityVO extends IntegerIdentityVO{
    }
}

+ 103 - 0
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/area/BaseCommitteeVO.java

@ -0,0 +1,103 @@
package com.yihu.jw.restmodel.base.area;
import com.yihu.jw.restmodel.UuidIdentityVOWithOperator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 
 * 居委会vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "BaseCommitteeVO", description = "居委会")
public class BaseCommitteeVO extends UuidIdentityVOWithOperator {
    /**
	 * 省标识
	 */
	@ApiModelProperty(value = "省标识", example = "模块1")
    private String province;
    /**
	 * 市标识
	 */
	@ApiModelProperty(value = "市标识", example = "模块1")
    private String city;
    /**
	 * 区县标识
	 */
	@ApiModelProperty(value = "区县标识", example = "模块1")
    private String town;
    /**
	 * 街道标识
	 */
	@ApiModelProperty(value = "街道标识", example = "模块1")
    private String street;
    /**
	 * 居委会标识
	 */
	@ApiModelProperty(value = "居委会标识", example = "模块1")
    private String code;
    /**
	 * 居委会名称
	 */
	@ApiModelProperty(value = "居委会名称", example = "模块1")
    private String name;
    public String getProvince() {
        return province;
    }
    public void setProvince(String province) {
        this.province = province;
    }
    public String getCity() {
        return city;
    }
    public void setCity(String city) {
        this.city = city;
    }
    public String getTown() {
        return town;
    }
    public void setTown(String town) {
        this.town = town;
    }
    public String getStreet() {
        return street;
    }
    public void setStreet(String street) {
        this.street = street;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}

+ 18 - 11
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseProvinceVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -8,30 +9,39 @@ import java.util.Date;
/**
 * 
 * 省字典vo
 * 省份字典vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "BaseProvinceVO", description = "省字典")
@ApiModel(value = "BaseProvinceVO", description = "省份字典")
public class BaseProvinceVO extends IntegerIdentityVO{
    /**
	省份编码	*/
	 * 省份编码
	 */
	@ApiModelProperty(value = "省份编码", example = "模块1")
    private String code;
    /**
	省份名称	*/
	 * 省份名称
	 */
	@ApiModelProperty(value = "省份名称", example = "模块1")
    private String name;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "省份编码", example = "模块1")
    public String getCode() {
        return code;
    }
@ -39,7 +49,6 @@ public class BaseProvinceVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "省份名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -47,7 +56,6 @@ public class BaseProvinceVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -56,5 +64,4 @@ public class BaseProvinceVO extends IntegerIdentityVO{
    }
}

+ 28 - 15
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseStreetVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,25 +23,43 @@ import java.util.Date;
public class BaseStreetVO extends IntegerIdentityVO{
    /**
	省标识	*/
	 * 省标识
	 */
	@ApiModelProperty(value = "省标识", example = "模块1")
    private String province;
    /**
	市标识	*/
	 * 市标识
	 */
	@ApiModelProperty(value = "市标识", example = "模块1")
    private String city;
    /**
	区县标识	*/
	 * 区县标识
	 */
	@ApiModelProperty(value = "区县标识", example = "模块1")
    private String town;
    /**
	街道标识	*/
	 * 街道标识
	 */
	@ApiModelProperty(value = "街道标识", example = "模块1")
    private String code;
    /**
	街道名称	*/
	 * 街道名称
	 */
	@ApiModelProperty(value = "街道名称", example = "模块1")
    private String name;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "省标识", example = "模块1")
    public String getProvince() {
        return province;
    }
@ -48,7 +67,6 @@ public class BaseStreetVO extends IntegerIdentityVO{
        this.province = province;
    }
	@ApiModelProperty(value = "市标识", example = "模块1")
    public String getCity() {
        return city;
    }
@ -56,7 +74,6 @@ public class BaseStreetVO extends IntegerIdentityVO{
        this.city = city;
    }
	@ApiModelProperty(value = "区县标识", example = "模块1")
    public String getTown() {
        return town;
    }
@ -64,7 +81,6 @@ public class BaseStreetVO extends IntegerIdentityVO{
        this.town = town;
    }
	@ApiModelProperty(value = "街道标识", example = "模块1")
    public String getCode() {
        return code;
    }
@ -72,7 +88,6 @@ public class BaseStreetVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "街道名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -80,7 +95,6 @@ public class BaseStreetVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -89,5 +103,4 @@ public class BaseStreetVO extends IntegerIdentityVO{
    }
}

+ 24 - 13
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseTownVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.area;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,22 +23,37 @@ import java.util.Date;
public class BaseTownVO extends IntegerIdentityVO{
    /**
	省编码	*/
	 * 省编码
	 */
	@ApiModelProperty(value = "省编码", example = "模块1")
    private String province;
    /**
	城市编码	*/
	 * 城市编码
	 */
	@ApiModelProperty(value = "城市编码", example = "模块1")
    private String city;
    /**
	区县编码	*/
	 * 区县编码
	 */
	@ApiModelProperty(value = "区县编码", example = "模块1")
    private String code;
    /**
	区县名称	*/
	 * 区县名称
	 */
	@ApiModelProperty(value = "区县名称", example = "模块1")
    private String name;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "省编码", example = "模块1")
    public String getProvince() {
        return province;
    }
@ -45,7 +61,6 @@ public class BaseTownVO extends IntegerIdentityVO{
        this.province = province;
    }
	@ApiModelProperty(value = "城市编码", example = "模块1")
    public String getCity() {
        return city;
    }
@ -53,7 +68,6 @@ public class BaseTownVO extends IntegerIdentityVO{
        this.city = city;
    }
	@ApiModelProperty(value = "区县编码", example = "模块1")
    public String getCode() {
        return code;
    }
@ -61,7 +75,6 @@ public class BaseTownVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "区县名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -69,7 +82,6 @@ public class BaseTownVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -78,5 +90,4 @@ public class BaseTownVO extends IntegerIdentityVO{
    }
}

+ 80 - 0
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictDiseaseVO.java

@ -0,0 +1,80 @@
package com.yihu.jw.restmodel.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
/**
 * 
 * 病种字典vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "DictDiseaseVO", description = "病种字典")
public class DictDiseaseVO extends IntegerIdentityVO{
    /**
	 * saas配置id,null标识公共字典
	 */
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    private String saasId;
    /**
	 * 疾病编码
	 */
	@ApiModelProperty(value = "疾病编码", example = "模块1")
    private String code;
    /**
	 * 疾病名称
	 */
	@ApiModelProperty(value = "疾病名称", example = "模块1")
    private String name;
    /**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
    public String getSaasId() {
        return saasId;
    }
    public void setSaasId(String saasId) {
        this.saasId = saasId;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}

+ 23 - 12
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictHealthProblemVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,22 +23,37 @@ import java.util.Date;
public class DictHealthProblemVO extends IntegerIdentityVO{
    /**
	saas配置id,null标识公共字典	*/
	 * saas配置id,null标识公共字典
	 */
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    private String saasId;
    /**
	字典编码	*/
	 * 字典编码
	 */
	@ApiModelProperty(value = "字典编码", example = "模块1")
    private String code;
    /**
	字典名称	*/
	 * 字典名称
	 */
	@ApiModelProperty(value = "字典名称", example = "模块1")
    private String name;
    /**
	描述	*/
	 * 描述
	 */
	@ApiModelProperty(value = "描述", example = "模块1")
    private String description;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    public String getSaasId() {
        return saasId;
    }
@ -45,7 +61,6 @@ public class DictHealthProblemVO extends IntegerIdentityVO{
        this.saasId = saasId;
    }
	@ApiModelProperty(value = "字典编码", example = "模块1")
    public String getCode() {
        return code;
    }
@ -53,7 +68,6 @@ public class DictHealthProblemVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "字典名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -61,7 +75,6 @@ public class DictHealthProblemVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "描述", example = "模块1")
    public String getDescription() {
        return description;
    }
@ -69,7 +82,6 @@ public class DictHealthProblemVO extends IntegerIdentityVO{
        this.description = description;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -78,5 +90,4 @@ public class DictHealthProblemVO extends IntegerIdentityVO{
    }
}

+ 19 - 10
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictHospitalDeptVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,19 +23,31 @@ import java.util.Date;
public class DictHospitalDeptVO extends IntegerIdentityVO{
    /**
	saas配置id,null标识公共字典	*/
	 * saas配置id,null标识公共字典
	 */
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    private String saasId;
    /**
	科室标识	*/
	 * 科室标识
	 */
	@ApiModelProperty(value = "科室标识", example = "模块1")
    private String code;
    /**
	科室名称	*/
	 * 科室名称
	 */
	@ApiModelProperty(value = "科室名称", example = "模块1")
    private String name;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    public String getSaasId() {
        return saasId;
    }
@ -42,7 +55,6 @@ public class DictHospitalDeptVO extends IntegerIdentityVO{
        this.saasId = saasId;
    }
	@ApiModelProperty(value = "科室标识", example = "模块1")
    public String getCode() {
        return code;
    }
@ -50,7 +62,6 @@ public class DictHospitalDeptVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "科室名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -58,7 +69,6 @@ public class DictHospitalDeptVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -67,5 +77,4 @@ public class DictHospitalDeptVO extends IntegerIdentityVO{
    }
}

+ 35 - 18
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictIcd10VO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,31 +23,55 @@ import java.util.Date;
public class DictIcd10VO extends IntegerIdentityVO{
    /**
	saas配置id,null标识公共字典	*/
	 * saas配置id,null标识公共字典
	 */
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    private String saasId;
    /**
	icd10字典编码	*/
	 * icd10字典编码
	 */
	@ApiModelProperty(value = "icd10字典编码", example = "模块1")
    private String code;
    /**
	icd10字典名称	*/
	 * icd10字典名称
	 */
	@ApiModelProperty(value = "icd10字典名称", example = "模块1")
    private String name;
    /**
	字典名称拼音首字母	*/
	 * 字典名称拼音首字母
	 */
	@ApiModelProperty(value = "字典名称拼音首字母", example = "模块1")
    private String phoneticCode;
    /**
	是否慢病	*/
	 * 是否慢病
	 */
	@ApiModelProperty(value = "是否慢病", example = "模块1")
    private String chronicFlag;
    /**
	是否传染病	*/
	 * 是否传染病
	 */
	@ApiModelProperty(value = "是否传染病", example = "模块1")
    private String infectiousFlag;
    /**
	描述	*/
	 * 描述
	 */
	@ApiModelProperty(value = "描述", example = "模块1")
    private String description;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    public String getSaasId() {
        return saasId;
    }
@ -54,7 +79,6 @@ public class DictIcd10VO extends IntegerIdentityVO{
        this.saasId = saasId;
    }
	@ApiModelProperty(value = "icd10字典编码", example = "模块1")
    public String getCode() {
        return code;
    }
@ -62,7 +86,6 @@ public class DictIcd10VO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "icd10字典名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -70,7 +93,6 @@ public class DictIcd10VO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "字典名称拼音首字母", example = "模块1")
    public String getPhoneticCode() {
        return phoneticCode;
    }
@ -78,7 +100,6 @@ public class DictIcd10VO extends IntegerIdentityVO{
        this.phoneticCode = phoneticCode;
    }
	@ApiModelProperty(value = "是否慢病", example = "模块1")
    public String getChronicFlag() {
        return chronicFlag;
    }
@ -86,7 +107,6 @@ public class DictIcd10VO extends IntegerIdentityVO{
        this.chronicFlag = chronicFlag;
    }
	@ApiModelProperty(value = "是否传染病", example = "模块1")
    public String getInfectiousFlag() {
        return infectiousFlag;
    }
@ -94,7 +114,6 @@ public class DictIcd10VO extends IntegerIdentityVO{
        this.infectiousFlag = infectiousFlag;
    }
	@ApiModelProperty(value = "描述", example = "模块1")
    public String getDescription() {
        return description;
    }
@ -102,7 +121,6 @@ public class DictIcd10VO extends IntegerIdentityVO{
        this.description = description;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -111,5 +129,4 @@ public class DictIcd10VO extends IntegerIdentityVO{
    }
}

+ 19 - 10
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictJobTitleVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,19 +23,31 @@ import java.util.Date;
public class DictJobTitleVO extends IntegerIdentityVO{
    /**
	saas配置id,null标识公共字典	*/
	 * saas配置id,null标识公共字典
	 */
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    private String saasId;
    /**
	职称标识	*/
	 * 职称标识
	 */
	@ApiModelProperty(value = "职称标识", example = "模块1")
    private String code;
    /**
	职称名	*/
	 * 职称名
	 */
	@ApiModelProperty(value = "职称名", example = "模块1")
    private String name;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    public String getSaasId() {
        return saasId;
    }
@ -42,7 +55,6 @@ public class DictJobTitleVO extends IntegerIdentityVO{
        this.saasId = saasId;
    }
	@ApiModelProperty(value = "职称标识", example = "模块1")
    public String getCode() {
        return code;
    }
@ -50,7 +62,6 @@ public class DictJobTitleVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "职称名", example = "模块1")
    public String getName() {
        return name;
    }
@ -58,7 +69,6 @@ public class DictJobTitleVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -67,5 +77,4 @@ public class DictJobTitleVO extends IntegerIdentityVO{
    }
}

+ 23 - 12
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/DictMedicineVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -13,7 +14,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,22 +23,37 @@ import java.util.Date;
public class DictMedicineVO extends IntegerIdentityVO{
    /**
	saas配置id,null标识公共字典	*/
	 * saas配置id,null标识公共字典
	 */
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    private String saasId;
    /**
	药品编码	*/
	 * 药品编码
	 */
	@ApiModelProperty(value = "药品编码", example = "模块1")
    private String code;
    /**
	药品名称	*/
	 * 药品名称
	 */
	@ApiModelProperty(value = "药品名称", example = "模块1")
    private String name;
    /**
	药品类型:1健康记录	*/
	 * 药品类型:1健康记录
	 */
	@ApiModelProperty(value = "药品类型:1健康记录", example = "模块1")
    private String type;
    /**
	创建时间	*/
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "saas配置id,null标识公共字典", example = "模块1")
    public String getSaasId() {
        return saasId;
    }
@ -45,7 +61,6 @@ public class DictMedicineVO extends IntegerIdentityVO{
        this.saasId = saasId;
    }
	@ApiModelProperty(value = "药品编码", example = "模块1")
    public String getCode() {
        return code;
    }
@ -53,7 +68,6 @@ public class DictMedicineVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "药品名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -61,7 +75,6 @@ public class DictMedicineVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "药品类型:1健康记录", example = "模块1")
    public String getType() {
        return type;
    }
@ -69,7 +82,6 @@ public class DictMedicineVO extends IntegerIdentityVO{
        this.type = type;
    }
	@ApiModelProperty(value = "创建时间", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -78,5 +90,4 @@ public class DictMedicineVO extends IntegerIdentityVO{
    }
}

+ 38 - 21
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseDoctorHospitalVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.doctor;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -8,45 +9,69 @@ import java.util.Date;
/**
 * 
 * 医生职业信息vo
 * 医生执业信息vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "BaseDoctorHospitalVO", description = "医生职业信息")
@ApiModel(value = "BaseDoctorHospitalVO", description = "医生执业信息")
public class BaseDoctorHospitalVO extends IntegerIdentityVO{
    /**
	医院标识	*/
	 * 医院标识
	 */
	@ApiModelProperty(value = "医院标识", example = "模块1")
    private String hospCode;
    /**
	医院名称	*/
	 * 医院名称
	 */
	@ApiModelProperty(value = "医院名称", example = "模块1")
    private String hospName;
    /**
	医生角色标识	*/
	 * 医生角色标识
	 */
	@ApiModelProperty(value = "医生角色标识", example = "模块1")
    private String roleCode;
    /**
	医院角色名称	*/
	 * 医院角色名称
	 */
	@ApiModelProperty(value = "医院角色名称", example = "模块1")
    private String roleName;
    /**
	职称代码	*/
	 * 职称代码
	 */
	@ApiModelProperty(value = "职称代码", example = "模块1")
    private String jobTitleCode;
    /**
	职称名称	*/
	 * 职称名称
	 */
	@ApiModelProperty(value = "职称名称", example = "模块1")
    private String jobTitleName;
    /**
	作废标识,1正常,0作废	*/
	 * 作废标识,1正常,0作废
	 */
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    private String del;
    /**
		*/
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "", example = "模块1")
    private Date createTime;
	@ApiModelProperty(value = "医院标识", example = "模块1")
    public String getHospCode() {
        return hospCode;
    }
@ -54,7 +79,6 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
        this.hospCode = hospCode;
    }
	@ApiModelProperty(value = "医院名称", example = "模块1")
    public String getHospName() {
        return hospName;
    }
@ -62,7 +86,6 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
        this.hospName = hospName;
    }
	@ApiModelProperty(value = "医生角色标识", example = "模块1")
    public String getRoleCode() {
        return roleCode;
    }
@ -70,7 +93,6 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
        this.roleCode = roleCode;
    }
	@ApiModelProperty(value = "医院角色名称", example = "模块1")
    public String getRoleName() {
        return roleName;
    }
@ -78,7 +100,6 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
        this.roleName = roleName;
    }
	@ApiModelProperty(value = "职称代码", example = "模块1")
    public String getJobTitleCode() {
        return jobTitleCode;
    }
@ -86,7 +107,6 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
        this.jobTitleCode = jobTitleCode;
    }
	@ApiModelProperty(value = "职称名称", example = "模块1")
    public String getJobTitleName() {
        return jobTitleName;
    }
@ -94,7 +114,6 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
        this.jobTitleName = jobTitleName;
    }
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    public String getDel() {
        return del;
    }
@ -102,7 +121,6 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
        this.del = del;
    }
	@ApiModelProperty(value = "", example = "模块1")
    public Date getCreateTime() {
        return createTime;
    }
@ -111,5 +129,4 @@ public class BaseDoctorHospitalVO extends IntegerIdentityVO{
    }
}

+ 14 - 9
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseDoctorRoleDictVO.java

@ -1,4 +1,4 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.doctor;
import com.yihu.jw.restmodel.IntegerIdentityVO;
import io.swagger.annotations.ApiModel;
@ -13,7 +13,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,16 +22,24 @@ import java.util.Date;
public class BaseDoctorRoleDictVO extends IntegerIdentityVO{
    /**
	角色code	*/
	 * 角色code
	 */
	@ApiModelProperty(value = "角色code", example = "模块1")
    private String code;
    /**
	角色名称:全科医生、专科医生、健康管理师、管理员等	*/
	 * 角色名称:全科医生、专科医生、健康管理师、管理员等
	 */
	@ApiModelProperty(value = "角色名称:全科医生、专科医生、健康管理师、管理员等", example = "模块1")
    private String name;
    /**
	作废标识,1正常,0作废	*/
	 * 作废标识,1正常,0作废
	 */
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    private String del;
	@ApiModelProperty(value = "角色code", example = "模块1")
    public String getCode() {
        return code;
    }
@ -39,7 +47,6 @@ public class BaseDoctorRoleDictVO extends IntegerIdentityVO{
        this.code = code;
    }
	@ApiModelProperty(value = "角色名称:全科医生、专科医生、健康管理师、管理员等", example = "模块1")
    public String getName() {
        return name;
    }
@ -47,7 +54,6 @@ public class BaseDoctorRoleDictVO extends IntegerIdentityVO{
        this.name = name;
    }
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    public String getDel() {
        return del;
    }
@ -56,5 +62,4 @@ public class BaseDoctorRoleDictVO extends IntegerIdentityVO{
    }
}

+ 119 - 61
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseDoctorVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.doctor;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.UuidIdentityVOWithOperator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -8,105 +9,190 @@ import java.util.Date;
/**
 * 
 * 医生基础信息vo
 * 医生基本信息vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "BaseDoctorVO", description = "医生基础信息")
@ApiModel(value = "BaseDoctorVO", description = "医生基本信息")
public class BaseDoctorVO extends UuidIdentityVOWithOperator {
    /**
	机构id	*/
	 * 机构id
	 */
	@ApiModelProperty(value = "机构id", example = "模块1")
    private String orgId;
    /**
	密码	*/
	 * 密码
	 */
	@ApiModelProperty(value = "密码", example = "模块1")
    private String password;
    /**
		*/
	 * 
	 */
	@ApiModelProperty(value = "", example = "模块1")
    private String salt;
    /**
	姓名	*/
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名", example = "模块1")
    private String name;
    /**
	性别(1男,2女) 用国家标准字典	*/
	 * 性别(1男,2女) 用国家标准字典
	 */
	@ApiModelProperty(value = "性别(1男,2女) 用国家标准字典", example = "模块1")
    private String sex;
    /**
	医生专长	*/
	 * 医生专长
	 */
	@ApiModelProperty(value = "医生专长", example = "模块1")
    private String expertise;
    /**
	医生介绍	*/
	 * 医生介绍
	 */
	@ApiModelProperty(value = "医生介绍", example = "模块1")
    private String introduce;
    /**
	 身份证	*/
	 *  身份证
	 */
	@ApiModelProperty(value = " 身份证", example = "模块1")
    private String idcard;
    /**
	生日	*/
	 * 生日
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "生日", example = "模块1")
    private Date birthday;
    /**
	头像http地址	*/
	 * 头像http地址
	 */
	@ApiModelProperty(value = "头像http地址", example = "模块1")
    private String photo;
    /**
	手机号	*/
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号", example = "模块1")
    private String mobile;
    /**
	医生二维码	*/
	 * 医生二维码
	 */
	@ApiModelProperty(value = "医生二维码", example = "模块1")
    private String qrcode;
    /**
	省代码	*/
	 * 省代码
	 */
	@ApiModelProperty(value = "省代码", example = "模块1")
    private String provinceCode;
    /**
	省名称	*/
	 * 省名称
	 */
	@ApiModelProperty(value = "省名称", example = "模块1")
    private String provinceName;
    /**
	市代码	*/
	 * 市代码
	 */
	@ApiModelProperty(value = "市代码", example = "模块1")
    private String cityCode;
    /**
	市名称	*/
	 * 市名称
	 */
	@ApiModelProperty(value = "市名称", example = "模块1")
    private String cityName;
    /**
	区县代码	*/
	 * 区县代码
	 */
	@ApiModelProperty(value = "区县代码", example = "模块1")
    private String townCode;
    /**
	区县名称	*/
	 * 区县名称
	 */
	@ApiModelProperty(value = "区县名称", example = "模块1")
    private String townName;
    /**
	街道代码	*/
	 * 街道代码
	 */
	@ApiModelProperty(value = "街道代码", example = "模块1")
    private String streetCode;
    /**
	街道名称	*/
	 * 街道名称
	 */
	@ApiModelProperty(value = "街道名称", example = "模块1")
    private String streetName;
    /**
	资格是否认证通过,1是,0否	*/
	 * 资格是否认证通过,1是,0否
	 */
	@ApiModelProperty(value = "资格是否认证通过,1是,0否", example = "模块1")
    private String iscertified;
    /**
	是否是名医,1是,0否	*/
	 * 是否是名医,1是,0否
	 */
	@ApiModelProperty(value = "是否是名医,1是,0否", example = "模块1")
    private String isFamous;
    /**
	是否提示设置密码  1 提示过 0未提示	*/
	 * 是否提示设置密码  1 提示过 0未提示
	 */
	@ApiModelProperty(value = "是否提示设置密码  1 提示过 0未提示", example = "模块1")
    private String isPasswordPrompt;
    /**
	名称拼音首字母	*/
	 * 名称拼音首字母
	 */
	@ApiModelProperty(value = "名称拼音首字母", example = "模块1")
    private String spell;
    /**
	CA证书过期时间	*/
	 * CA证书过期时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "CA证书过期时间", example = "模块1")
    private Date certifiedOvertime;
    /**
	CA证书编号	*/
	 * CA证书编号
	 */
	@ApiModelProperty(value = "CA证书编号", example = "模块1")
    private String certificateNum;
    /**
		*/
	 * 用户微信openid
	 */
	@ApiModelProperty(value = "用户微信openid", example = "模块1")
    private String openid;
    /**
	作废标识,1正常,0作废	*/
	 * 作废标识,1正常,0作废
	 */
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    private String del;
	@ApiModelProperty(value = "机构id", example = "模块1")
    public String getOrgId() {
        return orgId;
    }
@ -114,7 +200,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.orgId = orgId;
    }
	@ApiModelProperty(value = "密码", example = "模块1")
    public String getPassword() {
        return password;
    }
@ -122,7 +207,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.password = password;
    }
	@ApiModelProperty(value = "", example = "模块1")
    public String getSalt() {
        return salt;
    }
@ -130,7 +214,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.salt = salt;
    }
	@ApiModelProperty(value = "姓名", example = "模块1")
    public String getName() {
        return name;
    }
@ -138,7 +221,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.name = name;
    }
	@ApiModelProperty(value = "性别(1男,2女) 用国家标准字典", example = "模块1")
    public String getSex() {
        return sex;
    }
@ -146,7 +228,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.sex = sex;
    }
	@ApiModelProperty(value = "医生专长", example = "模块1")
    public String getExpertise() {
        return expertise;
    }
@ -154,7 +235,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.expertise = expertise;
    }
	@ApiModelProperty(value = "医生介绍", example = "模块1")
    public String getIntroduce() {
        return introduce;
    }
@ -162,7 +242,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.introduce = introduce;
    }
	@ApiModelProperty(value = " 身份证", example = "模块1")
    public String getIdcard() {
        return idcard;
    }
@ -170,7 +249,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.idcard = idcard;
    }
	@ApiModelProperty(value = "生日", example = "模块1")
    public Date getBirthday() {
        return birthday;
    }
@ -178,7 +256,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.birthday = birthday;
    }
	@ApiModelProperty(value = "头像http地址", example = "模块1")
    public String getPhoto() {
        return photo;
    }
@ -186,7 +263,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.photo = photo;
    }
	@ApiModelProperty(value = "手机号", example = "模块1")
    public String getMobile() {
        return mobile;
    }
@ -194,7 +270,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.mobile = mobile;
    }
	@ApiModelProperty(value = "医生二维码", example = "模块1")
    public String getQrcode() {
        return qrcode;
    }
@ -202,7 +277,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.qrcode = qrcode;
    }
	@ApiModelProperty(value = "省代码", example = "模块1")
    public String getProvinceCode() {
        return provinceCode;
    }
@ -210,7 +284,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.provinceCode = provinceCode;
    }
	@ApiModelProperty(value = "省名称", example = "模块1")
    public String getProvinceName() {
        return provinceName;
    }
@ -218,7 +291,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.provinceName = provinceName;
    }
	@ApiModelProperty(value = "市代码", example = "模块1")
    public String getCityCode() {
        return cityCode;
    }
@ -226,7 +298,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.cityCode = cityCode;
    }
	@ApiModelProperty(value = "市名称", example = "模块1")
    public String getCityName() {
        return cityName;
    }
@ -234,7 +305,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.cityName = cityName;
    }
	@ApiModelProperty(value = "区县代码", example = "模块1")
    public String getTownCode() {
        return townCode;
    }
@ -242,7 +312,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.townCode = townCode;
    }
	@ApiModelProperty(value = "区县名称", example = "模块1")
    public String getTownName() {
        return townName;
    }
@ -250,7 +319,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.townName = townName;
    }
	@ApiModelProperty(value = "街道代码", example = "模块1")
    public String getStreetCode() {
        return streetCode;
    }
@ -258,7 +326,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.streetCode = streetCode;
    }
	@ApiModelProperty(value = "街道名称", example = "模块1")
    public String getStreetName() {
        return streetName;
    }
@ -266,7 +333,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.streetName = streetName;
    }
	@ApiModelProperty(value = "资格是否认证通过,1是,0否", example = "模块1")
    public String getIscertified() {
        return iscertified;
    }
@ -274,7 +340,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.iscertified = iscertified;
    }
	@ApiModelProperty(value = "是否是名医,1是,0否", example = "模块1")
    public String getIsFamous() {
        return isFamous;
    }
@ -282,7 +347,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.isFamous = isFamous;
    }
	@ApiModelProperty(value = "是否提示设置密码  1 提示过 0未提示", example = "模块1")
    public String getIsPasswordPrompt() {
        return isPasswordPrompt;
    }
@ -290,7 +354,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.isPasswordPrompt = isPasswordPrompt;
    }
	@ApiModelProperty(value = "名称拼音首字母", example = "模块1")
    public String getSpell() {
        return spell;
    }
@ -298,7 +361,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.spell = spell;
    }
	@ApiModelProperty(value = "CA证书过期时间", example = "模块1")
    public Date getCertifiedOvertime() {
        return certifiedOvertime;
    }
@ -306,7 +368,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.certifiedOvertime = certifiedOvertime;
    }
	@ApiModelProperty(value = "CA证书编号", example = "模块1")
    public String getCertificateNum() {
        return certificateNum;
    }
@ -314,7 +375,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.certificateNum = certificateNum;
    }
	@ApiModelProperty(value = "", example = "模块1")
    public String getOpenid() {
        return openid;
    }
@ -322,7 +382,6 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
        this.openid = openid;
    }
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    public String getDel() {
        return del;
    }
@ -331,5 +390,4 @@ public class BaseDoctorVO extends UuidIdentityVOWithOperator {
    }
}

+ 80 - 43
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseOrgVO.java

@ -1,4 +1,4 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.org;
import com.yihu.jw.restmodel.UuidIdentityVOWithOperator;
import io.swagger.annotations.ApiModel;
@ -8,78 +8,134 @@ import java.util.Date;
/**
 * 
 * 机构信息vo
 * 机构信息(医院)vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "BaseOrgVO", description = "机构信息")
@ApiModel(value = "BaseOrgVO", description = "机构信息(医院)")
public class BaseOrgVO extends UuidIdentityVOWithOperator {
    /**
	saas化配置	*/
	 * saas化配置
	 */
	@ApiModelProperty(value = "saas化配置", example = "模块1")
    private String saasid;
    /**
	省份标识	*/
	 * 省份标识
	 */
	@ApiModelProperty(value = "省份标识", example = "模块1")
    private String provinceCode;
    /**
	城市标识	*/
	 * 城市标识
	 */
	@ApiModelProperty(value = "城市标识", example = "模块1")
    private String cityCode;
    /**
	区县标识	*/
	 * 区县标识
	 */
	@ApiModelProperty(value = "区县标识", example = "模块1")
    private String townCode;
    /**
	机构名称	*/
	 * 机构名称
	 */
	@ApiModelProperty(value = "机构名称", example = "模块1")
    private String name;
    /**
	机构别名	*/
	 * 机构别名
	 */
	@ApiModelProperty(value = "机构别名", example = "模块1")
    private String alias;
    /**
	机构名称拼音首字母	*/
	 * 机构名称拼音首字母
	 */
	@ApiModelProperty(value = "机构名称拼音首字母", example = "模块1")
    private String spell;
    /**
	机构类型: 1.  医疗机构2.  企事业单位3.  政府机关4.  社会团体 5.药店 0.  部门 6.单位或者独立子公司7.基层机构 8.专业公共机构	*/
	 * 机构类型: 1.  医疗机构2.  企事业单位3.  政府机关4.  社会团体 5.药店 0.  部门 6.单位或者独立子公司7.基层机构 8.专业公共机构
	 */
	@ApiModelProperty(value = "机构类型: 1.  医疗机构2.  企事业单位3.  政府机关4.  社会团体 5.药店 0.  部门 6.单位或者独立子公司7.基层机构 8.专业公共机构", example = "模块1")
    private String type;
    /**
	机构简介	*/
	 * 机构简介
	 */
	@ApiModelProperty(value = "机构简介", example = "模块1")
    private String brief;
    /**
	机构详细地址	*/
	 * 机构详细地址
	 */
	@ApiModelProperty(value = "机构详细地址", example = "模块1")
    private String address;
    /**
	机构图片	*/
	 * 机构图片
	 */
	@ApiModelProperty(value = "机构图片", example = "模块1")
    private String photo;
    /**
	经度	*/
	 * 经度
	 */
	@ApiModelProperty(value = "经度", example = "模块1")
    private String longitude;
    /**
	纬度	*/
	 * 纬度
	 */
	@ApiModelProperty(value = "纬度", example = "模块1")
    private String latitude;
    /**
	法人	*/
	 * 法人
	 */
	@ApiModelProperty(value = "法人", example = "模块1")
    private String legalperson;
    /**
	机构管理员	*/
	 * 机构管理员
	 */
	@ApiModelProperty(value = "机构管理员", example = "模块1")
    private String orgAdmin;
    /**
	机构网址	*/
	 * 机构网址
	 */
	@ApiModelProperty(value = "机构网址", example = "模块1")
    private String orgUrl;
    /**
	机构简介	*/
	 * 机构简介
	 */
	@ApiModelProperty(value = "机构简介", example = "模块1")
    private String intro;
    /**
	机构二维码	*/
	 * 机构二维码
	 */
	@ApiModelProperty(value = "机构二维码", example = "模块1")
    private String qrcode;
    /**
	作废标识,1正常,0作废	*/
	 * 作废标识,1正常,0作废
	 */
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    private String del;
	@ApiModelProperty(value = "saas化配置", example = "模块1")
    public String getSaasid() {
        return saasid;
    }
@ -87,7 +143,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.saasid = saasid;
    }
	@ApiModelProperty(value = "省份标识", example = "模块1")
    public String getProvinceCode() {
        return provinceCode;
    }
@ -95,7 +150,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.provinceCode = provinceCode;
    }
	@ApiModelProperty(value = "城市标识", example = "模块1")
    public String getCityCode() {
        return cityCode;
    }
@ -103,7 +157,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.cityCode = cityCode;
    }
	@ApiModelProperty(value = "区县标识", example = "模块1")
    public String getTownCode() {
        return townCode;
    }
@ -111,7 +164,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.townCode = townCode;
    }
	@ApiModelProperty(value = "机构名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -119,7 +171,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.name = name;
    }
	@ApiModelProperty(value = "机构别名", example = "模块1")
    public String getAlias() {
        return alias;
    }
@ -127,7 +178,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.alias = alias;
    }
	@ApiModelProperty(value = "机构名称拼音首字母", example = "模块1")
    public String getSpell() {
        return spell;
    }
@ -135,7 +185,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.spell = spell;
    }
	@ApiModelProperty(value = "机构类型: 1.  医疗机构2.  企事业单位3.  政府机关4.  社会团体 5.药店 0.  部门 6.单位或者独立子公司7.基层机构 8.专业公共机构", example = "模块1")
    public String getType() {
        return type;
    }
@ -143,7 +192,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.type = type;
    }
	@ApiModelProperty(value = "机构简介", example = "模块1")
    public String getBrief() {
        return brief;
    }
@ -151,7 +199,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.brief = brief;
    }
	@ApiModelProperty(value = "机构详细地址", example = "模块1")
    public String getAddress() {
        return address;
    }
@ -159,7 +206,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.address = address;
    }
	@ApiModelProperty(value = "机构图片", example = "模块1")
    public String getPhoto() {
        return photo;
    }
@ -167,7 +213,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.photo = photo;
    }
	@ApiModelProperty(value = "经度", example = "模块1")
    public String getLongitude() {
        return longitude;
    }
@ -175,7 +220,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.longitude = longitude;
    }
	@ApiModelProperty(value = "纬度", example = "模块1")
    public String getLatitude() {
        return latitude;
    }
@ -183,7 +227,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.latitude = latitude;
    }
	@ApiModelProperty(value = "法人", example = "模块1")
    public String getLegalperson() {
        return legalperson;
    }
@ -191,7 +234,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.legalperson = legalperson;
    }
	@ApiModelProperty(value = "机构管理员", example = "模块1")
    public String getOrgAdmin() {
        return orgAdmin;
    }
@ -199,7 +241,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.orgAdmin = orgAdmin;
    }
	@ApiModelProperty(value = "机构网址", example = "模块1")
    public String getOrgUrl() {
        return orgUrl;
    }
@ -207,7 +248,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.orgUrl = orgUrl;
    }
	@ApiModelProperty(value = "机构简介", example = "模块1")
    public String getIntro() {
        return intro;
    }
@ -215,7 +255,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.intro = intro;
    }
	@ApiModelProperty(value = "机构二维码", example = "模块1")
    public String getQrcode() {
        return qrcode;
    }
@ -223,7 +262,6 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
        this.qrcode = qrcode;
    }
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    public String getDel() {
        return del;
    }
@ -232,5 +270,4 @@ public class BaseOrgVO extends UuidIdentityVOWithOperator {
    }
}

+ 151 - 78
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BasePatientVO.java

@ -1,5 +1,6 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.patient;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.UuidIdentityVOWithOperator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ -8,126 +9,233 @@ import java.util.Date;
/**
 * 
 * 居民信息vo
 * 居民信息(居民就是患者)vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "BasePatientVO", description = "居民信息")
@ApiModel(value = "BasePatientVO", description = "居民信息(居民就是患者)")
public class BasePatientVO extends UuidIdentityVOWithOperator {
    /**
	saas配置id	*/
	 * saas配置id
	 */
	@ApiModelProperty(value = "saas配置id", example = "模块1")
    private String saasId;
    /**
	身份证号	*/
	 * 身份证号
	 */
	@ApiModelProperty(value = "身份证号", example = "模块1")
    private String idcard;
    /**
	登录密码	*/
	 * 登录密码
	 */
	@ApiModelProperty(value = "登录密码", example = "模块1")
    private String password;
    /**
		*/
	 * 
	 */
	@ApiModelProperty(value = "", example = "模块1")
    private String salt;
    /**
	姓名	*/
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名", example = "模块1")
    private String name;
    /**
	生日	*/
	 * 生日
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "生日", example = "模块1")
    private Date birthday;
    /**
	性别,1男,2女	*/
    private String sex;
	 * 性别,1男,2女
	 */
	@ApiModelProperty(value = "性别,1男,2女", example = "模块1")
    private Integer sex;
    /**
	手机号	*/
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号", example = "模块1")
    private String mobile;
    /**
	联系电话	*/
	 * 联系电话
	 */
	@ApiModelProperty(value = "联系电话", example = "模块1")
    private String phone;
    /**
	社保卡号	*/
	 * 社保卡号
	 */
	@ApiModelProperty(value = "社保卡号", example = "模块1")
    private String ssc;
    /**
	头像http地址	*/
	 * 头像http地址
	 */
	@ApiModelProperty(value = "头像http地址", example = "模块1")
    private String photo;
    /**
	省编码	*/
	 * 省编码
	 */
	@ApiModelProperty(value = "省编码", example = "模块1")
    private String provinceCode;
    /**
	市编码	*/
	 * 市编码
	 */
	@ApiModelProperty(value = "市编码", example = "模块1")
    private String cityCode;
    /**
	区县编码	*/
	 * 区县编码
	 */
	@ApiModelProperty(value = "区县编码", example = "模块1")
    private String townCode;
    /**
	街道编码	*/
	 * 街道编码
	 */
	@ApiModelProperty(value = "街道编码", example = "模块1")
    private String streetCode;
    /**
	具体详细地址	*/
	 * 具体详细地址
	 */
	@ApiModelProperty(value = "具体详细地址", example = "模块1")
    private String address;
    /**
	疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病	*/
	 * 疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病
	 */
	@ApiModelProperty(value = "疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病", example = "模块1")
    private String disease;
    /**
	病情:0绿标,1黄标,2红标,3重点关注,	*/
	 * 病情:0绿标,1黄标,2红标,3重点关注,
	 */
	@ApiModelProperty(value = "病情:0绿标,1黄标,2红标,3重点关注,", example = "模块1")
    private String diseaseCondition;
    /**
	总积分	*/
	 * 总积分
	 */
	@ApiModelProperty(value = "总积分", example = "模块1")
    private String points;
    /**
	病历总数	*/
	 * 病历总数
	 */
	@ApiModelProperty(value = "病历总数", example = "模块1")
    private String recordAmount;
    /**
	微信编号	*/
	 * 微信编号
	 */
	@ApiModelProperty(value = "微信编号", example = "模块1")
    private String openid;
    /**
	用户状态:1正常,0禁用,-1恶意注册,2审核中	*/
	 * 用户状态:1正常,0禁用,-1恶意注册,2审核中
	 */
	@ApiModelProperty(value = "用户状态:1正常,0禁用,-1恶意注册,2审核中", example = "模块1")
    private String patientStatus;
    /**
	联系方式备注【基卫】	*/
	 * 联系方式备注【基卫】
	 */
	@ApiModelProperty(value = "联系方式备注【基卫】", example = "模块1")
    private String mobileRemarks;
    /**
	第一次添加open的时间	*/
	 * 第一次添加open的时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "第一次添加open的时间", example = "模块1")
    private Date openidTime;
    /**
	居委会代码	*/
	 * 居委会代码
	 */
	@ApiModelProperty(value = "居委会代码", example = "模块1")
    private String sickVillage;
    /**
		*/
	 * 
	 */
	@ApiModelProperty(value = "", example = "模块1")
    private String sickVillageName;
    /**
	绑定电子社保卡主体(共济为操作人code)	*/
	 * 绑定电子社保卡主体(共济为操作人code)
	 */
	@ApiModelProperty(value = "绑定电子社保卡主体(共济为操作人code)", example = "模块1")
    private String principalCode;
    /**
	是否绑定电子社保卡 (0否 1是)	*/
	 * 是否绑定电子社保卡 (0否 1是)
	 */
	@ApiModelProperty(value = "是否绑定电子社保卡 (0否 1是)", example = "模块1")
    private String sicardStatus;
    /**
	电子社保卡绑定时间	*/
	 * 电子社保卡绑定时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "电子社保卡绑定时间", example = "模块1")
    private Date sicardTime;
    /**
	是否分配过微信标签	*/
	 * 是否分配过微信标签
	 */
	@ApiModelProperty(value = "是否分配过微信标签", example = "模块1")
    private Integer isWxtag;
    /**
	微信tagId	*/
	 * 微信tagId
	 */
	@ApiModelProperty(value = "微信tagId", example = "模块1")
    private String wxtagid;
    /**
	居民预警状态:0为标准,1为预警状态	*/
	 * 居民预警状态:0为标准,1为预警状态
	 */
	@ApiModelProperty(value = "居民预警状态:0为标准,1为预警状态", example = "模块1")
    private Integer standardStatus;
    /**
	医疗保险号	*/
	 * 医疗保险号
	 */
	@ApiModelProperty(value = "医疗保险号", example = "模块1")
    private String medicareNumber;
    /**
	unionId 开发平台唯一标识	*/
	 * unionId 开发平台唯一标识
	 */
	@ApiModelProperty(value = "unionId 开发平台唯一标识", example = "模块1")
    private String unionid;
    /**
	作废标识,1正常,0作废	*/
	 * 作废标识,1正常,0作废
	 */
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    private String del;
	@ApiModelProperty(value = "saas配置id", example = "模块1")
    public String getSaasId() {
        return saasId;
    }
@ -135,7 +243,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.saasId = saasId;
    }
	@ApiModelProperty(value = "身份证号", example = "模块1")
    public String getIdcard() {
        return idcard;
    }
@ -143,7 +250,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.idcard = idcard;
    }
	@ApiModelProperty(value = "登录密码", example = "模块1")
    public String getPassword() {
        return password;
    }
@ -151,7 +257,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.password = password;
    }
	@ApiModelProperty(value = "", example = "模块1")
    public String getSalt() {
        return salt;
    }
@ -159,7 +264,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.salt = salt;
    }
	@ApiModelProperty(value = "姓名", example = "模块1")
    public String getName() {
        return name;
    }
@ -167,7 +271,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.name = name;
    }
	@ApiModelProperty(value = "生日", example = "模块1")
    public Date getBirthday() {
        return birthday;
    }
@ -175,15 +278,13 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.birthday = birthday;
    }
	@ApiModelProperty(value = "性别,1男,2女", example = "模块1")
    public String getSex() {
    public Integer getSex() {
        return sex;
    }
    public void setSex(String sex) {
    public void setSex(Integer sex) {
        this.sex = sex;
    }
	@ApiModelProperty(value = "手机号", example = "模块1")
    public String getMobile() {
        return mobile;
    }
@ -191,7 +292,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.mobile = mobile;
    }
	@ApiModelProperty(value = "联系电话", example = "模块1")
    public String getPhone() {
        return phone;
    }
@ -199,7 +299,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.phone = phone;
    }
	@ApiModelProperty(value = "社保卡号", example = "模块1")
    public String getSsc() {
        return ssc;
    }
@ -207,7 +306,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.ssc = ssc;
    }
	@ApiModelProperty(value = "头像http地址", example = "模块1")
    public String getPhoto() {
        return photo;
    }
@ -215,7 +313,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.photo = photo;
    }
	@ApiModelProperty(value = "省编码", example = "模块1")
    public String getProvinceCode() {
        return provinceCode;
    }
@ -223,7 +320,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.provinceCode = provinceCode;
    }
	@ApiModelProperty(value = "市编码", example = "模块1")
    public String getCityCode() {
        return cityCode;
    }
@ -231,7 +327,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.cityCode = cityCode;
    }
	@ApiModelProperty(value = "区县编码", example = "模块1")
    public String getTownCode() {
        return townCode;
    }
@ -239,7 +334,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.townCode = townCode;
    }
	@ApiModelProperty(value = "街道编码", example = "模块1")
    public String getStreetCode() {
        return streetCode;
    }
@ -247,7 +341,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.streetCode = streetCode;
    }
	@ApiModelProperty(value = "具体详细地址", example = "模块1")
    public String getAddress() {
        return address;
    }
@ -255,7 +348,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.address = address;
    }
	@ApiModelProperty(value = "疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病", example = "模块1")
    public String getDisease() {
        return disease;
    }
@ -263,7 +355,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.disease = disease;
    }
	@ApiModelProperty(value = "病情:0绿标,1黄标,2红标,3重点关注,", example = "模块1")
    public String getDiseaseCondition() {
        return diseaseCondition;
    }
@ -271,7 +362,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.diseaseCondition = diseaseCondition;
    }
	@ApiModelProperty(value = "总积分", example = "模块1")
    public String getPoints() {
        return points;
    }
@ -279,7 +369,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.points = points;
    }
	@ApiModelProperty(value = "病历总数", example = "模块1")
    public String getRecordAmount() {
        return recordAmount;
    }
@ -287,7 +376,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.recordAmount = recordAmount;
    }
	@ApiModelProperty(value = "微信编号", example = "模块1")
    public String getOpenid() {
        return openid;
    }
@ -295,7 +383,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.openid = openid;
    }
	@ApiModelProperty(value = "用户状态:1正常,0禁用,-1恶意注册,2审核中", example = "模块1")
    public String getPatientStatus() {
        return patientStatus;
    }
@ -303,7 +390,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.patientStatus = patientStatus;
    }
	@ApiModelProperty(value = "联系方式备注【基卫】", example = "模块1")
    public String getMobileRemarks() {
        return mobileRemarks;
    }
@ -311,7 +397,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.mobileRemarks = mobileRemarks;
    }
	@ApiModelProperty(value = "第一次添加open的时间", example = "模块1")
    public Date getOpenidTime() {
        return openidTime;
    }
@ -319,7 +404,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.openidTime = openidTime;
    }
	@ApiModelProperty(value = "居委会代码", example = "模块1")
    public String getSickVillage() {
        return sickVillage;
    }
@ -327,7 +411,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.sickVillage = sickVillage;
    }
	@ApiModelProperty(value = "", example = "模块1")
    public String getSickVillageName() {
        return sickVillageName;
    }
@ -335,7 +418,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.sickVillageName = sickVillageName;
    }
	@ApiModelProperty(value = "绑定电子社保卡主体(共济为操作人code)", example = "模块1")
    public String getPrincipalCode() {
        return principalCode;
    }
@ -343,7 +425,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.principalCode = principalCode;
    }
	@ApiModelProperty(value = "是否绑定电子社保卡 (0否 1是)", example = "模块1")
    public String getSicardStatus() {
        return sicardStatus;
    }
@ -351,7 +432,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.sicardStatus = sicardStatus;
    }
	@ApiModelProperty(value = "电子社保卡绑定时间", example = "模块1")
    public Date getSicardTime() {
        return sicardTime;
    }
@ -359,7 +439,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.sicardTime = sicardTime;
    }
	@ApiModelProperty(value = "是否分配过微信标签", example = "模块1")
    public Integer getIsWxtag() {
        return isWxtag;
    }
@ -367,7 +446,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.isWxtag = isWxtag;
    }
	@ApiModelProperty(value = "微信tagId", example = "模块1")
    public String getWxtagid() {
        return wxtagid;
    }
@ -375,7 +453,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.wxtagid = wxtagid;
    }
	@ApiModelProperty(value = "居民预警状态:0为标准,1为预警状态", example = "模块1")
    public Integer getStandardStatus() {
        return standardStatus;
    }
@ -383,7 +460,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.standardStatus = standardStatus;
    }
	@ApiModelProperty(value = "医疗保险号", example = "模块1")
    public String getMedicareNumber() {
        return medicareNumber;
    }
@ -391,7 +467,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.medicareNumber = medicareNumber;
    }
	@ApiModelProperty(value = "unionId 开发平台唯一标识", example = "模块1")
    public String getUnionid() {
        return unionid;
    }
@ -399,7 +474,6 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
        this.unionid = unionid;
    }
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    public String getDel() {
        return del;
    }
@ -408,5 +482,4 @@ public class BasePatientVO extends UuidIdentityVOWithOperator {
    }
}

+ 236 - 0
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/people_num/BasePeopleNumVO.java

@ -0,0 +1,236 @@
package com.yihu.jw.restmodel.base.people_num;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yihu.jw.restmodel.UuidIdentityVOWithOperator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
/**
 * 
 * 基础人口基数信息vo
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@ApiModel(value = "BasePeopleNumVO", description = "基础人口基数信息")
public class BasePeopleNumVO extends UuidIdentityVOWithOperator {
    /**
	 * saas化的id
	 */
	@ApiModelProperty(value = "saas化的id", example = "模块1")
    private String saasId;
    /**
	 * 所属省代码
	 */
	@ApiModelProperty(value = "所属省代码", example = "模块1")
    private String provinceCode;
    /**
	 * 所属市代码
	 */
	@ApiModelProperty(value = "所属市代码", example = "模块1")
    private String cityCode;
    /**
	 * 所属区代码
	 */
	@ApiModelProperty(value = "所属区代码", example = "模块1")
    private String districtCode;
    /**
	 * 所属具体名称
	 */
	@ApiModelProperty(value = "所属具体名称", example = "模块1")
    private String name;
    /**
	 * 人口数
	 */
	@ApiModelProperty(value = "人口数", example = "模块1")
    private Integer num;
    /**
	 * 类别 0是省,1是市,2是区,3是机构
	 */
	@ApiModelProperty(value = "类别 0是省,1是市,2是区,3是机构", example = "模块1")
    private String type;
    /**
	 * 每年的人口数
	 */
	@ApiModelProperty(value = "每年的人口数", example = "模块1")
    private Integer year;
    /**
	 * 高血压发病数
	 */
	@ApiModelProperty(value = "高血压发病数", example = "模块1")
    private Integer gxyNum;
    /**
	 * 糖尿病发病数
	 */
	@ApiModelProperty(value = "糖尿病发病数", example = "模块1")
    private Integer tnbNum;
    /**
	 * 65岁以上老年人口数
	 */
	@ApiModelProperty(value = "65岁以上老年人口数", example = "模块1")
    private Integer sixFiveNum;
    /**
	 * 高血压任务数
	 */
	@ApiModelProperty(value = "高血压任务数", example = "模块1")
    private Integer gxyTaskNum;
    /**
	 * 糖尿病任务数
	 */
	@ApiModelProperty(value = "糖尿病任务数", example = "模块1")
    private Integer tnbTaskNum;
    /**
	 * 65岁以上老年人口任务数
	 */
	@ApiModelProperty(value = "65岁以上老年人口任务数", example = "模块1")
    private Integer sixFiveTaskNum;
    /**
	 * 户籍人口任务数
	 */
	@ApiModelProperty(value = "户籍人口任务数", example = "模块1")
    private Integer taskNum;
    /**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@ApiModelProperty(value = "创建时间", example = "模块1")
    private Date createTime;
    public String getSaasId() {
        return saasId;
    }
    public void setSaasId(String saasId) {
        this.saasId = saasId;
    }
    public String getProvinceCode() {
        return provinceCode;
    }
    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }
    public String getCityCode() {
        return cityCode;
    }
    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }
    public String getDistrictCode() {
        return districtCode;
    }
    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getNum() {
        return num;
    }
    public void setNum(Integer num) {
        this.num = num;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public Integer getYear() {
        return year;
    }
    public void setYear(Integer year) {
        this.year = year;
    }
    public Integer getGxyNum() {
        return gxyNum;
    }
    public void setGxyNum(Integer gxyNum) {
        this.gxyNum = gxyNum;
    }
    public Integer getTnbNum() {
        return tnbNum;
    }
    public void setTnbNum(Integer tnbNum) {
        this.tnbNum = tnbNum;
    }
    public Integer getSixFiveNum() {
        return sixFiveNum;
    }
    public void setSixFiveNum(Integer sixFiveNum) {
        this.sixFiveNum = sixFiveNum;
    }
    public Integer getGxyTaskNum() {
        return gxyTaskNum;
    }
    public void setGxyTaskNum(Integer gxyTaskNum) {
        this.gxyTaskNum = gxyTaskNum;
    }
    public Integer getTnbTaskNum() {
        return tnbTaskNum;
    }
    public void setTnbTaskNum(Integer tnbTaskNum) {
        this.tnbTaskNum = tnbTaskNum;
    }
    public Integer getSixFiveTaskNum() {
        return sixFiveTaskNum;
    }
    public void setSixFiveTaskNum(Integer sixFiveTaskNum) {
        this.sixFiveTaskNum = sixFiveTaskNum;
    }
    public Integer getTaskNum() {
        return taskNum;
    }
    public void setTaskNum(Integer taskNum) {
        this.taskNum = taskNum;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}

+ 18 - 11
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseTeamMemberVO.java

@ -1,4 +1,4 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.team;
import com.yihu.jw.restmodel.UuidIdentityVOWithOperator;
import io.swagger.annotations.ApiModel;
@ -13,7 +13,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,19 +22,30 @@ import java.util.Date;
public class BaseTeamMemberVO extends UuidIdentityVOWithOperator {
    /**
	团队ID	*/
	 * 团队ID
	 */
	@ApiModelProperty(value = "团队ID", example = "模块1")
    private String teamId;
    /**
	机构标识	*/
	 * 机构标识
	 */
	@ApiModelProperty(value = "机构标识", example = "模块1")
    private String orgId;
    /**
	医生标识,多个医生以逗号分开	*/
	 * 医生标识,多个医生以逗号分开
	 */
	@ApiModelProperty(value = "医生标识,多个医生以逗号分开", example = "模块1")
    private String doctorId;
    /**
	作废标识,1正常,0作废	*/
	 * 作废标识,1正常,0作废
	 */
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    private String del;
	@ApiModelProperty(value = "团队ID", example = "模块1")
    public String getTeamId() {
        return teamId;
    }
@ -42,7 +53,6 @@ public class BaseTeamMemberVO extends UuidIdentityVOWithOperator {
        this.teamId = teamId;
    }
	@ApiModelProperty(value = "机构标识", example = "模块1")
    public String getOrgId() {
        return orgId;
    }
@ -50,7 +60,6 @@ public class BaseTeamMemberVO extends UuidIdentityVOWithOperator {
        this.orgId = orgId;
    }
	@ApiModelProperty(value = "医生标识,多个医生以逗号分开", example = "模块1")
    public String getDoctorId() {
        return doctorId;
    }
@ -58,7 +67,6 @@ public class BaseTeamMemberVO extends UuidIdentityVOWithOperator {
        this.doctorId = doctorId;
    }
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    public String getDel() {
        return del;
    }
@ -67,5 +75,4 @@ public class BaseTeamMemberVO extends UuidIdentityVOWithOperator {
    }
}

+ 26 - 15
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/base/dict/BaseTeamVO.java

@ -1,4 +1,4 @@
package com.yihu.jw.restmodel.base.dict;
package com.yihu.jw.restmodel.base.team;
import com.yihu.jw.restmodel.UuidIdentityVOWithOperator;
import io.swagger.annotations.ApiModel;
@ -13,7 +13,7 @@ import java.util.Date;
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * litaohong 	1.0  2018年08月31日 Created
 * Administrator 	1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
@ -22,25 +22,42 @@ import java.util.Date;
public class BaseTeamVO extends UuidIdentityVOWithOperator {
    /**
	机构id	*/
	 * 机构id
	 */
	@ApiModelProperty(value = "机构id", example = "模块1")
    private String orgId;
    /**
	团队名称	*/
	 * 团队名称
	 */
	@ApiModelProperty(value = "团队名称", example = "模块1")
    private String name;
    /**
	领导医生标识	*/
	 * 领导医生标识
	 */
	@ApiModelProperty(value = "领导医生标识", example = "模块1")
    private String leaderId;
    /**
	团队人数	*/
	 * 团队人数
	 */
	@ApiModelProperty(value = "团队人数", example = "模块1")
    private String teamNum;
    /**
	团队二维码	*/
	 * 团队二维码
	 */
	@ApiModelProperty(value = "团队二维码", example = "模块1")
    private String qrcode;
    /**
	作废标识,1正常,0作废	*/
	 * 作废标识,1正常,0作废
	 */
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    private String del;
	@ApiModelProperty(value = "机构id", example = "模块1")
    public String getOrgId() {
        return orgId;
    }
@ -48,7 +65,6 @@ public class BaseTeamVO extends UuidIdentityVOWithOperator {
        this.orgId = orgId;
    }
	@ApiModelProperty(value = "团队名称", example = "模块1")
    public String getName() {
        return name;
    }
@ -56,7 +72,6 @@ public class BaseTeamVO extends UuidIdentityVOWithOperator {
        this.name = name;
    }
	@ApiModelProperty(value = "领导医生标识", example = "模块1")
    public String getLeaderId() {
        return leaderId;
    }
@ -64,7 +79,6 @@ public class BaseTeamVO extends UuidIdentityVOWithOperator {
        this.leaderId = leaderId;
    }
	@ApiModelProperty(value = "团队人数", example = "模块1")
    public String getTeamNum() {
        return teamNum;
    }
@ -72,7 +86,6 @@ public class BaseTeamVO extends UuidIdentityVOWithOperator {
        this.teamNum = teamNum;
    }
	@ApiModelProperty(value = "团队二维码", example = "模块1")
    public String getQrcode() {
        return qrcode;
    }
@ -80,7 +93,6 @@ public class BaseTeamVO extends UuidIdentityVOWithOperator {
        this.qrcode = qrcode;
    }
	@ApiModelProperty(value = "作废标识,1正常,0作废", example = "模块1")
    public String getDel() {
        return del;
    }
@ -89,5 +101,4 @@ public class BaseTeamVO extends UuidIdentityVOWithOperator {
    }
}

+ 92 - 6
server/svr-authentication/src/main/java/com/yihu/jw/security/core/userdetails/jdbc/WlyyUserDetailsService.java

@ -3,7 +3,6 @@ package com.yihu.jw.security.core.userdetails.jdbc;
import com.yihu.jw.security.core.userdetails.SaltUser;
import com.yihu.jw.security.model.WlyyUserDetails;
import com.yihu.jw.security.model.WlyyUserSimple;
import org.apache.commons.lang3.time.DateUtils;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.security.core.GrantedAuthority;
@ -29,20 +28,26 @@ public class WlyyUserDetailsService extends JdbcDaoSupport implements UserDetail
    private static final String DEFAULT_USER_DETAILS_STATEMENT = "select * from base_user u where u.username = ? or u.mobile = ? or u.idcard = ?";
    private static final String DEFAULT_DOCTOR_DETAILS_STATEMENT = "SELECT * FROM base_doctor d WHERE d.mobile = ? OR d.idcard = ?";
    private static final String DEFAULT_PATIENT_DETAILS_STATEMENT = "SELECT * FROM base_patient p WHERE p.mobile = ? OR p.idcard = ?";
    public WlyyUserDetailsService(DataSource dataSource) {
        this.setDataSource(dataSource);
    }
    /**
     * 用户登录判读接口
     *
     * 判断loginType查找用户信息
     * 用户类型 1或默认为user,2:医生登录,3:患者登录
     * @param username
     * @return
     * @throws UsernameNotFoundException
     */
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        List<WlyyUserDetails> users = this.getJdbcTemplate().query(DEFAULT_USER_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserDetails.class), username, username, username);
        List<WlyyUserDetails> users = getWlyyUserDetails(username);
        if (users == null || users.size() == 0) {
            throw new UsernameNotFoundException(username);
        }
@ -56,11 +61,47 @@ public class WlyyUserDetailsService extends JdbcDaoSupport implements UserDetail
        return new SaltUser(username, users.get(0).getPassword(), users.get(0).getSalt(), users.get(0).isEnabled(), users.get(0).isLocked(), getGrantedAuthorities(username));
    }
    /**
     * 用户登录判读接口
     * 判断loginType查找用户信息
     * 用户类型 1或默认为user,2:医生登录,3:患者登录
     * @param username
     * @return
     */
    public  List<WlyyUserDetails> getWlyyUserDetails(String username){
        String loginType = getLogintype();
        List<WlyyUserDetails> users = null;
        //1或默认查找user表,为平台管理员账号
        if(StringUtils.isBlank(loginType)||"1".equals(loginType)){
            users = this.getJdbcTemplate().query(DEFAULT_USER_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserDetails.class), username, username, username);
            //2.为医生登录账号
        }else if("2".equals(loginType)){
            users = this.getJdbcTemplate().query(DEFAULT_DOCTOR_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserDetails.class), username, username);
            //3.患者登录
        }else if("3".equals(loginType)){
            users = this.getJdbcTemplate().query(DEFAULT_PATIENT_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserDetails.class), username, username);
        }//..
        return users;
    }
    private Collection<? extends GrantedAuthority> getGrantedAuthorities(String username) {
        Collection<GrantedAuthority> authorities = new ArrayList<>(1);
        authorities.add(new SimpleGrantedAuthority("ROLE_USER"));
        return authorities;
    }
    /**
     * 设置用户登录时间,返回登录信息
     * 判断loginType,用户类型 1或默认为user,2:医生登录,3:患者登录
     * @param username
     * @return
     * @throws UsernameNotFoundException
     */
    public WlyyUserSimple authSuccess (String username) throws UsernameNotFoundException {
        //更新登陆时间
        this.getJdbcTemplate().update("update base_user u set login_failure_count = 0, u.login_date = ? where u.username = ? or u.mobile = ? or u.idcard = ?", new Date(), username, username, username);
        //加载用户简略信息
        List<WlyyUserSimple> users = this.getJdbcTemplate().query(DEFAULT_USER_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserSimple.class), username, username, username);
        List<WlyyUserSimple> users = getWlyyUserSimple(username);
        if (users == null || users.size() == 0) {
            throw new UsernameNotFoundException(username);
        }
@ -88,4 +129,49 @@ public class WlyyUserDetailsService extends JdbcDaoSupport implements UserDetail
        return authorities;
    }
    /**
     * 设置用户登录时间,返回登录信息
     * 判断loginType,用户类型 1或默认为user,2:医生登录,3:患者登录
     * @param username
     * @return
     */
    public List<WlyyUserSimple> getWlyyUserSimple(String username){
        String loginType = getLogintype();
        List<WlyyUserSimple> users = null;
        //1或默认查找user表,为平台管理员账号
        if(StringUtils.isBlank(loginType)||"1".equals(loginType)){
            //更新登录时间
            this.getJdbcTemplate().update("update base_user u set u.login_failure_count = 0, u.login_date = ? where u.username = ? or u.mobile = ? or u.idcard = ?", new Date(), username, username, username);
            users = this.getJdbcTemplate().query(DEFAULT_USER_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserSimple.class), username, username, username);
            //2.为医生登录账号
        }else if("2".equals(loginType)){
            //更新登录时间
            this.getJdbcTemplate().update("update base_doctor d set set d.login_failure_count = 0, d.login_date = ? where d.mobile = ? or d.idcard = ?", new Date(), username, username);
            users = this.getJdbcTemplate().query(DEFAULT_DOCTOR_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserSimple.class), username, username);
            //3.患者登录
        }else if("3".equals(loginType)){
            //更新登录时间
            this.getJdbcTemplate().update("update base_patient p set p.login_failure_count = 0, p.login_date = ? where p.mobile = ? or p.idcard = ?", new Date(), username, username);
            users = this.getJdbcTemplate().query(DEFAULT_PATIENT_DETAILS_STATEMENT, new BeanPropertyRowMapper(WlyyUserSimple.class), username, username);
        } //...
        return users;
    }
    /**
     * 获取用户登录类型
     * @return
     */
    public String getLogintype(){
        HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
        String loginType = request.getParameter("loginType");
        return loginType;
    }
}

+ 10 - 4
server/svr-authentication/src/main/java/com/yihu/jw/security/oauth2/provider/endpoint/WlyyLoginEndpoint.java

@ -89,6 +89,12 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
    /**
     * 登陆
     * @param parameters
     * 不定入参:
     * client_id 应用标识
     * captcha 验证码
     * password 密码
     * username 用户名/手机/身份证号
     * loginType 用户类型 1或默认为user,2:医生登录,3:患者登录
     * @param httpSession
     * @return
     * @throws Exception
@ -105,10 +111,10 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
        }
        if (StringUtils.isEmpty(parameters.get("captcha"))) {
            parameters.put("grant_type", "password");
            if (parameters.get("password") != null) {
                RSAPrivateKey rsaPrivateKey = (RSAPrivateKey)httpSession.getAttribute("privateKey");
                parameters.put("password", RSAUtils.decryptByPrivateKey(new String(Base64.decodeBase64(parameters.get("password"))), rsaPrivateKey));
            }
//            if (parameters.get("password") != null) {
//                RSAPrivateKey rsaPrivateKey = (RSAPrivateKey)httpSession.getAttribute("privateKey");
//                parameters.put("password", RSAUtils.decryptByPrivateKey(new String(Base64.decodeBase64(parameters.get("password"))), rsaPrivateKey));
//            }
        } else {
            parameters.put("grant_type", "captcha");
        }

+ 27 - 1
sql/init.sql

@ -62,7 +62,7 @@ CREATE TABLE `base_doctor` (
  `spell` varchar(10) DEFAULT NULL COMMENT '名称拼音首字母',
  `certified_overtime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT 'CA证书过期时间',
  `certificate_num` varchar(100) DEFAULT NULL COMMENT 'CA证书编号',
  `openid` varchar(50) DEFAULT NULL,
  `openid` varchar(50) DEFAULT NULL  COMMENT '用户微信openid',
  `del` varchar(1) DEFAULT '1' COMMENT '作废标识,1正常,0作废',
  `create_user` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '创建人',
  `create_user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '创建人名',
@ -280,7 +280,20 @@ CREATE TABLE `base_street` (
  KEY `idx_dm_street` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='街道字典';
-- 居委会
drop table IF EXISTS `base_committee`;
CREATE TABLE `base_committee` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '业务无关主键',
  `province` varchar(50) DEFAULT NULL COMMENT '省标识',
  `city` varchar(50) DEFAULT NULL COMMENT '市标识',
  `town` varchar(50) DEFAULT NULL COMMENT '区县标识',
  `street` varchar(50) DEFAULT NULL COMMENT '街道标识',
  `code` varchar(50) DEFAULT NULL COMMENT '居委会标识',
  `name` varchar(100) DEFAULT NULL COMMENT '居委会名称',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COMMENT '居委会';
-- 行政区划数据  5个表 ---end----
-- 职称表
@ -341,6 +354,18 @@ CREATE TABLE `dict_health_problem` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='健康问题字典';
-- 病种字典表
drop table IF EXISTS `dict_disease`;
CREATE TABLE `dict_disease` (
  `id` int(11) NOT NULL AUTO_INCREMENT  COMMENT '表id,自增长,字典型',
  `saas_id` varchar(100) DEFAULT NULL COMMENT 'saas配置id,null标识公共字典',
  `code` varchar(50) CHARACTER SET utf8 DEFAULT NULL COMMENT '疾病编码',
  `name` varchar(200) CHARACTER SET utf8 DEFAULT NULL COMMENT '疾病名称',
  key `idx_hea_problem_code` (`code`),
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='病种字典';
-- 标准科室
drop table IF EXISTS `dict_hospital_dept`;
create table `dict_hospital_dept`

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseCityDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.area;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 20 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/dao/area/BaseCommitteeDao.java

@ -0,0 +1,20 @@
package com.yihu.jw.base.dao.area;
import com.yihu.jw.entity.base.area.BaseCommitteeDO;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
/**
 * 
 * 区县居委会 数据库访问层
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  		2018年09月04日 	Created
 *
 * </pre>
 * @since 1.
 */
public interface BaseCommitteeDao extends PagingAndSortingRepository<BaseCommitteeDO, Integer>, JpaSpecificationExecutor<BaseCommitteeDO>  {
}

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseProvinceDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.area;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseStreetDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.area;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseTownDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.area;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 21 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/dao/dict/DictDiseaseDao.java

@ -0,0 +1,21 @@
package com.yihu.jw.base.dao.dict;
import com.yihu.jw.entity.base.dict.DictDiseaseDO;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
/**
 * 
 * 病种字典 数据库访问层
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  		2018年09月05日 	Created
 *
 * </pre>
 * @since 1.
 */
public interface DictDiseaseDao extends PagingAndSortingRepository<DictDiseaseDO, Integer>, JpaSpecificationExecutor<DictDiseaseDO>  {
}

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictHealthProblemDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.dict;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictHospitalDeptDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.dict;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictIcd10Dao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.dict;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictJobTitleDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.dict;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/DictMedicineDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.dict;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseDoctorDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.doctor;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseDoctorHospitalDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.doctor;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseDoctorRoleDictDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.doctor;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseOrgDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.org;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 21 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/dao/people_num/BasePeopleNumDao.java

@ -0,0 +1,21 @@
package com.yihu.jw.base.dao.people_num;
import com.yihu.jw.entity.base.peopel_num.BasePeopleNumDO;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
/**
 * 
 * 基础人口基数信息 数据库访问层
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  		2018年09月05日 	Created
 *
 * </pre>
 * @since 1.
 */
public interface BasePeopleNumDao extends PagingAndSortingRepository<BasePeopleNumDO, String>, JpaSpecificationExecutor<BasePeopleNumDO>  {
}

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseTeamDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.team;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/dao/BaseTeamMemberDao.java

@ -1,4 +1,4 @@
package com.yihu.jw.base.dao;
package com.yihu.jw.base.dao.team;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseCityEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.area;
import com.yihu.jw.base.service.area.BaseCityService;
import com.yihu.jw.restmodel.base.dict.BaseCityVO;
import com.yihu.jw.restmodel.base.area.BaseCityVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseProvinceEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.area;
import com.yihu.jw.base.service.area.BaseProvinceService;
import com.yihu.jw.restmodel.base.dict.BaseProvinceVO;
import com.yihu.jw.restmodel.base.area.BaseProvinceVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseStreetEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.area;
import com.yihu.jw.base.service.area.BaseStreetService;
import com.yihu.jw.restmodel.base.dict.BaseStreetVO;
import com.yihu.jw.restmodel.base.area.BaseStreetVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/area/BaseTownEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.area;
import com.yihu.jw.base.service.area.BaseTownService;
import com.yihu.jw.restmodel.base.dict.BaseTownVO;
import com.yihu.jw.restmodel.base.area.BaseTownVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 104 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/dict/DictDiseaseEndpoint.java

@ -0,0 +1,104 @@
package com.yihu.jw.base.endpoint.dict;
import com.yihu.jw.base.service.dict.DictDiseaseService;
import com.yihu.jw.entity.base.dict.DictDiseaseDO;
import com.yihu.jw.restmodel.base.dict.DictDiseaseVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;
import com.yihu.jw.restmodel.web.PageEnvelop;
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
import com.yihu.jw.rm.base.BaseRequestMapping;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
*
* 病种字典控制器
*
* @version
* <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  		2018年09月05日 	Created
 *
 * </pre>
* @since 1.
*/
@RestController
@RequestMapping(value = BaseRequestMapping.DictDisease.PREFIX)
@Api(value = "病种字典管理", description = "病种字典管理服务接口", tags = {"wlyy基础服务 - 病种字典管理服务接口"})
public class DictDiseaseEndpoint extends EnvelopRestEndpoint {
@Autowired
private DictDiseaseService dictDiseaseService;
@PostMapping(value = BaseRequestMapping.DictDisease.CREATE, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
@ApiOperation(value = "创建")
public ObjEnvelop<DictDiseaseVO> create (
    @ApiParam(name = "json_data", value = "Json数据", required = true)
    @RequestBody String jsonData) throws Exception {
    DictDiseaseDO dictDisease = toEntity(jsonData, DictDiseaseDO.class);
    dictDisease = dictDiseaseService.save(dictDisease);
    return success(dictDisease, DictDiseaseVO.class);
    }
    @PostMapping(value = BaseRequestMapping.DictDisease.DELETE)
    @ApiOperation(value = "删除")
    public Envelop delete(
    @ApiParam(name = "ids", value = "id串,中间用,分隔", required = true)
    @RequestParam(value = "ids") String ids) {
    dictDiseaseService.delete(ids.split(","));
    return success("删除成功");
    }
    @PostMapping(value = BaseRequestMapping.DictDisease.UPDATE, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiOperation(value = "更新")
    public ObjEnvelop<DictDiseaseVO> update (
        @ApiParam(name = "json_data", value = "Json数据", required = true)
        @RequestBody String jsonData) throws Exception {
        DictDiseaseDO dictDisease = toEntity(jsonData, DictDiseaseDO.class);
        if (null == dictDisease.getId()) {
        return failed("ID不能为空", ObjEnvelop.class);
        }
        dictDisease = dictDiseaseService.save(dictDisease);
        return success(dictDisease, DictDiseaseVO.class);
        }
        @GetMapping(value = BaseRequestMapping.DictDisease.PAGE)
        @ApiOperation(value = "获取分页")
        public PageEnvelop<DictDiseaseVO> page (
            @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
            @RequestParam(value = "fields", required = false) String fields,
            @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
            @RequestParam(value = "filters", required = false) String filters,
            @ApiParam(name = "sorts", value = "排序,规则参见说明文档")
            @RequestParam(value = "sorts", required = false) String sorts,
            @ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1")
            @RequestParam(value = "page") int page,
            @ApiParam(name = "size", value = "页码", required = true, defaultValue = "15")
            @RequestParam(value = "size") int size) throws Exception {
            List<DictDiseaseDO> dictDiseases = dictDiseaseService.search(fields, filters, sorts, page, size);
                int count = (int)dictDiseaseService.getCount(filters);
                return success(dictDiseases, count, page, size, DictDiseaseVO.class);
         }
         @GetMapping(value = BaseRequestMapping.DictDisease.LIST)
         @ApiOperation(value = "获取列表")
         public ListEnvelop<DictDiseaseVO> list (
             @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
             @RequestParam(value = "fields", required = false) String fields,
             @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
             @RequestParam(value = "filters", required = false) String filters,
             @ApiParam(name = "sorts", value = "排序,规则参见说明文档")
             @RequestParam(value = "sorts", required = false) String sorts) throws Exception {
             List<DictDiseaseDO> dictDiseases = dictDiseaseService.search(fields, filters, sorts);
                  return success(dictDiseases, DictDiseaseVO.class);
         }
 }

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/doctor/BaseDoctorEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.doctor;
import com.yihu.jw.base.service.doctor.BaseDoctorService;
import com.yihu.jw.restmodel.base.dict.BaseDoctorVO;
import com.yihu.jw.restmodel.base.doctor.BaseDoctorVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/doctor/BaseDoctorHospitalEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.doctor;
import com.yihu.jw.base.service.doctor.BaseDoctorHospitalService;
import com.yihu.jw.restmodel.base.dict.BaseDoctorHospitalVO;
import com.yihu.jw.restmodel.base.doctor.BaseDoctorHospitalVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/doctor/BaseDoctorRoleDictEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.doctor;
import com.yihu.jw.base.service.doctor.BaseDoctorRoleDictService;
import com.yihu.jw.restmodel.base.dict.BaseDoctorRoleDictVO;
import com.yihu.jw.restmodel.base.doctor.BaseDoctorRoleDictVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/org/BaseOrgEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.org;
import com.yihu.jw.base.service.org.BaseOrgService;
import com.yihu.jw.restmodel.base.dict.BaseOrgVO;
import com.yihu.jw.restmodel.base.org.BaseOrgVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/patient/BasePatientEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.patient;
import com.yihu.jw.base.service.patient.BasePatientService;
import com.yihu.jw.restmodel.base.dict.BasePatientVO;
import com.yihu.jw.restmodel.base.patient.BasePatientVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 105 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/people_num/BasePeopleNumEndpoint.java

@ -0,0 +1,105 @@
package com.yihu.jw.base.endpoint.people_num;
import com.yihu.jw.base.service.people_num.BasePeopleNumService;
import com.yihu.jw.entity.base.peopel_num.BasePeopleNumDO;
import com.yihu.jw.restmodel.base.people_num.BasePeopleNumVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;
import com.yihu.jw.restmodel.web.PageEnvelop;
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
import com.yihu.jw.rm.base.BaseRequestMapping;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
*
* 基础人口基数信息控制器
*
* @version
* <pre>
 * Author	Version		Date		Changes
 * Administrator 	1.0  		2018年09月05日 	Created
 *
 * </pre>
* @since 1.
*/
@RestController
@RequestMapping(value = BaseRequestMapping.BasePeopleNum.PREFIX)
@Api(value = "基础人口基数信息管理", description = "基础人口基数信息管理服务接口", tags = {"wlyy基础服务 - 基础人口基数信息管理服务接口"})
public class BasePeopleNumEndpoint extends EnvelopRestEndpoint {
@Autowired
private BasePeopleNumService basePeopleNumService;
@PostMapping(value = BaseRequestMapping.BasePeopleNum.CREATE, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
@ApiOperation(value = "创建")
public ObjEnvelop<BasePeopleNumVO> create (
    @ApiParam(name = "json_data", value = "Json数据", required = true)
    @RequestBody String jsonData) throws Exception {
    BasePeopleNumDO basePeopleNum = toEntity(jsonData, BasePeopleNumDO.class);
    basePeopleNum = basePeopleNumService.save(basePeopleNum);
    return success(basePeopleNum, BasePeopleNumVO.class);
    }
    @PostMapping(value = BaseRequestMapping.BasePeopleNum.DELETE)
    @ApiOperation(value = "删除")
    public Envelop delete(
    @ApiParam(name = "ids", value = "id串,中间用,分隔", required = true)
    @RequestParam(value = "ids") String ids) {
    basePeopleNumService.delete(ids.split(","));
    return success("删除成功");
    }
    @PostMapping(value = BaseRequestMapping.BasePeopleNum.UPDATE, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @ApiOperation(value = "更新")
    public ObjEnvelop<BasePeopleNumVO> update (
        @ApiParam(name = "json_data", value = "Json数据", required = true)
        @RequestBody String jsonData) throws Exception {
        BasePeopleNumDO basePeopleNum = toEntity(jsonData, BasePeopleNumDO.class);
        if (null == basePeopleNum.getId()) {
        return failed("ID不能为空", ObjEnvelop.class);
        }
        basePeopleNum = basePeopleNumService.save(basePeopleNum);
        return success(basePeopleNum, BasePeopleNumVO.class);
        }
        @GetMapping(value = BaseRequestMapping.BasePeopleNum.PAGE)
        @ApiOperation(value = "获取分页")
        public PageEnvelop<BasePeopleNumVO> page (
            @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
            @RequestParam(value = "fields", required = false) String fields,
            @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
            @RequestParam(value = "filters", required = false) String filters,
            @ApiParam(name = "sorts", value = "排序,规则参见说明文档")
            @RequestParam(value = "sorts", required = false) String sorts,
            @ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1")
            @RequestParam(value = "page") int page,
            @ApiParam(name = "size", value = "页码", required = true, defaultValue = "15")
            @RequestParam(value = "size") int size) throws Exception {
            List<BasePeopleNumDO> basePeopleNums = basePeopleNumService.search(fields, filters, sorts, page, size);
                int count = (int)basePeopleNumService.getCount(filters);
                return success(basePeopleNums, count, page, size, BasePeopleNumVO.class);
         }
         @GetMapping(value = BaseRequestMapping.BasePeopleNum.LIST)
         @ApiOperation(value = "获取列表")
         public ListEnvelop<BasePeopleNumVO> list (
             @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
             @RequestParam(value = "fields", required = false) String fields,
             @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
             @RequestParam(value = "filters", required = false) String filters,
             @ApiParam(name = "sorts", value = "排序,规则参见说明文档")
             @RequestParam(value = "sorts", required = false) String sorts) throws Exception {
             List<BasePeopleNumDO> basePeopleNums = basePeopleNumService.search(fields, filters, sorts);
                  return success(basePeopleNums, BasePeopleNumVO.class);
         }
 }

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/team/BaseTeamEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.team;
import com.yihu.jw.base.service.team.BaseTeamService;
import com.yihu.jw.restmodel.base.dict.BaseTeamVO;
import com.yihu.jw.restmodel.base.team.BaseTeamVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/team/BaseTeamMemberEndpoint.java

@ -1,7 +1,7 @@
package com.yihu.jw.base.endpoint.team;
import com.yihu.jw.base.service.team.BaseTeamMemberService;
import com.yihu.jw.restmodel.base.dict.BaseTeamMemberVO;
import com.yihu.jw.restmodel.base.team.BaseTeamMemberVO;
import com.yihu.jw.restmodel.web.Envelop;
import com.yihu.jw.restmodel.web.ListEnvelop;
import com.yihu.jw.restmodel.web.ObjEnvelop;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/wx/WechatCoreController.java

@ -28,7 +28,7 @@ import java.util.List;
 */
@RestController
@RequestMapping(BaseRequestMapping.WeChat.PREFIX)
@Api(value = "微信回调及事件处理", description = "微信回调及事件处理")
@Api(value = "微信回调及事件处理", description = "微信回调及事件处理", tags = {"微信核心服务 - 微信服务器回调及事件处理"})
public class WechatCoreController extends EnvelopRestEndpoint {
    private Logger logger = LoggerFactory.getLogger(WechatCoreController.class);

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/wx/WxMenuController.java

@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
 */
@RestController
@RequestMapping(WechatRequestMapping.api_common)
@Api(value = "微信菜单相关操作", description = "微信菜单相关操作")
@Api(value = "微信菜单相关操作", description = "微信菜单相关操作", tags = {"微信管理 - 微信菜单相关操作"})
public class WxMenuController extends EnvelopRestEndpoint {
    @Autowired

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/endpoint/wx/WxTemplateController.java

@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
 */
@RestController
@RequestMapping(WechatRequestMapping.api_common)
@Api(value = "微信模版相关操作", description = "微信模版相关操作")
@Api(value = "微信模版相关操作", description = "微信模版相关操作", tags = {"微信管理 - 微信模版相关操作"})
public class WxTemplateController extends EnvelopRestEndpoint {
    @Autowired

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseCityService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.area;
import com.yihu.jw.base.dao.BaseCityDao;
import com.yihu.jw.base.dao.area.BaseCityDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.area.BaseCityDO;

+ 22 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseCommitteeService.java

@ -0,0 +1,22 @@
package com.yihu.jw.base.service.area;
import com.yihu.jw.base.dao.area.BaseCommitteeDao;
import com.yihu.jw.entity.base.area.BaseCommitteeDO;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
/**
 * 
 * 区县居委会服务service
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator    1.0  2018年09月04日 Created
 *
 * </pre>
 * @since 1.
 */
@Service
public class BaseCommitteeService extends BaseJpaService<BaseCommitteeDO, BaseCommitteeDao> {
}

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseProvinceService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.area;
import com.yihu.jw.base.dao.BaseProvinceDao;
import com.yihu.jw.base.dao.area.BaseProvinceDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.area.BaseProvinceDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseStreetService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.area;
import com.yihu.jw.base.dao.BaseStreetDao;
import com.yihu.jw.base.dao.area.BaseStreetDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.area.BaseStreetDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/area/BaseTownService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.area;
import com.yihu.jw.base.dao.BaseTownDao;
import com.yihu.jw.base.dao.area.BaseTownDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.area.BaseTownDO;

+ 22 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictDiseaseService.java

@ -0,0 +1,22 @@
package com.yihu.jw.base.service.dict;
import com.yihu.jw.base.dao.dict.DictDiseaseDao;
import com.yihu.jw.entity.base.dict.DictDiseaseDO;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
/**
 * 
 * 病种字典服务service
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator    1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@Service
public class DictDiseaseService extends BaseJpaService<DictDiseaseDO, DictDiseaseDao> {
}

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictHealthProblemService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.dict;
import com.yihu.jw.base.dao.DictHealthProblemDao;
import com.yihu.jw.base.dao.dict.DictHealthProblemDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.dict.DictHealthProblemDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictHospitalDeptService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.dict;
import com.yihu.jw.base.dao.DictHospitalDeptDao;
import com.yihu.jw.base.dao.dict.DictHospitalDeptDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictIcd10Service.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.dict;
import com.yihu.jw.base.dao.DictIcd10Dao;
import com.yihu.jw.base.dao.dict.DictIcd10Dao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.dict.DictIcd10DO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictJobTitleService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.dict;
import com.yihu.jw.base.dao.DictJobTitleDao;
import com.yihu.jw.base.dao.dict.DictJobTitleDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.dict.DictJobTitleDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/dict/DictMedicineService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.dict;
import com.yihu.jw.base.dao.DictMedicineDao;
import com.yihu.jw.base.dao.dict.DictMedicineDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.dict.DictMedicineDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/doctor/BaseDoctorHospitalService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.doctor;
import com.yihu.jw.base.dao.BaseDoctorHospitalDao;
import com.yihu.jw.base.dao.doctor.BaseDoctorHospitalDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.doctor.BaseDoctorHospitalDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/doctor/BaseDoctorRoleDictService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.doctor;
import com.yihu.jw.base.dao.BaseDoctorRoleDictDao;
import com.yihu.jw.base.dao.doctor.BaseDoctorRoleDictDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.doctor.BaseDoctorRoleDictDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/doctor/BaseDoctorService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.doctor;
import com.yihu.jw.base.dao.BaseDoctorDao;
import com.yihu.jw.base.dao.doctor.BaseDoctorDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/org/BaseOrgService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.org;
import com.yihu.jw.base.dao.BaseOrgDao;
import com.yihu.jw.base.dao.org.BaseOrgDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.org.BaseOrgDO;

+ 22 - 0
svr/svr-base/src/main/java/com/yihu/jw/base/service/people_num/BasePeopleNumService.java

@ -0,0 +1,22 @@
package com.yihu.jw.base.service.people_num;
import com.yihu.jw.base.dao.people_num.BasePeopleNumDao;
import com.yihu.jw.entity.base.peopel_num.BasePeopleNumDO;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
/**
 * 
 * 基础人口基数信息服务service
 * 
 * @version 
 * <pre>
 * Author	Version		Date		Changes
 * Administrator    1.0  2018年09月05日 Created
 *
 * </pre>
 * @since 1.
 */
@Service
public class BasePeopleNumService extends BaseJpaService<BasePeopleNumDO, BasePeopleNumDao> {
}

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/team/BaseTeamMemberService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.team;
import com.yihu.jw.base.dao.BaseTeamMemberDao;
import com.yihu.jw.base.dao.team.BaseTeamMemberDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.team.BaseTeamMemberDO;

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/team/BaseTeamService.java

@ -1,6 +1,6 @@
package com.yihu.jw.base.service.team;
import com.yihu.jw.base.dao.BaseTeamDao;
import com.yihu.jw.base.dao.team.BaseTeamDao;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.stereotype.Service;
import com.yihu.jw.entity.base.team.BaseTeamDO;

+ 2 - 2
svr/svr-base/src/main/java/com/yihu/jw/base/service/team/TeamService.java

@ -1,8 +1,8 @@
package com.yihu.jw.base.service.team;
import com.yihu.jw.base.dao.BaseTeamDao;
import com.yihu.jw.base.dao.BaseTeamMemberDao;
import com.yihu.jw.base.dao.team.BaseTeamDao;
import com.yihu.jw.base.dao.team.BaseTeamMemberDao;
import com.yihu.jw.entity.base.team.BaseTeamDO;
import com.yihu.mysql.query.BaseJpaService;
import org.springframework.beans.factory.annotation.Autowired;

+ 29 - 7
svr/svr-wlyy-specialist/src/main/java/com/yihu/jw/controller/SpecialistHospitalServiceItemController.java

@ -14,10 +14,7 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.sleuth.Tracer;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@ -121,8 +118,8 @@ public class SpecialistHospitalServiceItemController extends EnvelopRestEndpoint
     */
    @PostMapping(value = SpecialistMapping.serviceItem.selectByCondition)
    @ApiOperation(value = "根据条件查找机构服务项目")
    public MixEnvelop<HospitalServiceItemDO,HospitalServiceItemDO> selectByCondition(@ApiParam(name = "serviceItemName", value = "服务项目名称")
                                                                                    @RequestParam(value = "serviceItemName")String serviceItemName,
    public MixEnvelop<JSONArray,JSONArray> selectByCondition(@ApiParam(name = "serviceItemName", value = "服务项目名称")
                                                                                    @RequestParam(value = "serviceItemName",required = false)String serviceItemName,
                                                                                     @ApiParam(name = "hospitals",value = "医院集合")
                                                                                     @RequestParam(value = "hospitals",required = false)String hospitals){
        try {
@ -172,7 +169,7 @@ public class SpecialistHospitalServiceItemController extends EnvelopRestEndpoint
    @PostMapping(value = SpecialistMapping.serviceItem.selectByHospital1)
    @ApiOperation(value = "查询服务项目")
    public MixEnvelop<JSONArray,JSONArray> selectByHospital1(@ApiParam(name = "hospital", value ="社区code")
                                              @RequestParam(name = "hospital")String hospital,
                                              @RequestParam(name = "hospital",required = false)String hospital,
                                              @ApiParam(name = "docHospital", value = "医院code")
                                              @RequestParam(name = "docHospital")String docHospital,
                                              @ApiParam(name = "serviceItemName", value = "服务项目名称")
@ -185,4 +182,29 @@ public class SpecialistHospitalServiceItemController extends EnvelopRestEndpoint
            return MixEnvelop.getError(e.getMessage());
        }
    }
    /**
     * 机构服务项目导数据
     *
     * @param hospitalItems
     * @return
     */
    @RequestMapping(value = SpecialistMapping.serviceItem.importData2)
    @ResponseBody
    public MixEnvelop<Boolean,Boolean> importData(@ApiParam(name = "hospitalItems", value = "机构服务项目集合")
                                                  @RequestParam(value = "hospitalItems")String hospitalItems) {
        try {
            JSONArray array = JSONArray.parseArray(hospitalItems);
            List<HospitalServiceItemDO> hospitalServiceItemDOList = new ArrayList<>();
            for (int i = 0;i<array.size();i++){
                HospitalServiceItemDO hospitalServiceItemDO = toEntity(array.getJSONObject(i).toJSONString(),HospitalServiceItemDO.class);
                hospitalServiceItemDOList.add(hospitalServiceItemDO);
            }
            return specialistHospitalServiceItemService.importData(hospitalServiceItemDOList);
        } catch (Exception e) {
            e.printStackTrace();
            tracer.getCurrentSpan().logEvent(e.getMessage());
            return MixEnvelop.getError(e.getMessage());
        }
    }
}

+ 0 - 0
svr/svr-wlyy-specialist/src/main/java/com/yihu/jw/controller/SpecialistServiceItemController.java


Some files were not shown because too many files changed in this diff