Browse Source

历史社区自组织默认其他

dev
yinzuomei 3 years ago
parent
commit
07121b1776
  1. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcCommunitySelfOrganizationServiceImpl.java
  2. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.16__self_org_categorydefaultother.sql

4
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcCommunitySelfOrganizationServiceImpl.java

@ -773,6 +773,10 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo
List<CommunitySelfOrganizationListDTO> list=pageInfo.getList();
for (CommunitySelfOrganizationListDTO dto : list) {
dto.setColor(SelfOrgCategoryEnum.getEnum(dto.getCategoryCode()).getColor());
if (StringUtils.isNotBlank(dto.getCategoryCode())) {
dto.setCategoryName(SelfOrgCategoryEnum.getEnum(dto.getCategoryCode()).getName());
}
}
return new PageData<>(list, pageInfo.getTotal());
}

4
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.16__self_org_categorydefaultother.sql

@ -0,0 +1,4 @@
update ic_community_self_organization set CATEGORY_CODE='other'
where DEL_FLAG='0'
and CATEGORY_CODE is not null
and CATEGORY_CODE !='';
Loading…
Cancel
Save