zhongrj
2023-11-23 e83cce7cc2bb41d3118c6682dedb55b1df622296
新增小区,物业相关表基础接口
1 files renamed
18 files modified
1 files copied
45 files added
2732 ■■■■■ changed files
src/main/java/org/springblade/common/node/TreeLongNode.java 32 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/common/node/TreeStringNode.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/common/utils/NodeTreeUtil.java 41 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/controller/DistrictController.java 126 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/dto/DistrictDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/entity/DistrictEntity.java 136 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/mapper/DistrictMapper.java 43 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/mapper/DistrictMapper.xml 28 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/service/IDistrictService.java 43 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/service/impl/DistrictServiceImpl.java 43 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/vo/DistrictVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/district/wrapper/DistrictWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/doorplateAddress/mapper/DoorplateAddressMapper.java 25 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/doorplateAddress/mapper/DoorplateAddressMapper.xml 12 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/doorplateAddress/service/impl/DoorplateAddressServiceImpl.java 43 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.java 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/service/IHouseholdService.java 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/label/mapper/LabelMapper.java 1 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.java 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/place/service/IPlaceService.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/place/service/impl/PlaceServiceImpl.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/controller/PropertyCapitalApplyController.java 126 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/controller/PropertyCompanyController.java 126 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/controller/PropertyCompanyDistrictController.java 126 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/controller/PropertyDistrictUserController.java 126 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/dto/PropertyCapitalApplyDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/dto/PropertyCompanyDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/dto/PropertyCompanyDistrictDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/dto/PropertyDistrictUserDTO.java 34 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/entity/PropertyCapitalApplyEntity.java 117 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/entity/PropertyCompanyDistrictEntity.java 95 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/entity/PropertyCompanyEntity.java 75 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/entity/PropertyDistrictUserEntity.java 54 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyCapitalApplyMapper.java 43 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyCapitalApplyMapper.xml 36 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyDistrictMapper.java 43 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyDistrictMapper.xml 32 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyMapper.java 43 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyMapper.xml 28 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyDistrictUserMapper.java 43 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/mapper/PropertyDistrictUserMapper.xml 19 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/IPropertyCapitalApplyService.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/IPropertyCompanyDistrictService.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/IPropertyCompanyService.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/IPropertyDistrictUserService.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/impl/PropertyCapitalApplyServiceImpl.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/impl/PropertyCompanyDistrictServiceImpl.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/impl/PropertyCompanyServiceImpl.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/service/impl/PropertyDistrictUserServiceImpl.java 42 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/vo/PropertyCapitalApplyVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/vo/PropertyCompanyDistrictVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/vo/PropertyCompanyVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/vo/PropertyDistrictUserVO.java 35 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/wrapper/PropertyCapitalApplyWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/wrapper/PropertyCompanyDistrictWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/wrapper/PropertyCompanyWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/property/wrapper/PropertyDistrictUserWrapper.java 50 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/controller/RegionController.java 11 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/mapper/RegionMapper.java 9 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml 20 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/service/IRegionService.java 8 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/service/impl/RegionServiceImpl.java 13 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/common/node/TreeLongNode.java
copy from src/main/java/org/springblade/common/node/TreeNode.java copy to src/main/java/org/springblade/common/node/TreeLongNode.java
File was copied from src/main/java/org/springblade/common/node/TreeNode.java
@@ -3,8 +3,8 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import sun.rmi.runtime.Log;
import java.io.Serializable;
import java.util.ArrayList;
@@ -16,7 +16,7 @@
 * @author zhongrj
 */
