|
@ -120,11 +120,11 @@ public class IcSocietyOrgServiceImpl extends BaseServiceImpl<IcSocietyOrgDao, Ic |
|
|
if (null == entity) { |
|
|
if (null == entity) { |
|
|
throw new RenException(String.format("修改社会组织信息失败,社会组织信息不存在,组织Id->%s", formDTO.getSocietyId())); |
|
|
throw new RenException(String.format("修改社会组织信息失败,社会组织信息不存在,组织Id->%s", formDTO.getSocietyId())); |
|
|
} |
|
|
} |
|
|
|
|
|
entity = ConvertUtils.sourceToTarget(formDTO, IcSocietyOrgEntity.class); |
|
|
//图片必填
|
|
|
//图片必填
|
|
|
if(formDTO.getImageList() != null&& StringUtils.isNotBlank(formDTO.getImageList()[0])){ |
|
|
if(formDTO.getImageList() != null && StringUtils.isNotBlank(formDTO.getImageList()[0])){ |
|
|
entity.setImgUrl(formDTO.getImageList()[0]); |
|
|
entity.setImgUrl(formDTO.getImageList()[0]); |
|
|
} |
|
|
} |
|
|
entity = ConvertUtils.sourceToTarget(formDTO, IcSocietyOrgEntity.class); |
|
|
|
|
|
entity.setId(formDTO.getSocietyId()); |
|
|
entity.setId(formDTO.getSocietyId()); |
|
|
baseDao.updateById(entity); |
|
|
baseDao.updateById(entity); |
|
|
} |
|
|
} |
|
|