| | |
| | | } |
| | | ComActDO comActDO = new ComActDO(); |
| | | Integer integer = |
| | | comActDAO.selectCount(new QueryWrapper<ComActDO>().lambda().eq(ComActDO::getName, comActVO.getName())); |
| | | comActDAO.selectCount(new QueryWrapper<ComActDO>().lambda() |
| | | .eq(ComActDO::getName, comActVO.getName()) |
| | | .eq(ComActDO::getCityCode,comActVO.getCityCode()) |
| | | .eq(ComActDO::getAreaCode,comActVO.getAreaCode()) |
| | | .eq(ComActDO::getProvinceCode,comActVO.getProvinceCode()) |
| | | .eq(ComActDO::getAppId,comActVO.getAppId()) |
| | | ); |
| | | if (integer > 0) { |
| | | return R.fail("社区已经存在"); |
| | | } |
| | |
| | | @Override |
| | | public R statisticsPbMemberType(){ |
| | | List<ComPbMemberTypeVO> comPbMemberTypeVOS = comPbMemberDAO.statisticsPbMemberType(); |
| | | Map<String, Integer> retMap = comPbMemberTypeVOS.stream().collect(Collectors.toMap(ComPbMemberTypeVO::getCountName, ComPbMemberTypeVO::getCountNum)); |
| | | return R.ok(retMap); |
| | | return R.ok(comPbMemberTypeVOS); |
| | | } |
| | | |
| | | public R selectUnitByNatureName(){ |
| | | List<ComPbMemberTypeVO> comPbMemberTypeVOS = comPbMemberDAO.selectUnitByNatureName(); |
| | | Map<String, Integer> retMap = comPbMemberTypeVOS.stream().collect(Collectors.toMap(ComPbMemberTypeVO::getCountName, ComPbMemberTypeVO::getCountNum)); |
| | | return R.ok(retMap); |
| | | return R.ok(comPbMemberTypeVOS); |
| | | } |
| | | } |