fhx
2023-08-14 09998c5da2f333dad298a3b45ba35f1ed9316fc3
1.新增同步phis诉求分类关联数据逻辑
2个文件已添加
1个文件已修改
66 ■■■■■ 已修改文件
crm-platform-feign/src/main/java/com/hz/crm/dto/GoodsSkuDto.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
crm-platform-feign/src/main/java/com/hz/crm/dto/phis/PhisAppealTypeRelateDto.java 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
crm-platform-feign/src/main/java/com/hz/crm/feign/FSyncPhisAppealTypeRelateService.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
crm-platform-feign/src/main/java/com/hz/crm/dto/GoodsSkuDto.java
@@ -41,5 +41,6 @@
    /**逗号分隔id*/
    private String ids;
    /** 诉求分类idList */
    private List<String> appealTypeIdList;
}
crm-platform-feign/src/main/java/com/hz/crm/dto/phis/PhisAppealTypeRelateDto.java
New file
@@ -0,0 +1,38 @@
package com.hz.crm.dto.phis;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Index;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
 * phis诉求分类关联数据dto
 * @USER: fhx
 * @DATE: 2023/8/14
 **/
@Data
public class PhisAppealTypeRelateDto {
    /** ID */
    private String id;
    /** 创建时间 */
    private Date createTime;
    /** 是否删除 */
    private Integer isDel = 0;
    /** 关联类型 */
    private Integer relateType;
    /** 关联id */
    private String relateId;
    /** 关联名称 */
    private String relateName;
    /** 诉求类型id */
    private String appealTypeId;
    private List<PhisAppealTypeRelateDto> dtoList;
    public PhisAppealTypeRelateDto() {
    }
}
crm-platform-feign/src/main/java/com/hz/crm/feign/FSyncPhisAppealTypeRelateService.java
New file
@@ -0,0 +1,25 @@
package com.hz.crm.feign;
import com.hx.resultTool.Result;
import com.hz.crm.dto.phis.PhisAppealTypeRelateDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * 同步PHIS诉求分类数据
 * @USER: fhx
 * @DATE: 2023/8/14
 **/
@FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "sync-phis-appeal-type-relate")
public interface FSyncPhisAppealTypeRelateService {
    /** 初始数据 */
    @PostMapping("/sync/phis/appeal/type/relate/initData")
    Result initData(@RequestBody(required = false) PhisAppealTypeRelateDto dto);
    /** 更新数据 */
    @PostMapping("/sync/phis/appeal/type/relate/updateData")
    Result updateData(@RequestBody(required = false) PhisAppealTypeRelateDto dto);
}