800新增字段对接

This commit is contained in:
feng.li
2023-12-18 15:10:55 +08:00
parent 49964a5168
commit e4d340382f
5 changed files with 34 additions and 13 deletions

View File

@@ -1,11 +1,13 @@
package com.cool.store.mapper; package com.cool.store.mapper;
import com.cool.store.entity.DingdingUserDO; import com.cool.store.entity.DingdingUserDO;
import org.apache.ibatis.annotations.Mapper;
/** /**
* @author zhangchenbiao * @author zhangchenbiao
* @date 2023-06-15 10:03 * @date 2023-06-15 10:03
*/ */
@Mapper
public interface DingdingUserMapper { public interface DingdingUserMapper {
/** /**
* *

View File

@@ -2,13 +2,10 @@ package com.cool.store.request;
import com.cool.store.request.data.flow.IdName; import com.cool.store.request.data.flow.IdName;
import com.cool.store.request.data.flow.KeyText; import com.cool.store.request.data.flow.KeyText;
import com.cool.store.request.data.flow.SkrRelshipProve;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.List;
/** /**
* @Author: young.yu * @Author: young.yu
* @Date: 2023-06-14 14:18 * @Date: 2023-06-14 14:18
@@ -38,6 +35,15 @@ public class CreateQualifyVerifyReq {
@ApiModelProperty(value = "加盟商类型", required = true) @ApiModelProperty(value = "加盟商类型", required = true)
private KeyText fraType; private KeyText fraType;
@ApiModelProperty(value = "是否是新加盟商", example = "YES")
private KeyText whetherNewFranchisee;
@ApiModelProperty(value = "是否需要设备分期", example = "yes")
private KeyText needEquipmentInstallment;
@ApiModelProperty(value = "加盟费支付方式 分期支付 yes全款支付 no", example = "yes")
private KeyText fraFeePayMethod;
@ApiModelProperty(value = "加盟类型", required = true, allowableValues = "1: {HSAY: 沪上阿姨} 2: {HSLIGHT: 沪上阿姨(轻享)}") @ApiModelProperty(value = "加盟类型", required = true, allowableValues = "1: {HSAY: 沪上阿姨} 2: {HSLIGHT: 沪上阿姨(轻享)}")
private KeyText innerbrandtype; private KeyText innerbrandtype;

View File

@@ -3,6 +3,7 @@ package com.cool.store.request;
import com.cool.store.request.data.flow.IdName; import com.cool.store.request.data.flow.IdName;
import com.cool.store.request.data.flow.KeyText; import com.cool.store.request.data.flow.KeyText;
import com.cool.store.request.data.flow.SkrRelshipProve; import com.cool.store.request.data.flow.SkrRelshipProve;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@@ -61,6 +62,16 @@ public class RpcCreateQualifyVerifyReq {
@ApiModelProperty(value = "加盟商类型", required = true) @ApiModelProperty(value = "加盟商类型", required = true)
private KeyText fraType; private KeyText fraType;
@ApiModelProperty(value = "是否是新加盟商", example = "YES")
@JsonProperty("IsNewFranchisee")
private KeyText IsNewFranchisee;
@ApiModelProperty(value = "是否需要设备分期", example = "yes")
private KeyText needEquipmentInstallment;
@ApiModelProperty(value = "加盟费支付方式 分期支付 yes全款支付 no", example = "yes")
private KeyText fraFeePayMethod;
@ApiModelProperty(value = "加盟类型", required = true, allowableValues = "1: {HSAY: 沪上阿姨} 2: {HSLIGHT: 沪上阿姨(轻享)}") @ApiModelProperty(value = "加盟类型", required = true, allowableValues = "1: {HSAY: 沪上阿姨} 2: {HSLIGHT: 沪上阿姨(轻享)}")
private KeyText innerbrandtype; private KeyText innerbrandtype;

View File

@@ -5,7 +5,6 @@ import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.cool.store.constants.CommonConstants;
import com.cool.store.context.CurrentUserHolder; import com.cool.store.context.CurrentUserHolder;
import com.cool.store.context.LoginUserInfo; import com.cool.store.context.LoginUserInfo;
import com.cool.store.dao.EnterpriseUserDAO; import com.cool.store.dao.EnterpriseUserDAO;
@@ -13,7 +12,6 @@ import com.cool.store.dao.HyInterviewDAO;
import com.cool.store.dao.HyPartnerBaseInfoDAO; import com.cool.store.dao.HyPartnerBaseInfoDAO;
import com.cool.store.dto.log.CreateQualifyVerifyDTO; import com.cool.store.dto.log.CreateQualifyVerifyDTO;
import com.cool.store.dto.log.LogBasicDTO; import com.cool.store.dto.log.LogBasicDTO;
import com.cool.store.dto.mdm.AccessTokenDTO;
import com.cool.store.dto.response.DictResultDTO; import com.cool.store.dto.response.DictResultDTO;
import com.cool.store.dto.response.MDMResultDTO; import com.cool.store.dto.response.MDMResultDTO;
import com.cool.store.entity.*; import com.cool.store.entity.*;
@@ -24,11 +22,18 @@ import com.cool.store.http.EventCenterHttpRequest;
import com.cool.store.http.MDMHttpRequest; import com.cool.store.http.MDMHttpRequest;
import com.cool.store.mapper.*; import com.cool.store.mapper.*;
import com.cool.store.oss.OSSServer; import com.cool.store.oss.OSSServer;
import com.cool.store.request.*; import com.cool.store.request.CloseFollowRequest;
import com.cool.store.request.data.flow.KeyText; import com.cool.store.request.CreateQualifyVerifyReq;
import com.cool.store.request.QualificationCallbackReq;
import com.cool.store.request.RpcCreateQualifyVerifyReq;
import com.cool.store.request.data.flow.SkrRelshipProve; import com.cool.store.request.data.flow.SkrRelshipProve;
import com.cool.store.service.*; import com.cool.store.service.FlowService;
import com.cool.store.utils.*; import com.cool.store.service.HyPartnerLineInfoService;
import com.cool.store.service.LogService;
import com.cool.store.service.WechatMiniAppService;
import com.cool.store.utils.CoolDateUtils;
import com.cool.store.utils.PassLetterUtils;
import com.cool.store.utils.RedisUtilPool;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@@ -38,8 +43,6 @@ import org.springframework.core.io.ByteArrayResource;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
@@ -123,6 +126,7 @@ public class FlowServiceImpl implements FlowService {
dataBody.setFraSource(request.getFraSource()); dataBody.setFraSource(request.getFraSource());
//copy properties //copy properties
BeanUtil.copyProperties(request, dataBody); BeanUtil.copyProperties(request, dataBody);
dataBody.setIsNewFranchisee(request.getWhetherNewFranchisee());
//日期格式问题 //日期格式问题
if (request.getWantSignTime().endsWith("00:00:00")) { if (request.getWantSignTime().endsWith("00:00:00")) {
dataBody.setIntendedSignDate(request.getWantSignTime()); dataBody.setIntendedSignDate(request.getWantSignTime());

View File

@@ -2,7 +2,6 @@ package com.cool.store.controller;
import com.cool.store.exception.ApiException; import com.cool.store.exception.ApiException;
import com.cool.store.request.CreateQualifyVerifyReq; import com.cool.store.request.CreateQualifyVerifyReq;
import com.cool.store.request.FinishInterviewReq;
import com.cool.store.request.QualificationCallbackReq; import com.cool.store.request.QualificationCallbackReq;
import com.cool.store.response.ResponseResult; import com.cool.store.response.ResponseResult;
import com.cool.store.service.FlowService; import com.cool.store.service.FlowService;
@@ -26,7 +25,6 @@ public class FlowController {
@Autowired @Autowired
private FlowService flowService; private FlowService flowService;
@PostMapping("/qualifyVerify/create") @PostMapping("/qualifyVerify/create")
@ApiOperation("发起加盟商资质审核") @ApiOperation("发起加盟商资质审核")
public ResponseResult createQualifyVerify(@RequestBody CreateQualifyVerifyReq request) throws ApiException, IOException { public ResponseResult createQualifyVerify(@RequestBody CreateQualifyVerifyReq request) throws ApiException, IOException {