phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderItemDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipPreOrderService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderDto.java
New file @@ -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; /*美容师Id*/ private String beauticianId; /*美容师名称*/ private String beauticianName; /*来源标识(订单标识*/ private String commonId; /*商品类型*/ private String type; /*所属平台appId*/ private String platBelongAppId; /*所属平台Code*/ private String platBelongCode; /*所属平台名称*/ private String platBelongName; /*来源平台appId*/ private String platSourceAppId; /*来源平台code*/ private String platSourceCode; /*来源平台名称*/ private String platSourceName; //预约项目 List<PreOrderItemDto> preOrderItems; } phis-feign/src/main/java/com/hz/his/dto/preOrder/PreOrderItemDto.java
New file @@ -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 { /* 预约表Id(MakeAnAppointment)*/ private String appointmentId; /* 用户项目id(UserProject)*/ private String userProjectId; /* 用户子项目id(UserProjectItem)*/ private String userProjectItemId; /* 项目id/商品id(公用标识)*/ private String goodsId; /* 项目名称*/ private String goodsName; } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipPreOrderService.java
New file @@ -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 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @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); }