| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | // 查询村社数组 |
| | | QueryWrapper<CtUnit> ctUnitQueryWrapper = new QueryWrapper<>(); |
| | | ctUnitQueryWrapper.eq("parent_id", loginUnit.getId()); |
| | | ctUnitQueryWrapper.eq("parent_id", loginUnit.getId()).eq("unit_grade", UserBaseConsts.UNIT_GRADE_4); |
| | | List<CtUnit> ctUnitList = mapper.selectList(ctUnitQueryWrapper); |
| | | List<SelectTermDTO> csList = new ArrayList<>(); |
| | | for (CtUnit ctUnit: ctUnitList){ |
| | |
| | | } |
| | | // 查询村社数组 |
| | | QueryWrapper<CtUnit> ctUnitQueryWrapper = new QueryWrapper<>(); |
| | | ctUnitQueryWrapper.eq("parent_id", superiorUnit.getId()); |
| | | ctUnitQueryWrapper.eq("parent_id", superiorUnit.getId()).eq("unit_grade", UserBaseConsts.UNIT_GRADE_4); |
| | | List<CtUnit> ctUnitList = mapper.selectList(ctUnitQueryWrapper); |
| | | List<SelectTermDTO> csList = new ArrayList<>(); |
| | | for (CtUnit ctUnit: ctUnitList){ |
| | |
| | | throw new ServiceException("CtUnitService.getParentZzzx", e); |
| | | } |
| | | } |
| | | |
| | | public CtUnit selectUnitByGridId(String gridUnitId){ |
| | | return mapper.selectUnitByGridId(gridUnitId); |
| | | } |
| | | } |