phis-feign/src/main/java/com/hz/his/dto/order/OrderItemDto.java
@@ -93,6 +93,9 @@ /** 卡包标识 */ private List<CardItemInfoDto> cardItemInfoIds; /** 第三方item标识 */ private String commonItemId; /**平台类型-CRM*/ phis-feign/src/main/java/com/hz/his/dto/order/OrderPHisDto.java
@@ -3,6 +3,8 @@ import com.hz.his.dto.PageDto; import lombok.Data; import java.util.List; /** * Created with IntelliJ IDEA. * @@ -18,7 +20,10 @@ private String operatorId; //操作人门店标识,必填 private String shopId; //总订单信息,必填 private OrdersTotalDto ordersTotal; private OrderItemDto orderItem; //一级子订单,必填 private List<OrderItemDto> orderItem; //开发人集合 private OrderDeveloperDto orderDeveloper; } phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
New file @@ -0,0 +1,24 @@ package com.hz.his.dto.order; import lombok.Data; /** * 结账金额集合 * * @Author: zhouxiang * @Date: 2022/08/31/15:26 * @Description: */ @Data public class PayAmountDto { //实际支付金额 private String amount; //支付方式 private String method; //商品/项目id/组合项标识(卡项支付时必传组合项标识) private String commonId; //权益类型:卡项支付必传 private String cardEquityId; //卡包标识:卡项支付必传 private String userCardId; } phis-feign/src/main/java/com/hz/his/dto/order/PayDto.java
New file @@ -0,0 +1,30 @@ package com.hz.his.dto.order; import lombok.Data; import java.util.List; /** * 结账参数 * * @Author: zhouxiang * @Date: 2022/06/29/15:11 * @Description: */ @Data public class PayDto { //是否是按项目付款,0:否,1:是 private Integer type; //订单id 必填 private String orderId; //应付总金额 必填 private String total; //结账参数 必填 private List<PayAmountDto> amount; //操作人标识 必填,crm填用户 private String operatorId; //优惠券id private String userCouponId; //订单领建标识 private String hisOrderId; } phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
@@ -78,10 +78,18 @@ Result getUpdateSpuProject(@RequestBody ProjectDto projectDto); /** * 获取项目spu规格列表(同步使用) * 获取当前项目sku规格和其spu规格(同步使用) * @return Result * 返回使用SpecDt */ @PostMapping(value = "/project/page/spu/spec/update") Result getUpdateSpuSpecProject(@RequestParam("hisId") String hisId); Result getUpdateSpuSpecProject(@RequestParam("projectId") String projectId); /** * 获取当前项目sku和对应的spu信息 * @return Result */ @PostMapping(value = "/project/sku/spu") Result getSkuAndSpu(@RequestParam("projectId") String projectId); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java
@@ -7,6 +7,8 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import javax.servlet.http.HttpServletRequest; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @@ -49,10 +51,16 @@ @PostMapping(value = "/refund/syn/refund") Result synRefund(@RequestBody OrderRefundDto dto, @RequestHeader("appIdCode") String appIdCode); /** * 开放平台-开单并且结账接口 */ @PostMapping(value = "/create/pay/order") Result createPayOrder(@RequestBody OrderPHisDto dto); /** * 开放平台-开单 */ @PostMapping(value = "/order/add") Result orderAdd(@RequestBody OrderPHisDto dto); /** * 开放平台-结账 */ @PostMapping(value = "/order/pay") Result orderPay(@RequestBody PayDto dto); } phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java
@@ -6,6 +6,7 @@ import com.hx.resultTool.Result; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -20,6 +21,6 @@ * @param orderId * @return */ @PostMapping(value = "/sync/order/getOrderById") @GetMapping(value = "/sync/order/getOrderById") Result getOrderById(@RequestParam("orderId") String orderId); } phis-feign/src/main/java/com/hz/phis/dt/spec/SkuAndSpuDt.java
New file @@ -0,0 +1,16 @@ package com.hz.phis.dt.spec; import lombok.Data; /** * sku和spu信息返回扩展 * @author fwq * */ @Data public class SkuAndSpuDt { /**sku标识*/ private String skuId; /**spu标识*/ private String spuId; } phis-feign/src/main/java/com/hz/phis/dt/spec/SkuSpecDt.java
@@ -1,35 +1,26 @@ package com.hz.phis.dt.spec; import lombok.Data; /** * 项目sku返回扩展 * @author fwq * */ @Data public class SkuSpecDt { /**规格值记录标识*/ private String id; /**项目sku标识*/ private String projectId; /**项目sku规格标识*/ private String specId; /**项目sku规格名称*/ private String specName; /**项目sku规格值标识*/ private String specValue; /**项目sku规格值名称*/ private String specValueName; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getSpecName() { return specName; } public void setSpecName(String specName) { this.specName = specName; } public String getSpecValueName() { return specValueName; } public void setSpecValueName(String specValueName) { this.specValueName = specValueName; } } phis-feign/src/main/java/com/hz/phis/dt/spec/SpecDt.java
@@ -1,16 +1,18 @@ package com.hz.phis.dt.spec; import lombok.Data; import java.util.List; /** * 规格返回扩展 * @author fwq * */ @Data public class SpecDt { /**spu规格信息*/ private List<SpuSpecDt> spuSpecList; /**sku规格信息*/ private List<SkuSpecDt> projectValueList; private List<SkuSpecDt> skuSpecList; public List<SkuSpecDt> getSkuSpecList() { return skuSpecList; } public void setSkuSpecList(List<SkuSpecDt> skuSpecList) { this.skuSpecList = skuSpecList; } } phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecDt.java
New file @@ -0,0 +1,21 @@ package com.hz.phis.dt.spec; import lombok.Data; import java.util.List; /** * spu规格返回扩展 * @author fwq * */ @Data public class SpuSpecDt { /**项目spu标识*/ private String generalId; /**规格值记录标识*/ private String id; /**规格标识*/ private String specId; /**规格值*/ private List<SpuSpecValueDt> specValueList; } phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecValueDt.java
New file @@ -0,0 +1,18 @@ package com.hz.phis.dt.spec; import lombok.Data; /** * spu规格值返回扩展 * @author fwq * */ @Data public class SpuSpecValueDt { /**规格值标识*/ private String id; /**规格值名称*/ private String specValueName; } phis-feign/src/main/java/com/hz/phis/dt/user/UserDt.java
@@ -61,4 +61,10 @@ private String hisCorpUser; /**性别*/ private Integer gender; /**职业类型名称*/ private String professionTypeName; /**微信号*/ private String wechat; /**邮箱*/ private String email; }