From 8677dba9e0c44e7de8008fe20afc59e69f0300bf Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期三, 01 十一月 2023 11:43:20 +0800 Subject: [PATCH] 1.新增微整接口和dto --- phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanItemDto.java | 23 +++++++ phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanDto.java | 22 +++++++ phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanIndicationDto.java | 21 +++++++ phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipMicroRecordService.java | 47 +++++++++++++++ phis-feign/src/main/java/com/hz/his/dto/micro/MicroRecordDto.java | 35 +++++++++++ 5 files changed, 148 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanDto.java b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanDto.java new file mode 100644 index 0000000..0da0449 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanDto.java @@ -0,0 +1,22 @@ +package com.hz.his.dto.micro; + +import lombok.Data; + +import java.util.List; + +/** + * 寰暣瑙勫垝 + * @USER: fhx + * @DATE: 2023/11/1 + **/ +@Data +public class MicroPlanDto { + + /** 璇勪环寤鸿 */ + private String recommend; + /** 鎺掑簭鍙�(鍓嶇鎺掑簭) */ + private Integer sortNum; + + private List<MicroPlanItemDto> itemList; + private List<MicroPlanIndicationDto> indicationList; +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanIndicationDto.java b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanIndicationDto.java new file mode 100644 index 0000000..af140d3 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanIndicationDto.java @@ -0,0 +1,21 @@ +package com.hz.his.dto.micro; + +import lombok.Data; + +/** + * 寰暣瑙勫垝-璇婃柇缁撴灉(閫傚簲鐥�) + * @USER: fhx + * @DATE: 2023/11/1 + **/ +@Data +public class MicroPlanIndicationDto { + + /** 閫傚簲鐥囨爣璇�(Indication) */ + private String indicationId; + /** 绋嬪害绫诲瀷鏍囪瘑(BaseClassify) */ + private String degreeTypeId; + /** 閫傚簲鐥囧叧鑱斿垎绫籎SON瀛楃 */ + private String typeJson; + /** 鎺掑簭鍙�(鍓嶇鎺掑簭) */ + private Integer sortNum ; +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanItemDto.java b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanItemDto.java new file mode 100644 index 0000000..6445849 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroPlanItemDto.java @@ -0,0 +1,23 @@ +package com.hz.his.dto.micro; + +import lombok.Data; + +/** + * 寰暣瑙勫垝-椤圭洰 + * @USER: fhx + * @DATE: 2023/11/1 + **/ +@Data +public class MicroPlanItemDto { + + /** 鏃堕棿绫诲瀷鏍囪瘑(BaseClassify) */ + private String timeTypeId; + /** 鍏宠仈id */ + private String commonId; + /** 鍚嶇О(鍐椾綑) */ + private String commonName; + /** 鍏宠仈绫诲瀷(TreatPlanItem) */ + private String commonType; + /** 鎺掑簭鍙�(鍓嶇鎺掑簭) */ + private Integer sortNum; +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/micro/MicroRecordDto.java b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroRecordDto.java new file mode 100644 index 0000000..d0e9b91 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/micro/MicroRecordDto.java @@ -0,0 +1,35 @@ +package com.hz.his.dto.micro; + +import com.gitee.sunchenbin.mybatis.actable.annotation.Column; +import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; +import com.hz.his.dto.PageDto; +import lombok.Data; + +import java.util.List; + +/** + * 寰暣瑙勫垝璁板綍 + * @USER: fhx + * @DATE: 2023/10/31 + **/ +@Data +public class MicroRecordDto extends PageDto { + + /** 鐢ㄦ埛id */ + private String userId; + /** 寮�濮嬫椂闂� */ + private String startTime; + /** 缁撴潫鏃堕棿 */ + private String endTime; + /** 绋嬪害绫诲瀷鏍囪瘑(BaseClassify) */ + private String degreeTypeId; + /** 閫傚簲鐥囨爣璇� */ + private String indicationId; + + /** 骞冲彴绫诲瀷(PlatformConstants) */ + private String platformType; + /** 鎿嶄綔浜鸿鑹瞚d(EmployeeRole) */ + private String opRoleId; + + private List<MicroPlanDto> planList; +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipMicroRecordService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipMicroRecordService.java new file mode 100644 index 0000000..494af37 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipMicroRecordService.java @@ -0,0 +1,47 @@ +package com.hz.his.feign.service.platform; + +import com.hx.resultTool.Result; +import com.hz.his.dto.micro.MicroRecordDto; +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/8/2 + **/ +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-micro-record") +public interface SPhipMicroRecordService { + + /** 寰暣璁板綍鍒楄〃 */ + @PostMapping(value = "/micro/record/list") + Result list(@RequestBody MicroRecordDto dto); + + /** 璁板綍璇︽儏 */ + @PostMapping(value = "/micro/record/details") + Result details(@RequestBody MicroRecordDto dto); + + /** 閫傚簲鐥囨暟鎹� */ + @PostMapping(value = "/micro/record/indication/data") + Result indicationData(); + + /** 閫傚簲鐥囨不鐤楀缓璁� */ + @PostMapping(value = "/micro/record/treatPlan") + Result treatPlan(@RequestBody MicroRecordDto dto); + + /** 鏂板寰暣璁板綍 */ + @PostMapping(value = "/micro/record/add") + Result add(@RequestBody MicroRecordDto dto); + + /** 淇敼寰暣璁板綍 */ + @PostMapping(value = "/micro/record/edit") + Result edit(@RequestBody MicroRecordDto dto); + + /** 鍒犻櫎寰暣璁板綍 */ + @PostMapping(value = "/micro/record/del") + Result del(@RequestBody MicroRecordDto dto); + + + +} -- Gitblit v1.8.0