Merge branch 'master' of https://gitea.qinmian.online/cbx/Medical_Treatment into cbx
# Conflicts: # doctor-auth/src/main/resources/bootstrap.yml # doctor-gateway/src/main/resources/bootstrap.yml # doctor-modules/doctor-file/src/main/resources/bootstrap.yml # doctor-modules/doctor-gen/src/main/resources/bootstrap.yml # doctor-modules/doctor-health/src/main/java/doctor/domain/entity/UserEntity.java # doctor-modules/doctor-health/src/main/resources/bootstrap.yml # doctor-modules/doctor-job/src/main/resources/bootstrap.yml # doctor-modules/doctor-system/src/main/resources/bootstrap.yml # doctor-visual/doctor-monitor/src/main/resources/bootstrap.ymlcbx
commit
c545e129ab
|
@ -51,6 +51,11 @@ public class Constants
|
||||||
* 成功标记
|
* 成功标记
|
||||||
*/
|
*/
|
||||||
public static final Integer SUCCESS = 200;
|
public static final Integer SUCCESS = 200;
|
||||||
|
/**
|
||||||
|
* 维度健康成功标识
|
||||||
|
*/
|
||||||
|
public static final String SUCCESS_HEALTH = "0000";
|
||||||
|
public static final String FAIL_HEALTH = "9001";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 失败标记
|
* 失败标记
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package doctor.common.core.domain;
|
package doctor.common.core.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
import doctor.common.core.constant.Constants;
|
import doctor.common.core.constant.Constants;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
@ -11,6 +11,7 @@ import java.io.Serializable;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@JsonPropertyOrder({ "result", "message", "status" })
|
||||||
public class HealthR<T> implements Serializable
|
public class HealthR<T> implements Serializable
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -21,11 +22,11 @@ public class HealthR<T> implements Serializable
|
||||||
/** 失败 */
|
/** 失败 */
|
||||||
public static final String FAIL = Constants.FAIL_HEALTH;
|
public static final String FAIL = Constants.FAIL_HEALTH;
|
||||||
|
|
||||||
|
private T result;
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
private String message;
|
private String message;
|
||||||
|
|
||||||
private T result;
|
|
||||||
|
|
||||||
public static <T> HealthR<T> ok()
|
public static <T> HealthR<T> ok()
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
package doctor.controller;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.common.core.domain.R;
|
||||||
|
import doctor.domain.entity.Banners;
|
||||||
|
import doctor.service.BannersService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.controller
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 15:54
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/share/v1")
|
||||||
|
|
||||||
|
public class BannersController {
|
||||||
|
@Autowired
|
||||||
|
private BannersService bannersService;
|
||||||
|
@GetMapping("/bannersShow")
|
||||||
|
public HealthR<List<Banners>> bannersShow(){
|
||||||
|
List<Banners> banners = bannersService.bannersShow();
|
||||||
|
return HealthR.ok(banners);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,30 @@
|
||||||
|
package doctor.controller;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.common.core.domain.R;
|
||||||
|
import doctor.domain.entity.Department;
|
||||||
|
import doctor.service.DepartmentService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.controller
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:49
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/share/knowledgeBase/v1")
|
||||||
|
public class DepartmentController {
|
||||||
|
@Autowired
|
||||||
|
private DepartmentService departmentService;
|
||||||
|
@GetMapping("/findDepartment")
|
||||||
|
public HealthR<List<Department>> findDepartment(){
|
||||||
|
List<Department> list=departmentService.findDepartment();
|
||||||
|
return HealthR.ok(list);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
package doctor.controller;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.common.core.domain.R;
|
||||||
|
import doctor.domain.entity.DiseaseCategory;
|
||||||
|
import doctor.service.DiseaseCategoryService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.xml.transform.Result;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.controller
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 17:16
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/share/knowledgeBase/v1")
|
||||||
|
public class DiseaseCategoryController {
|
||||||
|
@Autowired
|
||||||
|
private DiseaseCategoryService diseaseCategoryService;
|
||||||
|
|
||||||
|
@GetMapping("/findDiseaseCategory")
|
||||||
|
public HealthR<List<DiseaseCategory>> findDiseaseCategory(@RequestParam Integer departmentId){
|
||||||
|
List<DiseaseCategory> list=diseaseCategoryService.findDiseaseCategory(departmentId);
|
||||||
|
return HealthR.ok(list);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,55 @@
|
||||||
|
package doctor.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
|
import doctor.domain.entity.DrugsCategory;
|
||||||
|
import doctor.service.DiseaseKnowledgeService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static doctor.common.core.utils.PageUtils.startPage;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.controller
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 20:56
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/share/knowledgeBase/v1")
|
||||||
|
public class DiseaseKnowledgeController {
|
||||||
|
@Autowired
|
||||||
|
private DiseaseKnowledgeService diseaseKnowledgeService;
|
||||||
|
//罕见病症详情
|
||||||
|
@GetMapping("/findDiseaseKnowledge")
|
||||||
|
public HealthR<List<DiseaseKnowledge>> findDiseaseKnowledge(@RequestParam Integer diseaseCategoryId){
|
||||||
|
return HealthR.ok(diseaseKnowledgeService.findDiseaseKnowledge(diseaseCategoryId));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/findDrugsCategoryList")
|
||||||
|
public HealthR<List<DrugsCategory>> findDrugsCategoryList(){
|
||||||
|
return HealthR.ok(diseaseKnowledgeService.findDrugsCategoryList());
|
||||||
|
}
|
||||||
|
@GetMapping("/findDrugsKnowledgeList")
|
||||||
|
public HealthR<List<DrugsCategory>> findDrugsKnowledgeList(@RequestParam Integer drugsCategoryId,
|
||||||
|
@RequestParam(value = "page",defaultValue = "1") Integer page,
|
||||||
|
@RequestParam(value = "count",defaultValue = "5") Integer count){
|
||||||
|
|
||||||
|
startPage(page,count);
|
||||||
|
List<DrugsCategory> list=diseaseKnowledgeService.findDrugsKnowledgeList(drugsCategoryId);
|
||||||
|
return HealthR.ok(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -2,15 +2,10 @@ package doctor.controller;
|
||||||
|
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
import doctor.common.core.domain.HealthR;
|
||||||
import doctor.common.core.web.controller.BaseController;
|
|
||||||
import doctor.common.core.web.page.TableDataInfo;
|
|
||||||
import doctor.domain.dto.VideoDto;
|
import doctor.domain.dto.VideoDto;
|
||||||
import doctor.domain.entity.VideoCategoryEntity;
|
|
||||||
import doctor.domain.entity.VideoEntity;
|
|
||||||
import doctor.domain.vo.VideoCategoryVo;
|
import doctor.domain.vo.VideoCategoryVo;
|
||||||
import doctor.domain.vo.VideoVo;
|
import doctor.domain.vo.VideoVo;
|
||||||
import doctor.service.HealthUserVideoService;
|
import doctor.service.HealthUserVideoService;
|
||||||
import doctor.util.ConvertUtil;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
@ -31,9 +26,9 @@ public class HealthUserVideoController{
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/findVideoVoList")
|
@GetMapping("/findVideoVoList")
|
||||||
public HealthR<List<VideoVo>> findVideoVoList(@RequestBody VideoDto videoDto){
|
public HealthR<List<VideoVo>> findVideoVoList(@RequestParam Integer categoryId,@RequestParam Integer page,@RequestParam Integer count){
|
||||||
startPage(videoDto.getPage(), videoDto.getCount());
|
startPage(page,count);
|
||||||
List<VideoVo> List = healthUserVideoService.findVideoVoList(videoDto);
|
List<VideoVo> List = healthUserVideoService.findVideoVoList(categoryId);
|
||||||
return HealthR.ok(List);
|
return HealthR.ok(List);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
package doctor.controller;
|
||||||
|
|
||||||
|
import doctor.common.core.domain.HealthR;
|
||||||
|
import doctor.domain.entity.Information;
|
||||||
|
import doctor.domain.entity.InformationPlate;
|
||||||
|
import doctor.service.InformationService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.github.pagehelper.page.PageMethod.startPage;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.controller
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/11 16:19
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/share/information/v1")
|
||||||
|
public class InformationController {
|
||||||
|
@Autowired
|
||||||
|
private InformationService informationService;
|
||||||
|
@GetMapping("/findInformationList")
|
||||||
|
public HealthR<List<Information>> findInformationList(@RequestParam Integer plateId,
|
||||||
|
@RequestParam(value = "page",defaultValue = "1") Integer page,
|
||||||
|
@RequestParam(value = "count",defaultValue = "5") Integer count){
|
||||||
|
startPage(page,count);
|
||||||
|
List<Information> list=informationService.findInformationList(plateId);
|
||||||
|
return HealthR.ok(list);
|
||||||
|
}
|
||||||
|
@GetMapping("/findInformationPlateList")
|
||||||
|
public HealthR<List<InformationPlate>> findInformationPlateList(){
|
||||||
|
List<InformationPlate> list=informationService.findInformationPlateList();
|
||||||
|
return HealthR.ok(list);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,85 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 15:12
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Banners {
|
||||||
|
private Integer id;
|
||||||
|
private String imageUrl;
|
||||||
|
private String title;
|
||||||
|
private String jumpUrl;
|
||||||
|
private String rank;
|
||||||
|
private Date startTime;
|
||||||
|
private Date endTime;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImageUrl() {
|
||||||
|
return imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImageUrl(String imageUrl) {
|
||||||
|
this.imageUrl = imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJumpUrl() {
|
||||||
|
return jumpUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJumpUrl(String jumpUrl) {
|
||||||
|
this.jumpUrl = jumpUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRank() {
|
||||||
|
return rank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRank(String rank) {
|
||||||
|
this.rank = rank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getStartTime() {
|
||||||
|
return startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartTime(Date startTime) {
|
||||||
|
this.startTime = startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEndTime() {
|
||||||
|
return endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndTime(Date endTime) {
|
||||||
|
this.endTime = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,57 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:48
|
||||||
|
*/
|
||||||
|
public class Department {
|
||||||
|
private Integer id;
|
||||||
|
private String departmentName;
|
||||||
|
private String pic;
|
||||||
|
private Integer rank;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDepartmentName() {
|
||||||
|
return departmentName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDepartmentName(String departmentName) {
|
||||||
|
this.departmentName = departmentName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPic() {
|
||||||
|
return pic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPic(String pic) {
|
||||||
|
this.pic = pic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRank() {
|
||||||
|
return rank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRank(Integer rank) {
|
||||||
|
this.rank = rank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 17:12
|
||||||
|
*/
|
||||||
|
public class DiseaseCategory {
|
||||||
|
private Integer id;
|
||||||
|
private Integer departmentId;
|
||||||
|
private String name;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDepartmentId() {
|
||||||
|
return departmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDepartmentId(Integer departmentId) {
|
||||||
|
this.departmentId = departmentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,86 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import org.w3c.dom.Text;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 21:36
|
||||||
|
*/
|
||||||
|
public class DiseaseKnowledge {
|
||||||
|
private Integer id;
|
||||||
|
private Integer diseaseCategoryId;
|
||||||
|
private Text pathology;
|
||||||
|
private Text symptom;
|
||||||
|
private Text benefitTaboo;
|
||||||
|
private Text chineseMedicineTreatment;
|
||||||
|
private Text westernMedicineTreatment;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDiseaseCategoryId() {
|
||||||
|
return diseaseCategoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDiseaseCategoryId(Integer diseaseCategoryId) {
|
||||||
|
this.diseaseCategoryId = diseaseCategoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getPathology() {
|
||||||
|
return pathology;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPathology(Text pathology) {
|
||||||
|
this.pathology = pathology;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getSymptom() {
|
||||||
|
return symptom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSymptom(Text symptom) {
|
||||||
|
this.symptom = symptom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getBenefitTaboo() {
|
||||||
|
return benefitTaboo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBenefitTaboo(Text benefitTaboo) {
|
||||||
|
this.benefitTaboo = benefitTaboo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getChineseMedicineTreatment() {
|
||||||
|
return chineseMedicineTreatment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChineseMedicineTreatment(Text chineseMedicineTreatment) {
|
||||||
|
this.chineseMedicineTreatment = chineseMedicineTreatment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getWesternMedicineTreatment() {
|
||||||
|
return westernMedicineTreatment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWesternMedicineTreatment(Text westernMedicineTreatment) {
|
||||||
|
this.westernMedicineTreatment = westernMedicineTreatment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 21:52
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DrugsCategory {
|
||||||
|
private Integer id;
|
||||||
|
private String name;
|
||||||
|
private Integer rank;
|
||||||
|
private Date createTime;
|
||||||
|
}
|
|
@ -0,0 +1,149 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import org.w3c.dom.Text;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 22:00
|
||||||
|
*/
|
||||||
|
public class DrugsKnowledge {
|
||||||
|
private Integer id;
|
||||||
|
private Integer drugsCategoryId;
|
||||||
|
private String name;
|
||||||
|
private Text picture;
|
||||||
|
private String effect;
|
||||||
|
private Text taboo;
|
||||||
|
private String shape;
|
||||||
|
private String packing;
|
||||||
|
private Text component;
|
||||||
|
private Text usage;
|
||||||
|
private Text sideEffects;
|
||||||
|
private String storage;
|
||||||
|
private Text mindMatter;
|
||||||
|
private String approvalNumber;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDrugsCategoryId() {
|
||||||
|
return drugsCategoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDrugsCategoryId(Integer drugsCategoryId) {
|
||||||
|
this.drugsCategoryId = drugsCategoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getPicture() {
|
||||||
|
return picture;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPicture(Text picture) {
|
||||||
|
this.picture = picture;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEffect() {
|
||||||
|
return effect;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEffect(String effect) {
|
||||||
|
this.effect = effect;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getTaboo() {
|
||||||
|
return taboo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaboo(Text taboo) {
|
||||||
|
this.taboo = taboo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getShape() {
|
||||||
|
return shape;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShape(String shape) {
|
||||||
|
this.shape = shape;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPacking() {
|
||||||
|
return packing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPacking(String packing) {
|
||||||
|
this.packing = packing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getComponent() {
|
||||||
|
return component;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComponent(Text component) {
|
||||||
|
this.component = component;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getUsage() {
|
||||||
|
return usage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsage(Text usage) {
|
||||||
|
this.usage = usage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getSideEffects() {
|
||||||
|
return sideEffects;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSideEffects(Text sideEffects) {
|
||||||
|
this.sideEffects = sideEffects;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStorage() {
|
||||||
|
return storage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStorage(String storage) {
|
||||||
|
this.storage = storage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Text getMindMatter() {
|
||||||
|
return mindMatter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMindMatter(Text mindMatter) {
|
||||||
|
this.mindMatter = mindMatter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getApprovalNumber() {
|
||||||
|
return approvalNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApprovalNumber(String approvalNumber) {
|
||||||
|
this.approvalNumber = approvalNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,85 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/11 16:03
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Information {
|
||||||
|
private Integer id;
|
||||||
|
private Integer plateId;
|
||||||
|
private String title;
|
||||||
|
private String thumbnail;
|
||||||
|
private String content;
|
||||||
|
private String source;
|
||||||
|
private Date createTime;
|
||||||
|
private Date releaseTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlateId() {
|
||||||
|
return plateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlateId(Integer plateId) {
|
||||||
|
this.plateId = plateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getThumbnail() {
|
||||||
|
return thumbnail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setThumbnail(String thumbnail) {
|
||||||
|
this.thumbnail = thumbnail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContent(String content) {
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource() {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource(String source) {
|
||||||
|
this.source = source;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getReleaseTime() {
|
||||||
|
return releaseTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReleaseTime(Date releaseTime) {
|
||||||
|
this.releaseTime = releaseTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/11 16:12
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class InformationPlate {
|
||||||
|
private Integer id;
|
||||||
|
private String name;
|
||||||
|
private String sort;
|
||||||
|
private Date createTime;
|
||||||
|
}
|
|
@ -0,0 +1,104 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 21:33
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserAdoptCommentEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private Integer releaseUserId;
|
||||||
|
private String releaseUserName;
|
||||||
|
private String releaseUserHeadPic;
|
||||||
|
private Integer sickCircleId;
|
||||||
|
private String title;
|
||||||
|
private String disease;
|
||||||
|
private String content;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getReleaseUserId() {
|
||||||
|
return releaseUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReleaseUserId(Integer releaseUserId) {
|
||||||
|
this.releaseUserId = releaseUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReleaseUserName() {
|
||||||
|
return releaseUserName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReleaseUserName(String releaseUserName) {
|
||||||
|
this.releaseUserName = releaseUserName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReleaseUserHeadPic() {
|
||||||
|
return releaseUserHeadPic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReleaseUserHeadPic(String releaseUserHeadPic) {
|
||||||
|
this.releaseUserHeadPic = releaseUserHeadPic;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSickCircleId() {
|
||||||
|
return sickCircleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSickCircleId(Integer sickCircleId) {
|
||||||
|
this.sickCircleId = sickCircleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDisease() {
|
||||||
|
return disease;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDisease(String disease) {
|
||||||
|
this.disease = disease;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContent(String content) {
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,78 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 21:37
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserArchivesEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private String bankCardNumber;
|
||||||
|
private String bankName;
|
||||||
|
private Integer bankCardType;
|
||||||
|
private Date updateTime;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankCardNumber() {
|
||||||
|
return bankCardNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankCardNumber(String bankCardNumber) {
|
||||||
|
this.bankCardNumber = bankCardNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankName() {
|
||||||
|
return bankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankName(String bankName) {
|
||||||
|
this.bankName = bankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBankCardType() {
|
||||||
|
return bankCardType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankCardType(Integer bankCardType) {
|
||||||
|
this.bankCardType = bankCardType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,69 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 21:40
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserBindingLoginEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private Integer type;
|
||||||
|
private String openId;
|
||||||
|
private String unionId;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(Integer type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpenId() {
|
||||||
|
return openId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpenId(String openId) {
|
||||||
|
this.openId = openId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnionId() {
|
||||||
|
return unionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnionId(String unionId) {
|
||||||
|
this.unionId = unionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,78 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 21:45
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserConsumptionRecordEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private Integer type;
|
||||||
|
private Integer balance;
|
||||||
|
private Integer changeNum;
|
||||||
|
private String remark;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(Integer type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBalance() {
|
||||||
|
return balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBalance(Integer balance) {
|
||||||
|
this.balance = balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getChangeNum() {
|
||||||
|
return changeNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChangeNum(Integer changeNum) {
|
||||||
|
this.changeNum = changeNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,51 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 21:49
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserDoctorFollowEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private Integer doctorId;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDoctorId() {
|
||||||
|
return doctorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDoctorId(Integer doctorId) {
|
||||||
|
this.doctorId = doctorId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,87 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 21:53
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserDrawRecordEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private Double money;
|
||||||
|
private String bankCardNumber;
|
||||||
|
private String bankName;
|
||||||
|
private String remark;
|
||||||
|
private Integer status;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getMoney() {
|
||||||
|
return money;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMoney(Double money) {
|
||||||
|
this.money = money;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankCardNumber() {
|
||||||
|
return bankCardNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankCardNumber(String bankCardNumber) {
|
||||||
|
this.bankCardNumber = bankCardNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBankName() {
|
||||||
|
return bankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBankName(String bankName) {
|
||||||
|
this.bankName = bankName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Integer status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,13 +1,16 @@
|
||||||
package doctor.domain.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName : User
|
* @BelongsProject: Medical_Treatment
|
||||||
* @Description : 用户表
|
* @BelongsPackage: doctor.entity
|
||||||
* @Author : FJJ
|
* @Author: jpz
|
||||||
* @Date: 2024-01-10 20:46
|
* @CreateTime: 2024/1/8 20:59
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class UserEntity {
|
public class UserEntity {
|
||||||
private Integer id;
|
private Integer id;
|
||||||
private String phone;
|
private String phone;
|
||||||
|
@ -18,11 +21,11 @@ public class UserEntity {
|
||||||
private String headPic;
|
private String headPic;
|
||||||
private Integer sex;
|
private Integer sex;
|
||||||
private Integer age;
|
private Integer age;
|
||||||
private String height;
|
private Integer height;
|
||||||
private String weight;
|
private Integer weight;
|
||||||
private String invitationCode;
|
private String invitationCode;
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
private Long createTime;
|
private Date createTime;
|
||||||
|
|
||||||
public Integer getId() {
|
public Integer getId() {
|
||||||
return id;
|
return id;
|
||||||
|
@ -96,19 +99,19 @@ public class UserEntity {
|
||||||
this.age = age;
|
this.age = age;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getHeight() {
|
public Integer getHeight() {
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHeight(String height) {
|
public void setHeight(Integer height) {
|
||||||
this.height = height;
|
this.height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWeight() {
|
public Integer getWeight() {
|
||||||
return weight;
|
return weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWeight(String weight) {
|
public void setWeight(Integer weight) {
|
||||||
this.weight = weight;
|
this.weight = weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,11 +131,11 @@ public class UserEntity {
|
||||||
this.updateTime = updateTime;
|
this.updateTime = updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getCreateTime() {
|
public Date getCreateTime() {
|
||||||
return createTime;
|
return createTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCreateTime(Long createTime) {
|
public void setCreateTime(Date createTime) {
|
||||||
this.createTime = createTime;
|
this.createTime = createTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,105 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 21:56
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserIdCardEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private String name;
|
||||||
|
private String sex;
|
||||||
|
private String nation;
|
||||||
|
private String birthday;
|
||||||
|
private String address;
|
||||||
|
private String idNumber;
|
||||||
|
private String issueOffice;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSex() {
|
||||||
|
return sex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSex(String sex) {
|
||||||
|
this.sex = sex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNation() {
|
||||||
|
return nation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNation(String nation) {
|
||||||
|
this.nation = nation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBirthday() {
|
||||||
|
return birthday;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBirthday(String birthday) {
|
||||||
|
this.birthday = birthday;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAddress() {
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAddress(String address) {
|
||||||
|
this.address = address;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIdNumber() {
|
||||||
|
return idNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdNumber(String idNumber) {
|
||||||
|
this.idNumber = idNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIssueOffice() {
|
||||||
|
return issueOffice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIssueOffice(String issueOffice) {
|
||||||
|
this.issueOffice = issueOffice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,51 @@
|
||||||
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.entity
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 22:02
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class UserInfoCollectionEntity {
|
||||||
|
private Integer id;
|
||||||
|
private Integer userId;
|
||||||
|
private String infoId;
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
public Integer getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInfoId() {
|
||||||
|
return infoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInfoId(String infoId) {
|
||||||
|
this.infoId = infoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:33
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BannersVo {
|
||||||
|
|
||||||
|
private String imageUrl;
|
||||||
|
private String jumpUrl;
|
||||||
|
private Integer rank;
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
public String getImageUrl() {
|
||||||
|
return imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImageUrl(String imageUrl) {
|
||||||
|
this.imageUrl = imageUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getJumpUrl() {
|
||||||
|
return jumpUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJumpUrl(String jumpUrl) {
|
||||||
|
this.jumpUrl = jumpUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRank() {
|
||||||
|
return rank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRank(Integer rank) {
|
||||||
|
this.rank = rank;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:37
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DepartmentVo {
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private String departmentName;
|
||||||
|
private String pic;
|
||||||
|
private Integer rank;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:39
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
|
||||||
|
public class DiseaseCategoryVo {
|
||||||
|
private Integer id;
|
||||||
|
private Integer departmentId;
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:40
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DiseaseKnowledgeVo {
|
||||||
|
private Integer id;
|
||||||
|
private String pathology;
|
||||||
|
private String symptom;
|
||||||
|
private String benefitTaboo;
|
||||||
|
private String chineseMedicineTreatment;
|
||||||
|
private String westernMedicineTreatment;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:49
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DrugsCategoryVo {
|
||||||
|
private Integer id;
|
||||||
|
private String name;
|
||||||
|
private Integer rank;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:51
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DrugsKnowledgeVo {
|
||||||
|
private Integer id;
|
||||||
|
private Integer drugsCategoryId;
|
||||||
|
private String name;
|
||||||
|
private String picture;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:59
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class InformationPlateVo {
|
||||||
|
private Integer id;
|
||||||
|
private String name;
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.domain.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/12 15:57
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class InformationVo {
|
||||||
|
private Integer id;
|
||||||
|
private String title;
|
||||||
|
private String thumbnail;
|
||||||
|
private String source;
|
||||||
|
private long releaseTime;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package doctor.domain.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.catalina.User;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.vo
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/8 20:41
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class UserVo {
|
||||||
|
private String pwd;
|
||||||
|
//邮箱
|
||||||
|
private String email;
|
||||||
|
//昵称
|
||||||
|
private String nickName;
|
||||||
|
//验证码
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
public static User toUser(UserVo userVo) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package doctor.mapper;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Banners;
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.mapper
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:12
|
||||||
|
*/
|
||||||
|
@MapperScan
|
||||||
|
public interface BannersMapper {
|
||||||
|
List<Banners> bannersShow();
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package doctor.mapper;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Department;
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.mapper
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:54
|
||||||
|
*/
|
||||||
|
@MapperScan
|
||||||
|
public interface DepartmentMapper {
|
||||||
|
List<Department> list();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package doctor.mapper;
|
||||||
|
|
||||||
|
import doctor.domain.entity.DiseaseCategory;
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.mapper
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 20:23
|
||||||
|
*/
|
||||||
|
@MapperScan
|
||||||
|
public interface DiseaseCategoryMapper {
|
||||||
|
|
||||||
|
List<DiseaseCategory> list(Integer departmentId);
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package doctor.mapper;
|
||||||
|
|
||||||
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
|
import doctor.domain.entity.DrugsCategory;
|
||||||
|
import doctor.domain.entity.Information;
|
||||||
|
import doctor.domain.entity.InformationPlate;
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.mapper
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 21:42
|
||||||
|
*/
|
||||||
|
@MapperScan
|
||||||
|
public interface DiseaseKnowledgeMapper {
|
||||||
|
List<DiseaseKnowledge> findDiseaseKnowledge(Integer diseaseCategoryId);
|
||||||
|
|
||||||
|
List<DrugsCategory> findDrugsCategoryList();
|
||||||
|
|
||||||
|
List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -12,5 +12,5 @@ import java.util.List;
|
||||||
public interface HealthUserVideoMapper {
|
public interface HealthUserVideoMapper {
|
||||||
List<VideoCategoryEntity> findVideoCategoryList();
|
List<VideoCategoryEntity> findVideoCategoryList();
|
||||||
|
|
||||||
List<VideoEntity> findVideoVoList(VideoDto videoDto);
|
List<VideoEntity> findVideoVoList(@Param("categoryId") Integer categoryId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
package doctor.mapper;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Information;
|
||||||
|
import doctor.domain.entity.InformationPlate;
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.mapper
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/11 16:22
|
||||||
|
*/
|
||||||
|
@MapperScan
|
||||||
|
public interface InformationMapper {
|
||||||
|
List<Information> findInformationList(Integer plateId);
|
||||||
|
|
||||||
|
List<InformationPlate> findInformationPlateList();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package doctor.service;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Banners;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:10
|
||||||
|
*/
|
||||||
|
|
||||||
|
public interface BannersService {
|
||||||
|
List<Banners> bannersShow();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package doctor.service;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Department;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:52
|
||||||
|
*/
|
||||||
|
public interface DepartmentService {
|
||||||
|
List<Department> findDepartment();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package doctor.service;
|
||||||
|
|
||||||
|
import doctor.domain.entity.DiseaseCategory;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 19:35
|
||||||
|
*/
|
||||||
|
|
||||||
|
public interface DiseaseCategoryService {
|
||||||
|
|
||||||
|
|
||||||
|
List<DiseaseCategory> findDiseaseCategory(Integer departmentId);
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package doctor.service;
|
||||||
|
|
||||||
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
|
import doctor.domain.entity.DrugsCategory;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 21:40
|
||||||
|
*/
|
||||||
|
public interface DiseaseKnowledgeService {
|
||||||
|
List<DiseaseKnowledge> findDiseaseKnowledge(Integer diseaseCategoryId);
|
||||||
|
|
||||||
|
List<DrugsCategory> findDrugsCategoryList();
|
||||||
|
|
||||||
|
List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -13,5 +13,5 @@ import java.util.List;
|
||||||
public interface HealthUserVideoService {
|
public interface HealthUserVideoService {
|
||||||
List<VideoCategoryVo> findVideoCategoryList();
|
List<VideoCategoryVo> findVideoCategoryList();
|
||||||
|
|
||||||
List<VideoVo> findVideoVoList(VideoDto videoDto);
|
List<VideoVo> findVideoVoList(Integer categoryId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
package doctor.service;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Information;
|
||||||
|
import doctor.domain.entity.InformationPlate;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/11 16:21
|
||||||
|
*/
|
||||||
|
|
||||||
|
public interface InformationService {
|
||||||
|
List<Information> findInformationList(Integer plateId);
|
||||||
|
|
||||||
|
List<InformationPlate> findInformationPlateList();
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package doctor.service.impl;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Banners;
|
||||||
|
import doctor.mapper.BannersMapper;
|
||||||
|
import doctor.service.BannersService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service.impl
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class BannersServiceimpl implements BannersService {
|
||||||
|
@Autowired
|
||||||
|
private BannersMapper bannersMapper;
|
||||||
|
@Override
|
||||||
|
public List<Banners> bannersShow() {
|
||||||
|
return bannersMapper.bannersShow();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package doctor.service.impl;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Department;
|
||||||
|
import doctor.mapper.DepartmentMapper;
|
||||||
|
import doctor.service.DepartmentService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service.impl
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 16:53
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DepartmentServiceimpl implements DepartmentService {
|
||||||
|
@Autowired
|
||||||
|
private DepartmentMapper departmentMapper;
|
||||||
|
@Override
|
||||||
|
public List<Department> findDepartment() {
|
||||||
|
return departmentMapper.list();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package doctor.service.impl;
|
||||||
|
|
||||||
|
import doctor.domain.entity.DiseaseCategory;
|
||||||
|
import doctor.mapper.DiseaseCategoryMapper;
|
||||||
|
import doctor.service.DiseaseCategoryService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service.impl
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 20:21
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DiseaseCategoryServiceimpl implements DiseaseCategoryService {
|
||||||
|
@Autowired
|
||||||
|
private DiseaseCategoryMapper diseaseCategoryMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DiseaseCategory> findDiseaseCategory(Integer departmentId) {
|
||||||
|
return diseaseCategoryMapper.list(departmentId);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
package doctor.service.impl;
|
||||||
|
|
||||||
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
|
import doctor.domain.entity.DrugsCategory;
|
||||||
|
import doctor.mapper.DiseaseKnowledgeMapper;
|
||||||
|
import doctor.service.DiseaseKnowledgeService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service.impl
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/10 21:40
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DiseaseKnowledgeServiceimpl implements DiseaseKnowledgeService {
|
||||||
|
@Autowired
|
||||||
|
private DiseaseKnowledgeMapper diseaseKnowledgeMapper;
|
||||||
|
@Override
|
||||||
|
public List<DiseaseKnowledge> findDiseaseKnowledge(Integer diseaseCategoryId) {
|
||||||
|
return diseaseKnowledgeMapper.findDiseaseKnowledge(diseaseCategoryId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DrugsCategory> findDrugsCategoryList() {
|
||||||
|
return diseaseKnowledgeMapper.findDrugsCategoryList();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId) {
|
||||||
|
return diseaseKnowledgeMapper.findDrugsKnowledgeList(drugsCategoryId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -29,8 +29,8 @@ public class HealthUserVideoServiceImpl implements HealthUserVideoService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<VideoVo> findVideoVoList(VideoDto videoDto) {
|
public List<VideoVo> findVideoVoList(Integer categoryId) {
|
||||||
List<VideoEntity> videoVoList = healthUserVideoMapper.findVideoVoList(videoDto);
|
List<VideoEntity> videoVoList = healthUserVideoMapper.findVideoVoList(categoryId);
|
||||||
List<VideoVo> videoVos = ConvertUtil.entityToVoList(videoVoList, VideoVo.class);
|
List<VideoVo> videoVos = ConvertUtil.entityToVoList(videoVoList, VideoVo.class);
|
||||||
return videoVos;
|
return videoVos;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
package doctor.service.impl;
|
||||||
|
|
||||||
|
import doctor.domain.entity.Information;
|
||||||
|
import doctor.domain.entity.InformationPlate;
|
||||||
|
import doctor.mapper.InformationMapper;
|
||||||
|
import doctor.service.InformationService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BelongsProject: Medical_Treatment
|
||||||
|
* @BelongsPackage: doctor.service.impl
|
||||||
|
* @Author: jpz
|
||||||
|
* @CreateTime: 2024/1/11 16:21
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class InformationServiceimpl implements InformationService {
|
||||||
|
@Autowired
|
||||||
|
private InformationMapper informationMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Information> findInformationList(Integer plateId) {
|
||||||
|
return informationMapper.findInformationList(plateId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<InformationPlate> findInformationPlateList() {
|
||||||
|
return informationMapper.findInformationPlateList();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="doctor.mapper.DepartmentMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="list" resultType="doctor.domain.entity.Department">
|
||||||
|
select *from department
|
||||||
|
</select>
|
||||||
|
</mapper>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="doctor.mapper.BannersMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="bannersShow" resultType="doctor.domain.entity.Banners">
|
||||||
|
select *from banners
|
||||||
|
</select>
|
||||||
|
</mapper>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="doctor.mapper.DiseaseCategoryMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="list" resultType="doctor.domain.entity.DiseaseCategory">
|
||||||
|
select *from disease_category where department_id=#{departmentId}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="doctor.mapper.DiseaseKnowledgeMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findDiseaseKnowledge" resultType="doctor.domain.entity.DiseaseKnowledge">
|
||||||
|
select *
|
||||||
|
from disease_knowledge where disease_category_id = #{diseaseCategoryId}
|
||||||
|
</select>
|
||||||
|
<select id="findDrugsCategoryList" resultType="doctor.domain.entity.DrugsCategory">
|
||||||
|
select *from drugs_category
|
||||||
|
</select>
|
||||||
|
<select id="findDrugsKnowledgeList" resultType="doctor.domain.entity.DrugsCategory">
|
||||||
|
select *
|
||||||
|
from drugs_knowledge where drugs_category_id = #{drugsCategoryId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -11,4 +11,5 @@
|
||||||
<select id="findVideoVoList" resultType="doctor.domain.entity.VideoEntity">
|
<select id="findVideoVoList" resultType="doctor.domain.entity.VideoEntity">
|
||||||
select * from video where category_id=#{categoryId}
|
select * from video where category_id=#{categoryId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="doctor.mapper.InformationMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="findInformationPlateList" resultType="doctor.domain.entity.InformationPlate">
|
||||||
|
select *
|
||||||
|
from information_plate
|
||||||
|
</select>
|
||||||
|
<select id="findInformationList" resultType="doctor.domain.entity.Information">
|
||||||
|
|
||||||
|
select *
|
||||||
|
from information where plate_id = #{plateId}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue