面试/面谈
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.LineInfoDO;
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.enums.WorkflowStageEnum;
|
||||
import com.cool.store.enums.WorkflowSubStageEnum;
|
||||
import com.cool.store.enums.WorkflowSubStageStatusEnum;
|
||||
import com.cool.store.exception.ServiceException;
|
||||
import com.cool.store.mapper.LineInfoMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Repository;
|
||||
@@ -38,6 +43,18 @@ public class LineInfoDAO {
|
||||
return lineInfoMapper.updateByPrimaryKeySelective(param);
|
||||
}
|
||||
|
||||
public Integer updateWorkflowStage(Long lineId, WorkflowSubStageEnum workflowSubStage, WorkflowSubStageStatusEnum workflowSubStageStatus) {
|
||||
if(Objects.isNull(workflowSubStage) && Objects.isNull(workflowSubStageStatus)){
|
||||
log.info("更新线索阶段,子阶段 和 子阶段状态不能同时为空");
|
||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||
}
|
||||
LineInfoDO lineInfo = new LineInfoDO();
|
||||
lineInfo.setId(lineId);
|
||||
lineInfo.setWorkflowSubStage(workflowSubStage.getCode());
|
||||
lineInfo.setWorkflowSubStageStatus(workflowSubStageStatus.getCode());
|
||||
return lineInfoMapper.updateByPrimaryKeySelective(lineInfo);
|
||||
}
|
||||
|
||||
public LineInfoDO getByPartnerId(String partnerId) {
|
||||
LineInfoDO lineInfo = lineInfoMapper.getByPartnerId(partnerId);
|
||||
if(Objects.nonNull(lineInfo) && !lineInfo.getDeleted()){
|
||||
|
||||
Reference in New Issue
Block a user