红圈通接口改造hqtShopId
This commit is contained in:
@@ -9,7 +9,6 @@ import lombok.Data;
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class HqtTokenDTO {
|
||||
//访问令牌
|
||||
private String access_token;
|
||||
|
||||
@@ -155,4 +155,7 @@ public class ShopInfoDO {
|
||||
// 门店装修属性
|
||||
@Column(name = "shop_decoration_attributes")
|
||||
private Integer shopDecorationAttributes;
|
||||
//红圈通门店id
|
||||
@Column(name = "hqt_shop_id")
|
||||
private String hqtShopId;
|
||||
}
|
||||
@@ -14,13 +14,13 @@ import java.util.Objects;
|
||||
*/
|
||||
@Data
|
||||
public class ConfirmQuotationRequest {
|
||||
private String shopCode;
|
||||
private String hqtShopId;
|
||||
private String quotationSheetId;
|
||||
@ApiModelProperty("0:拒绝,1:通过")
|
||||
private Integer status;
|
||||
|
||||
public Boolean check(){
|
||||
if (StringUtils.isAnyBlank(shopCode,quotationSheetId)){
|
||||
if (StringUtils.isAnyBlank(hqtShopId,quotationSheetId)){
|
||||
return false;
|
||||
}
|
||||
if (Objects.isNull(status)){
|
||||
|
||||
@@ -13,6 +13,7 @@ import java.util.Objects;
|
||||
*/
|
||||
@Data
|
||||
public class HqtBuildRequest {
|
||||
private Long shopId;
|
||||
//门店编码
|
||||
private String shopCode;
|
||||
//门店名称
|
||||
|
||||
@@ -14,14 +14,14 @@ import java.util.Objects;
|
||||
@Data
|
||||
public class HqtPartnerAcceptanceRequest {
|
||||
|
||||
private String shopCode;
|
||||
private String hqtShopId;
|
||||
//加盟商满意度 3-差,4-一般,5-好,6-非常好 对应红圈通 回访结果分类
|
||||
private Integer satisfaction;
|
||||
//加盟商评语
|
||||
private String comment;
|
||||
|
||||
public Boolean check() {
|
||||
if (StringUtils.isAnyBlank(shopCode)){
|
||||
if (StringUtils.isAnyBlank(hqtShopId)){
|
||||
return false;
|
||||
}
|
||||
if (Objects.isNull(satisfaction)){
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.cool.store.response;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -10,7 +9,6 @@ import lombok.Data;
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class HqtAPIResponse {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user