phis-feign/src/main/java/com/hz/his/dto/coupon/CouponRecordDto.java
@@ -20,6 +20,8 @@ private String commonItemId; /**公共类型*/ private String commonType; /**来源标识*/ private String sourceId; /**公共标识类型,充值订单标识*/ public static String TYPE_COMMON_ORDER_RECHARGE = "recharge"; @@ -43,6 +45,10 @@ public static final String TYPE_COMMON_DRAW = "draw"; /**公共标识类型,ken活动领取 */ public static String TYPE_COMMON_ACTIVITY_KEN = "activity_ken"; /**公共标识类型,ken活动领取 */ /**公共标识类型,爆款活动领取 */ public static String TYPE_COMMON_BURST_ACTIVITY = "burst_activity"; /**公共标识类型,爆款活动分享赠送 */ public static String TYPE_COMMON_BURST_ACTIVITY_SHARE = "burst_activity_share"; /**公共标识类型,爆款活动规则赠送 */ public static String TYPE_COMMON_BURST_ACTIVITY_RULE = "burst_activity_rule"; } phis-feign/src/main/java/com/hz/his/dto/order/PayDto.java
@@ -59,17 +59,10 @@ /**卡扣不判断过期时间:0否1是*/ private Integer cardPass = 0; /**赠送到账用户-(不要使用,会删除)*/ private String giveIncreaseUserId; /**赠送增值金(注意:传了就送)(不要使用,会删除)*/ private BigDecimal giveIncrease; /**赠送增值金到账规则(MoneyRule)(传了就使用,否则就默认)(不要使用,会删除)*/ private String giveIncreaseId; /**赠送标题(领取记录展示-标题)(不要使用,会删除)*/ private String giveIncreaseTitle; /**赠送标题(领取记录展示-详情)(不要使用,会删除)*/ private String giveIncreaseInfo; /**非必填 可以参与积分抵扣结账的商品标识*/ private List<String> canIntegralCashIdList; /**结账后赠送*/ private PaySendDto paySendDto; } phis-feign/src/main/java/com/hz/his/dto/order/PaySendDto.java
New file @@ -0,0 +1,44 @@ package com.hz.his.dto.order; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 赠送详情 */ @Data public class PaySendDto { /**赠送到账用户*/ private String userId; /**增值金*/ private BigDecimal incrementMoney = BigDecimal.ZERO; /**增值金赠送到账规则(MoneyRule)*/ private String incrementRuleId; /**增值金赠送标题(领取记录展示-标题)*/ private String incrementTitle; /**增值金赠送标题(领取记录展示-详情)*/ private String incrementInfo; /**积分*/ private BigDecimal integralMoney = BigDecimal.ZERO; /**积分赠送到账规则(MoneyRule)*/ private String integralRuleId; /**积分赠送标题(领取记录展示-标题)*/ private String integralTitle; /**积分赠送标题(领取记录展示-详情)*/ private String integralInfo; /**优惠券*/ private List<PaySendItemDto> couponList; /**优惠券赠送规则*/ private String couponRuleId; /**优惠券赠送规则名*/ private String couponRuleName; /**优惠券赠送备注*/ private String couponRemarks; } phis-feign/src/main/java/com/hz/his/dto/order/PaySendItemDto.java
New file @@ -0,0 +1,19 @@ package com.hz.his.dto.order; import lombok.Data; /** * 通用赠送数据 */ @Data public class PaySendItemDto { /**标识*/ private String id; /**名称*/ private String name; /**数量*/ private Integer num = 0; } phis-feign/src/main/java/com/hz/his/dto/user/money/UserMoneyUpdateDto.java
@@ -2,9 +2,6 @@ import lombok.Data; import lombok.ToString; import java.math.BigDecimal; /** * 修改用户资金 @@ -50,6 +47,9 @@ /**备注*/ private String remarks; /**金额规则*/ private String moneyRuleId; /*****************类型信息 注:以下常量以phis的UserMoneyLog常量为主*******************************/ /**操作人类型-系统*/ phis-feign/src/main/java/com/hz/his/feign/service/phis/SOrderActivityService.java
@@ -1,13 +1,11 @@ package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import com.hz.phis.vo.order.OrderActivityCountVo; import com.hz.phis.vo.order.OrderActivityVo; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.math.BigDecimal; /**订单活动查询 * @author CJH @@ -16,11 +14,19 @@ public interface SOrderActivityService { /** * 根据活动编码查询订单是否已经执行 * 根据活动编码查询是否执行+是否消费+赠送数据 * @param orderActivityVo 对象 * @return Result 使用OrderActivityReturnVo转化 */ @PostMapping(value = "/order/activity/execute") Result getActivityExecute(@RequestBody OrderActivityVo orderActivityVo); /** * 获取用户活动返赠的数据 * @param orderActivityVo 对象 * @return Result 使用OrderActivityReturnVo转化 */ @PostMapping(value = "/order/activity/increment/money") Result getActivityReturn(@RequestBody OrderActivityCountVo orderActivityVo); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java
@@ -392,4 +392,10 @@ @PostMapping(value = "/user/vip/log/coupon") Result userVipLogCoupon(@RequestBody UserDto userDto); /** * 查询用户购买过的项目 * */ @PostMapping(value = "/user/buy/sku/logList") Result getUserBuySkuList(@RequestBody UserDto userDto); } phis-feign/src/main/java/com/hz/phis/dt/user/UserDt.java
@@ -78,8 +78,12 @@ private String nurseCorpUserId; //第一次到店时间 private Date firstArriveTime; //最后一次到店时间 private Date lastArriveTime; //第一次下单时间(结账成功的时间) private Date firstPayOrderTime; //最后一次下单时间(结账成功的时间) private Date lastPayOrderTime; //最后一次执行时间 private Date lastDeductionTime; //openId @@ -88,6 +92,8 @@ private String gzhOpenId; //是否含有热玛吉项目 private Boolean isHaveRmj = false; //消费现金 private BigDecimal cashTotal = BigDecimal.ZERO; /** 所属顾问名称 */ private String adviserName; phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityCountVo.java
New file @@ -0,0 +1,21 @@ package com.hz.phis.vo.order; import lombok.Data; import java.util.List; /** * @author fwq */ @Data public class OrderActivityCountVo { /**用户hisId-必填*/ private String userId; /**参与的活动*/ private List<String> codeList; /**金额的来源类型*/ private String operationReason; /**优惠券来源类型(CouponRecordDto)*/ private String couponType; } phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityReturnVo.java
@@ -2,11 +2,49 @@ import lombok.Data; import java.math.BigDecimal; import java.math.RoundingMode; /** * @author CJH */ @Data public class OrderActivityReturnVo { /**活动的订单是否已执行:0否1是*/ private Integer isExecute; private Integer isExecute = 0; /**是否已下单*/ private Integer isOrder = 0; /**增值金*/ private BigDecimal incrementMoney = BigDecimal.ZERO; /**积分*/ private BigDecimal integralMoney = BigDecimal.ZERO; /**优惠券数量*/ private Integer couponNum = 0; /**邀请的人数*/ private Integer inviteeNum = 0; /**分享的人数*/ private Integer shareNum = 0; public void incrementMoneyAdd(BigDecimal money) { if (money == null){ money = BigDecimal.ZERO; } this.incrementMoney = this.incrementMoney.add(money).setScale(2, RoundingMode.HALF_UP); } public void integralMoneyAdd(BigDecimal money) { if (money == null){ money = BigDecimal.ZERO; } this.integralMoney = this.integralMoney.add(money).setScale(2, RoundingMode.HALF_UP); } public void couponNumAdd(Integer num) { if (num == null){ num = 0; } this.couponNum = this.couponNum + num; } } phis-feign/src/main/java/com/hz/phis/vo/order/OrderActivityVo.java
@@ -7,12 +7,28 @@ */ @Data public class OrderActivityVo { /**活动页面类型-指定订单标识*/ private String orderId; /**活动页面类型-可空*/ private Integer activityPageType; /**活动区分编号-必填*/ private String activityPageCode; /**his用户-必填*/ /**用户hisId-必填*/ private String userId; /**邀请人hisId*/ private String inviteeUserId; /**活动区分编号*/ private String activityPageCode; /**查询下单执行返赠金额数据*/ private Boolean selectMoney = false; /**金额的来源类型*/ private String operationReason; /**查询返赠的优惠券*/ private Boolean selectCoupon = false; /**优惠券来源类型(CouponRecordDto)*/ private String couponType; /**查询分享返赠金额数据*/ private Boolean selectShareMoney = false; private String shareOperationReason; /**查询返赠优惠券数据*/ private Boolean selectShareCoupon = false; private String shareCouponType; }