@Data
public class TreeNode implements Serializable {
public class TreeLongNode implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -24,46 +24,28 @@
     * 主键ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;
    private Long id;
    /**
     * 名称
     */
    private String name;
    private String neiName;
    /**
     * 门牌类型
     * 排序
     */
    private String doorplateType;
    /**
     * 地址等级
     */
    private Integer addressLevel;
    /**
     * 房屋编码
     */
    private String houseCode;
    /**
     * 地址类型 1:小区  2:非小区  3:街路巷 4:商超
     */
    private Integer addressType;
    private Integer sort;
    /**
     * 父节点ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private String parentId;
    private Long parentId;
    /**
     * 子孙节点
     */
    private List<TreeNode> children = new ArrayList<>();
    private List<TreeLongNode> children = new ArrayList<>();
    /**
     * 是否有子孙节点
src/main/java/org/springblade/common/node/TreeStringNode.java
File was renamed from src/main/java/org/springblade/common/node/TreeNode.java
@@ -3,7 +3,6 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.io.Serializable;
@@ -16,7 +15,7 @@
 * @author zhongrj
 */
@Data
public class TreeNode implements Serializable {
public class TreeStringNode implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -63,7 +62,7 @@
    /**
     * 子孙节点
     */
    private List<TreeNode> children = new ArrayList<>();
    private List<TreeStringNode> children = new ArrayList<>();
    /**
     * 是否有子孙节点
src/main/java/org/springblade/common/utils/NodeTreeUtil.java
@@ -1,7 +1,8 @@
package org.springblade.common.utils;
import org.springblade.common.node.TreeIntegerNode;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeLongNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree;
import org.springblade.modules.house.vo.HouseTree;
@@ -40,6 +41,44 @@
     * @param treeMap
     * @return
     */
    public static List<TreeLongNode> getLongNodeTree(Map<Long, TreeLongNode> treeMap){
        List<TreeLongNode> tree = new ArrayList<>();
        if (treeMap.size() > 1) {
            treeMap.forEach((id, treeNode) -> {
                if (treeMap.containsKey(treeNode.getParentId())) {
                    treeMap.get(treeNode.getParentId()).getChildren().add(treeNode);
                } else {
                    tree.add(treeNode);
                }
            });
        }
        return tree;
    }
    /**
     * 树转换
     * @param treeMap
     * @return
     */
    public static List<TreeStringNode> getStringNodeTree(Map<String, TreeStringNode> treeMap){
        List<TreeStringNode> tree = new ArrayList<>();
        if (treeMap.size() > 1) {
            treeMap.forEach((id, treeNode) -> {
                if (treeMap.containsKey(treeNode.getParentId())) {
                    treeMap.get(treeNode.getParentId()).getChildren().add(treeNode);
                } else {
                    tree.add(treeNode);
                }
            });
        }
        return tree;
    }
    /**
     * 树转换
     * @param treeMap
     * @return
     */
    public static List<DoorplateAddressVOTree> getAddressNodeTree(Map<String, DoorplateAddressVOTree> treeMap){
        List<DoorplateAddressVOTree> tree = new ArrayList<>();
        if (treeMap.size() > 1) {
src/main/java/org/springblade/modules/district/controller/DistrictController.java
New file
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.district.entity.DistrictEntity;
import org.springblade.modules.district.vo.DistrictVO;
import org.springblade.modules.district.wrapper.DistrictWrapper;
import org.springblade.modules.district.service.IDistrictService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 小区表 控制器
 *
 * @author BladeX
 * @since 2023-11-23
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-district/district")
@Api(value = "小区表", tags = "小区表接口")
public class DistrictController{
    private final IDistrictService districtService;
    /**
     * 小区表 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入district")
    public R<DistrictVO> detail(DistrictEntity district) {
        DistrictEntity detail = districtService.getOne(Condition.getQueryWrapper(district));
        return R.data(DistrictWrapper.build().entityVO(detail));
    }
    /**
     * 小区表 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入district")
    public R<IPage<DistrictVO>> list(DistrictEntity district, Query query) {
        IPage<DistrictEntity> pages = districtService.page(Condition.getPage(query), Condition.getQueryWrapper(district));
        return R.data(DistrictWrapper.build().pageVO(pages));
    }
    /**
     * 小区表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入district")
    public R<IPage<DistrictVO>> page(DistrictVO district, Query query) {
        IPage<DistrictVO> pages = districtService.selectDistrictPage(Condition.getPage(query), district);
        return R.data(pages);
    }
    /**
     * 小区表 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入district")
    public R save(@Valid @RequestBody DistrictEntity district) {
        return R.status(districtService.save(district));
    }
    /**
     * 小区表 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入district")
    public R update(@Valid @RequestBody DistrictEntity district) {
        return R.status(districtService.updateById(district));
    }
    /**
     * 小区表 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入district")
    public R submit(@Valid @RequestBody DistrictEntity district) {
        return R.status(districtService.saveOrUpdate(district));
    }
    /**
     * 小区表 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(districtService.removeByIds(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/district/dto/DistrictDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.dto;
import org.springblade.modules.district.entity.DistrictEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 小区表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DistrictDTO extends DistrictEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/district/entity/DistrictEntity.java
New file
@@ -0,0 +1,136 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;
/**
 * 小区表 实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@TableName("jczz_district")
@ApiModel(value = "District对象", description = "小区表")
public class DistrictEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 小区编号
     */
    @ApiModelProperty(value = "小区编号")
    private String aoiCode;
    /**
     * 社区编号
     */
    @ApiModelProperty(value = "社区编号")
    private String communityCode;
    /**
     * 小区名称
     */
    @ApiModelProperty(value = "小区名称")
    private String name;
    /**
     * 小区图片url
     */
    @ApiModelProperty(value = "小区图片url")
    private String picUrl;
    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    private String address;
    /**
     * 中心坐标-经度
     */
    @ApiModelProperty(value = "中心坐标-经度")
    private String lng;
    /**
     * 中心坐标-纬度
     */
    @ApiModelProperty(value = "中心坐标-纬度")
    private String lat;
    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    private String remark;
    /**
     * 创建人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("创建人")
    private String createUser;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("更新人")
    private String updateUser;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime;
    /**
     * 是否删除
     */
    @TableLogic
    @ApiModelProperty("是否已删除 0:否  1:是")
    private Integer isDeleted;
}
src/main/java/org/springblade/modules/district/mapper/DistrictMapper.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.mapper;
import org.springblade.modules.district.entity.DistrictEntity;
import org.springblade.modules.district.vo.DistrictVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 小区表 Mapper 接口
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface DistrictMapper extends BaseMapper<DistrictEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param district
     * @return
     */
    List<DistrictVO> selectDistrictPage(IPage page, DistrictVO district);
}
src/main/java/org/springblade/modules/district/mapper/DistrictMapper.xml
New file
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.district.mapper.DistrictMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="districtResultMap" type="org.springblade.modules.district.entity.DistrictEntity">
        <result column="id" property="id"/>
        <result column="aoi_cdoe" property="aoiCdoe"/>
        <result column="community_code" property="communityCode"/>
        <result column="name" property="name"/>
        <result column="address" property="address"/>
        <result column="lng" property="lng"/>
        <result column="lat" property="lat"/>
        <result column="remark" property="remark"/>
        <result column="create_user" property="createUser"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
    <select id="selectDistrictPage" resultMap="districtResultMap">
        select * from jczz_district where is_deleted = 0
    </select>
</mapper>
src/main/java/org/springblade/modules/district/service/IDistrictService.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.modules.district.entity.DistrictEntity;
import org.springblade.modules.district.vo.DistrictVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 小区表 服务类
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface IDistrictService extends IService<DistrictEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param district
     * @return
     */
    IPage<DistrictVO> selectDistrictPage(IPage<DistrictVO> page, DistrictVO district);
}
src/main/java/org/springblade/modules/district/service/impl/DistrictServiceImpl.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.modules.district.entity.DistrictEntity;
import org.springblade.modules.district.vo.DistrictVO;
import org.springblade.modules.district.mapper.DistrictMapper;
import org.springblade.modules.district.service.IDistrictService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 小区表 服务实现类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Service
public class DistrictServiceImpl extends ServiceImpl<DistrictMapper, DistrictEntity> implements IDistrictService {
    @Override
    public IPage<DistrictVO> selectDistrictPage(IPage<DistrictVO> page, DistrictVO district) {
        return page.setRecords(baseMapper.selectDistrictPage(page, district));
    }
}
src/main/java/org/springblade/modules/district/vo/DistrictVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.vo;
import org.springblade.modules.district.entity.DistrictEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 小区表 视图实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DistrictVO extends DistrictEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/district/wrapper/DistrictWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.district.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.district.entity.DistrictEntity;
import org.springblade.modules.district.vo.DistrictVO;
import java.util.Objects;
/**
 * 小区表 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-11-23
 */
public class DistrictWrapper extends BaseEntityWrapper<DistrictEntity, DistrictVO>  {
    public static DistrictWrapper build() {
        return new DistrictWrapper();
     }
    @Override
    public DistrictVO entityVO(DistrictEntity district) {
        DistrictVO districtVO = Objects.requireNonNull(BeanUtil.copy(district, DistrictVO.class));
        //User createUser = UserCache.getUser(district.getCreateUser());
        //User updateUser = UserCache.getUser(district.getUpdateUser());
        //districtVO.setCreateUserName(createUser.getName());
        //districtVO.setUpdateUserName(updateUser.getName());
        return districtVO;
    }
}
src/main/java/org/springblade/modules/doorplateAddress/mapper/DoorplateAddressMapper.java
@@ -19,10 +19,9 @@
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import liquibase.pro.packaged.P;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity;
import org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree;
import org.springblade.modules.doorplateAddress.vo.DoorplateAddressVO;
@@ -55,15 +54,15 @@
     * 查询街道数据
     * @return
     */
    List<TreeNode> getRegionListByGroupTwon(@Param("houseParam") HouseParam houseParam,
                                            @Param("list") List<String> list);
    List<TreeStringNode> getRegionListByGroupTwon(@Param("houseParam") HouseParam houseParam,
                                                  @Param("list") List<String> list);
    /**
     * 查询社区数据
     * @return
     */
    List<TreeNode> getRegionListByGroupNei(@Param("houseParam") HouseParam houseParam,
                                           @Param("list") List<String> list);
    List<TreeStringNode> getRegionListByGroupNei(@Param("houseParam") HouseParam houseParam,
                                                 @Param("list") List<String> list);
    /**
     * 根据社区名称查询小区集合
@@ -71,8 +70,8 @@
     * @param list
     * @return
     */
    List<TreeNode> getDistrictList(@Param("houseParam") HouseParam houseParam,
                                   @Param("list") List<String> list);
    List<TreeStringNode> getDistrictList(@Param("houseParam") HouseParam houseParam,
                                         @Param("list") List<String> list);
    /**
     * 根据社区名称查询楼栋集合
@@ -80,8 +79,8 @@
     * @param list
     * @return
     */
    List<TreeNode> getBuildingList(@Param("houseParam") HouseParam houseParam,
                                   @Param("list") List<String> list);
    List<TreeStringNode> getBuildingList(@Param("houseParam") HouseParam houseParam,
                                         @Param("list") List<String> list);
    /**
     *  查询户室及住户相关信息,单元中包含住户
@@ -116,8 +115,8 @@
     * @param list
     * @return
     */
    List<TreeNode> getStreetRuList(@Param("houseParam") HouseParam houseParam,
                                   @Param("list") List<String> list);
    List<TreeStringNode> getStreetRuList(@Param("houseParam") HouseParam houseParam,
                                         @Param("list") List<String> list);
    /**
     * 根据街路巷编号查询街路巷门牌名称集合
@@ -170,7 +169,7 @@
     * @param houseParam
     * @return
     */
    List<TreeNode> getPlaceRelList(@Param("houseParam") HouseParam houseParam);
    List<TreeStringNode> getPlaceRelList(@Param("houseParam") HouseParam houseParam);
    /**
     * 查询商超详情集合
src/main/java/org/springblade/modules/doorplateAddress/mapper/DoorplateAddressMapper.xml
@@ -40,7 +40,7 @@
    <!--查询区域数据-街道-->
    <select id="getRegionListByGroupTwon" resultType="org.springblade.common.node.TreeNode" >
    <select id="getRegionListByGroupTwon" resultType="org.springblade.common.node.TreeStringNode" >
        select town_street_code as id,town_street_name as name from jczz_doorplate_address
        where 1=1
        <if test="houseParam.userId!=null and houseParam.userId!='' and houseParam.userId=='1726859808689696770'">
@@ -51,7 +51,7 @@
    </select>
    <!--查询区域数据-社区-->
    <select id="getRegionListByGroupNei" resultType="org.springblade.common.node.TreeNode" >
    <select id="getRegionListByGroupNei" resultType="org.springblade.common.node.TreeStringNode" >
        select nei_code as id,nei_name as name,town_street_code as parentId from jczz_doorplate_address
        where 1=1
        <if test="houseParam.userId!=null and houseParam.userId!='' and houseParam.userId=='1726859808689696770'">
@@ -62,7 +62,7 @@
    </select>
    <!--根据社区名称查询小区集合-->
    <select id="getDistrictList" resultType="org.springblade.common.node.TreeNode" >
    <select id="getDistrictList" resultType="org.springblade.common.node.TreeStringNode" >
        select aoi_code as id,aoi_name as name,1 as addressType from jczz_doorplate_address
        where 1=1
        and aoi_name !=''
@@ -120,7 +120,7 @@
    </select>
    <!--根据小区名称查询楼栋/商铺集合-->
    <select id="getBuildingList" resultType="org.springblade.common.node.TreeNode" >
    <select id="getBuildingList" resultType="org.springblade.common.node.TreeStringNode" >
        (
            select building_code as id,ifnull(building_name,'1栋') as name,1 as addressType from jczz_doorplate_address
            where 1=1
@@ -217,7 +217,7 @@
    </select>
    <!--根据社区查询街路巷集合-->
    <select id="getStreetRuList" resultType="org.springblade.common.node.TreeNode" >
    <select id="getStreetRuList" resultType="org.springblade.common.node.TreeStringNode" >
        select street_ru_code as id,street_ru_name as name,3 as addressType from jczz_doorplate_address
        where 1=1
        and aoi_code is null
@@ -346,7 +346,7 @@
    </select>
    <!--查询商超-->
    <select id="getPlaceRelList" resultType="org.springblade.common.node.TreeNode">
    <select id="getPlaceRelList" resultType="org.springblade.common.node.TreeStringNode">
        select building_name as id,building_name as name,4 as addressType from jczz_place_rel jpl
        join jczz_place jp on jpl.place_id = jp.id and jp.is_deleted = 0
        where jpl.is_deleted = 0
src/main/java/org/springblade/modules/doorplateAddress/service/impl/DoorplateAddressServiceImpl.java
@@ -20,11 +20,10 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qiniu.util.Auth;
import liquibase.repackaged.org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.util.Strings;
import org.springblade.common.constant.DictConstant;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.common.utils.NodeTreeUtil;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity;
@@ -98,18 +97,18 @@
                stringList = gridService.getAddressCodeListByUserId(AuthUtil.getUserId());
            }
        }
        List<TreeNode> list = new ArrayList<>();
        List<TreeStringNode> list = new ArrayList<>();
        if (null!=type) {
            // 如果是网格管理员,系统管理员
            if (type==1){
                // 查询街道
                List<TreeNode> townList = baseMapper.getRegionListByGroupTwon(houseParam,stringList);
                List<TreeStringNode> townList = baseMapper.getRegionListByGroupTwon(houseParam,stringList);
                // 查询社区
                List<TreeNode> neiList = baseMapper.getRegionListByGroupNei(houseParam,stringList);
                List<TreeStringNode> neiList = baseMapper.getRegionListByGroupNei(houseParam,stringList);
                // 遍历
                for (TreeNode treeNode : townList) {
                for (TreeStringNode treeNode : townList) {
                    // 遍历
                    for (TreeNode node : neiList) {
                    for (TreeStringNode node : neiList) {
                        if (treeNode.getId().equals(node.getParentId())){
                            node.setHasChildren(false);
                            treeNode.getChildren().add(node);
@@ -132,10 +131,10 @@
     * @param list
     * @return
     */
    private Object getInhabitantInfo(List<TreeNode> list) {
    private Object getInhabitantInfo(List<TreeStringNode> list) {
        // 查询房屋集合信息
        List<TreeNode> houseNodeList = householdService.selectHouseNodeList(AuthUtil.getUserId());
        for (TreeNode treeNode : houseNodeList) {
        List<TreeStringNode> houseNodeList = householdService.selectHouseNodeList(AuthUtil.getUserId());
        for (TreeStringNode treeNode : houseNodeList) {
            // 判断房屋类型类型
            if (DictConstant.SMALL_DOORPLATE.equals(treeNode.getDoorplateType())  ||
                (DictConstant.centre_DOORPLATE.equals(treeNode.getDoorplateType()) &&
@@ -146,8 +145,8 @@
            }
        }
        // 查询场所集合信息
        List<TreeNode> placeNodeList = placeService.selectPlaceNodeList(AuthUtil.getUserId());
        for (TreeNode treeNode : placeNodeList) {
        List<TreeStringNode> placeNodeList = placeService.selectPlaceNodeList(AuthUtil.getUserId());
        for (TreeStringNode treeNode : placeNodeList) {
            treeNode.setAddressType(2);
//            if (DictConstant.SMALL_DOORPLATE.equals(treeNode.getDoorplateType()) ||
//                (DictConstant.centre_DOORPLATE.equals(treeNode.getDoorplateType()) &&
@@ -159,13 +158,13 @@
        }
        if (houseNodeList.size() > 0 && placeNodeList.size() > 0) {
            // 合并
            TreeNode houseNode = new TreeNode();
            TreeStringNode houseNode = new TreeStringNode();
            houseNode.setName("房屋");
            houseNode.setId("1");
            houseNode.setHasChildren(true);
            houseNode.setChildren(houseNodeList);
            TreeNode placeNode = new TreeNode();
            TreeStringNode placeNode = new TreeStringNode();
            placeNode.setName("场所");
            placeNode.setId("2");
            placeNode.setHasChildren(true);
@@ -193,7 +192,7 @@
     */
    @Override
    public Object getHousesList(HouseParam houseParam) {
        List<TreeNode> list = new ArrayList<>();
        List<TreeStringNode> list = new ArrayList<>();
        Map<String, Object> map = new HashMap<>(2);
        // 获取网格员对应的地址编号集合
        List<String> stringList = getHouseCodeList(houseParam);
@@ -298,7 +297,7 @@
            // 获取网格员对应的网格信息
            getGridInfoByGridman(houseParam);
            // 查询商超
            List<TreeNode> list = baseMapper.getPlaceRelList(houseParam);
            List<TreeStringNode> list = baseMapper.getPlaceRelList(houseParam);
            map.put("aoiList", new ArrayList<>());
            map.put("shopList", list);
            // 返回
@@ -307,15 +306,15 @@
            List<String> stringList = getHouseCodeList(houseParam);
            // 判断 code 长度,如果 code 长度大于 12 则为小区查楼栋/商铺,否则则按社区查街路巷
            if (houseParam.getCode().length() > 12) {
                List<TreeNode> aoiList = new ArrayList<>();
                List<TreeNode> shopList = new ArrayList<>();
                List<TreeStringNode> aoiList = new ArrayList<>();
                List<TreeStringNode> shopList = new ArrayList<>();
                // 根据社区名称查询楼栋或者商铺的集合
                List<TreeNode> list = baseMapper.getBuildingList(houseParam, stringList);
                List<TreeStringNode> list = baseMapper.getBuildingList(houseParam, stringList);
                // 排序  StringUtils.getDigits(X.getName()) 取出数字排序
                List<TreeNode> sortList = list.stream().sorted(Comparator.comparing(X -> StringUtils.getDigits(X.getName()))).collect(Collectors.toList());
                List<TreeStringNode> sortList = list.stream().sorted(Comparator.comparing(X -> StringUtils.getDigits(X.getName()))).collect(Collectors.toList());
                if (list.size() > 0) {
                    for (TreeNode treeNode : sortList) {
                    for (TreeStringNode treeNode : sortList) {
                        if (treeNode.getAddressType() == 1) {
                            aoiList.add(treeNode);
                        }
@@ -330,7 +329,7 @@
                return map;
            } else {
                // 查询街路巷
                List<TreeNode> list = baseMapper.getStreetRuList(houseParam, stringList);
                List<TreeStringNode> list = baseMapper.getStreetRuList(houseParam, stringList);
                map.put("aoiList", new ArrayList<>());
                map.put("shopList", list);
                // 返回
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.java
@@ -17,7 +17,7 @@
package org.springblade.modules.house.mapper;
import org.apache.ibatis.annotations.Param;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.house.entity.HouseholdEntity;
import org.springblade.modules.house.vo.HouseholdVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@@ -49,7 +49,7 @@
     * @param userId
     * @return
     */
    List<TreeNode> selectHouseNodeList(@Param("userId") Long userId);
    List<TreeStringNode> selectHouseNodeList(@Param("userId") Long userId);
    /**
     * 查询房屋人员情况
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
@@ -117,7 +117,7 @@
    </select>
    <!--查询房屋集合信息-->
    <select id="selectHouseNodeList" resultType="org.springblade.common.node.TreeNode" >
    <select id="selectHouseNodeList" resultType="org.springblade.common.node.TreeStringNode" >
        select jh.house_code    as id,
               jh.house_code    as houseCode,
               jda.address_name as name,
src/main/java/org/springblade/modules/house/service/IHouseholdService.java
@@ -17,7 +17,7 @@
package org.springblade.modules.house.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.house.entity.HouseholdEntity;
import org.springblade.modules.house.vo.HouseholdVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
@@ -47,7 +47,7 @@
     * @param userId
     * @return
     */
    List<TreeNode> selectHouseNodeList(Long userId);
    List<TreeStringNode> selectHouseNodeList(Long userId);
    /**
     * 查询房屋人员情况
src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java
@@ -17,7 +17,7 @@
package org.springblade.modules.house.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.house.entity.HouseholdEntity;
@@ -59,7 +59,7 @@
     * @return
     */
    @Override
    public List<TreeNode> selectHouseNodeList(Long userId) {
    public List<TreeStringNode> selectHouseNodeList(Long userId) {
        return baseMapper.selectHouseNodeList(userId);
    }
src/main/java/org/springblade/modules/label/mapper/LabelMapper.java
@@ -19,7 +19,6 @@
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springblade.common.node.TreeIntegerNode;
import org.springblade.common.node.TreeNode;
import org.springblade.modules.label.entity.LabelEntity;
import org.springblade.modules.label.vo.LabelVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.java
@@ -17,7 +17,7 @@
package org.springblade.modules.place.mapper;
import org.apache.ibatis.annotations.Param;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.place.entity.PlaceEntity;
import org.springblade.modules.place.excel.PlaceAndRelExcel;
import org.springblade.modules.place.vo.PlaceVO;
@@ -50,7 +50,7 @@
     * @param userId
     * @return
     */
    List<TreeNode> selectPlaceNodeList(@Param("userId") String userId);
    List<TreeStringNode> selectPlaceNodeList(@Param("userId") String userId);
    /**
     * 插入用户标签
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
@@ -69,7 +69,7 @@
    </select>
    <!--查询场所集合信息-->
    <select id="selectPlaceNodeList" resultType="org.springblade.common.node.TreeNode" >
    <select id="selectPlaceNodeList" resultType="org.springblade.common.node.TreeStringNode" >
        select jp.id,
               jp.house_code      houseCode,
               jp.place_name as   name,
src/main/java/org/springblade/modules/place/service/IPlaceService.java
@@ -17,12 +17,11 @@
package org.springblade.modules.place.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.place.entity.PlaceEntity;
import org.springblade.modules.place.excel.PlaceAndRelExcel;
import org.springblade.modules.place.excel.PlaceExcel;
import org.springblade.modules.place.vo.PlaceVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
@@ -49,7 +48,7 @@
     * @param userId
     * @return
     */
    List<TreeNode> selectPlaceNodeList(Long userId);
    List<TreeStringNode> selectPlaceNodeList(Long userId);
    /**
     * 场所信息自定义新增
src/main/java/org/springblade/modules/place/service/impl/PlaceServiceImpl.java
@@ -18,9 +18,8 @@
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.apache.logging.log4j.util.Strings;
import org.springblade.common.node.TreeNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity;
@@ -101,7 +100,7 @@
     * @return
     */
    @Override
    public List<TreeNode> selectPlaceNodeList(Long userId) {
    public List<TreeStringNode> selectPlaceNodeList(Long userId) {
        return baseMapper.selectPlaceNodeList(userId.toString());
    }
src/main/java/org/springblade/modules/property/controller/PropertyCapitalApplyController.java
New file
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import org.springblade.modules.property.vo.PropertyCapitalApplyVO;
import org.springblade.modules.property.wrapper.PropertyCapitalApplyWrapper;
import org.springblade.modules.property.service.IPropertyCapitalApplyService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 物业维修资金申请表 控制器
 *
 * @author BladeX
 * @since 2023-11-23
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-propertyCapitalApply/propertyCapitalApply")
@Api(value = "物业维修资金申请表", tags = "物业维修资金申请表接口")
public class PropertyCapitalApplyController extends BladeController {
    private final IPropertyCapitalApplyService propertyCapitalApplyService;
    /**
     * 物业维修资金申请表 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入propertyCapitalApply")
    public R<PropertyCapitalApplyVO> detail(PropertyCapitalApplyEntity propertyCapitalApply) {
        PropertyCapitalApplyEntity detail = propertyCapitalApplyService.getOne(Condition.getQueryWrapper(propertyCapitalApply));
        return R.data(PropertyCapitalApplyWrapper.build().entityVO(detail));
    }
    /**
     * 物业维修资金申请表 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入propertyCapitalApply")
    public R<IPage<PropertyCapitalApplyVO>> list(PropertyCapitalApplyEntity propertyCapitalApply, Query query) {
        IPage<PropertyCapitalApplyEntity> pages = propertyCapitalApplyService.page(Condition.getPage(query), Condition.getQueryWrapper(propertyCapitalApply));
        return R.data(PropertyCapitalApplyWrapper.build().pageVO(pages));
    }
    /**
     * 物业维修资金申请表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入propertyCapitalApply")
    public R<IPage<PropertyCapitalApplyVO>> page(PropertyCapitalApplyVO propertyCapitalApply, Query query) {
        IPage<PropertyCapitalApplyVO> pages = propertyCapitalApplyService.selectPropertyCapitalApplyPage(Condition.getPage(query), propertyCapitalApply);
        return R.data(pages);
    }
    /**
     * 物业维修资金申请表 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入propertyCapitalApply")
    public R save(@Valid @RequestBody PropertyCapitalApplyEntity propertyCapitalApply) {
        return R.status(propertyCapitalApplyService.save(propertyCapitalApply));
    }
    /**
     * 物业维修资金申请表 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入propertyCapitalApply")
    public R update(@Valid @RequestBody PropertyCapitalApplyEntity propertyCapitalApply) {
        return R.status(propertyCapitalApplyService.updateById(propertyCapitalApply));
    }
    /**
     * 物业维修资金申请表 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入propertyCapitalApply")
    public R submit(@Valid @RequestBody PropertyCapitalApplyEntity propertyCapitalApply) {
        return R.status(propertyCapitalApplyService.saveOrUpdate(propertyCapitalApply));
    }
    /**
     * 物业维修资金申请表 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(propertyCapitalApplyService.deleteLogic(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/property/controller/PropertyCompanyController.java
New file
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import org.springblade.modules.property.vo.PropertyCompanyVO;
import org.springblade.modules.property.wrapper.PropertyCompanyWrapper;
import org.springblade.modules.property.service.IPropertyCompanyService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 物业公司 控制器
 *
 * @author BladeX
 * @since 2023-11-23
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-propertyCompany/propertyCompany")
@Api(value = "物业公司", tags = "物业公司接口")
public class PropertyCompanyController extends BladeController {
    private final IPropertyCompanyService propertyCompanyService;
    /**
     * 物业公司 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入propertyCompany")
    public R<PropertyCompanyVO> detail(PropertyCompanyEntity propertyCompany) {
        PropertyCompanyEntity detail = propertyCompanyService.getOne(Condition.getQueryWrapper(propertyCompany));
        return R.data(PropertyCompanyWrapper.build().entityVO(detail));
    }
    /**
     * 物业公司 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入propertyCompany")
    public R<IPage<PropertyCompanyVO>> list(PropertyCompanyEntity propertyCompany, Query query) {
        IPage<PropertyCompanyEntity> pages = propertyCompanyService.page(Condition.getPage(query), Condition.getQueryWrapper(propertyCompany));
        return R.data(PropertyCompanyWrapper.build().pageVO(pages));
    }
    /**
     * 物业公司 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入propertyCompany")
    public R<IPage<PropertyCompanyVO>> page(PropertyCompanyVO propertyCompany, Query query) {
        IPage<PropertyCompanyVO> pages = propertyCompanyService.selectPropertyCompanyPage(Condition.getPage(query), propertyCompany);
        return R.data(pages);
    }
    /**
     * 物业公司 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入propertyCompany")
    public R save(@Valid @RequestBody PropertyCompanyEntity propertyCompany) {
        return R.status(propertyCompanyService.save(propertyCompany));
    }
    /**
     * 物业公司 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入propertyCompany")
    public R update(@Valid @RequestBody PropertyCompanyEntity propertyCompany) {
        return R.status(propertyCompanyService.updateById(propertyCompany));
    }
    /**
     * 物业公司 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入propertyCompany")
    public R submit(@Valid @RequestBody PropertyCompanyEntity propertyCompany) {
        return R.status(propertyCompanyService.saveOrUpdate(propertyCompany));
    }
    /**
     * 物业公司 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(propertyCompanyService.deleteLogic(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/property/controller/PropertyCompanyDistrictController.java
New file
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.property.entity.PropertyCompanyDistrictEntity;
import org.springblade.modules.property.vo.PropertyCompanyDistrictVO;
import org.springblade.modules.property.wrapper.PropertyCompanyDistrictWrapper;
import org.springblade.modules.property.service.IPropertyCompanyDistrictService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 物业派驻小区表 控制器
 *
 * @author BladeX
 * @since 2023-11-23
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-propertyCompanyDistrict/propertyCompanyDistrict")
@Api(value = "物业派驻小区表", tags = "物业派驻小区表接口")
public class PropertyCompanyDistrictController extends BladeController {
    private final IPropertyCompanyDistrictService propertyCompanyDistrictService;
    /**
     * 物业派驻小区表 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入propertyCompanyDistrict")
    public R<PropertyCompanyDistrictVO> detail(PropertyCompanyDistrictEntity propertyCompanyDistrict) {
        PropertyCompanyDistrictEntity detail = propertyCompanyDistrictService.getOne(Condition.getQueryWrapper(propertyCompanyDistrict));
        return R.data(PropertyCompanyDistrictWrapper.build().entityVO(detail));
    }
    /**
     * 物业派驻小区表 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入propertyCompanyDistrict")
    public R<IPage<PropertyCompanyDistrictVO>> list(PropertyCompanyDistrictEntity propertyCompanyDistrict, Query query) {
        IPage<PropertyCompanyDistrictEntity> pages = propertyCompanyDistrictService.page(Condition.getPage(query), Condition.getQueryWrapper(propertyCompanyDistrict));
        return R.data(PropertyCompanyDistrictWrapper.build().pageVO(pages));
    }
    /**
     * 物业派驻小区表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入propertyCompanyDistrict")
    public R<IPage<PropertyCompanyDistrictVO>> page(PropertyCompanyDistrictVO propertyCompanyDistrict, Query query) {
        IPage<PropertyCompanyDistrictVO> pages = propertyCompanyDistrictService.selectPropertyCompanyDistrictPage(Condition.getPage(query), propertyCompanyDistrict);
        return R.data(pages);
    }
    /**
     * 物业派驻小区表 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入propertyCompanyDistrict")
    public R save(@Valid @RequestBody PropertyCompanyDistrictEntity propertyCompanyDistrict) {
        return R.status(propertyCompanyDistrictService.save(propertyCompanyDistrict));
    }
    /**
     * 物业派驻小区表 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入propertyCompanyDistrict")
    public R update(@Valid @RequestBody PropertyCompanyDistrictEntity propertyCompanyDistrict) {
        return R.status(propertyCompanyDistrictService.updateById(propertyCompanyDistrict));
    }
    /**
     * 物业派驻小区表 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入propertyCompanyDistrict")
    public R submit(@Valid @RequestBody PropertyCompanyDistrictEntity propertyCompanyDistrict) {
        return R.status(propertyCompanyDistrictService.saveOrUpdate(propertyCompanyDistrict));
    }
    /**
     * 物业派驻小区表 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(propertyCompanyDistrictService.deleteLogic(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/property/controller/PropertyDistrictUserController.java
New file
@@ -0,0 +1,126 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import lombok.AllArgsConstructor;
import javax.validation.Valid;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.property.entity.PropertyDistrictUserEntity;
import org.springblade.modules.property.vo.PropertyDistrictUserVO;
import org.springblade.modules.property.wrapper.PropertyDistrictUserWrapper;
import org.springblade.modules.property.service.IPropertyDistrictUserService;
import org.springblade.core.boot.ctrl.BladeController;
/**
 * 物业公司人员派驻小区关联表 控制器
 *
 * @author BladeX
 * @since 2023-11-23
 */
@RestController
@AllArgsConstructor
@RequestMapping("blade-propertyDistrictUser/propertyDistrictUser")
@Api(value = "物业公司人员派驻小区关联表", tags = "物业公司人员派驻小区关联表接口")
public class PropertyDistrictUserController extends BladeController {
    private final IPropertyDistrictUserService propertyDistrictUserService;
    /**
     * 物业公司人员派驻小区关联表 详情
     */
    @GetMapping("/detail")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "详情", notes = "传入propertyDistrictUser")
    public R<PropertyDistrictUserVO> detail(PropertyDistrictUserEntity propertyDistrictUser) {
        PropertyDistrictUserEntity detail = propertyDistrictUserService.getOne(Condition.getQueryWrapper(propertyDistrictUser));
        return R.data(PropertyDistrictUserWrapper.build().entityVO(detail));
    }
    /**
     * 物业公司人员派驻小区关联表 分页
     */
    @GetMapping("/list")
    @ApiOperationSupport(order = 2)
    @ApiOperation(value = "分页", notes = "传入propertyDistrictUser")
    public R<IPage<PropertyDistrictUserVO>> list(PropertyDistrictUserEntity propertyDistrictUser, Query query) {
        IPage<PropertyDistrictUserEntity> pages = propertyDistrictUserService.page(Condition.getPage(query), Condition.getQueryWrapper(propertyDistrictUser));
        return R.data(PropertyDistrictUserWrapper.build().pageVO(pages));
    }
    /**
     * 物业公司人员派驻小区关联表 自定义分页
     */
    @GetMapping("/page")
    @ApiOperationSupport(order = 3)
    @ApiOperation(value = "分页", notes = "传入propertyDistrictUser")
    public R<IPage<PropertyDistrictUserVO>> page(PropertyDistrictUserVO propertyDistrictUser, Query query) {
        IPage<PropertyDistrictUserVO> pages = propertyDistrictUserService.selectPropertyDistrictUserPage(Condition.getPage(query), propertyDistrictUser);
        return R.data(pages);
    }
    /**
     * 物业公司人员派驻小区关联表 新增
     */
    @PostMapping("/save")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "新增", notes = "传入propertyDistrictUser")
    public R save(@Valid @RequestBody PropertyDistrictUserEntity propertyDistrictUser) {
        return R.status(propertyDistrictUserService.save(propertyDistrictUser));
    }
    /**
     * 物业公司人员派驻小区关联表 修改
     */
    @PostMapping("/update")
    @ApiOperationSupport(order = 5)
    @ApiOperation(value = "修改", notes = "传入propertyDistrictUser")
    public R update(@Valid @RequestBody PropertyDistrictUserEntity propertyDistrictUser) {
        return R.status(propertyDistrictUserService.updateById(propertyDistrictUser));
    }
    /**
     * 物业公司人员派驻小区关联表 新增或修改
     */
    @PostMapping("/submit")
    @ApiOperationSupport(order = 6)
    @ApiOperation(value = "新增或修改", notes = "传入propertyDistrictUser")
    public R submit(@Valid @RequestBody PropertyDistrictUserEntity propertyDistrictUser) {
        return R.status(propertyDistrictUserService.saveOrUpdate(propertyDistrictUser));
    }
    /**
     * 物业公司人员派驻小区关联表 删除
     */
    @PostMapping("/remove")
    @ApiOperationSupport(order = 7)
    @ApiOperation(value = "逻辑删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
        return R.status(propertyDistrictUserService.deleteLogic(Func.toLongList(ids)));
    }
}
src/main/java/org/springblade/modules/property/dto/PropertyCapitalApplyDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.dto;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业维修资金申请表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyCapitalApplyDTO extends PropertyCapitalApplyEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/dto/PropertyCompanyDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.dto;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业公司 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyCompanyDTO extends PropertyCompanyEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/dto/PropertyCompanyDistrictDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.dto;
import org.springblade.modules.property.entity.PropertyCompanyDistrictEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业派驻小区表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyCompanyDistrictDTO extends PropertyCompanyDistrictEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/dto/PropertyDistrictUserDTO.java
New file
@@ -0,0 +1,34 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.dto;
import org.springblade.modules.property.entity.PropertyDistrictUserEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业公司人员派驻小区关联表 数据传输对象实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyDistrictUserDTO extends PropertyDistrictUserEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/entity/PropertyCapitalApplyEntity.java
New file
@@ -0,0 +1,117 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
/**
 * 物业维修资金申请表 实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@TableName("jczz_property_capital_apply")
@ApiModel(value = "PropertyCapitalApply对象", description = "物业维修资金申请表")
@EqualsAndHashCode(callSuper = true)
public class PropertyCapitalApplyEntity extends TenantEntity {
    /**
     * 物业公司id
     */
    @ApiModelProperty(value = "物业公司id")
    private Integer propertyCompanyId;
    /**
     * 小区id
     */
    @ApiModelProperty(value = "小区id")
    private String districtId;
    /**
     * 资金申请项目名称
     */
    @ApiModelProperty(value = "资金申请项目名称")
    private String name;
    /**
     * 联系人姓名
     */
    @ApiModelProperty(value = "联系人姓名")
    private String linkman;
    /**
     * 联系人电话
     */
    @ApiModelProperty(value = "联系人电话")
    private String linkPhone;
    /**
     * 分摊方式
     */
    @ApiModelProperty(value = "分摊方式")
    private Integer allocationWay;
    /**
     * 预算总金额
     */
    @ApiModelProperty(value = "预算总金额")
    private BigDecimal budgetAmount;
    /**
     * 实际总金额
     */
    @ApiModelProperty(value = "实际总金额")
    private BigDecimal actualAmount;
    /**
     * 自筹金额
     */
    @ApiModelProperty(value = "自筹金额")
    private BigDecimal selfAmount;
    /**
     * 预算应拨付金额
     */
    @ApiModelProperty(value = "预算应拨付金额")
    private BigDecimal budgetAppropriateAmount;
    /**
     * 预计开工时间
     */
    @ApiModelProperty(value = "预计开工时间")
    private Date runTime;
    /**
     * 预计竣工时间
     */
    @ApiModelProperty(value = "预计竣工时间")
    private Date completedTime;
    /**
     * 项目摘要
     */
    @ApiModelProperty(value = "项目摘要")
    private String projectDigest;
    /**
     * 项目描述
     */
    @ApiModelProperty(value = "项目描述")
    private String projectDescribe;
    /**
     * 施工方案附件urls
     */
    @ApiModelProperty(value = "施工方案附件urls")
    private String constructionSchemeUrls;
}
src/main/java/org/springblade/modules/property/entity/PropertyCompanyDistrictEntity.java
New file
@@ -0,0 +1,95 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
/**
 * 物业派驻小区表 实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@TableName("jczz_property_company_district")
@ApiModel(value = "PropertyCompanyDistrict对象", description = "物业派驻小区表")
@EqualsAndHashCode(callSuper = true)
public class PropertyCompanyDistrictEntity extends TenantEntity {
    /**
     * 物业公司id
     */
    @ApiModelProperty(value = "物业公司id")
    private Integer propertyCompanyId;
    /**
     * 小区id
     */
    @ApiModelProperty(value = "小区id")
    private String districtId;
    /**
     * 负责人姓名
     */
    @ApiModelProperty(value = "负责人姓名")
    private String principal;
    /**
     * 负责人电话
     */
    @ApiModelProperty(value = "负责人电话")
    private String principalPhone;
    /**
     * 服务人数
     */
    @ApiModelProperty(value = "服务人数")
    private Integer serverNum;
    /**
     * 管家数量
     */
    @ApiModelProperty(value = "管家数量")
    private Integer butlerNum;
    /**
     * 满意度
     */
    @ApiModelProperty(value = "满意度")
    private Integer satisfaction;
    /**
     * 物业阶段
     */
    @ApiModelProperty(value = "物业阶段")
    private Integer propertyStage;
    /**
     * 合同开始时间
     */
    @ApiModelProperty(value = "合同开始时间")
    private Date startTime;
    /**
     * 合同结束时间
     */
    @ApiModelProperty(value = "合同结束时间")
    private Date endTime;
    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    private String remark;
}
src/main/java/org/springblade/modules/property/entity/PropertyCompanyEntity.java
New file
@@ -0,0 +1,75 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
/**
 * 物业公司 实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@TableName("jczz_property_company")
@ApiModel(value = "PropertyCompany对象", description = "物业公司")
@EqualsAndHashCode(callSuper = true)
public class PropertyCompanyEntity extends TenantEntity {
    /**
     * 物业公司名称
     */
    @ApiModelProperty(value = "物业公司名称")
    private String name;
    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    private String address;
    /**
     * 社会信用代码
     */
    @ApiModelProperty(value = "社会信用代码")
    private String socialCreditCode;
    /**
     * 省编号
     */
    @ApiModelProperty(value = "省编号")
    private String provinceCode;
    /**
     * 市编号
     */
    @ApiModelProperty(value = "市编号")
    private String cityCode;
    /**
     * 区县编号
     */
    @ApiModelProperty(value = "区县编号")
    private String countyCode;
    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    private String remark;
}
src/main/java/org/springblade/modules/property/entity/PropertyDistrictUserEntity.java
New file
@@ -0,0 +1,54 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
/**
 * 物业公司人员派驻小区关联表 实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@TableName("jczz_property_district_user")
@ApiModel(value = "PropertyDistrictUser对象", description = "物业公司人员派驻小区关联表")
@EqualsAndHashCode(callSuper = true)
public class PropertyDistrictUserEntity extends TenantEntity {
    /**
     * 物业公司id
     */
    @ApiModelProperty(value = "物业公司id")
    private Integer propertyCompanyId;
    /**
     * 小区id
     */
    @ApiModelProperty(value = "小区id")
    private String districtId;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;
}
src/main/java/org/springblade/modules/property/mapper/PropertyCapitalApplyMapper.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.mapper;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import org.springblade.modules.property.vo.PropertyCapitalApplyVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 物业维修资金申请表 Mapper 接口
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface PropertyCapitalApplyMapper extends BaseMapper<PropertyCapitalApplyEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyCapitalApply
     * @return
     */
    List<PropertyCapitalApplyVO> selectPropertyCapitalApplyPage(IPage page, PropertyCapitalApplyVO propertyCapitalApply);
}
src/main/java/org/springblade/modules/property/mapper/PropertyCapitalApplyMapper.xml
New file
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.property.mapper.PropertyCapitalApplyMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="propertyCapitalApplyResultMap" type="org.springblade.modules.property.entity.PropertyCapitalApplyEntity">
        <result column="id" property="id"/>
        <result column="property_company_id" property="propertyCompanyId"/>
        <result column="district_id" property="districtId"/>
        <result column="name" property="name"/>
        <result column="linkman" property="linkman"/>
        <result column="link_phone" property="linkPhone"/>
        <result column="allocation_way" property="allocationWay"/>
        <result column="budget_amount" property="budgetAmount"/>
        <result column="actual_amount" property="actualAmount"/>
        <result column="self_amount" property="selfAmount"/>
        <result column="budget_appropriate_amount" property="budgetAppropriateAmount"/>
        <result column="run_time" property="runTime"/>
        <result column="completed_time" property="completedTime"/>
        <result column="project_digest" property="projectDigest"/>
        <result column="project_describe" property="projectDescribe"/>
        <result column="construction_scheme_urls" property="constructionSchemeUrls"/>
        <result column="create_user" property="createUser"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
    <select id="selectPropertyCapitalApplyPage" resultMap="propertyCapitalApplyResultMap">
        select * from jczz_property_capital_apply where is_deleted = 0
    </select>
</mapper>
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyDistrictMapper.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.mapper;
import org.springblade.modules.property.entity.PropertyCompanyDistrictEntity;
import org.springblade.modules.property.vo.PropertyCompanyDistrictVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 物业派驻小区表 Mapper 接口
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface PropertyCompanyDistrictMapper extends BaseMapper<PropertyCompanyDistrictEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyCompanyDistrict
     * @return
     */
    List<PropertyCompanyDistrictVO> selectPropertyCompanyDistrictPage(IPage page, PropertyCompanyDistrictVO propertyCompanyDistrict);
}
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyDistrictMapper.xml
New file
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.property.mapper.PropertyCompanyDistrictMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="propertyCompanyDistrictResultMap" type="org.springblade.modules.property.entity.PropertyCompanyDistrictEntity">
        <result column="id" property="id"/>
        <result column="property_company_id" property="propertyCompanyId"/>
        <result column="district_id" property="districtId"/>
        <result column="principal" property="principal"/>
        <result column="principal_phone" property="principalPhone"/>
        <result column="server_num" property="serverNum"/>
        <result column="butler_num" property="butlerNum"/>
        <result column="satisfaction" property="satisfaction"/>
        <result column="property_stage" property="propertyStage"/>
        <result column="start_time" property="startTime"/>
        <result column="end_time" property="endTime"/>
        <result column="remark" property="remark"/>
        <result column="create_user" property="createUser"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
    <select id="selectPropertyCompanyDistrictPage" resultMap="propertyCompanyDistrictResultMap">
        select * from jczz_property_company_district where is_deleted = 0
    </select>
</mapper>
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyMapper.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.mapper;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import org.springblade.modules.property.vo.PropertyCompanyVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 物业公司 Mapper 接口
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface PropertyCompanyMapper extends BaseMapper<PropertyCompanyEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyCompany
     * @return
     */
    List<PropertyCompanyVO> selectPropertyCompanyPage(IPage page, PropertyCompanyVO propertyCompany);
}
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyMapper.xml
New file
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.property.mapper.PropertyCompanyMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="propertyCompanyResultMap" type="org.springblade.modules.property.entity.PropertyCompanyEntity">
        <result column="id" property="id"/>
        <result column="name" property="name"/>
        <result column="address" property="address"/>
        <result column="social_credit_code" property="socialCreditCode"/>
        <result column="province_code" property="provinceCode"/>
        <result column="city_code" property="cityCode"/>
        <result column="county_code" property="countyCode"/>
        <result column="remark" property="remark"/>
        <result column="create_user" property="createUser"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
    <select id="selectPropertyCompanyPage" resultMap="propertyCompanyResultMap">
        select * from jczz_property_company where is_deleted = 0
    </select>
</mapper>
src/main/java/org/springblade/modules/property/mapper/PropertyDistrictUserMapper.java
New file
@@ -0,0 +1,43 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.mapper;
import org.springblade.modules.property.entity.PropertyDistrictUserEntity;
import org.springblade.modules.property.vo.PropertyDistrictUserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
 * 物业公司人员派驻小区关联表 Mapper 接口
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface PropertyDistrictUserMapper extends BaseMapper<PropertyDistrictUserEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyDistrictUser
     * @return
     */
    List<PropertyDistrictUserVO> selectPropertyDistrictUserPage(IPage page, PropertyDistrictUserVO propertyDistrictUser);
}
src/main/java/org/springblade/modules/property/mapper/PropertyDistrictUserMapper.xml
New file
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.property.mapper.PropertyDistrictUserMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="propertyDistrictUserResultMap" type="org.springblade.modules.property.entity.PropertyDistrictUserEntity">
        <result column="id" property="id"/>
        <result column="property_company_id" property="propertyCompanyId"/>
        <result column="district_id" property="districtId"/>
        <result column="user_id" property="userId"/>
    </resultMap>
    <select id="selectPropertyDistrictUserPage" resultMap="propertyDistrictUserResultMap">
        select * from jczz_property_district_user where is_deleted = 0
    </select>
</mapper>
src/main/java/org/springblade/modules/property/service/IPropertyCapitalApplyService.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import org.springblade.modules.property.vo.PropertyCapitalApplyVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业维修资金申请表 服务类
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface IPropertyCapitalApplyService extends BaseService<PropertyCapitalApplyEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyCapitalApply
     * @return
     */
    IPage<PropertyCapitalApplyVO> selectPropertyCapitalApplyPage(IPage<PropertyCapitalApplyVO> page, PropertyCapitalApplyVO propertyCapitalApply);
}
src/main/java/org/springblade/modules/property/service/IPropertyCompanyDistrictService.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service;
import org.springblade.modules.property.entity.PropertyCompanyDistrictEntity;
import org.springblade.modules.property.vo.PropertyCompanyDistrictVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业派驻小区表 服务类
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface IPropertyCompanyDistrictService extends BaseService<PropertyCompanyDistrictEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyCompanyDistrict
     * @return
     */
    IPage<PropertyCompanyDistrictVO> selectPropertyCompanyDistrictPage(IPage<PropertyCompanyDistrictVO> page, PropertyCompanyDistrictVO propertyCompanyDistrict);
}
src/main/java/org/springblade/modules/property/service/IPropertyCompanyService.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import org.springblade.modules.property.vo.PropertyCompanyVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业公司 服务类
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface IPropertyCompanyService extends BaseService<PropertyCompanyEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyCompany
     * @return
     */
    IPage<PropertyCompanyVO> selectPropertyCompanyPage(IPage<PropertyCompanyVO> page, PropertyCompanyVO propertyCompany);
}
src/main/java/org/springblade/modules/property/service/IPropertyDistrictUserService.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service;
import org.springblade.modules.property.entity.PropertyDistrictUserEntity;
import org.springblade.modules.property.vo.PropertyDistrictUserVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业公司人员派驻小区关联表 服务类
 *
 * @author BladeX
 * @since 2023-11-23
 */
public interface IPropertyDistrictUserService extends BaseService<PropertyDistrictUserEntity> {
    /**
     * 自定义分页
     *
     * @param page
     * @param propertyDistrictUser
     * @return
     */
    IPage<PropertyDistrictUserVO> selectPropertyDistrictUserPage(IPage<PropertyDistrictUserVO> page, PropertyDistrictUserVO propertyDistrictUser);
}
src/main/java/org/springblade/modules/property/service/impl/PropertyCapitalApplyServiceImpl.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service.impl;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import org.springblade.modules.property.vo.PropertyCapitalApplyVO;
import org.springblade.modules.property.mapper.PropertyCapitalApplyMapper;
import org.springblade.modules.property.service.IPropertyCapitalApplyService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业维修资金申请表 服务实现类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Service
public class PropertyCapitalApplyServiceImpl extends BaseServiceImpl<PropertyCapitalApplyMapper, PropertyCapitalApplyEntity> implements IPropertyCapitalApplyService {
    @Override
    public IPage<PropertyCapitalApplyVO> selectPropertyCapitalApplyPage(IPage<PropertyCapitalApplyVO> page, PropertyCapitalApplyVO propertyCapitalApply) {
        return page.setRecords(baseMapper.selectPropertyCapitalApplyPage(page, propertyCapitalApply));
    }
}
src/main/java/org/springblade/modules/property/service/impl/PropertyCompanyDistrictServiceImpl.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service.impl;
import org.springblade.modules.property.entity.PropertyCompanyDistrictEntity;
import org.springblade.modules.property.vo.PropertyCompanyDistrictVO;
import org.springblade.modules.property.mapper.PropertyCompanyDistrictMapper;
import org.springblade.modules.property.service.IPropertyCompanyDistrictService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业派驻小区表 服务实现类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Service
public class PropertyCompanyDistrictServiceImpl extends BaseServiceImpl<PropertyCompanyDistrictMapper, PropertyCompanyDistrictEntity> implements IPropertyCompanyDistrictService {
    @Override
    public IPage<PropertyCompanyDistrictVO> selectPropertyCompanyDistrictPage(IPage<PropertyCompanyDistrictVO> page, PropertyCompanyDistrictVO propertyCompanyDistrict) {
        return page.setRecords(baseMapper.selectPropertyCompanyDistrictPage(page, propertyCompanyDistrict));
    }
}
src/main/java/org/springblade/modules/property/service/impl/PropertyCompanyServiceImpl.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service.impl;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import org.springblade.modules.property.vo.PropertyCompanyVO;
import org.springblade.modules.property.mapper.PropertyCompanyMapper;
import org.springblade.modules.property.service.IPropertyCompanyService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业公司 服务实现类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Service
public class PropertyCompanyServiceImpl extends BaseServiceImpl<PropertyCompanyMapper, PropertyCompanyEntity> implements IPropertyCompanyService {
    @Override
    public IPage<PropertyCompanyVO> selectPropertyCompanyPage(IPage<PropertyCompanyVO> page, PropertyCompanyVO propertyCompany) {
        return page.setRecords(baseMapper.selectPropertyCompanyPage(page, propertyCompany));
    }
}
src/main/java/org/springblade/modules/property/service/impl/PropertyDistrictUserServiceImpl.java
New file
@@ -0,0 +1,42 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.service.impl;
import org.springblade.modules.property.entity.PropertyDistrictUserEntity;
import org.springblade.modules.property.vo.PropertyDistrictUserVO;
import org.springblade.modules.property.mapper.PropertyDistrictUserMapper;
import org.springblade.modules.property.service.IPropertyDistrictUserService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
/**
 * 物业公司人员派驻小区关联表 服务实现类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Service
public class PropertyDistrictUserServiceImpl extends BaseServiceImpl<PropertyDistrictUserMapper, PropertyDistrictUserEntity> implements IPropertyDistrictUserService {
    @Override
    public IPage<PropertyDistrictUserVO> selectPropertyDistrictUserPage(IPage<PropertyDistrictUserVO> page, PropertyDistrictUserVO propertyDistrictUser) {
        return page.setRecords(baseMapper.selectPropertyDistrictUserPage(page, propertyDistrictUser));
    }
}
src/main/java/org/springblade/modules/property/vo/PropertyCapitalApplyVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.vo;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业维修资金申请表 视图实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyCapitalApplyVO extends PropertyCapitalApplyEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/vo/PropertyCompanyDistrictVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.vo;
import org.springblade.modules.property.entity.PropertyCompanyDistrictEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业派驻小区表 视图实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyCompanyDistrictVO extends PropertyCompanyDistrictEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/vo/PropertyCompanyVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.vo;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业公司 视图实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyCompanyVO extends PropertyCompanyEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/vo/PropertyDistrictUserVO.java
New file
@@ -0,0 +1,35 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.vo;
import org.springblade.modules.property.entity.PropertyDistrictUserEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 物业公司人员派驻小区关联表 视图实体类
 *
 * @author BladeX
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PropertyDistrictUserVO extends PropertyDistrictUserEntity {
    private static final long serialVersionUID = 1L;
}
src/main/java/org/springblade/modules/property/wrapper/PropertyCapitalApplyWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import org.springblade.modules.property.vo.PropertyCapitalApplyVO;
import java.util.Objects;
/**
 * 物业维修资金申请表 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-11-23
 */
public class PropertyCapitalApplyWrapper extends BaseEntityWrapper<PropertyCapitalApplyEntity, PropertyCapitalApplyVO>  {
    public static PropertyCapitalApplyWrapper build() {
        return new PropertyCapitalApplyWrapper();
     }
    @Override
    public PropertyCapitalApplyVO entityVO(PropertyCapitalApplyEntity propertyCapitalApply) {
        PropertyCapitalApplyVO propertyCapitalApplyVO = Objects.requireNonNull(BeanUtil.copy(propertyCapitalApply, PropertyCapitalApplyVO.class));
        //User createUser = UserCache.getUser(propertyCapitalApply.getCreateUser());
        //User updateUser = UserCache.getUser(propertyCapitalApply.getUpdateUser());
        //propertyCapitalApplyVO.setCreateUserName(createUser.getName());
        //propertyCapitalApplyVO.setUpdateUserName(updateUser.getName());
        return propertyCapitalApplyVO;
    }
}
src/main/java/org/springblade/modules/property/wrapper/PropertyCompanyDistrictWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.property.entity.PropertyCompanyDistrictEntity;
import org.springblade.modules.property.vo.PropertyCompanyDistrictVO;
import java.util.Objects;
/**
 * 物业派驻小区表 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-11-23
 */
public class PropertyCompanyDistrictWrapper extends BaseEntityWrapper<PropertyCompanyDistrictEntity, PropertyCompanyDistrictVO>  {
    public static PropertyCompanyDistrictWrapper build() {
        return new PropertyCompanyDistrictWrapper();
     }
    @Override
    public PropertyCompanyDistrictVO entityVO(PropertyCompanyDistrictEntity propertyCompanyDistrict) {
        PropertyCompanyDistrictVO propertyCompanyDistrictVO = Objects.requireNonNull(BeanUtil.copy(propertyCompanyDistrict, PropertyCompanyDistrictVO.class));
        //User createUser = UserCache.getUser(propertyCompanyDistrict.getCreateUser());
        //User updateUser = UserCache.getUser(propertyCompanyDistrict.getUpdateUser());
        //propertyCompanyDistrictVO.setCreateUserName(createUser.getName());
        //propertyCompanyDistrictVO.setUpdateUserName(updateUser.getName());
        return propertyCompanyDistrictVO;
    }
}
src/main/java/org/springblade/modules/property/wrapper/PropertyCompanyWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import org.springblade.modules.property.vo.PropertyCompanyVO;
import java.util.Objects;
/**
 * 物业公司 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-11-23
 */
public class PropertyCompanyWrapper extends BaseEntityWrapper<PropertyCompanyEntity, PropertyCompanyVO>  {
    public static PropertyCompanyWrapper build() {
        return new PropertyCompanyWrapper();
     }
    @Override
    public PropertyCompanyVO entityVO(PropertyCompanyEntity propertyCompany) {
        PropertyCompanyVO propertyCompanyVO = Objects.requireNonNull(BeanUtil.copy(propertyCompany, PropertyCompanyVO.class));
        //User createUser = UserCache.getUser(propertyCompany.getCreateUser());
        //User updateUser = UserCache.getUser(propertyCompany.getUpdateUser());
        //propertyCompanyVO.setCreateUserName(createUser.getName());
        //propertyCompanyVO.setUpdateUserName(updateUser.getName());
        return propertyCompanyVO;
    }
}
src/main/java/org/springblade/modules/property/wrapper/PropertyDistrictUserWrapper.java
New file
@@ -0,0 +1,50 @@
/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.property.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.modules.property.entity.PropertyDistrictUserEntity;
import org.springblade.modules.property.vo.PropertyDistrictUserVO;
import java.util.Objects;
/**
 * 物业公司人员派驻小区关联表 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2023-11-23
 */
public class PropertyDistrictUserWrapper extends BaseEntityWrapper<PropertyDistrictUserEntity, PropertyDistrictUserVO>  {
    public static PropertyDistrictUserWrapper build() {
        return new PropertyDistrictUserWrapper();
     }
    @Override
    public PropertyDistrictUserVO entityVO(PropertyDistrictUserEntity propertyDistrictUser) {
        PropertyDistrictUserVO propertyDistrictUserVO = Objects.requireNonNull(BeanUtil.copy(propertyDistrictUser, PropertyDistrictUserVO.class));
        //User createUser = UserCache.getUser(propertyDistrictUser.getCreateUser());
        //User updateUser = UserCache.getUser(propertyDistrictUser.getUpdateUser());
        //propertyDistrictUserVO.setCreateUserName(createUser.getName());
        //propertyDistrictUserVO.setUpdateUserName(updateUser.getName());
        return propertyDistrictUserVO;
    }
}
src/main/java/org/springblade/modules/system/controller/RegionController.java
@@ -113,6 +113,17 @@
    }
    /**
     * 树列表
     * @param parentCode
     * @return
     */
    @GetMapping("/tree")
    @ApiOperation(value = "树列表", notes = "传入menu")
    public R getTree(String parentCode) {
        return R.data(regionService.getTree(parentCode));
    }
    /**
     * 新增 行政区划表
     */
    @PostMapping("/save")
src/main/java/org/springblade/modules/system/mapper/RegionMapper.java
@@ -18,7 +18,9 @@
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.system.entity.Region;
import org.springblade.modules.system.excel.RegionExcel;
import org.springblade.modules.system.vo.RegionVO;
@@ -59,4 +61,11 @@
     */
    List<RegionExcel> exportRegion(@Param("ew") Wrapper<Region> queryWrapper);
    /**
     * 树列表
     * @param parentCode
     * @return
     */
    @MapKey(value = "id")
    Map<String, TreeStringNode> getTreeList(@Param("parentCode") String parentCode);
}
src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -102,4 +102,24 @@
        SELECT * FROM blade_region ${ew.customSqlSegment}
    </select>
    <!--根据父编号查询所有的下级-->
    <select id="getTreeList" resultType="org.springblade.common.node.TreeStringNode">
        SELECT
            br.code as id,br.parent_code as parentId,br.name as name
        FROM
            (
            SELECT
                @ids AS ids,
                ( SELECT @ids := GROUP_CONCAT( code ) FROM blade_region WHERE FIND_IN_SET( parent_code, @ids ) ) AS cids
            FROM
                blade_region
            WHERE
                @ids IS NOT NULL
                AND @ids := #{parentCode}
            ) id,
            blade_region br
        WHERE
            FIND_IN_SET(br.parent_code,ids)
    </select>
</mapper>
src/main/java/org/springblade/modules/system/service/IRegionService.java
@@ -18,6 +18,8 @@
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.common.node.TreeLongNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.modules.system.entity.Region;
import org.springblade.modules.system.excel.RegionExcel;
import org.springblade.modules.system.vo.RegionVO;
@@ -83,4 +85,10 @@
     */
    List<RegionExcel> exportRegion(Wrapper<Region> queryWrapper);
    /**
     * 树列表
     * @param parentCode
     * @return
     */
    List<TreeStringNode> getTree(String parentCode);
}
src/main/java/org/springblade/modules/system/service/impl/RegionServiceImpl.java
@@ -19,6 +19,9 @@
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.common.node.TreeLongNode;
import org.springblade.common.node.TreeStringNode;
import org.springblade.common.utils.NodeTreeUtil;
import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.core.tool.utils.Func;
@@ -116,4 +119,14 @@
    public List<RegionExcel> exportRegion(Wrapper<Region> queryWrapper) {
        return baseMapper.exportRegion(queryWrapper);
    }
    /**
     * 树列表
     * @param parentCode
     * @return
     */
    @Override
    public List<TreeStringNode> getTree(String parentCode) {
        return NodeTreeUtil.getStringNodeTree(baseMapper.getTreeList(parentCode));
    }
}