From 9df995bc96e8c899d6e2feb391b07bdf0c3353f2 Mon Sep 17 00:00:00 2001 From: wangrenhuang <wangren_huang@163.com> Date: 星期二, 18 十月 2022 21:27:53 +0800 Subject: [PATCH] 新增在线预约接口 --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipPreOrderService.java | 53 +++++++++++++++++ phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderItemDto.java | 28 +++++++++ phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderDto.java | 56 ++++++++++++++++++ 3 files changed, 137 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderDto.java b/phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderDto.java new file mode 100644 index 0000000..57d71a0 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderDto.java @@ -0,0 +1,56 @@ +package com.hz.his.dto.preOrder; + +import com.hz.his.dto.PageDto; +import lombok.Data; + +import java.util.Date; +import java.util.List; + +/** + * @ClassName Appointment + * @Description 棰勭害淇℃伅琛� + * @Author Wrh + * @Date 2022/10/18 11:10 + * @Version 1.0 + */ +@Data +public class PreOrderDto extends PageDto { + + /*鐢ㄦ埛id*/ + private String userId; + private String id; + /*鐢ㄦ埛鍚嶇О*/ + private String userName; + /*棰勭害寮�濮嬫椂闂�*/ + private Date startTime; + /*棰勭害缁撴潫鏃堕棿*/ + private Date endTime; + /*闂ㄥ簵Id*/ + private String shopId; + /*闂ㄥ簵鍚嶇О*/ + private String shopName; + /*缇庡甯圛d*/ + private String beauticianId; + /*缇庡甯堝悕绉�*/ + private String beauticianName; + /*鏉ユ簮鏍囪瘑锛堣鍗曟爣璇�*/ + private String commonId; + /*鍟嗗搧绫诲瀷*/ + private String type; + /*鎵�灞炲钩鍙癮ppId*/ + private String platBelongAppId; + /*鎵�灞炲钩鍙癈ode*/ + private String platBelongCode; + /*鎵�灞炲钩鍙板悕绉�*/ + private String platBelongName; + /*鏉ユ簮骞冲彴appId*/ + private String platSourceAppId; + /*鏉ユ簮骞冲彴code*/ + private String platSourceCode; + /*鏉ユ簮骞冲彴鍚嶇О*/ + private String platSourceName; + + //棰勭害椤圭洰 + List<PreOrderItemDto> preOrderItems; + +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderItemDto.java b/phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderItemDto.java new file mode 100644 index 0000000..481ccb0 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderItemDto.java @@ -0,0 +1,28 @@ +package com.hz.his.dto.preOrder; + +import lombok.Data; + +/** + * @ClassName Appointment + * @Description 棰勭害鍏宠仈椤圭洰琛� + * @Author Wrh + * @Date 2022/10/18 11:10 + * @Version 1.0 + */ +@Data +public class PreOrderItemDto { + + /* 棰勭害琛↖d(MakeAnAppointment)*/ + private String appointmentId; + + /* 鐢ㄦ埛椤圭洰id(UserProject)*/ + private String userProjectId; + + /* 鐢ㄦ埛瀛愰」鐩甶d(UserProjectItem)*/ + private String userProjectItemId; + + /* 椤圭洰id/鍟嗗搧id锛堝叕鐢ㄦ爣璇嗭級*/ + private String goodsId; + /* 椤圭洰鍚嶇О*/ + private String goodsName; +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipPreOrderService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipPreOrderService.java new file mode 100644 index 0000000..6b249df --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipPreOrderService.java @@ -0,0 +1,53 @@ +package com.hz.his.feign.service.platform; + +import com.hx.resultTool.Result; +import com.hz.his.dto.preOrder.PreOrderDto; +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-preOrder") +public interface SPhipPreOrderService { + + /** + * 鍙栨秷棰勭害 + */ + @PostMapping(value = "/pre/order/cancel") + Result cancel(@RequestBody PreOrderDto preOrderDto); + + /** + * 鏌ョ湅棰勭害鍒楄〃 + */ + @PostMapping(value = "/pre/order/list") + Result list(@RequestBody PreOrderDto preOrderDto); + + /** + * 鏂板棰勭害 + */ + @PostMapping(value = "/pre/order/add") + Result add(@RequestBody PreOrderDto preOrderDto); + + /** + * 淇敼棰勭害 + */ + @PostMapping(value = "/pre/order/update") + Result update(@RequestBody PreOrderDto preOrderDto); + + /** + * 鏌ョ湅棰勭害 + */ + @PostMapping(value = "/pre/order/see") + Result see(@RequestBody PreOrderDto preOrderDto); + + + /** + * 鍒犻櫎棰勭害 + */ + @PostMapping(value = "/pre/order/del") + Result del(@RequestBody PreOrderDto preOrderDto); + + +} \ No newline at end of file -- Gitblit v1.8.0