Merge branch 'cc_20241008_sysBuildAndAdjust' into 'master'

fix 提交意向申请,修改线索阶段

See merge request hangzhou/java/custom_zxjp!24
This commit is contained in:
苏竹红
2024-11-07 11:53:47 +00:00

View File

@@ -35,7 +35,7 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
JoinIntentionMapper joinIntentionMapper;
@Resource
QualificationsInfoDAO qualificationsInfoDAO;
QualificationsInfoDAO qualificationsInfoDAO;
@Resource
LineInfoDAO lineInfoDAO;
@@ -68,7 +68,7 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
}
LineInfoDO lineInfoDO = lineInfoMapper.getByLineId(request.getLineId());
log.info("lineInfoDO : {}", JSONObject.toJSONString(lineInfoDO));
if (!Objects.isNull(lineInfoDO) && (WorkflowSubStageEnum.INTEND.getCode()<lineInfoDO.getWorkflowSubStage())) {
if (!Objects.isNull(lineInfoDO) && (WorkflowSubStageEnum.INTEND.getCode() < lineInfoDO.getWorkflowSubStage())) {
throw new ServiceException(ErrorCodeEnum.INTENT_PASS);
}
//更改线索流程子状态为【待审核】
@@ -80,14 +80,14 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
// EnterpriseUserDO userByRoleNameAndAreaId = userAuthMappingService.getUserByRoleEnumAndWantShopAreaId(UserRoleEnum.SUPERVISION, Long.valueOf(request.getAreaCode()));
// lineInfoParam.setInvestmentManager(userByRoleNameAndAreaId.getUserId());
// }
lineInfoParam.setLineStatus(0);
//强加盟 前期不确定意向区域
// if (lineInfoParam.getWantShopAreaId() != null&&lineInfoDO.getJoinMode()==1) {
// Long regionId = regionAreaConfigDao.getByWantShopAreaId(lineInfoParam.getWantShopAreaId());
// lineInfoParam.setRegionId(regionId);
// }
if (StringUtils.isBlank(lineInfoDO.getInvestmentManager())){
if (StringUtils.isBlank(lineInfoDO.getInvestmentManager())) {
lineInfoParam.setFranchiseBrand(String.valueOf(FranchiseBrandEnum.ZXJP.getCode()));
lineInfoParam.setLineStatus(0);
}
lineInfoDAO.insertOrUpdate(lineInfoParam);
QualificationsInfoDO qualificationsInfoDO = request.toQualificationsInfoDO();