From ee2d8bd49a24d1cea694b7c4f23666fc2c97dde9 Mon Sep 17 00:00:00 2001 From: rx <auster_i@163.com> Date: 星期四, 24 八月 2023 17:20:43 +0800 Subject: [PATCH] 咨询记录新增 --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipConsultationService.java | 34 ++++++ phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultRecordDto.java | 234 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 268 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultRecordDto.java b/phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultRecordDto.java new file mode 100644 index 0000000..b094220 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultRecordDto.java @@ -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; + //鍒涘缓浜篿d + 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; + } +} \ No newline at end of file diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipConsultationService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipConsultationService.java new file mode 100644 index 0000000..d39e056 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipConsultationService.java @@ -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 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@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); + +} \ No newline at end of file -- Gitblit v1.8.0