phis-feign/src/main/java/com/hz/his/dto/PageDto.java
@@ -3,6 +3,8 @@ import lombok.Data; import java.util.List; /** * @author ChenJiaHe * 分页扩展类*/ @@ -20,7 +22,7 @@ private String parentId; /**分类标识*/ private String typeId; private List<String> typeIdList; //appid private String appId; phis-feign/src/main/java/com/hz/his/dto/appointment/AppointmentCrmAddDto.java
New file @@ -0,0 +1,64 @@ package com.hz.his.dto.appointment; import lombok.Data; /** * 预约参数封装 * * @Author: zhouxiang * @Date: 2022/06/01/17:44 * @Description: */ @Data public class AppointmentCrmAddDto { //处理类型(1新增2编辑3取消) private Integer handleType; //预约id private String appointmentId; //crm来源id private String sourceId; //门店标识 private String shopId; //用户标识 private String userId; //医生标识 private String doctorId; //就诊类型 private String visitType; //预约类型 private Integer appType; //预约开始时间 private String startTime; //预约结束时间 private String endTime; //备注 private String remark; //餐食备注 private String mealsRemark; //项目json private String projectJson; //项目ID private String projectIds; //项目名称 private String projectNames; //面诊时长,以分为单位 private Integer docComDuration; //沟通时长,以分为单位 private Integer comDuration; //手术准备时长,以分为单位" private Integer readyDuration; //治疗时长,以分为单位 private Integer treatDuration; //等待时长,以分为单位 private Integer waitDuration; //麻敷时间,以分为存储单位 private Integer palsyDuration; } phis-feign/src/main/java/com/hz/his/dto/card/CardBagDto.java
@@ -14,6 +14,8 @@ private String userId; /**卡包标识*/ private String cardBagId; /**卡包有效状态*/ private Integer effectiveStatus; /**操作员工标识*/ private String opEmployeeId; /**操作门店标识*/ phis-feign/src/main/java/com/hz/his/dto/channel/ChannelGeneralDto.java
New file @@ -0,0 +1,30 @@ package com.hz.his.dto.channel; import lombok.Data; import java.util.List; /** * @author fwq * 渠道扩展 * */ @Data public class ChannelGeneralDto { /**主渠道一级标识*/ private String channelId; /**主渠道二级标识*/ private String channel2Id; /**次渠道一级标识*/ private String channelAssId; /**次渠道二级标识*/ private String channelAss2Id; /**渠道大类标识*/ private List<String> typeIdList; /**判断哪些:0主渠道1次渠道*/ private Integer checkType; } phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java
@@ -1,9 +1,9 @@ package com.hz.his.dto.coupon; import com.hz.his.dto.PageDto; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** @@ -18,6 +18,10 @@ private String operatorId; /**操作人名称*/ private String operatorName; /**操作人类型*/ private Integer operatorType; /**用户标识*/ private String userId; /**活动标识*/ private String groupBuyId; private String id; @@ -38,4 +42,9 @@ /*用户优惠券*/ private String couponNumberId; //开单结账一起执行校验优惠券接口使用参数 /** 优惠券商品JSON数组字符 */ private String couponGoodsArr; /** 订单应付金额 */ private BigDecimal shouldTotal; } phis-feign/src/main/java/com/hz/his/dto/coupon/CouponItemDto.java
@@ -11,8 +11,17 @@ /**优惠券标识*/ private String couponId; /**数量*/ private Integer num; //多优惠券发放时使用字段 /**批次号名称*/ private String recordName; /**公共标识*/ private String commonId; /**公共子标识*/ private String commonItemId; /**公共类型(CouponRecordDto)*/ private String commonType; } phis-feign/src/main/java/com/hz/his/dto/coupon/CouponRecordDto.java
@@ -16,6 +16,8 @@ private String recordName; /**公共标识*/ private String commonId; /**公共子标识*/ private String commonItemId; /**公共类型*/ private String commonType; @@ -35,4 +37,6 @@ public static final String TYPE_COMMON_QUEEN_DAY = "queen_day"; /**公共标识类型,crm商品详情领取优惠券*/ public static final String TYPE_COMMON_GOODS_DETAILS = "goods_details"; /**公共标识类型,订单购买优惠券*/ public static final String TYPE_COMMON_ORDER = "order"; } phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java
New file @@ -0,0 +1,44 @@ package com.hz.his.dto.coupon; import lombok.Data; import java.util.List; /** * 订单发放优惠券dto * @USER: fhx * @DATE: 2023/6/27 **/ @Data public class OrderSendCouponDto { /**用户信息*/ UserArrDto userArrDto; /** 优惠券信息列表 */ private List<CouponItemDto> itemDtoList; /**来源编码,商户自定义服务来源标识*/ private String appIdCode; /**操作人标识*/ private String operatorId; /**操作人名称*/ private String operatorName; /**操作人类型*/ private Integer operatorType; //-------------------------------------------------------------------- //对应phis表CouponReleaseRecord常量 /**操作人类型-员工*/ public static Integer OPERATOR_TYPE_EMPLOYEES = 0; /**操作人类型-管理员*/ public static Integer OPERATOR_TYPE_ADMIN = 1; /**操作人类型-用户自领*/ public static Integer OPERATOR_TYPE_USER = 2; /**操作人类型-系统*/ public static Integer OPERATOR_TYPE_SYSTEM = 3; /**操作人类型-用户订单购买*/ public static Integer OPERATOR_TYPE_USER_ORDER = 4; } phis-feign/src/main/java/com/hz/his/dto/deduction/DeductionDto.java
@@ -2,26 +2,142 @@ import lombok.Data; import java.util.Date; import java.util.List; /** * @ClassName DeductionDto * @Description 划扣 * @Author Wrh * @Date 2022/10/13 10:37 * @Version 1.0 * 划扣接受参数 先改名后续废弃 * author:andru * Date:2021/12/10 14:41 */ @Data public class DeductionDto { /**划扣id*/ // 划扣记录id private String deductionSingleId; /**用户id*/ private String userId; /**是否客户确认(0:否,1:是)*/ private Integer isCustomerConfirm; /**治疗通知单治疗项目id*/ // 用户项目id private String userProjectId; // 用户项目子项id(具体划扣的项目数据的id) private String userProjectItemId; // 公用标识 (预约订单填写id) private String commonId; // 治疗通知单id private String treatSingleId; // 治疗通知单治疗项目id private String treatProjectId; /**项目id列表*/ // 接诊咨询师id private String receptionConsultantId; // 新增类型 DeductionSingleConstants.TYPE_SELF_ADD 默认自增 private String type = "self_add"; // 科室id(FamiliesRoom) private String departmentId; // 科室编号 private String departmentCode; // 科室名称 private String departmentName; // 主诊医生标识(Employee) private String primaryDoctorId; // 主诊医生名称 private String primaryDoctorName; // 治疗医生标识(Employee) private String treatmentDoctorId; // 治疗医生名称 private String treatmentDoctorName; // 备注信息 private String remarkInfo; // 来源应用appId(创建订单平台) private String appId; // 来源应用编码(商户设置平台编码,系统默认,代码必填) private String appIdCode; // 来源代码(应用appId) private String sourceCode; // 来源名称 private String sourceName; // 数量/划扣次数 private Integer deductionNum = 0; // 执行开始时间 private Date executeStartTime; // 执行结束时间 private Date executeEndTime; // 参与人员数据 json private String deductionJoinJson; // 划扣项目消耗处方/药品数据 json private String deductionDrugsJson; // 划扣设备参数数据 json private String deductionDeviceParameterJson; // 客户签名数据 json private String deductionSignJson; // 划扣身体部位数据 json private String deductionBodyPartJson; // 对比照片记录 private String comparePhotoRecordJson; // 批量添加项目id列表 private String userProjectIds; // 门店id private String shopId; // 操作人员工id private String operatorId; // 用户id private String userId; // 划扣日志开始时间 private String logStartTime; // 划扣日志结束时间 private String logEndTime; // 划扣日志-查询His划扣分页日志页数 private Integer page; // 划扣日志-查询His划扣分页日志条数 private Integer size; // 客户确认状态 private Integer isCustomerConfirm; //部位类型(DeductionSingleConstants) private Integer partType; //订单分类(OrderTotalConstants) private Integer orderClassify; // 项目id列表 private List<String> projectIds; // phitab划扣创建时间 private Date phitabCreateTime; // 是否发送划扣消息 0 否 1 是 private int isSentNotice = 1; public DeductionDto() { } } phis-feign/src/main/java/com/hz/his/dto/doctorTime/DoctorTimeDto.java
New file @@ -0,0 +1,26 @@ package com.hz.his.dto.doctorTime; import com.hz.his.dto.PageDto; import lombok.Data; import java.util.Date; /** * @ClassName DoctorTimeDto * @Description 医生排班dto * @Author wrh * @Date 2023/7/4 14:40 * @Version 1.0 */ @Data public class DoctorTimeDto extends PageDto { String monthStr; String shopId; String doctorId; String dayTime; Date startTime; Date endTime; Integer intervalTime; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarCommonReturnDto.java
New file @@ -0,0 +1,23 @@ package com.hz.his.dto.marketing.common; import lombok.Data; /** * 营销助手请求回调参数 * @author fwq */ @Data public class MarCommonReturnDto { /**appId*/ private String appId; /**时间 年月日时分秒*/ private String time; /**sign*/ private String sign; /**返回数据 可参考MarketingReturnDto*/ private String data; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingContentDto.java
New file @@ -0,0 +1,16 @@ package com.hz.his.dto.marketing.common; import lombok.Data; import java.util.List; /** * 营销助手发送消息参数 * @author fwq */ @Data public class MarketingContentDto { /**展示内容键值对*/ private List<MarketingMsgItemDto> contentList; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingMsgDto.java
New file @@ -0,0 +1,20 @@ package com.hz.his.dto.marketing.common; import lombok.Data; import java.util.List; /** * 营销助手发送消息参数 * @author fwq */ @Data public class MarketingMsgDto { /*******************必填项*************************/ /** 是否放大第一个content_item,默认true*/ private Boolean emphasisFirstItem = true; /** 消息内容键值对,最多允许10个item -必填项*/ private List<MarketingMsgItemDto> contentItem; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingMsgItemDto.java
New file @@ -0,0 +1,17 @@ package com.hz.his.dto.marketing.common; import lombok.Data; import java.util.List; /** * 营销助手发送消息参数 * @author fwq */ @Data public class MarketingMsgItemDto { /**如果是发送的消息:长度10个汉字以内 -必填项*/ private String key; /**如果是发送的消息: 长度30个汉字以内 -必填项*/ private String value; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingResultDto.java
New file @@ -0,0 +1,17 @@ package com.hz.his.dto.marketing.common; import lombok.Data; /** * 营销助手请求返回参数 * @author fwq */ @Data public class MarketingResultDto { /**营销助手唯一标识*/ private String applyId; /**审核标识*/ private String examineId; /**是否直接通过:0否1是*/ private Integer isPass; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingReturnDto.java
New file @@ -0,0 +1,32 @@ package com.hz.his.dto.marketing.common; import lombok.Data; /** * 营销助手请求回调参数 * @author fwq */ @Data public class MarketingReturnDto{ /**审核结果 agree为通过,reject为不通过*/ public static final String AGREE = "agree"; public static final String REJECT = "reject"; /**审核结果*/ private String result; /**返回信息*/ private String resultMsg; /**唯一标识*/ private String uniqueId; /**审核标识*/ private String applyId; /**审核人标识*/ private String opId; /**审核人名称*/ private String opMan; /**审核意见*/ private String applyRemarks; } phis-feign/src/main/java/com/hz/his/dto/marketing/common/MarketingTotalDto.java
New file @@ -0,0 +1,29 @@ package com.hz.his.dto.marketing.common; import com.hz.his.dto.marketing.MarketingDto; import lombok.Data; /** * 营销助手请求公共参数 * @author fwq */ @Data public class MarketingTotalDto extends MarketingDto { /******MarketingDto继承字段 -必填项****/ /**审核类型 >20的值*/ private Integer type; /**审核唯一标识*/ private String uniqueId; /**审批界面展示的内容 -必填项*/ private MarketingContentDto marketingContentDto; /**消息发送内容 -必填项*/ private MarketingMsgDto marketingMsgDto; /**回调链接 -必填项 回调传参*/ private String callbackUrl; } phis-feign/src/main/java/com/hz/his/dto/mp/MpQrCodeDto.java
New file @@ -0,0 +1,30 @@ package com.hz.his.dto.mp; /** * 小程序二维码dto */ public class MpQrCodeDto { //ciq private String ciq; //门店编号 private String shopCode; public String getCiq() { return ciq; } public void setCiq(String ciq) { this.ciq = ciq; } public String getShopCode() { return shopCode; } public void setShopCode(String shopCode) { this.shopCode = shopCode; } } phis-feign/src/main/java/com/hz/his/dto/order/CancelOrderDto.java
@@ -26,6 +26,9 @@ /** 平台来源 因为是his助手取消订单的话就要自动确认退款单 必填*/ private Integer platformSource; /** 取消订单备注 */ private String remarks; /**his助手*/ public static final Integer HIS_ASSISTANT = 0; /**his后台*/ phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalDto.java
New file @@ -0,0 +1,24 @@ package com.hz.his.dto.order; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 订单计算应付金额 * @USER: fhx * @DATE: 2023/6/13 **/ @Data public class OrderCountShouldTotalDto { //门店id private String shopId; //用户优惠券 private String couponNumberId; //订单应付金额 private BigDecimal shouldTotal; //商品item信息 private List<OrderCountShouldTotalItemDto> itemDtoList; } phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalItemDto.java
New file @@ -0,0 +1,24 @@ package com.hz.his.dto.order; import com.gitee.sunchenbin.mybatis.actable.annotation.Column; import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; import lombok.Data; import java.math.BigDecimal; /** * 订单计算应付金额item信息 * @USER: fhx * @DATE: 2023/6/13 **/ @Data public class OrderCountShouldTotalItemDto { //商品类型 private String type; //商品id private String commonId; //购买数量 private Integer buyNum; //订单折扣 private BigDecimal discount = BigDecimal.ZERO; } phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java
@@ -20,6 +20,8 @@ private BigDecimal total; /**必填 子单总积分,实付积分(暂时用不上)*/ private BigDecimal totalIntegral; /**非必填 子单总积分,开单时应付总积分(CRM积分订单时必填)*/ private BigDecimal totalPoints; /**非必填 折扣(单位:百分比) 必填,默认100,不传后台默认100*/ private BigDecimal discount; /**必填 购买数量 必填,默认0*/ phis-feign/src/main/java/com/hz/his/dto/order/OrderPHisDto.java
@@ -26,4 +26,8 @@ private List<OrderItemPHisDto> orderItem; /**开发人集合 非必填*/ private List<OrderDeveloperDto> orderDeveloper; /**卡扣不判断过期时间:0否1是*/ private Integer cardPass = 0; } phis-feign/src/main/java/com/hz/his/dto/order/OrdersPHisTotalDto.java
@@ -65,6 +65,9 @@ /**必填 订单总金额(订单类型是充值订单必填,否则非必填) */ private BigDecimal total; /**非必填 订单总积分(订单类型是积分订单必填,否则非必填) */ private BigDecimal totalPoints; /**非必填 订单其他信息(没有后台默认)*/ private OrderInfoDto orderInfo; phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
@@ -22,4 +22,12 @@ private String cardEquityId; /**非必填 卡包标识:卡项支付必传*/ private String userCardId; /** * 标记字段,默认0 * 支付方式为积分时: * isDel=100,则phis这边需要扣减用户积分 * isDel=101,则phis这边不需要扣减用户积分 */ private Integer isDel = 0; } phis-feign/src/main/java/com/hz/his/dto/order/PayDto.java
@@ -48,7 +48,11 @@ /**第三方订单编号*/ private String otherOrderNo; /**第三方兑换码*/ private String redemptionCode; /**结账之后是否直接划扣:0否1是*/ private Integer directDeduction = 0; /**卡扣不判断过期时间:0否1是*/ private Integer cardPass = 0; } phis-feign/src/main/java/com/hz/his/dto/report/ClinicPerfReqDto.java
@@ -11,8 +11,12 @@ @Data public class ClinicPerfReqDto extends BaseQueryVo{ /** 门店id */ /** 所属门店id */ private String shopId; /** 订单门店 */ private String orderShopId; /** 收银门店*/ private String cashierShopId; /** 开始时间 */ private String startTime; /** 结束时间 */ phis-feign/src/main/java/com/hz/his/dto/report/EmployeeReportDto.java
@@ -14,6 +14,7 @@ private String employeeId; /**门店标识*/ private String shopId; private String shopIds; /**登录员工唯一字符串*/ private String roleStr; /**员工标识集合*/ @@ -28,4 +29,8 @@ private String endTime; /**类型*/ private Integer type; /**是否新会员*/ private Integer isNewUser; /**是否首天*/ private Integer isBothOne; } phis-feign/src/main/java/com/hz/his/dto/user/UserPackDto.java
New file @@ -0,0 +1,18 @@ package com.hz.his.dto.user; import lombok.Data; /**人群包查询参数*/ @Data public class UserPackDto{ /**ciq*/ private String CIQ; /**名称*/ private String name; /**会员号*/ private String memberNO; /**手机号*/ private String tel; } phis-feign/src/main/java/com/hz/his/dto/user/UserPackListDto.java
New file @@ -0,0 +1,12 @@ package com.hz.his.dto.user; import lombok.Data; import java.util.List; /**人群包用户查询参数*/ @Data public class UserPackListDto { private List<UserPackDto> list; } phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsUsedCouponDto.java
@@ -14,6 +14,8 @@ public class GoodsUsedCouponDto extends PageDto { /**用户标识*/ private String userId; /**团购活动标识*/ private String groupBuyId; /**商品类型*/ private Integer goodType; /**his商品类型*/ @@ -21,5 +23,7 @@ /**平台*/ private String platform; /**sku标识*/ private List<String> couponIdList; /**sku标识*/ private List<GoodsCanUseCouponDto> goodsCanUseCouponDtoList; } phis-feign/src/main/java/com/hz/his/dto/user/money/UserMoneyUpdateDto.java
@@ -95,6 +95,8 @@ public static final String OPERATION_REASON_CHANGE = "changeGoods"; /**操作方式-生日赠送*/ public static final String OPERATION_REASON_BIRTHDAY_GIFT = "birthdayGift"; /**操作方式-老带新赠送0701*/ public static final String OPERATION_REASON_GIFT_0701 = "bringNewUserGift_0701"; /**操作方式-活动参与*/ public static final String OPERATION_REASON_ACTIVITY_JOIN = "activity_join"; } phis-feign/src/main/java/com/hz/his/dto/user/project/UserProjectDto.java
@@ -30,13 +30,12 @@ private String orderId; /**状态*/ private Integer status; //是否SPA(0:否,1:是) /**是否SPA(0:否,1:是)*/ private Integer isSpa; //用户所属子项目id(UserProjectItem) /**用户所属子项目id(UserProjectItem)*/ private String userProjectItemId; /**是否处理蔡医生名称*/ private Integer handlerDoctorName = 0; } phis-feign/src/main/java/com/hz/his/feign/service/marketing/MCommonService.java
New file @@ -0,0 +1,24 @@ package com.hz.his.feign.service.marketing; import com.hx.resultTool.Result; import com.hz.his.dto.marketing.common.MarketingTotalDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * 营销助手审核接口 */ @FeignClient(name="marketing-assistant-user",path = "/m_assistant",contextId = "m-common") public interface MCommonService { /** * 统一申请审核接口 */ @PostMapping(value = "/common/apply") Result applyOrderDiscount(@RequestBody MarketingTotalDto marketingTotalDto); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SChannelsService.java
@@ -2,6 +2,8 @@ import com.hx.resultTool.Result; import com.hz.his.dto.PageDto; import com.hz.his.dto.channel.ChannelDto; import com.hz.his.dto.channel.ChannelGeneralDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -27,4 +29,18 @@ */ @PostMapping(value = "/channels/list") Result getChannelsList(@RequestBody PageDto pageDto); /** * 获取渠道列表-渠道大类 * @return Result */ @PostMapping(value = "/channels/type/list") Result getChannelsListByType(@RequestBody PageDto pageDto); /** * 获取渠道列表-判断是否归属 * @return Result */ @PostMapping(value = "/channels/type/check") Result checkInChannel(@RequestBody ChannelGeneralDto channelGeneralDto); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SConsumablesService.java
@@ -35,4 +35,11 @@ */ @PostMapping(value = "/consumables/update/list") Result getUpdateConsumables(@RequestBody ConsumablesDto consumablesDto); /** * 获取优惠券商品列表 * @return Result */ @PostMapping(value = "/consumables/coupon/list") Result getConsumablesCouponList(@RequestBody PageDto pageDto); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java
@@ -124,4 +124,10 @@ /*下单校验优惠券是否可用*/ @PostMapping(value = "/coupon/order/check") Result orderCheck(@RequestBody(required = false) CouponListDto couponListDto); /** * 查看商品详情用户可用优惠券 */ @PostMapping(value = "/coupon/user/goods") Result findUserGoodsCoupon(@RequestBody(required = false) GoodsUsedCouponDto dto); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SDoctorTimeService.java
New file @@ -0,0 +1,49 @@ package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import com.hz.his.dto.doctorTime.DoctorTimeDto; 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; /** * @ClassName SActivityController * @Description 活动规则 * @Author Wrh * @Date 2022/8/8 17:36 * @Version 1.0 */ @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "doctorTime") public interface SDoctorTimeService { /** * 获取医生排班列表 * @return Result */ @PostMapping(value = "/doctor/time/list") Result list(@RequestBody DoctorTimeDto dto); /** * 医生排班时间信息 * @return Result */ @PostMapping(value = "/doctor/time/info") Result info(@RequestBody DoctorTimeDto dto); /** * 判断医生排班时间是否被占用 * @return Result */ @PostMapping(value = "/doctor/time/checkTimeIsHasAppointment") Result checkTimeIsHasAppointment(@RequestBody DoctorTimeDto dto); /** * 医生排班时间详情 * @return Result */ @PostMapping(value = "/doctor/time/details") Result details(@RequestBody DoctorTimeDto dto); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java
@@ -19,6 +19,8 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @@ -255,6 +257,13 @@ @PostMapping(value = "/user/crowd/import") Result userCrowdImport(@RequestBody UserDto userDto); /** * 获取用户信息,导入人群包专用 * 根据CIQ或者名称全匹配查找用户 */ @PostMapping(value = "/user/crowd/import/new") Result userCrowdImportNew(@RequestBody UserPackListDto userPackListDto); /** * 获取用户子项目 @@ -269,6 +278,12 @@ */ @PostMapping(value = "/user/info/baseInfo") Result userInfoBaseInfo(@RequestParam("userId") String userId); /** * 获取到用户 */ @PostMapping(value = "/user/sync/by/idList") Result userSyncList(@RequestBody List<String> hisIdList); /** * 判断用户是否是会员 @@ -319,4 +334,10 @@ * */ @PostMapping(value = "/user/rebate/userId") Result queryRebateByUserId(@RequestBody UserDto userDto); /** * 查询用户累计返佣 * */ @PostMapping(value = "/user/query/oldNewPerformance") Result queryOldNewPerformance(@RequestBody UserDto userDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipAppointmentService.java
New file @@ -0,0 +1,19 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.appointment.AppointmentCrmAddDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * @USER: fhx * @DATE: 2023/7/6 **/ @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-appointment") public interface SPhipAppointmentService { /** CRM预约 */ @PostMapping("/appointment/crm/app") Result crmApp(@RequestBody AppointmentCrmAddDto dto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java
@@ -2,6 +2,7 @@ import com.hx.resultTool.Result; import com.hz.his.dto.coupon.CouponDto; import com.hz.his.dto.coupon.OrderSendCouponDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -49,4 +50,16 @@ */ @PostMapping(value = "/coupon/check/coupon") Result checkCoupon(@RequestBody CouponDto couponDto); /** * 开放平台-订单发放优惠券 */ @PostMapping(value = "/coupon/order/send/coupon") Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto); /** * 开放平台-检查优惠券是否可用 - 开单结账同时执行使用 */ @PostMapping(value = "/coupon/check/coupon/to/orderAndPay") Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipDeductionService.java
@@ -24,7 +24,6 @@ @PostMapping(value = "/deduction/customer/confirm/all") Result customerConfirmAll(@RequestBody DeductionDto dto); /** * 客户确认划扣之前页面数据 */ @@ -32,8 +31,38 @@ Result customerConfirmBefore(@RequestBody DeductionDto dto); /** * 客户确认划扣之前页面数据所有未确认数据 */ @PostMapping(value = "/deduction/customer/confirm/all/before") Result customerConfirmAllBefore(@RequestBody DeductionDto dto); /** * 获取用户划扣信息之前的医生信息 */ @PostMapping(value = "/deduction/project/before/doctor/info") Result projectBeforeDoctorInfo(@RequestBody DeductionDto dto); /** * 新增划扣记录 */ @PostMapping(value = "/deduction/add") Result addData(@RequestBody DeductionDto dto); /** * 修改划扣记录 */ @PostMapping(value = "/deduction/update") Result updateData(@RequestBody DeductionDto dto); /** * 作废划扣记录 */ @PostMapping(value = "/deduction/rescinded") Result rescindedData(@RequestBody DeductionDto dto); /** * 删除划扣记录 */ @PostMapping(value = "/deduction/delete") Result deleteData(@RequestBody DeductionDto dto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipMpQrCodeService.java
New file @@ -0,0 +1,20 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.mp.MpQrCodeDto; 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-qrcode") public interface SPhipMpQrCodeService { /** * 开放平台- 用户扫码登记模块 注册绑定后创建his助手小程序码(MpQrCodeController-userTempVisitQrCode方法) */ @PostMapping(value = "/mp/qrcode/user/temp/visit/qrcode") Result userTempVisitQrCode(@RequestBody MpQrCodeDto mpQrCodeDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java
@@ -179,4 +179,12 @@ @PostMapping(value = "/order/refund/cancel") Result refundCancel(@RequestBody RefundCancelVo refundCancelVo); /** * 计算订单应付金额 */ @PostMapping(value = "/order/countOrderShouldTotal") Result countOrderShouldTotal(@RequestBody OrderCountShouldTotalDto dto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserCardService.java
@@ -26,11 +26,17 @@ Result delayCardBag(@RequestBody CardBagDto cardBagDto); /** * 开放平台-卡包可抵扣信息 * 开放平台-卡包可抵扣信息(单条) * @return 转化对象UserCardVo */ @PostMapping(value = "/user/card/get/deduction-data") Result deductionData(@RequestBody CardBagDto cardBagDto); /** * 开放平台-卡包可抵扣信息(集合) * @return 转化对象userCardMapVo */ @PostMapping(value = "/user/card/get/deduction-data/list") Result deductionDataList(@RequestBody CardBagDto cardBagDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserService.java
@@ -102,4 +102,10 @@ */ @PostMapping(value = "/user/level/calc") Result userLevelCalc(@RequestBody UserParamDto userParamDto); /** * 开放平台-获取用户的公众号信息 */ @PostMapping(value = "/user/gzh/info") Result userGZHInfo(@RequestBody UserParamDto userParamDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SWxTokenService.java
@@ -27,6 +27,15 @@ @RequestHeader(name = "appIdCode",required = false) String appIdCode); /** *获取小程序企业微信应用token * 转化使用 WxTokenDt * @param getTokenDto 对象 * @return */ @PostMapping(value = "/account_token/apply/get_token") Result corpApplyToken(@RequestBody GetTokenDto getTokenDto); /** *获取小程序普通token * 转化使用 WxTokenDt * @param getTokenDto 对象 @@ -37,6 +46,15 @@ @RequestHeader(name = "appId",required = true) String appId, @RequestHeader(name = "sign",required = true) String sign, @RequestHeader(name = "appIdCode",required = false) String appIdCode); /** *获取小程序普通token * 转化使用 WxTokenDt * @param getTokenDto 对象 * @return */ @PostMapping(value = "/account_token/mp/get_token") Result mpToken(@RequestBody GetTokenDto getTokenDto); /** @@ -52,6 +70,15 @@ @RequestHeader(name = "appIdCode",required = false) String appIdCode); /** *获取公众号普通token * 转化使用 WxTokenDt * @param getTokenDto 对象 * @return */ @PostMapping(value = "/account_token/weChat/get_token") Result weChatToken(@RequestBody GetTokenDto getTokenDto); /** *获取企业微信通讯录token * 转化使用 WxTokenDt * @param getTokenDto 对象 @@ -64,6 +91,15 @@ @RequestHeader(name = "appIdCode",required = false) String appIdCode); /** *获取企业微信通讯录token * 转化使用 WxTokenDt * @param getTokenDto 对象 * @return */ @PostMapping(value = "/account_token/communi/get_token") Result corpCommonToken(@RequestBody GetTokenDto getTokenDto); /** *获取企业微信联系我token * 转化使用 WxTokenDt * @param getTokenDto 对象 @@ -75,4 +111,13 @@ @RequestHeader(name = "sign",required = true) String sign, @RequestHeader(name = "appIdCode",required = false) String appIdCode); /** *获取企业微信联系我token * 转化使用 WxTokenDt * @param getTokenDto 对象 * @return */ @PostMapping(value = "/account_token/contact/get_token") Result corpContactToken(@RequestBody GetTokenDto getTokenDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/bi/BiConsultantDayService.java
@@ -82,4 +82,11 @@ @PostMapping("/admin/export/employee/user/member/distribution/proportion") Result memberDistributionProportion(@RequestBody UserReleaseDto userReleaseDto); /** * 咨询师-老带新业绩 * 返回接口Result.success(data); data是个map,key为员工标识,value是金额 */ @PostMapping("/admin/export/employee/oldNew/report") Result oldNewReport(@RequestBody EmployeeReportDto employeeReportDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/bi/BiConsultantSaleService.java
@@ -100,4 +100,21 @@ @PostMapping("/admin/consultant/report/user/doctor/deduction/list/month") Result userDoctorDeductionMonthList(@RequestBody EmployeeReportDto employeeReportDto); /**咨询师-微信营销数据*/ @PostMapping("/admin/consultant/report/weChat/list") Result weChatList(@RequestBody EmployeeReportDto employeeReportDto); /**咨询师-导出-核心项目提及率*/ @PostMapping("/admin/consultant/report/weChat/list/export") Result weChatListExport(@RequestBody EmployeeReportDto employeeReportDto); /**咨询师-咨询师-流失客户导出*/ @PostMapping("/admin/consultant/report/loss/user/rate/export") Result lossUserListExport(@RequestBody EmployeeReportDto employeeReportDto); /**咨询师-咨询师-科室业绩*/ @PostMapping("/admin/consultant/report/room/list") Result roomList(@RequestBody EmployeeReportDto employeeReportDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/bi/BiShopSaleService.java
@@ -89,4 +89,15 @@ @PostMapping("/admin/export/shop/user/doctor/deduction/list/month") Result userDoctorDeductionMonthList(@RequestBody ShopReportDto shopReportDto); /** * 门店-流失客户-导出 */ @PostMapping("/admin/export/shop/loss/user/rate/export") Result lossUserRate(@RequestBody ShopReportDto shopReportDto); /**门店-科室业绩*/ @PostMapping("/admin/export/shop/room/list") Result roomList(@RequestBody ShopReportDto shopReportDto); } phis-feign/src/main/java/com/hz/his/feign/service/platform/payment/SPayNoService.java
New file @@ -0,0 +1,22 @@ package com.hz.his.feign.service.platform.payment; import com.hx.resultTool.Result; import com.hz.his.vo.payment.PayNoVo; 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 = "pay-no") public interface SPayNoService { /** * 获取支付编号,只返回支付编号 * data就是支付编号 */ @PostMapping(value = "/pay/create") Result payCreate(@RequestBody PayNoVo payNoVo); } phis-feign/src/main/java/com/hz/his/feign/service/platform/refund/SCardRefundService.java
@@ -24,7 +24,7 @@ * 开放平台-确认提交退款 * data 无实体转化用 */ @PostMapping(value = "/confirm") @PostMapping(value = "/card/refund/confirm") Result refundConfirm(@RequestBody RefundUserCardVo refundUserCardVo); } phis-feign/src/main/java/com/hz/his/vo/payment/PayNoVo.java
New file @@ -0,0 +1,34 @@ package com.hz.his.vo.payment; import lombok.Data; /** * @author CJH */ @Data public class PayNoVo { /**Y-订单号*/ private String orderNo; /**Y-叠加长度,在orderNo后面添加长度,默认6,没有特殊要求都是默认6*/ private Integer lengrhCount = 6; /**Y-交易方式*/ private String payWay; /**Y-关联类型*/ private Integer type; /**Y-关联类型标识*/ private String typeId; /**关联类型-总订单*/ public static final int TYPE_ORDER = 0; /**交易方式-微信*/ public static final String PAY_WAY_WECHAT = "WECHAT"; /**交易方式-支付宝*/ public static final String PAY_WAY_ALIPAY = "ALIPAY"; /**交易方式-银联*/ public static final String PAY_WAY_UNIONPAY = "UNIONPAY"; /**交易方式-数字人民币*/ public static final String PAY_WAYE_EC = "EC"; } phis-feign/src/main/java/com/hz/his/vo/user/card/UserCardItemVo.java
@@ -21,8 +21,12 @@ private Integer deductionNum; /**用户卡项条目-单次抵扣次数*/ private Integer deductionSingle; /**用户卡项条目-已抵扣次数*/ /**用户卡项条目-已抵扣次数(全部)*/ private Integer usedNum; /**卡包-该卡项条目已使用次数(不包括退款)*/ private Integer usedNumNoRefund; /**卡包-该卡项条目已退款参数*/ private Integer usedNumRefund; /**剩余可抵扣总次数*/ private Integer surplusNum; phis-feign/src/main/java/com/hz/his/vo/user/card/UserCardVo.java
@@ -18,6 +18,19 @@ private String cardName; /**卡项-总金额*/ private BigDecimal total; /**卡包-状态*/ private Integer effectiveStatus; /**卡包所属用户-标识*/ private String userId; /**卡包所属用户-名称*/ private String userName; /**卡包所属用户-CIQ*/ private String userCiq; /**卡包所属用户-用户所属门店*/ private String userShopId; /**关联的权益*/ private List<UserCardEquityVo> userCardEquityVoList; phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsAssocDt.java
New file @@ -0,0 +1,30 @@ package com.hz.phis.dt.consumables; import com.gitee.sunchenbin.mybatis.actable.annotation.Column; import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; import lombok.Data; /** * 商品关联组合 * @USER: fhx * @DATE: 2023/7/12 **/ @Data public class GoodsAssocDt { /** 耗材表标识(Consumables) */ private String consumableId; /** 关联类型 */ public String commonType; /** 关联标识(优惠券id) */ public String commonId; /** 关联名称 */ public String commonName; /** 数量 */ public Integer quantity; ////////////////////////////////// /** 关联类型 - 优惠券 */ public static final String COMMON_TYPE_COUPON = "coupon"; } phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDeLimitDt.java
@@ -3,6 +3,8 @@ import com.hz.phis.dt.limit.LimitDt; import lombok.Data; import java.util.List; /** * 商品详情限制实体 * @author fwq @@ -14,4 +16,7 @@ private GoodsDetailDt consumables; /**限制信息*/ private LimitDt limitBo; /** 商品关联信息 */ private List<GoodsAssocDt> assocList; } phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDetailDt.java
@@ -12,7 +12,7 @@ * */ @Data public class GoodsDetailDt extends BaseDt { /**类型(1商品2药品)*/ /**类型(1商品2药品3优惠券)*/ private Integer type; /**编号*/ private String serialNumber; @@ -172,4 +172,9 @@ private String bigTypeCode; /**药品大类名*/ private String bigTypeName; //关联标识(类型为3则关联优惠券id) public String commonId; //兑换积分 private BigDecimal integral; } phis-feign/src/main/java/com/hz/phis/dt/user/UserDt.java
@@ -84,6 +84,9 @@ private Date firstPayOrderTime; //最后一次执行时间 private Date lastDeductionTime; //openId private String openId; //公众号openId private String gzhOpenId; }