加盟意向

This commit is contained in:
guohb
2024-03-22 15:28:17 +08:00
parent dc6f7abb8f
commit 79e2e57ca2
3 changed files with 12 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import com.cool.store.mapper.JoinIntentionMapper;
import com.cool.store.mapper.LineInfoMapper;
import com.cool.store.request.JoinIntentionRequest;
import com.cool.store.service.JoinIntentionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -15,6 +16,7 @@ import javax.annotation.Resource;
import java.util.Objects;
@Service
@Slf4j
public class JoinIntentionServiceImpl implements JoinIntentionService {
@Resource
@@ -33,6 +35,9 @@ public class JoinIntentionServiceImpl implements JoinIntentionService {
if (submitStatus){
//更改线索流程子状态为【待审核】
LineInfoDO lineInfoDO = lineInfoMapper.getByPartnerId(request.getPartnerId());
if (Objects.isNull(lineInfoDO)){
throw new ServiceException(ErrorCodeEnum.INTERVIEW_PARTNER_NOT_EXIST);
}
lineInfoDO.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.INTENT_5.getCode());
lineInfoMapper.updateByPrimaryKeySelective(lineInfoDO);
}