mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
bug修改
This commit is contained in:
+9
@@ -83,6 +83,8 @@ public class ProcessServiceImpl implements ProcessService {
|
||||
public void updateProcess(ProcessUserSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateProcessExists(updateReqVO.getId());
|
||||
// 校验状态
|
||||
validateProcessStatus(updateReqVO.getId());
|
||||
ProcessDO updateProcess = BeanUtils.toBean(updateReqVO, ProcessDO.class);
|
||||
|
||||
processUserService.deleteProcessUserByProcess(updateReqVO.getId());
|
||||
@@ -123,6 +125,13 @@ public class ProcessServiceImpl implements ProcessService {
|
||||
}
|
||||
}
|
||||
|
||||
private void validateProcessStatus(Long id) {
|
||||
ProcessDO process = processMapper.selectById(id);
|
||||
if (process != null && process.getIsEnabled() == Boolean.FALSE) {
|
||||
throw exception(PROCESS_STATUS_DISABLE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProcessUserRespVO getProcess(Long id) {
|
||||
// 校验存在
|
||||
|
||||
Reference in New Issue
Block a user