phis-feign/src/main/java/com/hz/his/dto/PageDto.java
@@ -23,9 +23,8 @@ /**分类标识*/ private String typeId; private List<String> typeIdList; //appid /**appid*/ private String appId; public Integer getPageNum() { if(this.pageNum == null || this.pageNum < 0){ phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultAppearancePlanVo.java
New file @@ -0,0 +1,16 @@ package com.hz.his.dto.consultation; import lombok.Data; /** * 咨询记录dto-颜值规划 * @author CJH */ @Data public class ConsultAppearancePlanVo { /**颜值规划详情*/ private String details; } phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultRecordDto.java
@@ -1,6 +1,7 @@ package com.hz.his.dto.consultation; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.util.Date; import java.util.List; @@ -11,6 +12,7 @@ * 咨询记录dto 新版 */ @JsonInclude(JsonInclude.Include.NON_NULL) @Data public class ConsultRecordDto{ //用户id @@ -33,10 +35,20 @@ private String treatPlanQuote; //剂量参数 private String dosageParams; /**是否无既往史:0否1是*/ private Integer unanamnesis; //既往病史 private String anamnesis; //来院前治疗过的项目 private String hasTreatProjects; /**既往治疗机构*/ private String anamTreatAgency; /**既往治疗医生*/ private String anamTreatDoctor; /**既往治疗医生*/ private String anamTreatSatisfaction; //是否草稿 0=否 1=是 private Integer isDraft; //创建人类型 0=员工 1=后台 @@ -62,6 +74,28 @@ //咨询方式名称 private String methodCodeName; /**未成交原因*/ private String description; /**用户职业*/ private String userCareer; /**作息*/ private String workRest; /**性格*/ private String characterInfo; /**用户喜好*/ private String userLike; /**婚姻状况*/ private Integer maritalStatus = 0; /**备孕情况*/ private Integer preparationPregnancy = 0; /**过敏史*/ private String allergyHistory; /**疾病史*/ private String diseaseHistory; /**白光美紧肌塑生评估*/ private String estimateMapper; //------------- 修改传值 private String id; @@ -81,6 +115,10 @@ private List<Map<String,Object>> recommendProjectList; //上次治疗项目 private List<Map<String,Object>> lastTreatProjectList; /**预约项目集合*/ private List<ConsultTreatProjectVo> preProjectList; /**颜值规划集合*/ private List<ConsultAppearancePlanVo> appearancePlanList; //-------------- 搜索条件 @@ -150,6 +188,8 @@ // --------- 复诊补充新字段 //客户疑虑 private String doubt; /**客户特殊情况*/ private String specialSituation; //异议 private String dissent; //预算 phis-feign/src/main/java/com/hz/his/dto/consultation/ConsultTreatProjectVo.java
New file @@ -0,0 +1,18 @@ package com.hz.his.dto.consultation; import lombok.Data; /** * 咨询记录dto-项目 * @author CJH */ @Data public class ConsultTreatProjectVo { /**项目标识*/ private String projectId; /**项目名称*/ private String projectName; } phis-feign/src/main/java/com/hz/his/feign/service/phis/SAppointmentService.java
New file @@ -0,0 +1,20 @@ package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import com.hz.his.vo.appointment.AppointmentProjectFindVo; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * @author CJH **/ @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "read-appointment") public interface SAppointmentService { /** 获取用户时间内预约的项目 */ @PostMapping("/appointment/user/project/list") Result userAppointmentProjectList(@RequestBody AppointmentProjectFindVo appointmentProjectFindVo); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
@@ -4,6 +4,7 @@ import com.hz.his.dto.PageDto; import com.hz.his.dto.TimeDto; import com.hz.his.dto.project.ProjectDto; import com.hz.his.vo.project.ProjectFindVo; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -48,6 +49,13 @@ * @return Result */ @PostMapping(value = "/project/page/list") Result getProjectList(@RequestBody ProjectFindVo projectFindVo); /** * 获取项目列表(因为代码的问题,这个接口保存下来) * @return Result */ @PostMapping(value = "/project/page/list2") Result getProjectList(@RequestBody PageDto pageDto); /** phis-feign/src/main/java/com/hz/his/feign/service/phis/SReturnVisitRecordService.java
New file @@ -0,0 +1,23 @@ package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import com.hz.phis.vo.returnVisitRecord.ReturnVisitRecordFindVo; 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="phis-provider",path = "/p-his-data",contextId = "user-return-visit-record") public interface SReturnVisitRecordService { /*** 获取用户回访记录列表 **/ @PostMapping(value = "/return/visit/record/list") Result returnVisitList(@RequestBody ReturnVisitRecordFindVo findData); /*** 获取用户回访记录详情 **/ @PostMapping(value = "/return/visit/record/detail") Result returnVisitDetail(@RequestBody ReturnVisitRecordFindVo findData); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipConsultationService.java
@@ -15,7 +15,7 @@ /** * 开放平台-咨询记录新增/修改 */ @PostMapping(value = "/consultation/record/add/or/edit") @PostMapping(value = "/consultation/record/addOrUpdate") Result addOrEditConsult(@RequestBody ConsultRecordDto consultRecordNewDto); phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipReturnVisitRecordService.java
New file @@ -0,0 +1,73 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.phis.vo.returnVisitRecord.ReturnVisitRecordInsertVo; import com.hz.phis.vo.returnVisitRecord.ReturnVisitVisitVo; 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-return-visit-record") public interface SPhipReturnVisitRecordService { /** * 开放平台-回访记录新增 */ @PostMapping(value = "/return/visit/record/v2/add") Result add(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-回访记录修改 */ @PostMapping(value = "/return/visit/record/v2/update") Result update(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-批量修改回访人 */ @PostMapping(value = "/return/visit/record/v2/batch/update/corp/user") Result batchUpdateCorpUser(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-批量修改计划时间 */ @PostMapping(value = "/return/visit/record/v2/batch/update/plan/time") Result batchUpdatePlanTime(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-取消 */ @PostMapping(value = "/return/visit/record/v2/cancel") Result cancelData(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-批量取消 */ @PostMapping(value = "/return/visit/record/v2/batch/cancel") Result batchCancelData(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-删除 */ @PostMapping(value = "/return/visit/record/v2/delete") Result delete(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-批量删除 */ @PostMapping(value = "/return/visit/record/v2/batch/delete") Result batchDeleteRecord(@RequestBody ReturnVisitRecordInsertVo dto); /** * 开放平台-回访 */ @PostMapping(value = "/return/visit/record/v2/access") Result access(@RequestBody ReturnVisitVisitVo dto); } phis-feign/src/main/java/com/hz/his/vo/appointment/AppointmentProjectFindVo.java
New file @@ -0,0 +1,21 @@ package com.hz.his.vo.appointment; import com.hz.his.dto.PageDto; import lombok.Data; import java.util.Date; /** * @author CJH */ @Data public class AppointmentProjectFindVo extends PageDto { /**用户标识*/ private String userId; /**预约时间-开始*/ private Date preStartTime; /**预约时间-结束*/ private Date preEndTime; } phis-feign/src/main/java/com/hz/his/vo/project/ProjectFindVo.java
New file @@ -0,0 +1,18 @@ package com.hz.his.vo.project; import com.hz.his.dto.PageDto; import lombok.Data; /** * @author CJH */ @Data public class ProjectFindVo extends PageDto { /**类型*/ private Integer type; /**是否上下架-默认上架*/ private Integer isUp = 1; } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitListItemProjectVo.java
New file @@ -0,0 +1,30 @@ package com.hz.phis.vo.returnVisitRecord; import lombok.Data; /**回访列表子项数据 * @author CJH */ @Data public class ReturnVisitListItemProjectVo { /*** 标识 */ private String id; /*** 项目标识 */ private String projectId; /*** 项目标识 */ private String projectName; public ReturnVisitListItemProjectVo() { } public ReturnVisitListItemProjectVo(String id, String projectId, String projectName) { this.id = id; this.projectId = projectId; this.projectName = projectName; } } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitListItemVo.java
New file @@ -0,0 +1,63 @@ package com.hz.phis.vo.returnVisitRecord; import com.hx.util.MapUtil; import lombok.Data; import java.util.ArrayList; import java.util.List; import java.util.Map; /**回访列表子项数据 * @author CJH */ @Data public class ReturnVisitListItemVo { /*** 超时状态 0未超时 1已超时**/ private Integer timeoutStatus; /*** 回访状态 0未回访 1已回访**/ private Integer returnVisitStatus; /*** 门店ID */ private String shopId; /*** 门店名称 */ private String shopName; /*** 回访类型 字典id */ private String returnVisitType; /*** 回访类型名称*/ private String returnVisitTypeName; /**回访方式 字典id*/ private String returnVisitMethod; /**回访方式名称*/ private String returnVisitMethodName; /*** 回访结果 0 未知 1回访成功 2回访失败**/ private Integer visitResultStatus; /*** 回访是否满意 0 未知 1满意 2不满意**/ private Integer satisfiedStatus; /*** 回访人名称**/ private String corpName; /*** 回访人id**/ private String corpId; /*** 回访详情**/ private String content; /*** 回访备注**/ private String remark; /*** 回访记录标识 **/ private String id; /**创建人*/ private String createPersonName; private List<ReturnVisitListItemProjectVo> projectList = new ArrayList<>(); public ReturnVisitListItemVo() { } } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitListVo.java
New file @@ -0,0 +1,121 @@ package com.hz.phis.vo.returnVisitRecord; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.hx.util.DateUtil; import com.hx.util.MapUtil; import lombok.Data; import java.util.*; /** * 回访列表返回dto * @author CJH */ @Data public class ReturnVisitListVo { /**用户id*/ private String userId; /**用户名称*/ private String userName; /**员工标识*/ private String corpId; /**员工名称*/ private String corpName; /**计划日期*/ private Date planTime; /**回访时间*/ private Date returnVisitTime; /**完成时间*/ private Date doneTime; /**用户生日*/ private String birthDay; /**CIQ*/ private String CIQ; /**会员号*/ private String memberNO; /**手机号*/ private String tel; /**用户外部联系人编号*/ private String externalUserId; /**渠道来源*/ private String channelType; /**渠道来源*/ private String channelType2; /**顾问名称*/ private String cnName; // --- 取值第一个 todo /**回访状态 0未回访 1已回访*/ private Integer returnVisitStatus; /**完成状态 0未完成 1已完成 2已取消*/ private Integer doneStatus; /**超时状态 0未超时 1已超时*/ private Integer timeoutStatus; /**回访结果 0 未知 1回访成功 2回访失败*/ private Integer visitResultStatus; /**回访是否满意 0 未知 1满意 2不满意*/ private Integer satisfiedStatus; //--- 取值第一个 todo /**回访情况(员工回访时候填写)*/ private String situation; /**回访备注(员工回访时候填写)*/ private String visitRemark; /*** 回访列表子数据**/ private List<ReturnVisitListItemVo> itemList = new ArrayList<>(); //---查询额外返回的参数 /**id*/ private String id; /**用户所属门店标识 返回*/ private String shopId ; /**用户所属门店名称*/ private String shopName ; /**回访类型 字典id"*/ private String returnVisitType; /**回访类型名称*/ private String returnVisitTypeName; /**回访方式 字典id*/ private String returnVisitMethod ; /**回访方式名称*/ private String returnVisitMethodName; /**创建人*/ private String createPersonName; public ReturnVisitListVo() { } public ReturnVisitListVo(Map<String,Object> recordMap) { this.userId = MapUtil.getString(recordMap,"userId"); this.userName = MapUtil.getString(recordMap,"userName"); this.corpId = MapUtil.getString(recordMap,"corpId"); this.corpName = MapUtil.getString(recordMap,"corpName"); this.planTime = DateUtil.parseString_2(recordMap.get("planTime").toString()); this.returnVisitTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"returnVisitTime")); this.doneTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"doneTime")); this.birthDay = MapUtil.getString(recordMap,"birthDay"); this.CIQ = MapUtil.getString(recordMap,"CIQ"); this.memberNO = MapUtil.getString(recordMap,"memberNO"); this.tel = MapUtil.getString(recordMap,"tel"); this.channelType = MapUtil.getString(recordMap,"channelType"); this.channelType2 = MapUtil.getString(recordMap,"channelType2"); this.cnName = MapUtil.getString(recordMap,"cnName"); this.returnVisitStatus = MapUtil.getInt(recordMap,"returnVisitStatus"); this.doneStatus = MapUtil.getInt(recordMap,"doneStatus"); this.timeoutStatus = MapUtil.getInt(recordMap,"timeoutStatus"); this.visitResultStatus = MapUtil.getInt(recordMap,"visitResultStatus"); this.satisfiedStatus = MapUtil.getInt(recordMap,"satisfiedStatus"); this.situation = MapUtil.getString(recordMap,"situation"); this.visitRemark = MapUtil.getString(recordMap,"visitRemark"); } } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitRecordFindVo.java
New file @@ -0,0 +1,78 @@ package com.hz.phis.vo.returnVisitRecord; import com.hz.his.dto.PageDto; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.Date; import java.util.List; /**回访查询条件对象 * @author CJH*/ @EqualsAndHashCode(callSuper = true) @Data public class ReturnVisitRecordFindVo extends PageDto { /*** 所属用户**/ private String userId; /*** 计划时间-开始**/ private Date planStartTime; /*** 计划时间-结束**/ private Date planEndTime; /*** 回访状态**/ private Integer returnVisitStatus; /*** 完成状态**/ private Integer doneStatus; /*** 超时状态**/ private Integer timeoutStatus; /*** 创建时间-开始**/ private Date startTime; /*** 创建时间-结束**/ private Date endTime; /*** 回访时间-开始**/ private Date returnVisitStartTime; /*** 回访时间-结束**/ private Date returnVisitEndTime; /*** 完成时间-开始**/ private Date doneStartTime; /*** 完成时间-结束**/ private Date doneEndTime; /*** 回访类型 **/ private String returnVisitType; /*** 回访方式 **/ private String returnVisitMethod; /*** 回访结果**/ private Integer visitResultStatus; /*** 回访是否满意**/ private Integer satisfiedStatus; /**所属门店*/ private List<String> shopIdList; /***回访员工 - List**/ private List<String> employeeIdList; /*** 创建人**/ private String createPersonName; /*** 创建人id**/ private String createPersonId; /*** 来源渠道查询**/ private String channelType; //---额外的参数 /*** 计划时间**/ private Date planTime; /*** 回访员工标识 **/ private String corpId; //---自定义分页,走这个没有分页模式 /**页数*/ private Integer customPageNum; /**条数*/ private Integer customPageSize; } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitRecordInfoVo.java
New file @@ -0,0 +1,17 @@ package com.hz.phis.vo.returnVisitRecord; import lombok.Data; @Data public class ReturnVisitRecordInfoVo { /*** 回访记录标识 **/ private String id; /*** 回访详情(创建回访填写)**/ private String content; } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitRecordInsertVo.java
New file @@ -0,0 +1,61 @@ package com.hz.phis.vo.returnVisitRecord; import lombok.Data; import java.util.Date; import java.util.List; import java.util.Set; /**回访记录新增或者更新使用VO * @author CJH*/ @Data public class ReturnVisitRecordInsertVo { /*******************下面是新增/修改使用参数**************************/ /*** 回访记录标识 **/ private String id; /*** 所属用户**/ private String userId; /*** 计划时间**/ private Date planTime; /*** 回访类型 **/ private String returnVisitType; /*** 回访方式 **/ private String returnVisitMethod; /*** 回访结果**/ private Integer visitResultStatus; /*** 门店**/ private String shopId; /*** 员工id **/ private String corpId; /*** 新增 选择项目数据 **/ private String projectIds; /*** 新增 选择活动数据**/ private String activityIds; /*** 回访详情(创建回访填写)**/ private String content; /*** 回访备注(创建回访填写)**/ private String remark; /*** 创建人类型 0 第三方平台(员工信息) ,2 系统创建**/ private Integer createPersonType = 1; /*** 创建人id**/ private String createPersonId; /*** 操作人id**/ private String operationId; /*** 特殊字段 修改传值 回访内容 多个**/ private List<ReturnVisitRecordInfoVo> itemList; /** 删除的回访*/ private Set<String> deleteIdList; /*********************************************/ /*** 批量操作ID**/ private Set<String> ids; } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitVisitVo.java
New file @@ -0,0 +1,42 @@ package com.hz.phis.vo.returnVisitRecord; import lombok.Data; import java.util.Date; import java.util.List; import java.util.Set; /**员工回访使用VO * @author CJH*/ @Data public class ReturnVisitVisitVo { /**回访人*/ private String corpId; /*** 回访日期**/ private Date returnVisitTime; /*** 回访结果**/ private Integer visitResultStatus; /*** 回访是否满意**/ private Integer satisfiedStatus; /*** 回访方式 **/ private String returnVisitMethod; /*** 回访详情(员工回访填写)**/ private String content; /*** 回访备注(员工创建回访填写)**/ private String remark; /*** 回访情况(员工回访时候填写)**/ private String situation; /*** 回访备注(员工回访时候填写**/ private String visitRemark; /*** 操作人id**/ private String operationId; /*** 批量操作ID**/ private Set<String> ids; }