Merge branch 'dev/fix/partner1.5.3_20231219' into pre

This commit is contained in:
xiaodong.hu
2023-12-19 13:12:19 +08:00
6 changed files with 35 additions and 16 deletions

View File

@@ -531,7 +531,7 @@
#{userId}
</foreach>
</if>
order by a.create_time desc
order by a.create_time,a.id desc
</select>
@@ -960,7 +960,7 @@
</if>
<if test="sortField!=null and sortField != '' and sortField=='updateTime' ">
order by hpli.update_time
order by hpli.update_time,hpli.id
<if test="sortOrder!=null and sortOrder != '' and sortOrder=='descend' ">
desc
</if>

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.KeyText;
import com.cool.store.request.data.flow.SkrRelshipProve;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @Author: young.yu
* @Date: 2023-06-14 14:18
@@ -38,6 +35,15 @@ public class CreateQualifyVerifyReq {
@ApiModelProperty(value = "加盟商类型", required = true)
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: 沪上阿姨(轻享)}")
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.KeyText;
import com.cool.store.request.data.flow.SkrRelshipProve;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -61,6 +62,16 @@ public class RpcCreateQualifyVerifyReq {
@ApiModelProperty(value = "加盟商类型", required = true)
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: 沪上阿姨(轻享)}")
private KeyText innerbrandtype;

View File

@@ -435,7 +435,7 @@ public class EcSyncServiceImpl implements EcSyncService {
if (enterpriseUserDO==null) {
// 给飞书群发送消息 跟进人找不到
sendFeiShuRobotMessage("推送:飞书架构中找不到该用户:【" + followUserName + "】,该用户电话号码为:" + followUserMobile, "27243d49-97ca-4981-8aec-7c3bf84eb660");
throw new ApiException("飞书架构中找不到该用户:【" + followUserName + "】,该用户电话号码为:" + followUserMobile);
return "";
}
return enterpriseUserDO.getUserId();
}

View File

@@ -5,7 +5,6 @@ import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.cool.store.constants.CommonConstants;
import com.cool.store.context.CurrentUserHolder;
import com.cool.store.context.LoginUserInfo;
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.dto.log.CreateQualifyVerifyDTO;
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.MDMResultDTO;
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.mapper.*;
import com.cool.store.oss.OSSServer;
import com.cool.store.request.*;
import com.cool.store.request.data.flow.KeyText;
import com.cool.store.request.CloseFollowRequest;
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.service.*;
import com.cool.store.utils.*;
import com.cool.store.service.FlowService;
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.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
@@ -38,8 +43,6 @@ import org.springframework.core.io.ByteArrayResource;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -123,6 +126,7 @@ public class FlowServiceImpl implements FlowService {
dataBody.setFraSource(request.getFraSource());
//copy properties
BeanUtil.copyProperties(request, dataBody);
dataBody.setIsNewFranchisee(request.getWhetherNewFranchisee());
//日期格式问题
if (request.getWantSignTime().endsWith("00:00:00")) {
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.request.CreateQualifyVerifyReq;
import com.cool.store.request.FinishInterviewReq;
import com.cool.store.request.QualificationCallbackReq;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.FlowService;
@@ -26,7 +25,6 @@ public class FlowController {
@Autowired
private FlowService flowService;
@PostMapping("/qualifyVerify/create")
@ApiOperation("发起加盟商资质审核")
public ResponseResult createQualifyVerify(@RequestBody CreateQualifyVerifyReq request) throws ApiException, IOException {