# Conflicts:
#	doctor-modules/doctor-health/src/main/java/doctor/domain/entity/UserEntity.java
#	doctor-modules/doctor-health/src/main/java/doctor/domain/entity/VideoCommentEntity.java
#	doctor-modules/doctor-health/src/main/java/doctor/domain/entity/VideoCountEntity.java
#	doctor-modules/doctor-health/src/main/java/doctor/domain/entity/VideoEntity.java
cbx
fjj 2024-01-12 20:26:27 +08:00
commit d9954c2ab1
95 changed files with 2614 additions and 140 deletions

View File

@ -22,6 +22,10 @@
<groupId>doctor</groupId>
<artifactId>doctor-common-core</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>

View File

@ -1,9 +1,9 @@
package doctor.system.api.model;
import doctor.system.api.domain.Doctor;
import java.io.Serializable;
import java.util.Set;
import doctor.system.api.domain.Department;
import doctor.system.api.domain.Doctor;
import doctor.system.api.domain.SysUser;
import doctor.system.api.domain.User;

View File

@ -0,0 +1,130 @@
package doctor.auth.vo;
public class DoctorUserVo {
private Integer userId;
private String sessionId;
private String nickName;
private String userName;
private String jiGuangPwd;
private String headPic;
private Integer sex;
private Integer age;
private Integer height;
private Integer weight;
private String email;
private Integer whetherBingWeChat;
private String invitationCode;
private Integer faceFlag;
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public String getNickName() {
return nickName;
}
public void setNickName(String nickName) {
this.nickName = nickName;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getJiGuangPwd() {
return jiGuangPwd;
}
public void setJiGuangPwd(String jiGuangPwd) {
this.jiGuangPwd = jiGuangPwd;
}
public String getHeadPic() {
return headPic;
}
public void setHeadPic(String headPic) {
this.headPic = headPic;
}
public Integer getSex() {
return sex;
}
public void setSex(Integer sex) {
this.sex = sex;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public Integer getHeight() {
return height;
}
public void setHeight(Integer height) {
this.height = height;
}
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Integer getWhetherBingWeChat() {
return whetherBingWeChat;
}
public void setWhetherBingWeChat(Integer whetherBingWeChat) {
this.whetherBingWeChat = whetherBingWeChat;
}
public String getInvitationCode() {
return invitationCode;
}
public void setInvitationCode(String invitationCode) {
this.invitationCode = invitationCode;
}
public Integer getFaceFlag() {
return faceFlag;
}
public void setFaceFlag(Integer faceFlag) {
this.faceFlag = faceFlag;
}
}

View File

@ -1,9 +1,9 @@
# Tomcat
server:
server:
port: 9200
# Spring
spring:
spring:
application:
# 应用名称
name: doctor-auth
@ -15,21 +15,13 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# feign 配置
feign:
compression:
request:
enabled: true
min-request-size: 10000
response:
enabled: true

View File

@ -2,7 +2,7 @@ package doctor.common.core.constant;
/**
*
*
*
* @author ruoyi
*/
public class Constants
@ -51,12 +51,27 @@ public class Constants
*
*/
public static final Integer SUCCESS = 200;
/**
*
*/
public static final String SUCCESS_HEALTH = "0000";
public static final String FAIL_HEALTH = "9001";
/**
*
*/
public static final Integer FAIL = 500;
/**
*
*/
public static final String SUCCESS_HEALTH = "0000";
/**
*
*/
public static final String FAIL_HEALTH = "9001";
/**
*
*/

View File

@ -1,7 +1,8 @@
package doctor.common.core.domain;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import doctor.common.core.constant.Constants;
import doctor.common.core.constant.HealthConstants;
import java.io.Serializable;
@ -10,30 +11,31 @@ import java.io.Serializable;
*
* @author ruoyi
*/
@JsonPropertyOrder({ "result", "message", "status" })
public class HealthR<T> implements Serializable
{
private static final long serialVersionUID = 1L;
/** 成功 */
public static final String SUCCESS = HealthConstants.SUCCESS;
public static final String SUCCESS = Constants.SUCCESS_HEALTH;
/** 失败 */
public static final String FAIL = HealthConstants.FAIL;
public static final String FAIL = Constants.FAIL_HEALTH;
private T result;
private String status;
private String message;
private String status;
private T result;
public static <T> HealthR<T> ok()
{
return restResult(null,SUCCESS, null);
return restResult(null, SUCCESS, null);
}
public static <T> HealthR<T> ok(T result)
{
return restResult(result,SUCCESS, null);
return restResult(result, SUCCESS, null);
}
public static <T> HealthR<T> ok(T result, String message)
@ -43,7 +45,7 @@ public class HealthR<T> implements Serializable
public static <T> HealthR<T> fail()
{
return restResult(null,FAIL, null);
return restResult(null, FAIL, null);
}
public static <T> HealthR<T> fail(String message)
@ -53,12 +55,12 @@ public class HealthR<T> implements Serializable
public static <T> HealthR<T> fail(T result)
{
return restResult(result,FAIL, null);
return restResult(result, FAIL, null);
}
public static <T> HealthR<T> fail(T result, String message)
{
return restResult(result,FAIL, message);
return restResult(result, FAIL, message);
}
public static <T> HealthR<T> fail(String status, String message)
@ -69,39 +71,33 @@ public class HealthR<T> implements Serializable
private static <T> HealthR<T> restResult(T result, String status, String message)
{
HealthR<T> apiResult = new HealthR<>();
apiResult.setStatus(status);
apiResult.setResult(result);
apiResult.setMessage(message);
apiResult.setStatus(status);
return apiResult;
}
public String getMessage()
{
return message;
}
public void setMessage(String message)
{
this.message = message;
}
public String getStatus()
{
public String getStatus() {
return status;
}
public void setStatus(String status)
{
public void setStatus(String status) {
this.status = status;
}
public T getResult()
{
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public T getResult() {
return result;
}
public void setResult(T result)
{
public void setResult(T result) {
this.result = result;
}
@ -112,6 +108,8 @@ public class HealthR<T> implements Serializable
public static <T> Boolean isSuccess(HealthR<T> ret)
{
return HealthR.SUCCESS .equals(ret.getStatus()) ;
return HealthR.SUCCESS == ret.getStatus();
}
}

View File

@ -16,7 +16,7 @@ import doctor.common.core.web.page.TableDataInfo;
/**
* web
*
*
* @author ruoyi
*/
public class BaseController
@ -120,7 +120,7 @@ public class BaseController
/**
*
*
*
* @param rows
* @return
*/
@ -131,7 +131,7 @@ public class BaseController
/**
*
*
*
* @param result
* @return
*/

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -30,7 +30,7 @@ import doctor.gen.service.IGenTableService;
/**
*
*
*
* @author ruoyi
*/
@RequestMapping("/gen")

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -1,7 +1,6 @@
package ${packageName}.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -27,7 +26,7 @@ import doctor.common.core.web.page.TableDataInfo;
/**
* ${functionName}Controller
*
*
* @author ${author}
* @date ${datetime}
*/

View File

@ -74,6 +74,10 @@
<groupId>doctor</groupId>
<artifactId>doctor-common-swagger</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>doctor</groupId>

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,40 @@
package doctor.controller;
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.entity.VideoCategoryEntity;
import doctor.domain.entity.VideoEntity;
import doctor.domain.vo.VideoCategoryVo;
import doctor.domain.vo.VideoVo;
import doctor.service.HealthUserVideoService;
import doctor.util.ConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import static com.github.pagehelper.page.PageMethod.startPage;
@RestController
@RequestMapping("/user/video/v1")
public class HealthUserVideoController{
@Autowired
private HealthUserVideoService healthUserVideoService;
@GetMapping("/findVideoCategoryList")
public HealthR<List<VideoCategoryVo>> findVideoCategoryList(){
List<VideoCategoryVo> List = healthUserVideoService.findVideoCategoryList();
return HealthR.ok(List);
}
@GetMapping("/findVideoVoList")
public HealthR<List<VideoVo>> findVideoVoList(@RequestBody VideoDto videoDto){
startPage(videoDto.getPage(), videoDto.getCount());
List<VideoVo> List = healthUserVideoService.findVideoVoList(videoDto);
return HealthR.ok(List);
}
}

View File

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

View File

@ -0,0 +1,40 @@
package doctor.controller;
import com.baomidou.dynamic.datasource.annotation.DS;
import doctor.common.core.domain.R;
import doctor.domain.entity.DoctorUser;
import doctor.service.IDoctorUserService;
import doctor.system.api.domain.SysUser;
import doctor.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/doctor")
@DS("master")
public class SysDoctorController {
@Autowired
private IDoctorUserService iDoctorUserService;
@PostMapping("/getUser")
public R<LoginUser> getUser(String email) {
DoctorUser user = iDoctorUserService.getUser(email);
LoginUser loginUser = new LoginUser();
SysUser sysUser = new SysUser();
sysUser.setUserId(Long.valueOf(user.getId()));
sysUser.setNickName(user.getNickName());
sysUser.setUserName(user.getUserName());
sysUser.setPhonenumber(user.getPhone());
sysUser.setPassword(user.getPwd());
if (user.getSex()==0){
sysUser.setSex("男");
}else {
sysUser.setSex("女");
}
loginUser.setSysUser(sysUser);
return R.ok(loginUser);
}
}

View File

@ -0,0 +1,14 @@
package doctor.domain.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoDto {
private Integer categoryId;
private Integer page=1;
private Integer count=1;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -96,6 +96,7 @@ public class UserEntity {
this.age = age;
}
<<<<<<< HEAD
public String getHeight() {
return height;
}
@ -109,6 +110,21 @@ public class UserEntity {
}
public void setWeight(String weight) {
=======
public Integer getHeight() {
return height;
}
public void setHeight(Integer height) {
this.height = height;
}
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
>>>>>>> 16030f8df7026b88eca021372724f5ad3641a7be
this.weight = weight;
}
@ -128,11 +144,19 @@ public class UserEntity {
this.updateTime = updateTime;
}
<<<<<<< HEAD
public Long getCreateTime() {
return createTime;
}
public void setCreateTime(Long createTime) {
=======
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
>>>>>>> 16030f8df7026b88eca021372724f5ad3641a7be
this.createTime = createTime;
}
}

View File

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

View File

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

View File

@ -0,0 +1,21 @@
package doctor.domain.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoCategoryEntity {
private Integer id;
private String name;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
}

View File

@ -1,68 +1,23 @@
package doctor.domain.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @ClassName : VideoCountEntity
* @Description :
* @Author : FJJ
* @Date: 2024-01-10 16:24
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoCountEntity {
private Integer id;
private Integer videoId;
private Integer buyNum;
private Integer collectionNum;
private Integer commentNum;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getVideoId() {
return videoId;
}
public void setVideoId(Integer videoId) {
this.videoId = videoId;
}
public Integer getBuyNum() {
return buyNum;
}
public void setBuyNum(Integer buyNum) {
this.buyNum = buyNum;
}
public Integer getCollectionNum() {
return collectionNum;
}
public void setCollectionNum(Integer collectionNum) {
this.collectionNum = collectionNum;
}
public Integer getCommentNum() {
return commentNum;
}
public void setCommentNum(Integer commentNum) {
this.commentNum = commentNum;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

View File

@ -6,6 +6,17 @@ package doctor.domain.entity;
* @Author : FJJ
* @Date: 2024-01-10 15:59
*/
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoEntity {
private Integer id;
private String title;
@ -103,4 +114,7 @@ public class VideoEntity {
public VideoEntity() {
}
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,13 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoCategoryVo {
private Integer id;
private String name;
}

View File

@ -0,0 +1,23 @@
package doctor.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoVo {
private Integer id;
private Integer categoryId;
private String title;
private String shearUrl;
private String abstracts;
private String originalUrl;
private Integer price;
private Integer duration;
private Integer whetherCollection;
private Integer whetherBuy;
private Integer buyNum;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,16 @@
package doctor.mapper;
import doctor.domain.dto.VideoDto;
import doctor.domain.entity.VideoCategoryEntity;
import doctor.domain.entity.VideoEntity;
import doctor.domain.vo.VideoCategoryVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface HealthUserVideoMapper {
List<VideoCategoryEntity> findVideoCategoryList();
List<VideoEntity> findVideoVoList(VideoDto videoDto);
}

View File

@ -0,0 +1,10 @@
package doctor.mapper;
import doctor.domain.entity.DoctorUser;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
@MapperScan
public interface IDoctorUserMapper {
DoctorUser selectDoctorUserByEmail(@Param("email") String email);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,17 @@
package doctor.service;
import doctor.domain.dto.VideoDto;
import doctor.domain.entity.VideoCategoryEntity;
import doctor.domain.entity.VideoEntity;
import doctor.domain.vo.VideoCategoryVo;
import doctor.domain.vo.VideoVo;
import java.util.List;
public interface HealthUserVideoService {
List<VideoCategoryVo> findVideoCategoryList();
List<VideoVo> findVideoVoList(VideoDto videoDto);
}

View File

@ -0,0 +1,8 @@
package doctor.service;
import doctor.domain.entity.DoctorUser;
import doctor.system.api.model.LoginUser;
public interface IDoctorUserService {
DoctorUser getUser(String email);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,37 @@
package doctor.service.impl;
import doctor.domain.dto.VideoDto;
import doctor.domain.entity.VideoCategoryEntity;
import doctor.domain.entity.VideoEntity;
import doctor.domain.vo.VideoCategoryVo;
import doctor.domain.vo.VideoVo;
import doctor.mapper.HealthUserVideoMapper;
import doctor.service.HealthUserVideoService;
import doctor.util.ConvertUtil;
import io.netty.util.internal.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class HealthUserVideoServiceImpl implements HealthUserVideoService {
@Autowired
private HealthUserVideoMapper healthUserVideoMapper;
@Override
public List<VideoCategoryVo> findVideoCategoryList() {
List<VideoCategoryEntity> videoCategoryList =healthUserVideoMapper.findVideoCategoryList();
List<VideoCategoryVo> videoCategoryVos = ConvertUtil.entityToVoList(videoCategoryList, VideoCategoryVo.class);
return videoCategoryVos;
}
@Override
public List<VideoVo> findVideoVoList(VideoDto videoDto) {
List<VideoEntity> videoVoList = healthUserVideoMapper.findVideoVoList(videoDto);
List<VideoVo> videoVos = ConvertUtil.entityToVoList(videoVoList, VideoVo.class);
return videoVos;
}
}

View File

@ -0,0 +1,19 @@
package doctor.service.impl;
import doctor.mapper.IDoctorUserMapper;
import doctor.domain.entity.DoctorUser;
import doctor.service.IDoctorUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class IDoctorUserServiceImpl implements IDoctorUserService {
@Autowired
private IDoctorUserMapper iDoctorUserMapper;
@Override
public DoctorUser getUser(String email) {
DoctorUser doctorUser = iDoctorUserMapper.selectDoctorUserByEmail(email);
return doctorUser;
}
}

View File

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

View File

@ -0,0 +1,53 @@
package doctor.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* @Author ifredom
* @Description : Entity - Vo
* @Date 2022/5/10 15:59
* @Param [params]
**/
public class ConvertUtil {
public static final Logger logger = LoggerFactory.getLogger(ConvertUtil.class);
public static <T> T entityToVo(Object source, Class<T> target) {
if (source == null) {
return null;
}
T targetObject = null;
try {
targetObject = target.newInstance();
BeanUtils.copyProperties(source, targetObject);
} catch (Exception e) {
e.printStackTrace();
}
return targetObject;
}
public static <T> List<T> entityToVoList(Collection<?> sourceList, Class<T> target) {
if (sourceList == null) {
return null;
}
List<T> targetList = new ArrayList<>(sourceList.size());
try {
for (Object source : sourceList) {
T targetObject = target.newInstance();
BeanUtils.copyProperties(source, targetObject);
targetList.add(targetObject);
}
} catch (Exception e) {
logger.error("convert error ", e);
}
return targetList;
}
}

View File

@ -15,21 +15,13 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# feign 配置
feign:
compression:
request:
enabled: true
min-request-size: 10000
response:
enabled: true

View File

@ -0,0 +1,14 @@
<?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.HealthUserVideoMapper">
<select id="findVideoCategoryList" resultType="doctor.domain.entity.VideoCategoryEntity">
select * from video_category
</select>
<select id="findVideoVoList" resultType="doctor.domain.entity.VideoEntity">
select * from video where category_id=#{categoryId}
</select>
</mapper>

View File

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

View File

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

View File

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

View File

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

View File

@ -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.IDoctorUserMapper">
<select id="selectDoctorUserByEmail" resultType="doctor.domain.entity.DoctorUser">
select * from user where email = #{email}
</select>
</mapper>

View File

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

View File

@ -30,7 +30,7 @@ import doctor.job.util.ScheduleUtils;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -21,7 +21,7 @@ import doctor.job.service.ISysJobLogService;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -25,7 +25,7 @@ import doctor.system.service.ISysConfigService;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -28,7 +28,7 @@ import doctor.system.service.ISysDictTypeService;
/**
*
*
*
* @author ruoyi
*/
@RestController
@ -37,7 +37,7 @@ public class SysDictDataController extends BaseController
{
@Autowired
private ISysDictDataService dictDataService;
@Autowired
private ISysDictTypeService dictTypeService;

View File

@ -25,7 +25,7 @@ import doctor.system.service.ISysDictTypeService;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -25,7 +25,7 @@ import doctor.system.service.ISysLogininforService;
/**
* 访
*
*
* @author ruoyi
*/
@RestController

View File

@ -23,7 +23,7 @@ import doctor.system.service.ISysNoticeService;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -23,7 +23,7 @@ import doctor.system.service.ISysOperLogService;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -25,7 +25,7 @@ import doctor.system.service.ISysPostService;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -30,7 +30,7 @@ import doctor.system.service.ISysUserService;
/**
*
*
*
* @author ruoyi
*/
@RestController

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -15,11 +15,11 @@ spring:
discovery:
# 服务注册地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
config:
# 配置中心地址
server-addr: 101.34.77.101:8848
namespace: 09dff3e2-9790-4d4f-beb6-9baeb01ae040
namespace: 7e1e997d-5fa4-4f84-9f48-3e0adf830a37
# 配置文件格式
file-extension: yml
# 共享配置