rx
2023-08-24 ee2d8bd49a24d1cea694b7c4f23666fc2c97dde9
咨询记录新增
2个文件已添加
268 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultRecordDto.java 234 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipConsultationService.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultRecordDto.java
New file
@@ -0,0 +1,234 @@
package com.hz.his.dto.consultation;
import com.hz.his.dto.PageDto;
import java.util.List;
import java.util.Map;
/**
 * 咨询记录dto 新版
 */
public class ConsultRecordDto extends PageDto {
    //用户id
    private String userId;
    //门店/诊所ID
    private String shopId;
    //咨询类型 0=标准(旧版) 1=初诊 2=疗程内/在消费/复诊
    private Integer consultType;
    //基本信息
    private String content;
    //面诊医生id
    private String faceDoctorId;
    //治疗医生id
    private String treatDoctorId;
    //主要诉求
    private String appealDetail;
    //治疗方案&报价
    private String treatPlanQuote;
    //剂量参数
    private String dosageParams;
    //既往病史
    private String anamnesis;
    //特殊信息说明
    private String specialInfo;
    //来院前治疗过的项目(多个逗号拼接)
    private String hasTreatProjects;
    //是否草稿 0=否 1=是
    private Integer isDraft;
    //创建人类型 0 是员工 1 是后台
    private Integer adminType;
    //创建人id
    private String adminId;
    //创建人名称
    private String adminName;
    //本次治疗项目 多个逗号分割
    private String treatProjectIds;
    //推荐项目 多个逗号分割
    private String recommendProjectIds;
    //修改传值
    private String id;
    //详情返回值补充
    //治疗项目
    private List<Map<String,Object>> treatProjectList;
    //推荐项目
    private List<Map<String,Object>> recommendProjectList;
    public ConsultRecordDto() {
    }
    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getShopId() {
        return shopId;
    }
    public void setShopId(String shopId) {
        this.shopId = shopId;
    }
    public Integer getConsultType() {
        return consultType;
    }
    public void setConsultType(Integer consultType) {
        this.consultType = consultType;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public String getFaceDoctorId() {
        return faceDoctorId;
    }
    public void setFaceDoctorId(String faceDoctorId) {
        this.faceDoctorId = faceDoctorId;
    }
    public String getTreatDoctorId() {
        return treatDoctorId;
    }
    public void setTreatDoctorId(String treatDoctorId) {
        this.treatDoctorId = treatDoctorId;
    }
    public String getAppealDetail() {
        return appealDetail;
    }
    public void setAppealDetail(String appealDetail) {
        this.appealDetail = appealDetail;
    }
    public String getTreatPlanQuote() {
        return treatPlanQuote;
    }
    public void setTreatPlanQuote(String treatPlanQuote) {
        this.treatPlanQuote = treatPlanQuote;
    }
    public String getDosageParams() {
        return dosageParams;
    }
    public void setDosageParams(String dosageParams) {
        this.dosageParams = dosageParams;
    }
    public String getAnamnesis() {
        return anamnesis;
    }
    public void setAnamnesis(String anamnesis) {
        this.anamnesis = anamnesis;
    }
    public String getSpecialInfo() {
        return specialInfo;
    }
    public void setSpecialInfo(String specialInfo) {
        this.specialInfo = specialInfo;
    }
    public String getHasTreatProjects() {
        return hasTreatProjects;
    }
    public void setHasTreatProjects(String hasTreatProjects) {
        this.hasTreatProjects = hasTreatProjects;
    }
    public Integer getIsDraft() {
        return isDraft;
    }
    public void setIsDraft(Integer isDraft) {
        this.isDraft = isDraft;
    }
    public Integer getAdminType() {
        return adminType;
    }
    public void setAdminType(Integer adminType) {
        this.adminType = adminType;
    }
    public String getAdminId() {
        return adminId;
    }
    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }
    public String getAdminName() {
        return adminName;
    }
    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }
    public String getTreatProjectIds() {
        return treatProjectIds;
    }
    public void setTreatProjectIds(String treatProjectIds) {
        this.treatProjectIds = treatProjectIds;
    }
    public String getRecommendProjectIds() {
        return recommendProjectIds;
    }
    public void setRecommendProjectIds(String recommendProjectIds) {
        this.recommendProjectIds = recommendProjectIds;
    }
    @Override
    public String getId() {
        return id;
    }
    @Override
    public void setId(String id) {
        this.id = id;
    }
    public List<Map<String, Object>> getTreatProjectList() {
        return treatProjectList;
    }
    public void setTreatProjectList(List<Map<String, Object>> treatProjectList) {
        this.treatProjectList = treatProjectList;
    }
    public List<Map<String, Object>> getRecommendProjectList() {
        return recommendProjectList;
    }
    public void setRecommendProjectList(List<Map<String, Object>> recommendProjectList) {
        this.recommendProjectList = recommendProjectList;
    }
}
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipConsultationService.java
New file
@@ -0,0 +1,34 @@
package com.hz.his.feign.service.platform;
import com.hx.resultTool.Result;
import com.hz.his.dto.consultation.ConsultRecordDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
 */
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-consult")
public interface SPhipConsultationService {
    /**
     * 开放平台-咨询记录新增/修改
     */
    @PostMapping(value = "/consultation/record/add/or/edit")
    Result addOrEditConsult(@RequestBody ConsultRecordDto consultRecordNewDto);
    /**
     * 开放平台-咨询记录删除
     */
    @PostMapping(value = "/consultation/record/del")
    Result delConsult(@RequestBody ConsultRecordDto consultRecordNewDto);
    /**
     * 开放平台-咨询记录列表
     */
    @PostMapping(value = "/consultation/record/user/list")
    Result listConsult(@RequestBody ConsultRecordDto consultRecordNewDto);
}