From f51e4da0e870c8f4267cb2afd6f72fa79fb179e9 Mon Sep 17 00:00:00 2001 From: wangrenhuang <wangren_huang@163.com> Date: 星期四, 20 十月 2022 14:26:24 +0800 Subject: [PATCH] 在线预约接口优化 --- phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleItem.java | 30 ++++++++++ phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleDto.java | 23 +++++++ phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipEmployeeScheduleService.java | 30 ++++++++++ phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeSchedule.java | 51 +++++++++++++++++ 4 files changed, 134 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeSchedule.java b/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeSchedule.java new file mode 100644 index 0000000..ac73be5 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeSchedule.java @@ -0,0 +1,51 @@ +package com.hz.his.dto.employee; + +import lombok.Data; + +/** + * 宸ヤ綔浜哄憳鎺掔彮鏁版嵁 + */ +@Data +public class EmployeeSchedule { + + + private String shopId; + + private String shopName; + + + private String employeeId; + + private String employeeName; + + private String employeeImgUrl; + + + private String dayTime; + + + private String monthTime; + + private String uniqueStr; + + private String operatorId; + + private String operatorName; + + private Integer operatorType; + + private String remark; + + public EmployeeSchedule() { + + } + + /**鎿嶄綔浜虹被鍨�-绠$悊鍛�*/ + public static Integer OPERATOR_TYPE_ADMIN = 0; + /**鎿嶄綔浜虹被鍨�-鍛樺伐*/ + public static Integer OPERATOR_TYPE_EMPLOYEE = 1; + /**鎿嶄綔浜虹被鍨�-鐢ㄦ埛*/ + public static Integer OPERATOR_TYPE_USER = 2; + /**鎿嶄綔浜虹被鍨�-绯荤粺*/ + public static Integer OPERATOR_TYPE_SYSTEM = 3; +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleDto.java b/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleDto.java new file mode 100644 index 0000000..d1c0de7 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleDto.java @@ -0,0 +1,23 @@ +package com.hz.his.dto.employee; + +import lombok.Data; + +import java.util.List; + +/** + * 鍛樺伐鎺掔彮dtp + * @author Andru + */ +@Data +public class EmployeeScheduleDto { + + /** 鍛樺伐鎺掔彮瀵硅薄 */ + private EmployeeSchedule employeeSchedule; + + /** 鎺掔彮鏃堕棿鏁版嵁鍒楄〃 */ + private List<EmployeeScheduleItem> employeeScheduleItemList; + + public EmployeeScheduleDto() { + + } +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleItem.java b/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleItem.java new file mode 100644 index 0000000..63d8166 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/employee/EmployeeScheduleItem.java @@ -0,0 +1,30 @@ +package com.hz.his.dto.employee; + +import lombok.Data; + +import java.util.Date; + +/** + * 宸ヤ綔浜哄憳鎺掔彮鏁版嵁瀛愰」鏁版嵁 + */ +@Data + +public class EmployeeScheduleItem { + + + private String employeeScheduleId; + + + private String dayTime; + + private Integer intervalTime ; + + private Date startTime; + + + private Date endTime; + + public EmployeeScheduleItem() { + + } +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipEmployeeScheduleService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipEmployeeScheduleService.java new file mode 100644 index 0000000..06ed928 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipEmployeeScheduleService.java @@ -0,0 +1,30 @@ +package com.hz.his.feign.service.platform; + +import com.hx.resultTool.Result; +import com.hz.his.dto.employee.EmployeeScheduleDto; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-employeeSchedule") +public interface SPhipEmployeeScheduleService { + + /** + * 鍛樺伐鎺掔彮鍒楄〃 + */ + @PostMapping(value = "/employee/schedule/list") + Result list(@RequestBody EmployeeScheduleDto employeeScheduleDto); + + + + /** + * 鍛樺伐鎺掔彮鏃堕棿淇℃伅 + */ + @PostMapping(value = "/employee/schedule/info") + Result info(@RequestBody EmployeeScheduleDto employeeScheduleDto); + + +} \ No newline at end of file -- Gitblit v1.8.0