phis-feign/src/main/java/com/hz/his/feign/service/phis/SReturnVisitRecordService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipReturnVisitRecordService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/phis/dt/returnVisitRecord/UserReturnVisitInfoDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/phis/dt/returnVisitRecord/UserReturnVisitListDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitRecordDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitRecordInfoDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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.ReturnVisitRecordDto; 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 ReturnVisitRecordDto followListVo); /*** 获取用户回访记录列表 **/ @PostMapping(value = "/return/visit/record/detail") Result returnVisitDetail(@RequestBody ReturnVisitRecordDto followListVo); } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipReturnVisitRecordService.java
New file @@ -0,0 +1,70 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.consultation.ConsultRecordDto; import com.hz.phis.dt.returnVisitRecord.UserReturnVisitInfoDto; import com.hz.phis.vo.returnVisitRecord.ReturnVisitRecordDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import java.util.List; /** * 这里这个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 ReturnVisitRecordDto dto); /** * 开放平台-回访记录修改 */ @PostMapping(value = "/return/visit/record/v2/update") Result update(@RequestBody ReturnVisitRecordDto dto); /** * 开放平台-批量修改回访人 */ @PostMapping(value = "/return/visit/record/v2/batch/update/corp/user") Result batchUpdateCorpUser(@RequestBody ReturnVisitRecordDto dto); /** * 开放平台-批量修改计划时间 */ @PostMapping(value = "/return/visit/record/v2/batch/update/plan/time") Result batchUpdatePlanTime(@RequestBody ReturnVisitRecordDto dto); /** * 开放平台-取消 */ @PostMapping(value = "/return/visit/record/v2/cancel") Result cancelData(@RequestBody ReturnVisitRecordDto dto); /** * 开放平台-批量取消 */ @PostMapping(value = "/return/visit/record/v2/batch/cancel") Result batchCancelData(@RequestBody ReturnVisitRecordDto dto); /** * 开放平台-删除 */ @PostMapping(value = "/return/visit/record/v2/delete") Result delete(@RequestBody ReturnVisitRecordDto dto); /** * 开放平台-回访 */ @PostMapping(value = "/return/visit/record/v2/access") Result access(@RequestBody ReturnVisitRecordDto dto); } phis-feign/src/main/java/com/hz/phis/dt/returnVisitRecord/UserReturnVisitInfoDto.java
New file @@ -0,0 +1,68 @@ package com.hz.phis.dt.returnVisitRecord; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.hx.util.MapUtil; import lombok.Data; import java.util.Map; /**回访列表子项数据 */ @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @Data public class UserReturnVisitInfoDto { /*** 超时状态 0未超时 1已超时**/ private Integer timeoutStatus; /*** 回访状态 0未回访 1已回访**/ private Integer returnVisitStatus; /*** 门店ID */ private String shopId; /*** 门店名称 */ private String shopName; /*** 回访类型 字典id */ private String returnVisitType; /*** 回访类型名称*/ private String returnVisitTypeName; /*** 回访结果 0 未知 1回访成功 2回访失败**/ private Integer visitResultStatus; /*** 回访是否满意 0 未知 1满意 2不满意**/ private Integer satisfiedStatus; /*** 回访人名称**/ private String operationName; /*** 回访人id**/ private String operationId; /*** 回访详情**/ private String content; /*** 回访备注**/ private String remark; /***id **/ private String id; //创建人 private String createPersonName; public UserReturnVisitInfoDto() { } public UserReturnVisitInfoDto(Map<String,Object> visitRecord) { this.id = visitRecord.get("id").toString(); this.timeoutStatus = MapUtil.getInt(visitRecord,"timeoutStatus"); this.returnVisitStatus = MapUtil.getInt(visitRecord,"returnVisitStatus"); this.shopId = MapUtil.getString(visitRecord,"shopId"); this.shopName = MapUtil.getString(visitRecord,"shopName"); this.returnVisitType = MapUtil.getString(visitRecord,"returnVisitType"); this.returnVisitTypeName = MapUtil.getString(visitRecord,"returnVisitTypeName"); this.visitResultStatus = MapUtil.getInt(visitRecord,"visitResultStatus"); this.satisfiedStatus = MapUtil.getInt(visitRecord,"satisfiedStatus"); this.operationName = MapUtil.getString(visitRecord,"operationName"); this.operationId = MapUtil.getString(visitRecord,"operationId");; this.content = MapUtil.getString(visitRecord,"content"); this.remark = MapUtil.getString(visitRecord,"remark"); this.createPersonName = MapUtil.getString(visitRecord,"createPersonName");; } } phis-feign/src/main/java/com/hz/phis/dt/returnVisitRecord/UserReturnVisitListDto.java
New file @@ -0,0 +1,140 @@ package com.hz.phis.dt.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 */ @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @Data public class UserReturnVisitListDto { //用户id private String userId; //用户名称 private String userName; //员工id 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 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 //用户所属门店标识 id private Set<String> ids = new HashSet<>(); //用户所属门店标识 返回 private Set<String> shopIds = new HashSet<>(); //用户所属门店名称 private Set<String> shopNames = new HashSet<>(); //回访类型 字典id" private Set<String> returnVisitTypes = new HashSet<>(); //回访类型名称 private Set<String> returnVisitTypeNames = new HashSet<>(); //回访方式 字典id private Set<String> returnVisitMethods = new HashSet<>(); //回访方式名称 private Set<String> returnVisitMethodNames = new HashSet<>(); //创建人 private Set<String> createPersonNames; //回访情况(员工回访时候填写) private String situation; //回访备注(员工回访时候填写) private String visitRemark; //回访项目 private List<String> projectList; /*** 回访列表子数据**/ private List<UserReturnVisitInfoDto> userReturnVisitInfoList; //---查询返回的 //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 UserReturnVisitListDto() { } public UserReturnVisitListDto(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/ReturnVisitRecordDto.java
New file @@ -0,0 +1,149 @@ package com.hz.phis.vo.returnVisitRecord; import com.hz.his.dto.PageDto; import com.hz.phis.dt.returnVisitRecord.UserReturnVisitInfoDto; import lombok.Data; import java.util.Date; import java.util.List; import java.util.Set; @Data public class ReturnVisitRecordDto extends PageDto { /*** 所属用户**/ private String userId; /*** 计划时间-开始**/ private Date planStartTime; /*** 计划时间-结束**/ private Date planEndTime; /*** 回访状态**/ private Integer returnVisitStatus; /*** 完成状态**/ private Integer doneStatus; /*** 超时状态**/ private Integer timeoutStatus; //---歪歪的参数 /*** 计划时间**/ private Date planTime; /***员工ID - List**/ private List<String> employeeIds; /*** 单个员工ID **/ private String employeeId; /***角色ID **/ private String roleId; /*** 关键字搜索 **/ private String keyWord; /*** 创建时间**/ private Date startTime; private Date endTime; /*** 回访时间**/ private Date returnVisitStartTime; private Date returnVisitEndTime; /*** 完成时间**/ private Date doneStartTime; private Date doneEndTime; /*** 回访类型 **/ private String returnVisitType; /*** 回访计划**/ private String returnVisitPlan; /*** 回访方式 **/ private String returnVisitMethod; /*** 回访结果**/ private Integer visitResultStatus; /*** 回访是否满意**/ private Integer satisfiedStatus; private String shopId; /*** 创建人**/ private String createPersonName; /*** 创建人id**/ private String createPersonId; /*** 来源渠道查询**/ private String channelType; /*** 员工id **/ private String corpId; /*** 员工名称 **/ private String corpName; /*** 单个门店 **/ private String shopIds; /*** 门店idList列表**/ private List<String> authShopList; /*** 新增 选择项目数据 **/ private String projectIds; /*** 新增 选择活动数据**/ private String activityIds; /*** 用户所属门店名称**/ private String shopName; /*** 用户名称**/ private String userName; /*** 回访类型名称**/ private String returnVisitTypeName; /*** 回访类型名称**/ private String returnVisitPlanName; /*** 回访方式名称**/ private String returnVisitMethodName; /*** 回访时间**/ private Date returnVisitTime; /*** 完成时间**/ private Date doneTime; /*** 回访详情(创建回访填写)**/ private String content; /*** 回访备注(创建回访填写)**/ private String remark; /*** 创建人类型 0 第三方平台(员工信息) 1 后台 (后台用户信息),2 系统创建**/ private Integer createPersonType = 1; /*** 回访情况(员工回访时候填写)**/ private String situation; /*** 回访备注(员工回访时候填写**/ private String visitRemark; /*** 规则标识**/ private String ruleId; /*** 回访项目**/ private String items; /*** 操作人id**/ private String operationId; /*** 操作人名称**/ private String operationName; /*** 批量操作ID**/ private Set<String> ids; /*** 修改传值 回访内容 多个**/ private List<ReturnVisitRecordInfoDto> infoDtoList; /*** 查询详情里的子项数据 修改时需要**/ private List<UserReturnVisitInfoDto> userInfoDtoList; /**未知*/ public static final int VISIT_RESULT_STATUS_NONE = 0; /**成功*/ public static final int VISIT_RESULT_STATUS_SUC = 1; /**失败*/ public static final int VISIT_RESULT_STATUS_FAIL = 2; } phis-feign/src/main/java/com/hz/phis/vo/returnVisitRecord/ReturnVisitRecordInfoDto.java
New file @@ -0,0 +1,18 @@ package com.hz.phis.vo.returnVisitRecord; import com.hz.his.dto.PageDto; import lombok.Data; @Data public class ReturnVisitRecordInfoDto extends PageDto { /*** id **/ private String id; /*** 回访详情(创建回访填写)**/ private String content; }