Browse Source

Merge remote-tracking branch 'origin/develop' into release_temp

dev_shibei_match
yinzuomei 4 years ago
parent
commit
0c99195383
  1. 1
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/resigroup/ResiTopicDao.xml
  2. 6
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/ResiEventServiceImpl.java

1
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/resigroup/ResiTopicDao.xml

@ -39,5 +39,6 @@
<foreach item="epmetUserId" collection="epmetUserIdList" open="AND (" separator="or" close=")" index="">
rt.CREATED_BY = #{epmetUserId}
</foreach>
order by rt.CREATED_TIME desc
</select>
</mapper>

6
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/ResiEventServiceImpl.java

@ -715,6 +715,11 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven
firstCategoryIds.add(categoryDTO.getCategoryId());
continue;
}
//当前分类为二级分类
if(!categoryDTO.getCategoryPids().contains(StrConstant.COMMA)&&categoryDTO.getCategoryPids().contains(StrConstant.COLON)){
firstCategoryIds.add(categoryDTO.getCategoryPids());
continue;
}
//英文逗号
if(categoryDTO.getCategoryPids().contains(StrConstant.COMMA)){
String[] categoryAtt=categoryDTO.getCategoryPids().split(StrConstant.COMMA);
@ -733,6 +738,7 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven
if(CollectionUtils.isEmpty(firstCategoryIds)){
return resultDTO;
}
log.info(String.format("当前项目id:%s,所有一级分类id:%s",formDTO.getProjectId(), JSON.toJSONString(firstCategoryIds)));
//查询这些分类的名称
//查询出当前人,在居民端小程序里上报的需求且转了项目的,并且还得排除当前的这个项目
IssueProjectCategoryDictListFormDTO dictFormDto=new IssueProjectCategoryDictListFormDTO();

Loading…
Cancel
Save