面试&面谈
This commit is contained in:
@@ -48,13 +48,15 @@ public class LineInfoDAO {
|
||||
}
|
||||
|
||||
public Integer updateWorkflowStage(Long lineId, WorkflowSubStageEnum workflowSubStage, WorkflowSubStageStatusEnum workflowSubStageStatus) {
|
||||
if(Objects.isNull(workflowSubStage) && Objects.isNull(workflowSubStageStatus)){
|
||||
if(Objects.isNull(workflowSubStageStatus)){
|
||||
log.info("更新线索阶段,子阶段 和 子阶段状态不能同时为空");
|
||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||
}
|
||||
LineInfoDO lineInfo = new LineInfoDO();
|
||||
lineInfo.setId(lineId);
|
||||
lineInfo.setWorkflowSubStage(workflowSubStage.getCode());
|
||||
if(Objects.nonNull(workflowSubStage)){
|
||||
lineInfo.setWorkflowSubStage(workflowSubStage.getCode());
|
||||
}
|
||||
lineInfo.setWorkflowSubStageStatus(workflowSubStageStatus.getCode());
|
||||
return lineInfoMapper.updateByPrimaryKeySelective(lineInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user