springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/switchs/StreetAllAppletsVO.java
@@ -19,4 +19,7 @@ @ApiModelProperty("街道下社区列表") private List<CommunitySwitchAllAppletsVO> childList; @ApiModelProperty("街道下社区数量") private Integer count = 0; } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java
@@ -25,7 +25,10 @@ import javax.annotation.Resource; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.stream.Collectors; /** * @program: springcloud_k8s_panzhihuazhihuishequ @@ -220,8 +223,10 @@ List<CommunitySwitchAllAppletsVO> communityList = this.comActDAO.getCommunityListByStreetId(street.getStreetId()); if(!communityList.isEmpty()){ street.setChildList(communityList); street.setCount(communityList.size()); } }); streetList = streetList.stream().sorted(Comparator.comparing(StreetAllAppletsVO::getCount).reversed()).collect(Collectors.toList()); return R.ok(streetList); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
@@ -5105,9 +5105,9 @@ } comActPopulationScreenVO.setSpecialNum(specialNum.longValue()); //统计已使用社区通人数 // Long count = populationDAO.countUsedCommunityPopulation(communityId); // comActPopulationScreenVO.setUsedCommunityNum(count == null ? 0 : count); comActPopulationScreenVO.setUsedCommunityNum(1183L); Long count = populationDAO.countUsedCommunityPopulation(communityId); comActPopulationScreenVO.setUsedCommunityNum(count == null ? 0 : count); // comActPopulationScreenVO.setUsedCommunityNum(1183L); //统计性别 Map<String, Long> sexMap = populationDAO.countBySex(communityId); springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/ComMngUserTagDAO.java
@@ -39,4 +39,23 @@ " t.sys_flag DESC" + "</script> ") IPage<ComMngTagVO> pageSpecialInputUserTags(Page page, @Param(value = "comMngUserTagDTO") ComMngUserTagDTO comMngUserTagDTO); /** * 标签查询 * * @param comMngTagVO * @return */ @Select("<script> " + " SELECT " + " t.* " + "FROM " + " com_mng_user_tag t " + "WHERE " + " community_id = #{comMngTagVO.communityId} " + "<if test='comMngTagVO.tagName != null and comMngTagVO.tagName.trim() != ""'>" + " and t.tag_name = #{comMngTagVO.tagName} " + " </if> " + "</script> ") ComMngUserTagDO getSpecialInputUserTagsByVO(@Param(value = "comMngTagVO") ComMngTagVO comMngTagVO); } springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/SysUserInputServiceImpl.java
@@ -23,6 +23,7 @@ import com.panzhihua.common.model.vos.user.InputUserInfoVO; import com.panzhihua.common.utlis.IdCard; import com.panzhihua.common.utlis.SensitiveUtil; import com.panzhihua.common.utlis.Snowflake; import com.panzhihua.common.utlis.StringUtils; import com.panzhihua.service_user.dao.ComMngUserTagDAO; import com.panzhihua.service_user.dao.SysUserInputDAO; @@ -355,12 +356,12 @@ comMngUserTagDO.setTagName(comMngTagVO.getTagName()); comMngUserTagDAO.updateById(comMngUserTagDO); }else{ ComMngUserTagDO comMngUserTagDO = comMngUserTagDAO.selectOne(new QueryWrapper<ComMngUserTagDO>().lambda().eq(ComMngUserTagDO::getCommunityId,comMngTagVO.getCommunityId()). eq(ComMngUserTagDO::getTagName,comMngTagVO.getTagName())); ComMngUserTagDO comMngUserTagDO = comMngUserTagDAO.getSpecialInputUserTagsByVO(comMngTagVO); if(comMngUserTagDO != null && comMngUserTagDO.getCommunityId().equals(comMngTagVO.getCommunityId())){ return R.fail("标签重复"); } ComMngUserTagDO comMngUserTagDO1 = new ComMngUserTagDO(); comMngUserTagDO1.setId(Snowflake.getId()); comMngUserTagDO1.setTagName(comMngTagVO.getTagName()); comMngUserTagDO1.setCommunityId(comMngTagVO.getCommunityId()); comMngUserTagDO1.setSysFlag(0);