phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java
@@ -20,6 +20,8 @@ private String operatorId; /**操作人名称*/ private String operatorName; /**操作人类型*/ private Integer operatorType; /**活动标识*/ private String groupBuyId; private String id; @@ -40,6 +42,8 @@ /*用户优惠券*/ private String couponNumberId; //开单结账一起执行校验优惠券接口使用参数 /** 优惠券商品JSON数组字符 */ private String couponGoodsArr; 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,139 @@ 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; public DeductionDto() { } } phis-feign/src/main/java/com/hz/his/dto/doctorTime/DoctorTimeDto.java
New file @@ -0,0 +1,19 @@ package com.hz.his.dto.doctorTime; import com.hz.his.dto.PageDto; import lombok.Data; /** * @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; } phis-feign/src/main/java/com/hz/his/dto/file/FileSignVo.java
@@ -12,4 +12,14 @@ /**桶名称-可不传*/ private String bucketName; private String fileName; private String method; public FileSignVo() { } public FileSignVo(String fileUrl) { this.fileUrl = fileUrl; } } 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/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/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/SDoctorTimeService.java
New file @@ -0,0 +1,30 @@ 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); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SFileService.java
@@ -53,6 +53,14 @@ * @return 使用FileSignReturnVo转化 */ @PostMapping(value = "/cos/signUrl") Response downloadFile(@RequestBody FileSignVo fileSignVo); Result signUrl(@RequestBody FileSignVo fileSignVo); /** *生成上传签名 * @param fileSignVo 对象 * @return 使用FileSignReturnVo转化 */ @PostMapping(value = "/cos/policy") Result policy(@RequestBody FileSignVo fileSignVo); } 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; @@ -55,4 +56,12 @@ */ @PostMapping(value = "/coupon/check/coupon/to/orderAndPay") Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); /** * 开放平台-订单发放优惠券 */ @PostMapping(value = "/coupon/order/send/coupon") Result orderSendCoupon(@RequestBody OrderSendCouponDto 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/SPhipUserCardService.java
@@ -25,6 +25,12 @@ @PostMapping(value = "/user/card/delay/cardBag") Result delayCardBag(@RequestBody CardBagDto cardBagDto); /** * 开放平台-卡包可抵扣信息 * @return 转化对象UserCardVo */ @PostMapping(value = "/user/card/get/deduction-data") Result deductionData(@RequestBody CardBagDto cardBagDto); } 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/cos/OssRecoverVO.java
New file @@ -0,0 +1,25 @@ package com.hz.his.vo.cos; import lombok.Data; /** * @ClassName OssRecoverVO * @Description cos生成签名返回vo * @Author wrh * @Date 2023/6/30 17:30 * @Version 1.0 */ @Data public class OssRecoverVO { private String accessid; //签名 private String signature; private String dir; private String host; //过期时间 private String expire; } phis-feign/src/main/java/com/hz/his/vo/user/card/UserCardEquityVo.java
New file @@ -0,0 +1,26 @@ package com.hz.his.vo.user.card; import lombok.Data; import java.math.BigDecimal; import java.util.List; /**用户卡项权益信息 * @author CJH*/ @Data public class UserCardEquityVo { /**用户卡项权益-标识*/ private String equityId; /**用户卡项权益-名称*/ private String equityName; /**用户卡项权益-类型*/ private Integer equityType; /**用户卡项权益-总金额*/ private BigDecimal total; /**条件值*/ private Integer conditionValue; /**关联的条目*/ private List<UserCardItemVo> userCardItemVoList; } phis-feign/src/main/java/com/hz/his/vo/user/card/UserCardItemVo.java
New file @@ -0,0 +1,29 @@ package com.hz.his.vo.user.card; import lombok.Data; import java.math.BigDecimal; /**用户卡项条目信息 * @author CJH*/ @Data public class UserCardItemVo { /**用户卡项条目-标识*/ private String itemId; /**用户卡项条目-名称*/ private String itemName; /**用户卡项条目-分摊总金额*/ private BigDecimal total; /**用户卡项条目-单次抵扣金额*/ private BigDecimal singleAmount; /**用户卡项条目-总抵扣次数*/ private Integer deductionNum; /**用户卡项条目-单次抵扣次数*/ private Integer deductionSingle; /**用户卡项条目-已抵扣次数*/ private Integer usedNum; /**剩余可抵扣总次数*/ private Integer surplusNum; } phis-feign/src/main/java/com/hz/his/vo/user/card/UserCardVo.java
New file @@ -0,0 +1,24 @@ package com.hz.his.vo.user.card; import lombok.Data; import java.math.BigDecimal; import java.util.List; /**用户卡项信息 * @author CJH*/ @Data public class UserCardVo { /**用户卡项-标识*/ private String userCardId; /**卡项-标识*/ private String cardId; /**卡项-名称*/ private String cardName; /**卡项-总金额*/ private BigDecimal total; /**关联的权益*/ private List<UserCardEquityVo> userCardEquityVoList; } 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; }