|
|
@ -73,7 +73,7 @@ public class ProProcessServiceImpl implements IProProcessService
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Boolean checkProcessCodeUnique(ProProcess proProcess) {
|
|
|
|
public Boolean checkProcessCodeUnique(ProProcess proProcess) {
|
|
|
|
ProProcess process = proProcessMapper.checkProcessCodeUnique(proProcess);
|
|
|
|
ProProcess process = proProcessMapper.checkProcessCodeUnique(proProcess);
|
|
|
|
if(StringUtils.isNotNull(process) && process.getProcessId().equals(proProcess.getProcessId())){
|
|
|
|
if(StringUtils.isNotNull(process) && !process.getProcessId().equals(proProcess.getProcessId())){
|
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return UserConstants.UNIQUE;
|
|
|
|
return UserConstants.UNIQUE;
|
|
|
@ -89,7 +89,7 @@ public class ProProcessServiceImpl implements IProProcessService
|
|
|
|
public Boolean checkProcessNameUnique(ProProcess proProcess) {
|
|
|
|
public Boolean checkProcessNameUnique(ProProcess proProcess) {
|
|
|
|
ProProcess process = proProcessMapper.checkProcessNameUnique(proProcess);
|
|
|
|
ProProcess process = proProcessMapper.checkProcessNameUnique(proProcess);
|
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotNull(process) && process.getProcessId().equals(proProcess.getProcessId())){
|
|
|
|
if(StringUtils.isNotNull(process) && !process.getProcessId().equals(proProcess.getProcessId())){
|
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return UserConstants.UNIQUE;
|
|
|
|
return UserConstants.UNIQUE;
|
|
|
|