|
|
@ -93,7 +93,8 @@ public class PartyOrgTypeServiceImpl extends BaseServiceImpl<PartyOrgTypeDao, Pa |
|
|
|
this.exceptionHandling(num, "党组织类型编码"); |
|
|
|
num = baseDao.isTypeNameRepeated(dto.getTypeName(), null); |
|
|
|
this.exceptionHandling(num, "党组织类型"); |
|
|
|
|
|
|
|
num = baseDao.isTypeImgRepeated(dto.getImgUrl(),null); |
|
|
|
this.exceptionHandling(num,"党组织类型图标"); |
|
|
|
PartyOrgTypeEntity entity = ConvertUtils.sourceToTarget(dto, PartyOrgTypeEntity.class); |
|
|
|
insert(entity); |
|
|
|
} |
|
|
@ -105,7 +106,8 @@ public class PartyOrgTypeServiceImpl extends BaseServiceImpl<PartyOrgTypeDao, Pa |
|
|
|
this.exceptionHandling(num, "党组织类型编码 不可重复!"); |
|
|
|
num = baseDao.isTypeNameRepeated(dto.getTypeName(), dto.getId()); |
|
|
|
this.exceptionHandling(num, "党组织类型 不可重复!"); |
|
|
|
|
|
|
|
num = baseDao.isTypeImgRepeated(dto.getImgUrl(),dto.getId()); |
|
|
|
this.exceptionHandling(num,"党组织图标,不可重复"); |
|
|
|
PartyOrgTypeEntity entity = ConvertUtils.sourceToTarget(dto, PartyOrgTypeEntity.class); |
|
|
|
updateById(entity); |
|
|
|
} |
|
|
|