| | |
| | | */ |
| | | package org.springblade.common.cache; |
| | | |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.SpringUtil; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springblade.modules.system.entity.*; |
| | |
| | | private static final String DEPT_NAMES_ID = "deptNames:id:"; |
| | | private static final String DEPT_CHILD_ID = "deptChild:id:"; |
| | | private static final String DEPT_CHILDIDS_ID = "deptChildIds:id:"; |
| | | private static final String REGION_CHILD_CODE = "regionChild:code:"; |
| | | private static final String REGION_CHILDCODES_CODE = "regionChildCodes:code:"; |
| | | private static final String POST_ID = "post:id:"; |
| | | private static final String POST_NAME = "post:name:"; |
| | | private static final String POST_NAME_FUZZY = "post:nameFuzzy:"; |
| | |
| | | private static final IDeptService deptService; |
| | | private static final IPostService postService; |
| | | private static final IRoleService roleService; |
| | | private static final IRegionService regionService; |
| | | private static final ITenantService tenantService; |
| | | private static final ITenantPackageService tenantPackageService; |
| | | |
| | |
| | | deptService = SpringUtil.getBean(IDeptService.class); |
| | | postService = SpringUtil.getBean(IPostService.class); |
| | | roleService = SpringUtil.getBean(IRoleService.class); |
| | | regionService = SpringUtil.getBean(IRegionService.class); |
| | | tenantService = SpringUtil.getBean(ITenantService.class); |
| | | tenantPackageService = SpringUtil.getBean(ITenantPackageService.class); |
| | | } |
| | |
| | | return CacheUtil.get(SYS_CACHE, TENANT_PACKAGE_ID, tenantId, () -> tenantPackageService.getById(tenant.getPackageId()), Boolean.FALSE); |
| | | } |
| | | |
| | | /** |
| | | * 获取下级所有区域code |
| | | * |
| | | * @return regionCode |
| | | */ |
| | | public static List<String> getRegionChildCodesByDeptId(String deptId) { |
| | | List<String> list = new ArrayList<>(); |
| | | // 查询对应的区域编号code |
| | | Dept dept = deptService.getById(deptId); |
| | | if (null!=dept && !Strings.isBlank(dept.getRegionCode()) && !AuthUtil.isAdministrator()){ |
| | | list = getRegionChildCodes(dept.getRegionCode()); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 获取下级所有区域code |
| | | * |
| | | * @return regionCode |
| | | */ |
| | | public static List<String> getRegionChildCodes(String regionCode) { |
| | | if (regionCode == null) { |
| | | return null; |
| | | } |
| | | List<String> regionCodeList = CacheUtil.get(SYS_CACHE, REGION_CHILDCODES_CODE, regionCode, List.class); |
| | | if (regionCodeList == null) { |
| | | regionCodeList = new ArrayList<>(); |
| | | List<Region> deptChild = getRegionChild(regionCode); |
| | | if (deptChild != null) { |
| | | List<String> collect = deptChild.stream().map(Region::getCode).collect(Collectors.toList()); |
| | | regionCodeList.addAll(collect); |
| | | } |
| | | // regionCodeList.add(regionCode); |
| | | CacheUtil.put(SYS_CACHE, REGION_CHILDCODES_CODE, regionCode, regionCodeList); |
| | | } |
| | | return regionCodeList; |
| | | } |
| | | |
| | | /** |
| | | * 获取下级区域 |
| | | * @param regionCode |
| | | * @return |
| | | */ |
| | | private static List<Region> getRegionChild(String regionCode) { |
| | | return CacheUtil.get(SYS_CACHE, REGION_CHILD_CODE, regionCode, () -> regionService.getRegionChild(regionCode)); |
| | | } |
| | | } |
| | |
| | | * @param community |
| | | * @return |
| | | */ |
| | | List<CommunityVO> selectCommunityPage(IPage page,@Param("community") CommunityVO community); |
| | | List<CommunityVO> selectCommunityPage(IPage page, |
| | | @Param("community") CommunityVO community, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 查询个人社区编号集合 |
| | |
| | | <if test="community.streetCode !=null and community.streetCode!=''"> |
| | | and jc.street_code like concat('%',#{community.streetCode},'%') |
| | | </if> |
| | | <if test="community.regionCode !=null and community.regionCode !=''"> |
| | | and jc.code like concat('%',#{community.regionCode},'%') |
| | | </if> |
| | | <if test="community.townName !=null and community.townName !=''"> |
| | | and br.town_name like concat('%',#{community.townName},'%') |
| | | </if> |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jc.code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jc.code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义分页列表查询--> |
| | |
| | | package org.springblade.modules.community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.community.entity.CommunityEntity; |
| | | import org.springblade.modules.community.vo.CommunityVO; |
| | |
| | | @Service |
| | | public class CommunityServiceImpl extends ServiceImpl<CommunityMapper, CommunityEntity> implements ICommunityService { |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<CommunityVO> selectCommunityPage(IPage<CommunityVO> page, CommunityVO community) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | community.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | return page.setRecords(baseMapper.selectCommunityPage(page, community)); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | return page.setRecords(baseMapper.selectCommunityPage(page, community,regionChildCodesList,isAdministrator)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param district |
| | | * @return |
| | | */ |
| | | List<DistrictVO> selectDistrictPage(IPage page,@Param("district") DistrictVO district); |
| | | List<DistrictVO> selectDistrictPage(IPage page, |
| | | @Param("district") DistrictVO district, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 获取小区树 |
| | |
| | | <if test="district.townStreetName !=null and district.townStreetName !=''"> |
| | | and br.town_name like concat('%',#{district.townStreetName},'%') |
| | | </if> |
| | | <if test="district.regionCode !=null and district.regionCode !=''"> |
| | | and jd.community_code like concat('%',#{district.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jd.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jd.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | parent_code as parentId, |
| | | name, |
| | | remark aoiCode |
| | | FROM blade_region where district_code = '361102' |
| | | FROM blade_region where district_code = '361102000000' |
| | | union all |
| | | ( |
| | | select |
| | |
| | | package org.springblade.modules.district.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.node.TreeIntegerNode; |
| | | import org.springblade.common.node.TreeStringNode; |
| | | import org.springblade.common.utils.NodeTreeUtil; |
| | |
| | | @Autowired |
| | | private IGridService gridService; |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<DistrictVO> selectDistrictPage(IPage<DistrictVO> page, DistrictVO district) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | district.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<DistrictVO> districtVOS = baseMapper.selectDistrictPage(page, district); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | List<DistrictVO> districtVOS = baseMapper.selectDistrictPage(page, district,regionChildCodesList,isAdministrator); |
| | | // 遍历 |
| | | for (DistrictVO districtVO : districtVOS) { |
| | | // 设置对应的网格名称 |
| | |
| | | * @param grid |
| | | * @return |
| | | */ |
| | | List<GridVO> selectGridPage(IPage page,@Param("grid") GridVO grid); |
| | | List<GridVO> selectGridPage(IPage page, |
| | | @Param("grid") GridVO grid, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 根据地址编号查询网格数据 |
| | |
| | | <if test="grid.principalPhone!=null and grid.principalPhone!=''"> |
| | | and jg.principal_phone like concat('%',#{grid.principalPhone},'%') |
| | | </if> |
| | | <if test="grid.regionCode != null and grid.regionCode !='' "> |
| | | and jg.community_code like concat('%',#{grid.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="grid.communityName != null and grid.communityName !='' "> |
| | | and br.name like concat('%',#{grid.communityName},'%') |
| | |
| | | * @return |
| | | */ |
| | | List<GridPatrolRecordVO> selectGridPatrolRecordPage(IPage page, |
| | | @Param("gridPatrolRecord") GridPatrolRecordVO gridPatrolRecord); |
| | | @Param("gridPatrolRecord") GridPatrolRecordVO gridPatrolRecord, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | |
| | | } |
| | |
| | | </resultMap> |
| | | |
| | | <!--自定义分页查询--> |
| | | <select id="selectGridPatrolRecordPage" resultMap="gridPatrolRecordResultMap"> |
| | | select * from jczz_grid_patrol_record where is_deleted = 0 |
| | | <select id="selectGridPatrolRecordPage" resultType="org.springblade.modules.grid.vo.GridPatrolRecordVO"> |
| | | select jgpr.* from jczz_grid_patrol_record jgpr |
| | | LEFT JOIN blade_user bu on bu.id = jgpr.create_user and bu.is_deleted = 0 |
| | | LEFT JOIN blade_dept bd on bd.id = bu.dept_id and bd.is_deleted = 0 |
| | | where jgpr.is_deleted = 0 |
| | | <if test="gridPatrolRecord.name!=null and gridPatrolRecord.name!=''"> |
| | | and name like concat('%',#{gridPatrolRecord.name},'%') |
| | | and jgpr.name like concat('%',#{gridPatrolRecord.name},'%') |
| | | </if> |
| | | <if test="gridPatrolRecord.context!=null and gridPatrolRecord.context!=''"> |
| | | and jgpr.context like concat('%',#{gridPatrolRecord.context},'%') |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | * @param gridWorkLog |
| | | * @return |
| | | */ |
| | | List<GridWorkLogVO> selectGridWorkLogPage(IPage page,@Param("gridWorkLog") GridWorkLogVO gridWorkLog); |
| | | List<GridWorkLogVO> selectGridWorkLogPage(IPage page, |
| | | @Param("gridWorkLog") GridWorkLogVO gridWorkLog, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 走访日志数量统计 |
| | |
| | | <if test="gridWorkLog.neiName!=null and gridWorkLog.neiName!=''"> |
| | | and jda.nei_name like concat('%',#{gridWorkLog.neiName},'%') |
| | | </if> |
| | | <if test="gridWorkLog.regionCode!=null and gridWorkLog.regionCode!=''"> |
| | | and jg.community_code like concat('%',#{gridWorkLog.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | * @param gridman |
| | | * @return |
| | | */ |
| | | List<GridmanVO> selectGridmanPage(IPage page,@Param("gridman") GridmanVO gridman); |
| | | List<GridmanVO> selectGridmanPage(IPage page, |
| | | @Param("gridman") GridmanVO gridman, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 网格员查询 |
| | |
| | | <if test="gridman.townName!=null and gridman.townName!=''"> |
| | | and br.town_name like concat('%',#{gridman.townName},'%') |
| | | </if> |
| | | <if test="gridman.regionCode != null and gridman.regionCode !='' "> |
| | | and jg.community_code like concat('%',#{gridman.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | package org.springblade.modules.grid.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.grid.entity.GridPatrolRecordEntity; |
| | | import org.springblade.modules.grid.vo.GridPatrolRecordVO; |
| | | import org.springblade.modules.grid.mapper.GridPatrolRecordMapper; |
| | |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 网格巡查记录表 服务实现类 |
| | |
| | | */ |
| | | @Override |
| | | public IPage<GridPatrolRecordVO> selectGridPatrolRecordPage(IPage<GridPatrolRecordVO> page, GridPatrolRecordVO gridPatrolRecord) { |
| | | return page.setRecords(baseMapper.selectGridPatrolRecordPage(page, gridPatrolRecord)); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | return page.setRecords(baseMapper.selectGridPatrolRecordPage(page, gridPatrolRecord,regionChildCodesList,isAdministrator)); |
| | | } |
| | | |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.utils.NodeTreeUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity; |
| | |
| | | |
| | | @Override |
| | | public IPage<GridVO> selectGridPage(IPage<GridVO> page, GridVO grid) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | grid.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | return page.setRecords(baseMapper.selectGridPage(page, grid)); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | return page.setRecords(baseMapper.selectGridPage(page, grid,regionChildCodesList,isAdministrator)); |
| | | } |
| | | |
| | | /** |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.grid.entity.GridWorkLogEntity; |
| | |
| | | @Service |
| | | public class GridWorkLogServiceImpl extends ServiceImpl<GridWorkLogMapper, GridWorkLogEntity> implements IGridWorkLogService { |
| | | |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<GridWorkLogVO> selectGridWorkLogPage(IPage<GridWorkLogVO> page, GridWorkLogVO gridWorkLog) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | gridWorkLog.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | if (!Strings.isBlank(gridWorkLog.getRoleName()) && gridWorkLog.getRoleName().equals("网格员")){ |
| | | gridWorkLog.setGridId(getGridId()); |
| | | } |
| | | return page.setRecords(baseMapper.selectGridWorkLogPage(page, gridWorkLog)); |
| | | return page.setRecords(baseMapper.selectGridWorkLogPage(page, gridWorkLog,regionChildCodesList,isAdministrator)); |
| | | } |
| | | /** |
| | | * 获取网格员id |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.flowable.idm.engine.impl.persistence.entity.UserEntity; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.modules.grid.entity.GridEntity; |
| | |
| | | @Autowired |
| | | private IGridService gridService; |
| | | |
| | | @Autowired |
| | | private IRegionService regionService; |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<GridmanVO> selectGridmanPage(IPage<GridmanVO> page, GridmanVO gridman) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | gridman.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | return page.setRecords(baseMapper.selectGridmanPage(page, gridman)); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | return page.setRecords(baseMapper.selectGridmanPage(page, gridman,regionChildCodesList,isAdministrator)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param house |
| | | * @return |
| | | */ |
| | | List<HouseVO> selectHousePage(IPage page, HouseVO house); |
| | | List<HouseVO> selectHousePage(IPage page, |
| | | @Param("house") HouseVO house, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 房屋自定义详情查询 |
| | |
| | | <if test="house.unit != null and house.unit != ''">and jh.unit = #{house.unit}</if> |
| | | <if test="house.room != null and house.room != ''">and jh.room = #{house.room}</if> |
| | | <if test="house.buildingNo != null ">and jh.building_no = #{house.buildingNo}</if> |
| | | <if test="house.regionCode != null and house.regionCode !='' "> |
| | | and jg.community_code like concat('%',#{house.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="house.parentId != null "> |
| | | and jh.house_code in ( |
| | |
| | | */ |
| | | List<HouseRentalTenantVO> selectHouseRentalPage(IPage page, |
| | | @Param("vo") HouseRentalTenantVO houseRental, |
| | | @Param("list") List<String> list); |
| | | @Param("list") List<String> list, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 查询房屋出租情况 |
| | |
| | | <if test="vo.startTime != null and vo.startTime != '' and vo.endTime != null and vo.endTime != '' "> |
| | | AND jhr.create_time BETWEEN #{vo.startTime} and #{vo.endTime} |
| | | </if> |
| | | <if test="vo.regionCode!=null and vo.regionCode!=''"> |
| | | and jg.community_code like concat('%',#{vo.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <include refid="filterHouseGrid"/> |
| | | order by jhr.create_time desc,jhr.id desc |
| | |
| | | * @param household |
| | | * @return |
| | | */ |
| | | List<HouseholdVO> selectHouseholdPage(IPage page,@Param("household") HouseholdVO household); |
| | | List<HouseholdVO> selectHouseholdPage(IPage page, |
| | | @Param("household") HouseholdVO household, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 获取全部 |
| | |
| | | <if test="household.startTime != null and household.startTime != '' and household.endTime != null and household.endTime != '' "> |
| | | AND jh.create_time BETWEEN #{household.startTime} and #{household.endTime} |
| | | </if> |
| | | <if test="household.regionCode!=null and household.regionCode!=''"> |
| | | and jg.community_code like concat(#{household.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="household.building!=null and household.building!=''"> |
| | | and jhs.building like concat(#{household.building},'%') |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.grid.service.IGridService; |
| | |
| | | @Autowired |
| | | private IGridService gridService; |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | /** |
| | | * 自定义分页查询 |
| | | * @param page |
| | |
| | | */ |
| | | @Override |
| | | public IPage<HouseRentalTenantVO> selectHouseRentalPage(IPage<HouseRentalTenantVO> page, HouseRentalTenantVO houseRental) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | houseRental.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | List<String> list = new ArrayList<>(); |
| | | if (null!=houseRental.getRoleName() && !houseRental.getRoleName().equals("")){ |
| | | if (houseRental.getRoleName().equals("网格员")){ |
| | |
| | | houseRental.setAuditStatus(2); |
| | | } |
| | | } |
| | | List<HouseRentalTenantVO> houseRentalTenantVOS = baseMapper.selectHouseRentalPage(page, houseRental, list); |
| | | List<HouseRentalTenantVO> houseRentalTenantVOS = baseMapper.selectHouseRentalPage(page, houseRental, list,regionChildCodesList,isAdministrator); |
| | | for (HouseRentalTenantVO houseRentalTenantVO : houseRentalTenantVOS) { |
| | | if(houseRentalTenantVO.getStatus().equals(1)){ |
| | | houseRentalTenantVO.setStatus(30); |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.utils.IdUtils; |
| | | import org.springblade.common.utils.NodeTreeUtil; |
| | | import org.springblade.common.utils.SpringUtils; |
| | |
| | | private IGridRangeService gridRangeService; |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Autowired |
| | | private IUserService userService; |
| | | |
| | | @Autowired |
| | |
| | | |
| | | @Override |
| | | public IPage<HouseVO> selectHousePage(IPage<HouseVO> page, HouseVO house) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null != dept) { |
| | | house.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<HouseVO> houseVOS = baseMapper.selectHousePage(page, house); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | List<HouseVO> houseVOS = baseMapper.selectHousePage(page, house,regionChildCodesList,isAdministrator); |
| | | // 遍历查询网格 |
| | | // for (HouseVO houseVO : houseVOS) { |
| | | // // 设置对应的网格名称 |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import liquibase.repackaged.org.apache.commons.lang3.StringUtils; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.node.TreeStringNode; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | |
| | | private IUserService userService; |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Autowired |
| | | private IPlaceService placeService; |
| | | |
| | | @Override |
| | | public IPage<HouseholdVO> selectHouseholdPage(IPage<HouseholdVO> page, HouseholdVO household) { |
| | | StopWatch stopWatch = new StopWatch(); |
| | | stopWatch.start(); |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | household.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<HouseholdVO> householdVOS = baseMapper.selectHouseholdPage(page, household); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | List<HouseholdVO> householdVOS = baseMapper.selectHouseholdPage(page, household,regionChildCodesList,isAdministrator); |
| | | stopWatch.stop(); |
| | | System.out.println("selectHouseholdPage:" + stopWatch.getTotalTimeMillis()); |
| | | return page.setRecords(householdVOS); |
| | |
| | | */ |
| | | List<PlaceVO> selectPlacePage(IPage page, |
| | | @Param("place") PlaceVO place, |
| | | @Param("houseCodeList") List<String> houseCodeList); |
| | | @Param("houseCodeList") List<String> houseCodeList, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | /** |
| | | * 查询场所集合信息 |
| | |
| | | <if test="place.isPerfect==2"> |
| | | and jp.status = 2 |
| | | </if> |
| | | <if test="place.regionCode != null and place.regionCode !='' "> |
| | | and jg.community_code like concat('%',#{place.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | order by jp.create_time desc,jp.id desc |
| | | </select> |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import liquibase.repackaged.org.apache.commons.lang3.StringUtils; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.node.TreeStringNode; |
| | | import org.springblade.common.utils.IdUtils; |
| | | import org.springblade.core.mp.support.Condition; |
| | |
| | | private IGridmanService gridmanService; |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Autowired |
| | | private GridMapper gridMapper; |
| | | |
| | | @Autowired |
| | |
| | | */ |
| | | @Override |
| | | public IPage<PlaceVO> selectPlacePage(IPage<PlaceVO> page, PlaceVO place) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | place.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | List<String> list = new ArrayList<>(); |
| | | if (null!=place.getRoleName() && !place.getRoleName().equals("")){ |
| | | if (place.getRoleName().equals("网格员")){ |
| | |
| | | list = gridService.getAddressCodeListByUserId(AuthUtil.getUserId()); |
| | | } |
| | | } |
| | | List<PlaceVO> placeVOS = baseMapper.selectPlacePage(page, place, list); |
| | | List<PlaceVO> placeVOS = baseMapper.selectPlacePage(page, place, list,regionChildCodesList,isAdministrator); |
| | | // 遍历 |
| | | for (PlaceVO placeVO : placeVOS) { |
| | | // 设置对应的网格名称 |
| | |
| | | |
| | | /** |
| | | * 树列表 |
| | | * @param parentCode |
| | | * @param regionCode |
| | | * @param region |
| | | * @return |
| | | */ |
| | | @MapKey(value = "id") |
| | |
| | | name |
| | | FROM blade_region |
| | | where 1=1 |
| | | and district_code = '361102' |
| | | and district_code = '361102000000' |
| | | <if test="region.parentCode!=null and region.parentCode!=''"> |
| | | and parent_code = #{region.parentCode} |
| | | </if> |
| | |
| | | code as id, |
| | | parent_code as parentId, |
| | | name |
| | | FROM blade_region where district_code = '361102' |
| | | FROM blade_region where district_code = '361102000000' |
| | | and region_level = 4 |
| | | <if test="regionCode!=null and regionCode!=''"> |
| | | and code = #{regionCode} |
| | |
| | | code as id, |
| | | parent_code as parentId, |
| | | name |
| | | FROM blade_region where district_code = '361102' |
| | | FROM blade_region where district_code = '361102000000' |
| | | and region_level = 4 |
| | | <if test="regionCode!=null and regionCode!=''"> |
| | | and parent_code = #{regionCode} |
| | |
| | | * 区划数据处理 |
| | | */ |
| | | void regionDataHandle(); |
| | | |
| | | /** |
| | | * 查询下级区域 |
| | | * @param regionCode |
| | | * @return |
| | | */ |
| | | List<Region> getRegionChild(String regionCode); |
| | | } |
| | |
| | | String regionCode = null; |
| | | if (null != dept) { |
| | | regionCode = dept.getRegionCode(); |
| | | if (StringUtils.isNotBlank(regionCode) && regionCode.equals("3611")) { |
| | | regionCode = "361102"; |
| | | if (StringUtils.isNotBlank(regionCode) && regionCode.equals("361100000000")) { |
| | | regionCode = "361102000000"; |
| | | } |
| | | } |
| | | return NodeTreeUtil.getStringNodeTree(baseMapper.getTownTree(regionCode)); |
| | |
| | | } |
| | | region.setAncestors(Strings.join(list, ',')); |
| | | } |
| | | |
| | | /** |
| | | * 查询下级区域 |
| | | * @param regionCode |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Region> getRegionChild(String regionCode) { |
| | | return baseMapper.selectList(Wrappers.<Region>query().lambda().like(Region::getAncestors, regionCode)); |
| | | } |
| | | } |
| | |
| | | * @param eCallEvent |
| | | * @return |
| | | */ |
| | | List<ECallEventVO> selectECallEventPage(IPage page,@Param("eCallEvent") ECallEventVO eCallEvent); |
| | | List<ECallEventVO> selectECallEventPage(IPage page, |
| | | @Param("eCallEvent") ECallEventVO eCallEvent, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | |
| | | } |
| | |
| | | <if test="eCallEvent.realName!=null and eCallEvent.realName!=''"> |
| | | and jece.real_name like concat('%',#{eCallEvent.realName},'%') |
| | | </if> |
| | | <if test="eCallEvent.regionCode!=null and eCallEvent.regionCode!=''"> |
| | | and jece.community_code like concat('%',#{eCallEvent.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jece.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jece.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="eCallEvent.communityName!=null and eCallEvent.communityName!=''"> |
| | | and br.name like concat('%',#{eCallEvent.communityName},'%') |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.task.entity.TaskEntity; |
| | | import org.springblade.modules.task.vo.TaskVO; |
| | | |
| | |
| | | * @param task |
| | | * @return |
| | | */ |
| | | List<TaskVO> selectTaskPage(IPage page, TaskVO task); |
| | | List<TaskVO> selectTaskPage(IPage page, |
| | | @Param("task") TaskVO task, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | List<TaskVO> selectTaskPageBy(IPage page, TaskVO task); |
| | | List<TaskVO> selectTaskPageBy(IPage page, |
| | | @Param("task") TaskVO task, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | Integer selectTaskCount(TaskVO task); |
| | | |
| | |
| | | LEFT JOIN jczz_gridman jgm ON jg.id = jgm.grid_id |
| | | WHERE |
| | | jg.is_deleted = 0 |
| | | <if test="task.communityCode != null and task.communityCode != ''"> |
| | | and jg.community_code = #{task.communityCode} |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | AND jgm.user_id = #{task.userId} ) |
| | | </if> |
| | |
| | | <if test="task.userId != null and task.userId != ''"> |
| | | AND jc.res_police_user_id = #{task.userId} |
| | | </if> |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jc.code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jc.code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | */ |
| | | List<TaskReportForRepairsVO> selectTaskReportForRepairsPage(IPage page, |
| | | @Param("vo") TaskReportForRepairsVO taskReportForRepairs, |
| | | @Param("list") List<String> list); |
| | | @Param("list") List<String> list, |
| | | @Param("regionChildCodesList") List<String> regionChildCodesList, |
| | | @Param("isAdministrator") Integer isAdministrator); |
| | | |
| | | |
| | | /** |
| | |
| | | <if test="vo.startTime != null and vo.startTime != '' and vo.endTime != null and vo.endTime != '' "> |
| | | AND jtrfr.create_time BETWEEN #{vo.startTime} and #{vo.endTime} |
| | | </if> |
| | | <if test="vo.regionCode != null and vo.regionCode !='' "> |
| | | and jg.community_code like concat(#{vo.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="vo.roleName!=null and vo.roleName!=''"> |
| | | <if test="vo.roleName=='网格员'"> |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.system.entity.Dept; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | |
| | | @Service |
| | | public class ECallEventServiceImpl extends ServiceImpl<EcCallEventMapper, ECallEventEntity> implements IECallEventService { |
| | | |
| | | @Autowired |
| | | private IDeptService deptService; |
| | | |
| | | @Override |
| | | public IPage<ECallEventVO> selectECallEventPage(IPage<ECallEventVO> page, ECallEventVO eCallEvent) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null!=dept){ |
| | | eCallEvent.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | return page.setRecords(baseMapper.selectECallEventPage(page, eCallEvent)); |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | return page.setRecords(baseMapper.selectECallEventPage(page, eCallEvent,regionChildCodesList,isAdministrator)); |
| | | } |
| | | |
| | | /** |
| | |
| | | package org.springblade.modules.task.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.core.mp.base.BaseServiceImpl; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.grid.entity.GridmanEntity; |
| | |
| | | */ |
| | | @Override |
| | | public IPage<TaskReportForRepairsVO> selectTaskReportForRepairsPage(IPage<TaskReportForRepairsVO> page, TaskReportForRepairsVO taskReportForRepairs) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null != dept) { |
| | | taskReportForRepairs.setRegionCode(dept.getRegionCode()); |
| | | } |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | taskReportForRepairs.setConfirmUserId(AuthUtil.getUserId()); |
| | | List<String> list = new ArrayList<>(); |
| | | if (null != taskReportForRepairs.getRoleName() && !taskReportForRepairs.getRoleName().equals("")) { |
| | |
| | | taskReportForRepairs.setConfirmUserId(null); |
| | | } |
| | | } |
| | | return page.setRecords(baseMapper.selectTaskReportForRepairsPage(page, taskReportForRepairs, list)); |
| | | return page.setRecords(baseMapper.selectTaskReportForRepairsPage(page, taskReportForRepairs, list,regionChildCodesList,isAdministrator)); |
| | | } |
| | | |
| | | /** |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import liquibase.pro.packaged.W; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.common.constant.DictConstant; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | |
| | | |
| | | @Override |
| | | public IPage<TaskVO> selectTaskPage(IPage<TaskVO> page, TaskVO task) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null != dept) { |
| | | task.setCommunityCode(dept.getRegionCode()); |
| | | } |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | // 民警角色 |
| | | if (AuthUtil.getUserRole().equals("mj")) { |
| | | task.setUserId(AuthUtil.getUserId()); |
| | | return page.setRecords(baseMapper.selectTaskPageBy(page, task)); |
| | | return page.setRecords(baseMapper.selectTaskPageBy(page, task,regionChildCodesList,isAdministrator)); |
| | | } else { |
| | | if (AuthUtil.getUserAccount().equals("18879306957")) { |
| | | task.setCommunityCode("361102003027"); |
| | |
| | | task.setUserId(AuthUtil.getUserId()); |
| | | } |
| | | // 非民警角色 |
| | | List<TaskVO> taskVOS = baseMapper.selectTaskPage(page, task); |
| | | List<TaskVO> taskVOS = baseMapper.selectTaskPage(page, task,regionChildCodesList,isAdministrator); |
| | | return page.setRecords(taskVOS); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public IPage<TaskVO> getBailReportingPage(IPage<TaskVO> page, TaskVO task) { |
| | | Dept dept = deptService.getById(AuthUtil.getDeptId()); |
| | | if (null != dept) { |
| | | task.setCommunityCode(dept.getRegionCode()); |
| | | } |
| | | List<String> regionChildCodesList = SysCache.getRegionChildCodesByDeptId(AuthUtil.getDeptId()); |
| | | Integer isAdministrator = AuthUtil.isAdministrator()==true?1:2; |
| | | // 民警角色 |
| | | if (AuthUtil.getUserRole().equals("mj")) { |
| | | task.setUserId(AuthUtil.getUserId()); |
| | | return page.setRecords(baseMapper.selectTaskPageBy(page, task)); |
| | | return page.setRecords(baseMapper.selectTaskPageBy(page, task,regionChildCodesList,isAdministrator)); |
| | | } else { |
| | | if (AuthUtil.getUserAccount().equals("18879306957")) { |
| | | task.setCommunityCode("361102003027"); |