|
@ -82,9 +82,11 @@ public class IcPartyOrgServiceImpl extends BaseServiceImpl<IcPartyOrgDao, IcPart |
|
|
if(null != repeatName){ |
|
|
if(null != repeatName){ |
|
|
return new Result().error("行政组织名称不可重复!"); |
|
|
return new Result().error("行政组织名称不可重复!"); |
|
|
} |
|
|
} |
|
|
IcPartyOrgEntity repeatCode = baseDao.selectByCuIdAndNameOrCode(null,dto.getPartyOrgCode(),dto.getCustomerId()); |
|
|
if(StringUtils.isNotBlank(dto.getPartyOrgCode())){ |
|
|
if(null != repeatCode){ |
|
|
IcPartyOrgEntity repeatCode = baseDao.selectByCuIdAndNameOrCode(null,dto.getPartyOrgCode(),dto.getCustomerId()); |
|
|
return new Result().error("行政组织编码不可重复!"); |
|
|
if(null != repeatCode){ |
|
|
|
|
|
return new Result().error("行政组织编码不可重复!"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//如果不是支部,需要判断行政组织是否重复
|
|
|
//如果不是支部,需要判断行政组织是否重复
|
|
|
if(!PartyOrgTypeEnum.BRANCH.getCode().equals(dto.getPartyOrgType())){ |
|
|
if(!PartyOrgTypeEnum.BRANCH.getCode().equals(dto.getPartyOrgType())){ |
|
|