jpz6.0
parent
046dbafaa2
commit
3bce4628b2
|
@ -2,16 +2,10 @@ package doctor.controller;
|
||||||
|
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
import doctor.common.core.domain.HealthR;
|
||||||
import doctor.common.core.domain.R;
|
|
||||||
import doctor.domain.entity.DiseaseKnowledge;
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
import doctor.domain.entity.DrugsCategory;
|
import doctor.domain.entity.DrugsCategory;
|
||||||
import doctor.domain.entity.DrugsKnowledge;
|
|
||||||
import doctor.entity.Information;
|
|
||||||
import doctor.entity.InformationPlate;
|
|
||||||
import doctor.service.DiseaseKnowledgeService;
|
import doctor.service.DiseaseKnowledgeService;
|
||||||
import org.bouncycastle.cert.ocsp.Req;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.actuate.health.Health;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package doctor.controller;
|
package doctor.controller;
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
import doctor.common.core.domain.HealthR;
|
||||||
import doctor.entity.Information;
|
import doctor.domain.entity.Information;
|
||||||
import doctor.entity.InformationPlate;
|
import doctor.domain.entity.InformationPlate;
|
||||||
import doctor.service.InformationService;
|
import doctor.service.InformationService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
package doctor.domain.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -8,6 +12,9 @@ import java.util.Date;
|
||||||
* @Author: jpz
|
* @Author: jpz
|
||||||
* @CreateTime: 2024/1/10 21:52
|
* @CreateTime: 2024/1/10 21:52
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
public class DrugsCategory {
|
public class DrugsCategory {
|
||||||
private Integer id;
|
private Integer id;
|
||||||
private String name;
|
private String name;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
@ -8,6 +12,9 @@ import java.util.Date;
|
||||||
* @Author: jpz
|
* @Author: jpz
|
||||||
* @CreateTime: 2024/1/11 16:12
|
* @CreateTime: 2024/1/11 16:12
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
public class InformationPlate {
|
public class InformationPlate {
|
||||||
private Integer id;
|
private Integer id;
|
||||||
private String name;
|
private String name;
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.entity;
|
package doctor.domain.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package doctor.vo;
|
package doctor.domain.vo;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.apache.catalina.User;
|
import org.apache.catalina.User;
|
|
@ -2,8 +2,8 @@ package doctor.mapper;
|
||||||
|
|
||||||
import doctor.domain.entity.DiseaseKnowledge;
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
import doctor.domain.entity.DrugsCategory;
|
import doctor.domain.entity.DrugsCategory;
|
||||||
import doctor.entity.Information;
|
import doctor.domain.entity.Information;
|
||||||
import doctor.entity.InformationPlate;
|
import doctor.domain.entity.InformationPlate;
|
||||||
import org.mybatis.spring.annotation.MapperScan;
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -22,7 +22,5 @@ public interface DiseaseKnowledgeMapper {
|
||||||
|
|
||||||
List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId);
|
List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId);
|
||||||
|
|
||||||
List<Information> findInformationList(Integer plateId);
|
|
||||||
|
|
||||||
List<InformationPlate> findInformationPlateList();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package doctor.mapper;
|
package doctor.mapper;
|
||||||
|
|
||||||
import doctor.entity.Information;
|
import doctor.domain.entity.Information;
|
||||||
import doctor.entity.InformationPlate;
|
import doctor.domain.entity.InformationPlate;
|
||||||
import org.mybatis.spring.annotation.MapperScan;
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -2,8 +2,6 @@ package doctor.service;
|
||||||
|
|
||||||
import doctor.domain.entity.DiseaseKnowledge;
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
import doctor.domain.entity.DrugsCategory;
|
import doctor.domain.entity.DrugsCategory;
|
||||||
import doctor.entity.Information;
|
|
||||||
import doctor.entity.InformationPlate;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package doctor.service;
|
package doctor.service;
|
||||||
|
|
||||||
import doctor.entity.Information;
|
import doctor.domain.entity.Information;
|
||||||
import doctor.entity.InformationPlate;
|
import doctor.domain.entity.InformationPlate;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ package doctor.service.impl;
|
||||||
|
|
||||||
import doctor.domain.entity.DiseaseKnowledge;
|
import doctor.domain.entity.DiseaseKnowledge;
|
||||||
import doctor.domain.entity.DrugsCategory;
|
import doctor.domain.entity.DrugsCategory;
|
||||||
import doctor.entity.Information;
|
|
||||||
import doctor.entity.InformationPlate;
|
|
||||||
import doctor.mapper.DiseaseKnowledgeMapper;
|
import doctor.mapper.DiseaseKnowledgeMapper;
|
||||||
import doctor.service.DiseaseKnowledgeService;
|
import doctor.service.DiseaseKnowledgeService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package doctor.service.impl;
|
package doctor.service.impl;
|
||||||
|
|
||||||
import doctor.entity.Information;
|
import doctor.domain.entity.Information;
|
||||||
import doctor.entity.InformationPlate;
|
import doctor.domain.entity.InformationPlate;
|
||||||
import doctor.mapper.InformationMapper;
|
import doctor.mapper.InformationMapper;
|
||||||
import doctor.service.InformationService;
|
import doctor.service.InformationService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
<mapper namespace="doctor.mapper.InformationMapper">
|
<mapper namespace="doctor.mapper.InformationMapper">
|
||||||
|
|
||||||
|
|
||||||
<select id="findInformationPlateList" resultType="doctor.entity.InformationPlate">
|
<select id="findInformationPlateList" resultType="doctor.domain.entity.InformationPlate">
|
||||||
select *
|
select *
|
||||||
from information_plate
|
from information_plate
|
||||||
</select>
|
</select>
|
||||||
<select id="findInformationList" resultType="doctor.entity.Information">
|
<select id="findInformationList" resultType="doctor.domain.entity.Information">
|
||||||
|
|
||||||
select *
|
select *
|
||||||
from information where plate_id = #{plateId}
|
from information where plate_id = #{plateId}
|
||||||
|
|
Loading…
Reference in New Issue