fhx
2024-04-07 00041135b0a7f9092bf242f1a8f5cced19eb5aa9
1.新增crm自助预约接口和dto
2个文件已添加
1个文件已修改
57 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/dto/appointment/AppointmentAutoMateDto.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/appointment/AppointmentCrmSelfDto.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/appointment/SPhipCrmSelfService.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/appointment/AppointmentAutoMateDto.java
@@ -56,5 +56,7 @@
    /** 实际面诊时长(分) */
    private Integer realMzTime;
    /** 是否当天分隔上下午匹配(默认false) */
    private boolean isDaySpace = false;
}
phis-feign/src/main/java/com/hz/his/dto/appointment/AppointmentCrmSelfDto.java
New file
@@ -0,0 +1,24 @@
package com.hz.his.dto.appointment;
import lombok.Data;
/**
 * CRM自助预约dto
 * @USER: fhx
 * @DATE: 2024/4/7
 **/
@Data
public class AppointmentCrmSelfDto {
    /** 用户标识 */
    private String userId;
    /** 门店标识 */
    private String shopId;
    /** 医生标识 */
    private String doctorId;
    /** 预约时间(yyyy-MM-dd) */
    private String dateTime;
    /** 预约项目json */
    private String projectJson;
}
phis-feign/src/main/java/com/hz/his/feign/service/platform/appointment/SPhipCrmSelfService.java
New file
@@ -0,0 +1,31 @@
package com.hz.his.feign.service.platform.appointment;
import com.hx.resultTool.Result;
import com.hz.his.dto.appointment.AppointmentAutoMateDto;
import com.hz.his.dto.user.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * 预约自动匹配service
 * @USER: fhx
 * @DATE: 2023/7/6
 **/
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-appointment-crm-self")
public interface SPhipCrmSelfService {
    /** 预约页面数据 */
    @PostMapping("/appointment/crm/self/page/data")
    Result pageData(@RequestBody UserDto dto);
    /** 用户自助预约列表 */
    @PostMapping("/appointment/crm/self/self/list")
    Result selfList(@RequestBody UserDto dto);
    /** 用户自助预约项目 */
    @PostMapping("/appointment/crm/self/project/list")
    Result projectList(@RequestBody UserDto dto);
}