红圈通接口
This commit is contained in:
@@ -10,11 +10,14 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
public class HqtTokenDTO {
|
||||
|
||||
//访问令牌
|
||||
private String access_token;
|
||||
//令牌类型
|
||||
private String token_type;
|
||||
//过期时间,单位为秒
|
||||
private Long expires_in;
|
||||
private String scope;
|
||||
//资源服务URL
|
||||
private String endPoint;
|
||||
private String client_id;
|
||||
|
||||
|
||||
@@ -63,9 +63,20 @@ public class BigRegionDO {
|
||||
//区域对应的管理区域
|
||||
@Column(name = "store_manage_region_id")
|
||||
private Long storeManageRegionId;
|
||||
|
||||
// 红圈通区域编码
|
||||
@Column(name ="hqt_region_code")
|
||||
private String hqtRegionCode;
|
||||
// 红圈通区域名称
|
||||
@Column(name = "hqt_region_name")
|
||||
private String hqtRegionName;
|
||||
|
||||
public String getHqtRegionName() {
|
||||
return hqtRegionName;
|
||||
}
|
||||
|
||||
public void setHqtRegionName(String hqtRegionName) {
|
||||
this.hqtRegionName = hqtRegionName;
|
||||
}
|
||||
|
||||
public String getHqtRegionCode() {
|
||||
return hqtRegionCode;
|
||||
|
||||
@@ -1,169 +0,0 @@
|
||||
package com.cool.store.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Project3XEntity {
|
||||
|
||||
/**
|
||||
* projectNo 门店编码
|
||||
*/
|
||||
@JsonProperty("projectNo")
|
||||
private String projectNo;
|
||||
|
||||
/**
|
||||
* name 店名
|
||||
*/
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
|
||||
/**
|
||||
* field13__c 门店属性
|
||||
* 新开店:o1
|
||||
* 老店翻新:o2
|
||||
* 老店新开:o5
|
||||
* 迁址:option46
|
||||
* 二次设计:o3
|
||||
* 维修改造: o4
|
||||
*/
|
||||
@JsonProperty("field13__c")
|
||||
private Field13__c field13__c;
|
||||
|
||||
/**
|
||||
* field124__c 所属片区
|
||||
*/
|
||||
@JsonProperty("field124__c")
|
||||
private Field124__c field124__c;
|
||||
|
||||
|
||||
/**
|
||||
* field94__c 所属督导
|
||||
*/
|
||||
@JsonProperty("field94__c")
|
||||
private String field94__c;
|
||||
|
||||
|
||||
/**
|
||||
* field5__c 联系人 (老板)
|
||||
*/
|
||||
@JsonProperty("field5__c")
|
||||
private String field5__c;
|
||||
|
||||
/**
|
||||
* field62__c 联系人手机号
|
||||
*/
|
||||
@JsonProperty("field62__c")
|
||||
private String field62__c;
|
||||
|
||||
/**
|
||||
* field123__c 品牌
|
||||
* 正新鸡排:option486
|
||||
* 正烧记:option488
|
||||
* 茂掌柜:option490
|
||||
* 正新三明治:option622
|
||||
* 大鼓米线:option624
|
||||
* 串小妹:option626
|
||||
*/
|
||||
@JsonProperty("field123__c")
|
||||
private Field123__c field123__c;
|
||||
|
||||
|
||||
/**
|
||||
* field4__c 督导手机号
|
||||
*/
|
||||
@JsonProperty("field4__c")
|
||||
private String field4__c;
|
||||
|
||||
/**
|
||||
* street 详细地址
|
||||
*/
|
||||
@JsonProperty("street")
|
||||
private String street;
|
||||
|
||||
|
||||
/**
|
||||
* field8__c 是否已收设计费
|
||||
* 是:option44
|
||||
* 否:option45
|
||||
*/
|
||||
@JsonProperty("field8__c")
|
||||
private Field8__c field8__c;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* field123__c 对象
|
||||
*/
|
||||
@Data
|
||||
class Field123__c {
|
||||
@JsonProperty("defaultItem")
|
||||
private Boolean defaultItem;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("label")
|
||||
private String label;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("path")
|
||||
private String path;
|
||||
}
|
||||
|
||||
/**
|
||||
* field124__c 对象
|
||||
*/
|
||||
@Data
|
||||
class Field124__c {
|
||||
@JsonProperty("code")
|
||||
private String code;
|
||||
|
||||
@JsonProperty("bizType")
|
||||
private String bizType;
|
||||
|
||||
@JsonProperty("metaName")
|
||||
private String metaName;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
}
|
||||
|
||||
/**
|
||||
* field8__c 对象
|
||||
*/
|
||||
@Data
|
||||
class Field8__c {
|
||||
@JsonProperty("defaultItem")
|
||||
private Boolean defaultItem;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("label")
|
||||
private String label;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
}
|
||||
|
||||
/**
|
||||
* field13__c 对象
|
||||
*/
|
||||
@Data
|
||||
class Field13__c {
|
||||
@JsonProperty("defaultItem")
|
||||
private Boolean defaultItem;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("label")
|
||||
private String label;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ public class ShopInfoDO {
|
||||
//所属管理区域
|
||||
@Column(name = "manager_region_id")
|
||||
private Long managerRegionId;
|
||||
|
||||
// 门店装修属性
|
||||
@Column(name = "shop_decoration_attributes")
|
||||
private Integer shopDecorationAttributes;
|
||||
}
|
||||
@@ -1,8 +1,11 @@
|
||||
package com.cool.store.request;
|
||||
|
||||
import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/07/23/18:40
|
||||
@@ -15,4 +18,14 @@ public class ConfirmQuotationRequest {
|
||||
private String quotationSheetId;
|
||||
@ApiModelProperty("0:拒绝,1:通过")
|
||||
private Integer status;
|
||||
|
||||
public Boolean check(){
|
||||
if (StringUtils.isAnyBlank(shopCode,quotationSheetId)){
|
||||
return false;
|
||||
}
|
||||
if (Objects.isNull(status)){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.cool.store.request;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
@@ -10,15 +13,40 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
public class HqtBuildRequest {
|
||||
//门店编码
|
||||
private String shopCode;
|
||||
//门店名称
|
||||
private String shopName;
|
||||
// 门店装修属性
|
||||
private Integer shopDecorationAttributes;
|
||||
//红圈通区域编码
|
||||
private String hqtRegionCode;
|
||||
//红 圈通区域名称
|
||||
private String hqtRegionName;
|
||||
//督导名称
|
||||
private String supervisorName;
|
||||
private String partnershipSignatoryFirst;
|
||||
private String partnershipSignatoryFirstMobile;
|
||||
private String shopAddress;
|
||||
private Integer isPayDesignFee;
|
||||
private Integer franchiseBrand;
|
||||
//督导手机号
|
||||
private String supervisorMobile;
|
||||
//签约人1
|
||||
private String partnershipSignatoryFirst;
|
||||
//签约人1手机号
|
||||
private String partnershipSignatoryFirstMobile;
|
||||
//门店地址
|
||||
private String shopAddress;
|
||||
//是否已收设计费 0-否 1- 是
|
||||
private Integer isPayDesignFee;
|
||||
//加盟品牌
|
||||
private Integer franchiseBrand;
|
||||
|
||||
public Boolean check(){
|
||||
if (StringUtils.isAnyBlank(shopCode,shopName,hqtRegionCode,hqtRegionName,supervisorName,
|
||||
supervisorMobile,partnershipSignatoryFirst,partnershipSignatoryFirstMobile,shopAddress)){
|
||||
return false;
|
||||
}
|
||||
if (Objects.isNull(isPayDesignFee)|| Objects.isNull(franchiseBrand)|| Objects.isNull(shopDecorationAttributes)){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.cool.store.request;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
@@ -12,6 +15,18 @@ import lombok.Data;
|
||||
public class HqtPartnerAcceptanceRequest {
|
||||
|
||||
private String shopCode;
|
||||
//加盟商满意度 3-差,4-一般,5-好,6-非常好 对应红圈通 回访结果分类
|
||||
private Integer satisfaction;
|
||||
//加盟商评语
|
||||
private String comment;
|
||||
|
||||
public Boolean check() {
|
||||
if (StringUtils.isAnyBlank(shopCode)){
|
||||
return false;
|
||||
}
|
||||
if (Objects.isNull(satisfaction)){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,228 @@
|
||||
package com.cool.store.request.hqt;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HqtBuildAPIRequest {
|
||||
|
||||
/**
|
||||
* projectNo 门店编码
|
||||
*/
|
||||
@JsonProperty("projectNo")
|
||||
private String projectNo;
|
||||
|
||||
/**
|
||||
* name 店名
|
||||
*/
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
|
||||
/**
|
||||
* field13__c 门店属性
|
||||
* 新开店:o1
|
||||
* 老店翻新:o2
|
||||
* 老店新开:o5
|
||||
* 迁址:option46
|
||||
* 二次设计:o3
|
||||
* 维修改造: o4
|
||||
*/
|
||||
@JsonProperty("field13__c")
|
||||
private Field13__c field13__c;
|
||||
|
||||
/**
|
||||
* field124__c 所属片区
|
||||
*/
|
||||
@JsonProperty("field124__c")
|
||||
private Field124__c field124__c;
|
||||
|
||||
|
||||
/**
|
||||
* field94__c 所属督导
|
||||
*/
|
||||
@JsonProperty("field94__c")
|
||||
private String field94__c;
|
||||
|
||||
|
||||
/**
|
||||
* field5__c 联系人 (老板)
|
||||
*/
|
||||
@JsonProperty("field5__c")
|
||||
private String field5__c;
|
||||
|
||||
/**
|
||||
* field62__c 联系人(老板)手机号
|
||||
*/
|
||||
@JsonProperty("field62__c")
|
||||
private String field62__c;
|
||||
|
||||
|
||||
/**
|
||||
* street 详细地址
|
||||
*/
|
||||
@JsonProperty("street")
|
||||
private String street;
|
||||
|
||||
|
||||
/**
|
||||
* field8__c 是否已收设计费
|
||||
* 是:option44
|
||||
* 否:option45
|
||||
*/
|
||||
@JsonProperty("field8__c")
|
||||
private Field8__c field8__c;
|
||||
/**
|
||||
* field123__c 品牌
|
||||
* 正新鸡排:option486
|
||||
* 正烧记:option488
|
||||
* 茂掌柜:option490
|
||||
* 正新三明治:option622
|
||||
* 大鼓米线:option624
|
||||
* 串小妹:option626
|
||||
*/
|
||||
@JsonProperty("field123__c")
|
||||
private Field123__c field123__c;
|
||||
|
||||
|
||||
/**
|
||||
* field4__c 督导手机号
|
||||
*/
|
||||
@JsonProperty("field4__c")
|
||||
private String field4__c;
|
||||
|
||||
@Data
|
||||
public static class Field124__c {
|
||||
/**
|
||||
* @description: 红圈通 区域编码
|
||||
*/
|
||||
@JsonProperty("code")
|
||||
private String code;
|
||||
|
||||
@JsonProperty("bizType")
|
||||
/**
|
||||
* @description:默认值
|
||||
*/
|
||||
private String bizType = "202684487985";
|
||||
/**
|
||||
* @description:默认值
|
||||
*/
|
||||
@JsonProperty("metaName")
|
||||
private String metaName = "CustomObject494__c";
|
||||
/**
|
||||
* @description: 红圈通 区域名称
|
||||
*/
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Field123__c {
|
||||
@JsonProperty("defaultItem")
|
||||
/**
|
||||
* @description: 默认值
|
||||
*/
|
||||
private Boolean defaultItem = false;
|
||||
/**
|
||||
* field123__c 品牌
|
||||
* 正新鸡排:option486
|
||||
* 正烧记:option488
|
||||
* 茂掌柜:option490
|
||||
* 正新三明治:option622
|
||||
* 大鼓米线:option624
|
||||
* 串小妹:option626
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
/**
|
||||
* @description: 如该值=ConstantGroup485/option486
|
||||
* 默认设置了前缀ConstantGroup485/
|
||||
*/
|
||||
private String id = "ConstantGroup485/";
|
||||
|
||||
@JsonProperty("label")
|
||||
/**
|
||||
* @description: 品牌名称:如正新鸡排
|
||||
*/
|
||||
private String label;
|
||||
|
||||
@JsonProperty("name")
|
||||
/**
|
||||
* @description: 对应红圈通品牌编码如:ption486
|
||||
*/
|
||||
private String name;
|
||||
|
||||
@JsonProperty("path")
|
||||
/**
|
||||
* @description: 如该值=ConstantGroup485/option486
|
||||
* 默认设置了前缀ConstantGroup485/
|
||||
* path = id
|
||||
*/
|
||||
private String path = "ConstantGroup485/";
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Field13__c {
|
||||
@JsonProperty("defaultItem")
|
||||
/**
|
||||
* @description: 默认值
|
||||
*/
|
||||
private Boolean defaultItem = false;
|
||||
|
||||
/**
|
||||
* field13__c 门店装修属性
|
||||
* 新开店:o1
|
||||
* 老店翻新:o2
|
||||
* 老店新开:o5
|
||||
* 迁址:option46
|
||||
* 二次设计:o3
|
||||
* 维修改造: o4
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
/**
|
||||
* @description: 如:o1
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* @description: 如:新开店
|
||||
*/
|
||||
@JsonProperty("label")
|
||||
private String label;
|
||||
|
||||
/**
|
||||
* @description: 如:如:o1 name = id
|
||||
*/
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Field8__c {
|
||||
@JsonProperty("defaultItem")
|
||||
/**
|
||||
* @description: 默认值
|
||||
*/
|
||||
private Boolean defaultItem = false;
|
||||
/**
|
||||
* field8__c 是否已收设计费
|
||||
* 是:option44
|
||||
* 否:option45
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
/**
|
||||
* @description: 如:option44
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* @description: 如:是
|
||||
*/
|
||||
@JsonProperty("label")
|
||||
private String label;
|
||||
/**
|
||||
* @description: 如:option44 name = id
|
||||
*/
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.cool.store.request.hqt;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/07/31/14:36
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class HqtPartnerAcceptanceAPIRequest {
|
||||
//是 CRM系统门店编码(红圈通门店id)
|
||||
private Field13__c field13__c;
|
||||
|
||||
/**
|
||||
* @description: 加盟商满意度
|
||||
* 非常好:option139
|
||||
* 好:option140
|
||||
* 一般:ption141
|
||||
* 差:option142
|
||||
*/
|
||||
private Field1__c field1__c;
|
||||
//加盟商评价
|
||||
private String field14__c;
|
||||
|
||||
|
||||
@Data
|
||||
public static class Field13__c{
|
||||
//crm门店编码
|
||||
private String code;
|
||||
//固定值
|
||||
private String bizType = "2148799018";
|
||||
//固定值
|
||||
private String metaName = "project3X";
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Field1__c{
|
||||
//默认值
|
||||
private Boolean defaultItem = false;
|
||||
//加盟商满意度 编码 如option139
|
||||
private String id;
|
||||
//加盟商满意度 名称 如非常好
|
||||
private String label;
|
||||
//加盟商满意度 编码 如option139 name = id
|
||||
private String name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.cool.store.request.hqt;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/07/31/14:24
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class HqtQuotationSheetAPIRequest {
|
||||
/**
|
||||
* @description:CRM系统门店编码(红圈通门店id)
|
||||
*/
|
||||
private Field1__c field1__c;
|
||||
/**
|
||||
* @description:报价编号
|
||||
*/
|
||||
private String name;
|
||||
|
||||
@Data
|
||||
public static class Field1__c {
|
||||
/**
|
||||
* @description: 动态入参 CRM系统门店编码(红圈通门店id)
|
||||
*/
|
||||
private String code;
|
||||
//固定值
|
||||
private String bizType = "2148799018";
|
||||
//固定值
|
||||
private String metaName = "project3X";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.cool.store.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/07/31/15:35
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class HqtAPIResponse {
|
||||
|
||||
/**
|
||||
{
|
||||
"data": "1111992914",
|
||||
"desc": "success",
|
||||
"result": "0",
|
||||
"time": 1546272000000
|
||||
}
|
||||
* @description:
|
||||
*/
|
||||
private String data;
|
||||
private String desc;
|
||||
private String result;
|
||||
private Long time;
|
||||
}
|
||||
Reference in New Issue
Block a user