Merge remote-tracking branch 'origin/cc_partner_init' into cc_partner_init
This commit is contained in:
@@ -252,6 +252,8 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
|
|||||||
lineInfoMapper.updateByPrimaryKeySelective(lineInfoParam);
|
lineInfoMapper.updateByPrimaryKeySelective(lineInfoParam);
|
||||||
}
|
}
|
||||||
if (initiatingResponse.getCode() != 0){
|
if (initiatingResponse.getCode() != 0){
|
||||||
|
lineInfoDO.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.SIGN_INTENT_AGREEMENT_63.getCode());
|
||||||
|
lineInfoMapper.updateByPrimaryKeySelective(lineInfoDO);
|
||||||
return new ResponseResult(500,initiatingResponse.getMessage(),initiatingResponse.getData());
|
return new ResponseResult(500,initiatingResponse.getMessage(),initiatingResponse.getData());
|
||||||
}else {
|
}else {
|
||||||
return new ResponseResult(200000,initiatingResponse.getMessage(),initiatingResponse.getData());
|
return new ResponseResult(200000,initiatingResponse.getMessage(),initiatingResponse.getData());
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.cool.store.service.impl;
|
|||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.cool.store.constants.CommonConstants;
|
import com.cool.store.constants.CommonConstants;
|
||||||
import com.cool.store.context.LoginUserInfo;
|
import com.cool.store.context.LoginUserInfo;
|
||||||
import com.cool.store.dao.*;
|
import com.cool.store.dao.*;
|
||||||
@@ -20,6 +21,7 @@ import com.cool.store.utils.poi.DateUtils;
|
|||||||
import com.cool.store.vo.*;
|
import com.cool.store.vo.*;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.github.pagehelper.PageInfo;
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@@ -33,6 +35,7 @@ import java.util.stream.Collectors;
|
|||||||
* @Date 2024/3/25 13:48
|
* @Date 2024/3/25 13:48
|
||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
public class LineServiceImpl implements LineService {
|
public class LineServiceImpl implements LineService {
|
||||||
|
|
||||||
@@ -375,6 +378,7 @@ public class LineServiceImpl implements LineService {
|
|||||||
@Override
|
@Override
|
||||||
public Boolean addLine(AddLineRequest addLineRequest) {
|
public Boolean addLine(AddLineRequest addLineRequest) {
|
||||||
//必填参数
|
//必填参数
|
||||||
|
log.info("addLine:{}", JSONObject.toJSONString(addLineRequest));
|
||||||
if (!StringUtil.isNoneBlank(addLineRequest.getMobile(),addLineRequest.getUserName())){
|
if (!StringUtil.isNoneBlank(addLineRequest.getMobile(),addLineRequest.getUserName())){
|
||||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||||
}
|
}
|
||||||
@@ -398,7 +402,7 @@ public class LineServiceImpl implements LineService {
|
|||||||
lineInfoDO.setLineSource(Integer.valueOf(UserChannelEnum.ADD.getCode()));
|
lineInfoDO.setLineSource(Integer.valueOf(UserChannelEnum.ADD.getCode()));
|
||||||
lineInfoDO.setPartnerId(hyPartnerUserInfoDO.getPartnerId());
|
lineInfoDO.setPartnerId(hyPartnerUserInfoDO.getPartnerId());
|
||||||
String userId = null;
|
String userId = null;
|
||||||
if (addLineRequest.getInvestmentManagerUserId()!=null){
|
if (StringUtils.isNotBlank(addLineRequest.getInvestmentManagerUserId())){
|
||||||
userId = addLineRequest.getInvestmentManagerUserId();
|
userId = addLineRequest.getInvestmentManagerUserId();
|
||||||
}else {
|
}else {
|
||||||
EnterpriseUserDO user = userAuthMappingService.getUserByRoleEnumAndAreaId(UserRoleEnum.INVESTMENT_MANAGER, addLineRequest.getWantShopAreaId());
|
EnterpriseUserDO user = userAuthMappingService.getUserByRoleEnumAndAreaId(UserRoleEnum.INVESTMENT_MANAGER, addLineRequest.getWantShopAreaId());
|
||||||
|
|||||||
Reference in New Issue
Block a user