Browse Source

社会自组织 详情添加默认图片

master
jianjun 3 years ago
parent
commit
ec0a6b1aad
  1. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcSocietyOrgController.java

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcSocietyOrgController.java

@ -117,7 +117,7 @@ public class IcSocietyOrgController implements ResultDataResolver {
@RequestMapping("detail/{id}")
public Result detail(@LoginUser TokenDto tokenDto, @PathVariable(value = "id") String id) {
IcSocietyOrgDTO icSocietyOrgDTO = societyOrgService.get(id);
if (StringUtils.isNotBlank(icSocietyOrgDTO.getImgUrl())){
if (StringUtils.isBlank(icSocietyOrgDTO.getImgUrl())){
icSocietyOrgDTO.setImgUrl(DEFAULT_NO_IMG);
}
return new Result().ok(icSocietyOrgDTO);

Loading…
Cancel
Save