jpz5.0
parent
2debd213fe
commit
046dbafaa2
|
@ -2,7 +2,7 @@ package doctor.common.core.constant;
|
|||
|
||||
/**
|
||||
* 通用常量信息
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class Constants
|
||||
|
@ -51,6 +51,11 @@ public class Constants
|
|||
* 成功标记
|
||||
*/
|
||||
public static final Integer SUCCESS = 200;
|
||||
/**
|
||||
* 维度健康成功标识
|
||||
*/
|
||||
public static final String SUCCESS_HEALTH = "0000";
|
||||
public static final String FAIL_HEALTH = "9001";
|
||||
|
||||
/**
|
||||
* 失败标记
|
||||
|
|
|
@ -0,0 +1,116 @@
|
|||
package doctor.common.core.domain;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import doctor.common.core.constant.Constants;
|
||||
|
||||
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 = Constants.SUCCESS_HEALTH;
|
||||
|
||||
/** 失败 */
|
||||
public static final String FAIL = Constants.FAIL_HEALTH;
|
||||
|
||||
private T result;
|
||||
private String status;
|
||||
|
||||
private String message;
|
||||
|
||||
|
||||
|
||||
public static <T> HealthR<T> ok()
|
||||
{
|
||||
return restResult(null, SUCCESS, null);
|
||||
}
|
||||
|
||||
public static <T> HealthR<T> ok(T result)
|
||||
{
|
||||
return restResult(result, SUCCESS, null);
|
||||
}
|
||||
|
||||
public static <T> HealthR<T> ok(T result, String message)
|
||||
{
|
||||
return restResult(result, SUCCESS, message);
|
||||
}
|
||||
|
||||
public static <T> HealthR<T> fail()
|
||||
{
|
||||
return restResult(null, FAIL, null);
|
||||
}
|
||||
|
||||
public static <T> HealthR<T> fail(String message)
|
||||
{
|
||||
return restResult(null, FAIL, message);
|
||||
}
|
||||
|
||||
public static <T> HealthR<T> fail(T result)
|
||||
{
|
||||
return restResult(result, FAIL, null);
|
||||
}
|
||||
|
||||
public static <T> HealthR<T> fail(T result, String message)
|
||||
{
|
||||
return restResult(result, FAIL, message);
|
||||
}
|
||||
|
||||
public static <T> HealthR<T> fail(String status, String message)
|
||||
{
|
||||
return restResult(null, status, message);
|
||||
}
|
||||
|
||||
private static <T> HealthR<T> restResult(T result, String status, String message)
|
||||
{
|
||||
HealthR<T> apiResult = new HealthR<>();
|
||||
apiResult.setResult(result);
|
||||
apiResult.setMessage(message);
|
||||
apiResult.setStatus(status);
|
||||
return apiResult;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public T getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(T result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public static <T> Boolean isError(HealthR<T> ret)
|
||||
{
|
||||
return !isSuccess(ret);
|
||||
}
|
||||
|
||||
public static <T> Boolean isSuccess(HealthR<T> ret)
|
||||
{
|
||||
return HealthR.SUCCESS == ret.getStatus();
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -74,6 +74,10 @@
|
|||
<groupId>doctor</groupId>
|
||||
<artifactId>doctor-common-swagger</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package doctor.controller;
|
||||
|
||||
import doctor.common.core.domain.HealthR;
|
||||
import doctor.common.core.domain.R;
|
||||
import doctor.domain.entity.Banners;
|
||||
import doctor.service.BannersService;
|
||||
|
@ -23,8 +24,8 @@ public class BannersController {
|
|||
@Autowired
|
||||
private BannersService bannersService;
|
||||
@GetMapping("/bannersShow")
|
||||
public R<List<Banners>> bannersShow(){
|
||||
public HealthR<List<Banners>> bannersShow(){
|
||||
List<Banners> banners = bannersService.bannersShow();
|
||||
return R.ok(banners);
|
||||
return HealthR.ok(banners);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package doctor.controller;
|
||||
|
||||
import doctor.common.core.domain.HealthR;
|
||||
import doctor.common.core.domain.R;
|
||||
import doctor.domain.entity.Department;
|
||||
import doctor.service.DepartmentService;
|
||||
|
@ -22,8 +23,8 @@ public class DepartmentController {
|
|||
@Autowired
|
||||
private DepartmentService departmentService;
|
||||
@GetMapping("/findDepartment")
|
||||
public R<List<Department>> findDepartment(){
|
||||
public HealthR<List<Department>> findDepartment(){
|
||||
List<Department> list=departmentService.findDepartment();
|
||||
return R.ok(list);
|
||||
return HealthR.ok(list);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package doctor.controller;
|
||||
|
||||
import doctor.common.core.domain.HealthR;
|
||||
import doctor.common.core.domain.R;
|
||||
import doctor.domain.entity.DiseaseCategory;
|
||||
import doctor.service.DiseaseCategoryService;
|
||||
|
@ -25,8 +26,8 @@ public class DiseaseCategoryController {
|
|||
private DiseaseCategoryService diseaseCategoryService;
|
||||
|
||||
@GetMapping("/findDiseaseCategory")
|
||||
public R<List<DiseaseCategory>> findDiseaseCategory(@RequestParam Integer departmentId){
|
||||
public HealthR<List<DiseaseCategory>> findDiseaseCategory(@RequestParam Integer departmentId){
|
||||
List<DiseaseCategory> list=diseaseCategoryService.findDiseaseCategory(departmentId);
|
||||
return R.ok(list);
|
||||
return HealthR.ok(list);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
package doctor.controller;
|
||||
|
||||
|
||||
import doctor.common.core.domain.HealthR;
|
||||
import doctor.common.core.domain.R;
|
||||
import doctor.domain.entity.DiseaseKnowledge;
|
||||
import doctor.domain.entity.DrugsCategory;
|
||||
import doctor.domain.entity.DrugsKnowledge;
|
||||
import doctor.entity.Information;
|
||||
import doctor.entity.InformationPlate;
|
||||
import doctor.service.DiseaseKnowledgeService;
|
||||
import org.bouncycastle.cert.ocsp.Req;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -31,23 +34,28 @@ public class DiseaseKnowledgeController {
|
|||
private DiseaseKnowledgeService diseaseKnowledgeService;
|
||||
//罕见病症详情
|
||||
@GetMapping("/findDiseaseKnowledge")
|
||||
public R<List<DiseaseKnowledge>> findDiseaseKnowledge(@RequestParam Integer diseaseCategoryId){
|
||||
return R.ok(diseaseKnowledgeService.findDiseaseKnowledge(diseaseCategoryId));
|
||||
public HealthR<List<DiseaseKnowledge>> findDiseaseKnowledge(@RequestParam Integer diseaseCategoryId){
|
||||
return HealthR.ok(diseaseKnowledgeService.findDiseaseKnowledge(diseaseCategoryId));
|
||||
}
|
||||
|
||||
@GetMapping("/findDrugsCategoryList")
|
||||
public R<List<DrugsCategory>> findDrugsCategoryList(){
|
||||
return R.ok(diseaseKnowledgeService.findDrugsCategoryList());
|
||||
public HealthR<List<DrugsCategory>> findDrugsCategoryList(){
|
||||
return HealthR.ok(diseaseKnowledgeService.findDrugsCategoryList());
|
||||
}
|
||||
@GetMapping("/findDrugsKnowledgeList")
|
||||
public R<List<DrugsCategory>> findDrugsKnowledgeList(@RequestParam Integer drugsCategoryId,
|
||||
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 R.ok(list);
|
||||
return HealthR.ok(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
package doctor.controller;
|
||||
|
||||
import doctor.common.core.domain.HealthR;
|
||||
import doctor.entity.Information;
|
||||
import doctor.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.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,16 @@
|
|||
package doctor.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @BelongsProject: Medical_Treatment
|
||||
* @BelongsPackage: doctor.entity
|
||||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/11 16:12
|
||||
*/
|
||||
public class InformationPlate {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String sort;
|
||||
private Date createTime;
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
package doctor.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -10,7 +9,7 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 21:33
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class UserAdoptCommentEntity {
|
||||
private Integer id;
|
||||
private Integer userId;
|
||||
|
@ -22,4 +21,84 @@ public class UserAdoptCommentEntity {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 21:37
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class UserArchivesEntity {
|
||||
private Integer id;
|
||||
private Integer userId;
|
||||
|
@ -19,4 +19,60 @@ public class UserArchivesEntity {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 21:40
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class UserBindingLoginEntity {
|
||||
private Integer id;
|
||||
private Integer userId;
|
||||
|
@ -18,4 +18,52 @@ public class UserBindingLoginEntity {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 21:45
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class UserConsumptionRecordEntity {
|
||||
private Integer id;
|
||||
private Integer userId;
|
||||
|
@ -19,4 +19,60 @@ public class UserConsumptionRecordEntity {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,10 +10,42 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 21:49
|
||||
*/
|
||||
@Data
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 21:53
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class UserDrawRecordEntity {
|
||||
private Integer id;
|
||||
private Integer userId;
|
||||
|
@ -20,4 +20,68 @@ public class UserDrawRecordEntity {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 20:59
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class UserEntity {
|
||||
private Integer id;
|
||||
private String phone;
|
||||
|
@ -26,4 +26,116 @@ public class UserEntity {
|
|||
private String invitationCode;
|
||||
private Date updateTime;
|
||||
private Date createTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getPwd() {
|
||||
return pwd;
|
||||
}
|
||||
|
||||
public void setPwd(String pwd) {
|
||||
this.pwd = pwd;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
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 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 getInvitationCode() {
|
||||
return invitationCode;
|
||||
}
|
||||
|
||||
public void setInvitationCode(String invitationCode) {
|
||||
this.invitationCode = invitationCode;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 21:56
|
||||
*/
|
||||
@Data
|
||||
|
||||
public class UserIdCardEntity {
|
||||
private Integer id;
|
||||
private Integer userId;
|
||||
|
@ -22,4 +22,84 @@ public class UserIdCardEntity {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,10 +10,42 @@ import java.util.Date;
|
|||
* @Author: jpz
|
||||
* @CreateTime: 2024/1/8 22:02
|
||||
*/
|
||||
@Data
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,8 @@ package doctor.mapper;
|
|||
|
||||
import doctor.domain.entity.DiseaseKnowledge;
|
||||
import doctor.domain.entity.DrugsCategory;
|
||||
import doctor.entity.Information;
|
||||
import doctor.entity.InformationPlate;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -19,4 +21,8 @@ public interface DiseaseKnowledgeMapper {
|
|||
List<DrugsCategory> findDrugsCategoryList();
|
||||
|
||||
List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId);
|
||||
|
||||
List<Information> findInformationList(Integer plateId);
|
||||
|
||||
List<InformationPlate> findInformationPlateList();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
package doctor.mapper;
|
||||
|
||||
import doctor.entity.Information;
|
||||
import doctor.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();
|
||||
|
||||
}
|
|
@ -2,6 +2,8 @@ package doctor.service;
|
|||
|
||||
import doctor.domain.entity.DiseaseKnowledge;
|
||||
import doctor.domain.entity.DrugsCategory;
|
||||
import doctor.entity.Information;
|
||||
import doctor.entity.InformationPlate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -17,4 +19,6 @@ public interface DiseaseKnowledgeService {
|
|||
List<DrugsCategory> findDrugsCategoryList();
|
||||
|
||||
List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
package doctor.service;
|
||||
|
||||
import doctor.entity.Information;
|
||||
import doctor.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();
|
||||
}
|
|
@ -2,6 +2,8 @@ package doctor.service.impl;
|
|||
|
||||
import doctor.domain.entity.DiseaseKnowledge;
|
||||
import doctor.domain.entity.DrugsCategory;
|
||||
import doctor.entity.Information;
|
||||
import doctor.entity.InformationPlate;
|
||||
import doctor.mapper.DiseaseKnowledgeMapper;
|
||||
import doctor.service.DiseaseKnowledgeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -33,4 +35,6 @@ public class DiseaseKnowledgeServiceimpl implements DiseaseKnowledgeService {
|
|||
public List<DrugsCategory> findDrugsKnowledgeList(Integer drugsCategoryId) {
|
||||
return diseaseKnowledgeMapper.findDrugsKnowledgeList(drugsCategoryId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
package doctor.service.impl;
|
||||
|
||||
import doctor.entity.Information;
|
||||
import doctor.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();
|
||||
}
|
||||
}
|
|
@ -16,4 +16,5 @@
|
|||
select *
|
||||
from drugs_knowledge where drugs_category_id = #{drugsCategoryId}
|
||||
</select>
|
||||
|
||||
</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.entity.InformationPlate">
|
||||
select *
|
||||
from information_plate
|
||||
</select>
|
||||
<select id="findInformationList" resultType="doctor.entity.Information">
|
||||
|
||||
select *
|
||||
from information where plate_id = #{plateId}
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue