From 4a384fb4941b8623e1621c11a36c742d655a3dd7 Mon Sep 17 00:00:00 2001
From: fhx <308050795@qq.com>
Date: 星期二, 08 八月 2023 16:47:50 +0800
Subject: [PATCH] 1.新增报价单功能代码

---
 phis-feign/src/main/java/com/hz/his/feign/service/platform/quotation/SPhipQuotationService.java |   40 +++++++++++++
 phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationDto.java                             |   59 +++++++++++++++++++
 phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationItemDto.java                         |   55 ++++++++++++++++++
 3 files changed, 154 insertions(+), 0 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationDto.java b/phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationDto.java
new file mode 100644
index 0000000..42e8bb6
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationDto.java
@@ -0,0 +1,59 @@
+package com.hz.his.dto.quotation;
+
+import com.hz.his.dto.PageDto;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+
+/**
+ * 鎶ヤ环鍗曚紶鍊糳to
+ * @USER: fhx
+ * @DATE: 2023/8/8
+ **/
+@Data
+public class QuotationDto extends PageDto {
+
+    //鎼滅储鍙傛暟
+    /** 寮�濮嬫椂闂� */
+    private String startTime;
+    /** 缁撴潫鏃堕棿 */
+    private String endTime;
+
+    //浼犲�煎弬鏁�
+    /** 鍒拌璁㈠崟鏍囪瘑 */
+    private String visitOrderId;
+    /** 鐢ㄦ埛鏍囪瘑 */
+    private String userId;
+    /** 骞冲彴绫诲瀷 */
+    private String platformType;
+    /** 鎬讳环(閫昏緫绱鍚庡~鍏咃紝闈炰紶鍙備娇鐢�) */
+    private BigDecimal totalPrice;
+
+    /** 鐨偆妗f鏍囪瘑(MjSkinReport) */
+    private String pfDaId;
+    /** 寰暣娉ㄥ皠鏍囪瘑(AppearanceTotal) */
+    private String wzZsId;
+    /** 寰暣娉ㄥ皠-鍥剧墖璺緞 */
+    private String wzZsImgUrl;
+    /** 浣撴�佸褰㈡爣璇�(AppearanceTotal) */
+    private String ttSxId;
+    /** 浣撴�佸褰�-鍥剧墖璺緞 */
+    private String ttSxImgUrl;
+
+    /** 鎿嶄綔浜烘爣璇� */
+    private String opId;
+    /** 鎿嶄綔浜哄悕绉� */
+    private String opName;
+    /** 鎿嶄綔浜虹被鍨�(OperatorConstants) */
+    private Integer opType;
+    /** 鎿嶄綔浜鸿鑹瞚d(EmployeeRole) */
+    private String opRoleId;
+
+    /** 瀛愰」鍒楄〃淇℃伅 */
+    private List<QuotationItemDto> itemList;
+
+    public QuotationDto() {
+    }
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationItemDto.java b/phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationItemDto.java
new file mode 100644
index 0000000..021241f
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/quotation/QuotationItemDto.java
@@ -0,0 +1,55 @@
+package com.hz.his.dto.quotation;
+
+import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
+import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+/**
+ * 鎶ヤ环鍗曞瓙椤筪to
+ * @USER: fhx
+ * @DATE: 2023/8/8
+ **/
+@Data
+public class QuotationItemDto {
+
+    /** QuotationItem琛╥d */
+    private String id;
+
+    /** 鍏宠仈绫诲瀷 */
+    private String relateType;
+    /** 鍏宠仈鏍囪瘑(閫傚簲鐥�/鏍囩) */
+    private String relateId;
+    /** 鍏宠仈鍚嶇О(鍐椾綑) */
+    private String relateName;
+
+    /** 鍟嗗搧绫诲瀷(OrderItemConstants) */
+    @Column(comment = "", length = 20, type = MySqlTypeConstant.VARCHAR,isNull = false)
+    private String type;
+    /** 椤圭洰id/鍟嗗搧id/濂楅id/鍏朵粬id  */
+    private String goodsId;
+    /** 椤圭洰缂栧彿/鍟嗗搧缂栫爜/濂楅缂栫爜/鍏朵粬缂栫爜 */
+    private String goodsNo;
+    /** 椤圭洰鍚嶇О/鍟嗗搧鍚嶇О */
+    private String goodsName;
+
+    /** 韬綋閮ㄤ綅鍚嶇О */
+    private String bodyPartsName;
+    /** 瑙勬牸 */
+    private String specs;
+    /** 鍗曚綅 */
+    private String unit;
+    /** 鍖荤敓璧勮川 */
+    private String doctorQualification;
+
+    /** 椤圭洰鍘熶环 */
+    private BigDecimal oriPrice;
+    /** 鍞环 */
+    private BigDecimal price;
+    /** 璐拱鏁伴噺 */
+    private Integer buyNum;
+
+    public QuotationItemDto() {
+    }
+}
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/quotation/SPhipQuotationService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/quotation/SPhipQuotationService.java
new file mode 100644
index 0000000..30dfe56
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/quotation/SPhipQuotationService.java
@@ -0,0 +1,40 @@
+package com.hz.his.feign.service.platform.quotation;
+
+import com.hx.resultTool.Result;
+import com.hz.his.dto.quotation.QuotationDto;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+/**
+ * 鎶ヤ环鍗晄ervice
+ * @USER: fhx
+ * @DATE: 2023/8/8
+ **/
+@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-quotation")
+public interface SPhipQuotationService {
+
+    /** 鍒楄〃淇℃伅鎺ュ彛 */
+    @PostMapping("/list")
+    Result list(@RequestBody QuotationDto dto);
+
+    /** 鏂板淇℃伅鎺ュ彛 */
+    @PostMapping("/addInfo")
+    Result addInfo(@RequestBody QuotationDto dto);
+
+    /** 缂栬緫淇℃伅鎺ュ彛 */
+    @PostMapping("/editInfo")
+    Result editInfo(@RequestBody QuotationDto dto);
+
+    /** 鏂板鎶ヤ环鍗� */
+    @PostMapping("/add")
+    Result add(@RequestBody QuotationDto dto);
+
+    /** 缂栬緫鎶ヤ环鍗� */
+    @PostMapping("/edit")
+    Result edit(@RequestBody QuotationDto dto);
+
+    /** 鍒犻櫎鎶ヤ环鍗� */
+    @PostMapping("/del")
+    Result del(@RequestBody QuotationDto dto);
+}

--
Gitblit v1.8.0