phis-feign/src/main/java/com/hz/his/dto/order/CancelOrderDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundNoteDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
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/dto/sync/SyncUserCradDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipPreOrderService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserCard.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/order/CancelOrderDto.java
@@ -8,9 +8,20 @@ @Data public class CancelOrderDto { /** 订单id */ /** 订单id 必填*/ private String orderId; /** 操作人id */ /** 操作人id 必填*/ private String operatorId; /** 平台来源 必填*/ private Integer platformSource; /**his助手*/ public static Integer HIS_ASSISTANT = 0; /**his后台*/ public static Integer HIS_BACKSTAGE = 1; } phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundNoteDto.java
@@ -10,15 +10,19 @@ @Data public class OrderRefundNoteDto { //必填 private String id; //支付总金额 //支付总金额 必填 private BigDecimal paymentTotal; //退款路径" // 支付方式编号 必填 private String paymentNumberNo; //支付方式名称 必填 private String paymentName; //退款路径" 必填 private Integer refundroute; //退款方式编号 //退款方式编号 必填 private String refundNumberNo; //退款方式名称 //退款方式名称 必填 private String refundName; //只有在转储值金的时候才有这玩意 //退款储值金金额 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/dto/sync/SyncUserCradDto.java
New file @@ -0,0 +1,13 @@ package com.hz.his.dto.sync; import lombok.Data; /** * @Author */ @Data public class SyncUserCradDto { /**his卡包id*/ private String hisId; } 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); } phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java
@@ -17,6 +17,6 @@ * @param syncUserProjectItem * @return */ @PostMapping(value = "/sync/executionRecord/updateUserProjectItm") @PostMapping(value = "/sync/executionRecord/updateUserProjectItem") Result updateUserProjectItm(SyncUserProjectItem syncUserProjectItem); } phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserCard.java
New file @@ -0,0 +1,23 @@ package com.hz.his.feign.service.sync; import com.hx.resultTool.Result; import com.hz.his.dto.sync.SyncUserCradDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; /** * @Author */ @FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-userCrad") public interface SyncUserCard { /** * 修改领健用户卡包为已作废状态 * 注意不要随意调用,需要用到先和同步中心商量 * @param syncUserCradDto * @return */ @PostMapping(value = "/sync/user/card/updateUserCard") Result updateUserCard(SyncUserCradDto syncUserCradDto); }