|
|
|
@ -73,7 +73,7 @@ public class ProProcessServiceImpl implements IProProcessService
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean checkProcessCodeUnique(ProProcess 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.UNIQUE;
|
|
|
|
@ -89,7 +89,7 @@ public class ProProcessServiceImpl implements IProProcessService
|
|
|
|
|
public Boolean checkProcessNameUnique(ProProcess 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.UNIQUE;
|
|
|
|
|