Browse Source

管理后台基本接口

liaoyitao 6 days ago
parent
commit
635e137f8f
100 changed files with 10893 additions and 2 deletions
  1. 10 1
      pom.xml
  2. 112 0
      src/main/java/com/lqkj/info/controller/AreaInfoController.java
  3. 112 0
      src/main/java/com/lqkj/info/controller/BuildingInfoController.java
  4. 112 0
      src/main/java/com/lqkj/info/controller/ElevatorInfoController.java
  5. 112 0
      src/main/java/com/lqkj/info/controller/EquipmentInfoController.java
  6. 112 0
      src/main/java/com/lqkj/info/controller/ForewarningInfoController.java
  7. 112 0
      src/main/java/com/lqkj/info/controller/OrganizationInfoController.java
  8. 112 0
      src/main/java/com/lqkj/info/controller/PlanInfoController.java
  9. 112 0
      src/main/java/com/lqkj/info/controller/PolicyInfoController.java
  10. 112 0
      src/main/java/com/lqkj/info/controller/RoomInfoController.java
  11. 112 0
      src/main/java/com/lqkj/info/controller/StationInfoController.java
  12. 112 0
      src/main/java/com/lqkj/info/controller/TrafficInfoController.java
  13. 147 0
      src/main/java/com/lqkj/info/entity/AreaInfo.java
  14. 276 0
      src/main/java/com/lqkj/info/entity/BuildingInfo.java
  15. 108 0
      src/main/java/com/lqkj/info/entity/ElevatorInfo.java
  16. 162 0
      src/main/java/com/lqkj/info/entity/EquipmentInfo.java
  17. 124 0
      src/main/java/com/lqkj/info/entity/ForewarningInfo.java
  18. 255 0
      src/main/java/com/lqkj/info/entity/OrganizationInfo.java
  19. 121 0
      src/main/java/com/lqkj/info/entity/PlanInfo.java
  20. 79 0
      src/main/java/com/lqkj/info/entity/PolicyInfo.java
  21. 292 0
      src/main/java/com/lqkj/info/entity/RoomInfo.java
  22. 106 0
      src/main/java/com/lqkj/info/entity/StationInfo.java
  23. 106 0
      src/main/java/com/lqkj/info/entity/TrafficInfo.java
  24. 63 0
      src/main/java/com/lqkj/info/mapper/AreaInfoMapper.java
  25. 63 0
      src/main/java/com/lqkj/info/mapper/BuildingInfoMapper.java
  26. 63 0
      src/main/java/com/lqkj/info/mapper/ElevatorInfoMapper.java
  27. 63 0
      src/main/java/com/lqkj/info/mapper/EquipmentInfoMapper.java
  28. 63 0
      src/main/java/com/lqkj/info/mapper/ForewarningInfoMapper.java
  29. 63 0
      src/main/java/com/lqkj/info/mapper/OrganizationInfoMapper.java
  30. 63 0
      src/main/java/com/lqkj/info/mapper/PlanInfoMapper.java
  31. 63 0
      src/main/java/com/lqkj/info/mapper/PolicyInfoMapper.java
  32. 63 0
      src/main/java/com/lqkj/info/mapper/RoomInfoMapper.java
  33. 63 0
      src/main/java/com/lqkj/info/mapper/StationInfoMapper.java
  34. 63 0
      src/main/java/com/lqkj/info/mapper/TrafficInfoMapper.java
  35. 103 0
      src/main/java/com/lqkj/info/service/AreaInfoService.java
  36. 101 0
      src/main/java/com/lqkj/info/service/BuildingInfoService.java
  37. 91 0
      src/main/java/com/lqkj/info/service/ElevatorInfoService.java
  38. 93 0
      src/main/java/com/lqkj/info/service/EquipmentInfoService.java
  39. 93 0
      src/main/java/com/lqkj/info/service/ForewarningInfoService.java
  40. 91 0
      src/main/java/com/lqkj/info/service/OrganizationInfoService.java
  41. 91 0
      src/main/java/com/lqkj/info/service/PlanInfoService.java
  42. 93 0
      src/main/java/com/lqkj/info/service/PolicyInfoService.java
  43. 91 0
      src/main/java/com/lqkj/info/service/RoomInfoService.java
  44. 91 0
      src/main/java/com/lqkj/info/service/StationInfoService.java
  45. 91 0
      src/main/java/com/lqkj/info/service/TrafficInfoService.java
  46. 112 0
      src/main/java/com/lqkj/type/controller/AreaTypeController.java
  47. 112 0
      src/main/java/com/lqkj/type/controller/BuildingTypeController.java
  48. 112 0
      src/main/java/com/lqkj/type/controller/EquipmentTypeController.java
  49. 112 0
      src/main/java/com/lqkj/type/controller/HouseTypeController.java
  50. 112 0
      src/main/java/com/lqkj/type/controller/OrganizationTypeController.java
  51. 112 0
      src/main/java/com/lqkj/type/controller/PlanTypeController.java
  52. 112 0
      src/main/java/com/lqkj/type/controller/RoomTypeController.java
  53. 112 0
      src/main/java/com/lqkj/type/controller/TrafficTypeController.java
  54. 145 0
      src/main/java/com/lqkj/type/entity/AreaType.java
  55. 131 0
      src/main/java/com/lqkj/type/entity/BuildingType.java
  56. 145 0
      src/main/java/com/lqkj/type/entity/EquipmentType.java
  57. 78 0
      src/main/java/com/lqkj/type/entity/HouseType.java
  58. 145 0
      src/main/java/com/lqkj/type/entity/OrganizationType.java
  59. 145 0
      src/main/java/com/lqkj/type/entity/PlanType.java
  60. 131 0
      src/main/java/com/lqkj/type/entity/RoomType.java
  61. 145 0
      src/main/java/com/lqkj/type/entity/TrafficType.java
  62. 63 0
      src/main/java/com/lqkj/type/mapper/AreaTypeMapper.java
  63. 63 0
      src/main/java/com/lqkj/type/mapper/BuildingTypeMapper.java
  64. 63 0
      src/main/java/com/lqkj/type/mapper/EquipmentTypeMapper.java
  65. 63 0
      src/main/java/com/lqkj/type/mapper/HouseTypeMapper.java
  66. 63 0
      src/main/java/com/lqkj/type/mapper/OrganizationTypeMapper.java
  67. 63 0
      src/main/java/com/lqkj/type/mapper/PlanTypeMapper.java
  68. 63 0
      src/main/java/com/lqkj/type/mapper/RoomTypeMapper.java
  69. 63 0
      src/main/java/com/lqkj/type/mapper/TrafficTypeMapper.java
  70. 91 0
      src/main/java/com/lqkj/type/service/AreaTypeService.java
  71. 91 0
      src/main/java/com/lqkj/type/service/BuildingTypeService.java
  72. 91 0
      src/main/java/com/lqkj/type/service/EquipmentTypeService.java
  73. 91 0
      src/main/java/com/lqkj/type/service/HouseTypeService.java
  74. 91 0
      src/main/java/com/lqkj/type/service/OrganizationTypeService.java
  75. 91 0
      src/main/java/com/lqkj/type/service/PlanTypeService.java
  76. 91 0
      src/main/java/com/lqkj/type/service/RoomTypeService.java
  77. 91 0
      src/main/java/com/lqkj/type/service/TrafficTypeService.java
  78. 112 0
      src/main/java/com/lqkj/view/controller/SynthesisAnalyzeController.java
  79. 93 0
      src/main/java/com/lqkj/view/entity/SynthesisAnalyze.java
  80. 63 0
      src/main/java/com/lqkj/view/mapper/SynthesisAnalyzeMapper.java
  81. 97 0
      src/main/java/com/lqkj/view/service/SynthesisAnalyzeService.java
  82. 1 1
      src/main/resources/db/migration/V1_2__20230202.sql
  83. 1039 0
      src/main/resources/db/migration/V1_4__20241111.sql
  84. 222 0
      src/main/resources/db/migration/V1_5__20241111_menu.sql
  85. 79 0
      src/main/resources/mapper/info/AreaInfoMapper.xml
  86. 123 0
      src/main/resources/mapper/info/BuildingInfoMapper.xml
  87. 77 0
      src/main/resources/mapper/info/ElevatorInfoMapper.xml
  88. 93 0
      src/main/resources/mapper/info/EquipmentInfoMapper.xml
  89. 84 0
      src/main/resources/mapper/info/ForewarningInfoMapper.xml
  90. 123 0
      src/main/resources/mapper/info/OrganizationInfoMapper.xml
  91. 80 0
      src/main/resources/mapper/info/PlanInfoMapper.xml
  92. 71 0
      src/main/resources/mapper/info/PolicyInfoMapper.xml
  93. 133 0
      src/main/resources/mapper/info/RoomInfoMapper.xml
  94. 76 0
      src/main/resources/mapper/info/StationInfoMapper.xml
  95. 74 0
      src/main/resources/mapper/info/TrafficInfoMapper.xml
  96. 86 0
      src/main/resources/mapper/type/AreaTypeMapper.xml
  97. 82 0
      src/main/resources/mapper/type/BuildingTypeMapper.xml
  98. 86 0
      src/main/resources/mapper/type/EquipmentTypeMapper.xml
  99. 66 0
      src/main/resources/mapper/type/HouseTypeMapper.xml
  100. 0 0
      src/main/resources/mapper/type/OrganizationTypeMapper.xml

+ 10 - 1
pom.xml

@@ -171,11 +171,13 @@
171 171
             <version>${flyway.version}</version>
172 172
         </dependency>
173 173
         <!-- SpringBoot集成mybatis框架 -->
174
+        <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter -->
174 175
         <dependency>
175 176
             <groupId>org.mybatis.spring.boot</groupId>
176 177
             <artifactId>mybatis-spring-boot-starter</artifactId>
177
-            <version>${mybatis-spring-boot.version}</version>
178
+            <version>2.2.1</version>
178 179
         </dependency>
180
+
179 181
         <!-- pagehelper 分页插件 -->
180 182
         <dependency>
181 183
             <groupId>com.github.pagehelper</groupId>
@@ -355,6 +357,13 @@
355 357
             <groupId>javax.xml.bind</groupId>
356 358
             <artifactId>jaxb-api</artifactId>
357 359
         </dependency>
360
+
361
+        <dependency>
362
+            <groupId>org.locationtech.jts</groupId>
363
+            <artifactId>jts-core</artifactId>
364
+            <version>1.18.2</version> <!-- 请检查是否有更新的版本 -->
365
+        </dependency>
366
+
358 367
     </dependencies>
359 368
     <build>
360 369
         <plugins>

+ 112 - 0
src/main/java/com/lqkj/info/controller/AreaInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.AreaInfo;
21
+import com.lqkj.info.service.AreaInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 区域对象:area_infoController
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"区域对象:area_info"})
32
+@RestController
33
+@RequestMapping("/info/areaInfo")
34
+public class AreaInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private AreaInfoService areaInfoService;
38
+
39
+    /**
40
+     * 查询区域对象:area_info列表
41
+     */
42
+    @ApiOperation("查询区域对象:area_info列表")
43
+    @PreAuthorize("@ss.hasPermi('info:areaInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(AreaInfo areaInfo)
46
+    {
47
+        startPage( areaInfo);
48
+        PageInfo<AreaInfo> pageInfo = new PageInfo<>(areaInfoService.selectAreaInfoList(areaInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出区域对象:area_info列表
54
+     */
55
+    @ApiOperation("导出区域对象:area_info列表")
56
+    @PreAuthorize("@ss.hasPermi('info:areaInfo:export')")
57
+    @Log(title = "区域对象:area_info", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(AreaInfo areaInfo)
60
+    {
61
+        List<AreaInfo> list = areaInfoService.selectAreaInfoList(areaInfo);
62
+        ExcelUtil<AreaInfo> util = new ExcelUtil<AreaInfo>(AreaInfo.class);
63
+        return util.exportExcel(list, "区域对象:area_info数据");
64
+    }
65
+
66
+    /**
67
+     * 获取区域对象:area_info详细信息
68
+     */
69
+    @ApiOperation("获取区域对象:area_info详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:areaInfo:query')")
71
+    @GetMapping(value = "/{areaId}")
72
+    public ResultUtil getInfo(@PathVariable("areaId") Integer areaId)
73
+    {
74
+        return ResultUtil.success(areaInfoService.selectAreaInfoByAreaId(areaId));
75
+    }
76
+
77
+    /**
78
+     * 新增区域对象:area_info
79
+     */
80
+    @ApiOperation("新增区域对象:area_info")
81
+    @PreAuthorize("@ss.hasPermi('info:areaInfo:add')")
82
+    @Log(title = "区域对象:area_info", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody AreaInfo areaInfo)
85
+    {
86
+        return resultByRows(areaInfoService.insertAreaInfo(areaInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改区域对象:area_info
91
+     */
92
+    @ApiOperation("修改区域对象:area_info")
93
+    @PreAuthorize("@ss.hasPermi('info:areaInfo:edit')")
94
+    @Log(title = "区域对象:area_info", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody AreaInfo areaInfo)
97
+    {
98
+        return resultByRows(areaInfoService.updateAreaInfo(areaInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除区域对象:area_info
103
+     */
104
+    @ApiOperation("删除区域对象:area_info")
105
+    @PreAuthorize("@ss.hasPermi('info:areaInfo:remove')")
106
+    @Log(title = "区域对象:area_info", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{areaIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] areaIds)
109
+    {
110
+        return resultByRows(areaInfoService.deleteAreaInfoByAreaIds(areaIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/BuildingInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.BuildingInfo;
21
+import com.lqkj.info.service.BuildingInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 大楼信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-12
30
+ */
31
+@Api(tags = {"大楼信息"})
32
+@RestController
33
+@RequestMapping("/info/buildingInfo")
34
+public class BuildingInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private BuildingInfoService buildingInfoService;
38
+
39
+    /**
40
+     * 查询大楼信息列表
41
+     */
42
+    @ApiOperation("查询大楼信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:buildingInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(BuildingInfo buildingInfo)
46
+    {
47
+        startPage( buildingInfo);
48
+        PageInfo<BuildingInfo> pageInfo = new PageInfo<>(buildingInfoService.selectBuildingInfoList(buildingInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出大楼信息列表
54
+     */
55
+    @ApiOperation("导出大楼信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:buildingInfo:export')")
57
+    @Log(title = "大楼信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(BuildingInfo buildingInfo)
60
+    {
61
+        List<BuildingInfo> list = buildingInfoService.selectBuildingInfoList(buildingInfo);
62
+        ExcelUtil<BuildingInfo> util = new ExcelUtil<BuildingInfo>(BuildingInfo.class);
63
+        return util.exportExcel(list, "大楼信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取大楼信息详细信息
68
+     */
69
+    @ApiOperation("获取大楼信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:buildingInfo:query')")
71
+    @GetMapping(value = "/{buildingId}")
72
+    public ResultUtil getInfo(@PathVariable("buildingId") Integer buildingId)
73
+    {
74
+        return ResultUtil.success(buildingInfoService.selectBuildingInfoByBuildingId(buildingId));
75
+    }
76
+
77
+    /**
78
+     * 新增大楼信息
79
+     */
80
+    @ApiOperation("新增大楼信息")
81
+    @PreAuthorize("@ss.hasPermi('info:buildingInfo:add')")
82
+    @Log(title = "大楼信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody BuildingInfo buildingInfo)
85
+    {
86
+        return resultByRows(buildingInfoService.insertBuildingInfo(buildingInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改大楼信息
91
+     */
92
+    @ApiOperation("修改大楼信息")
93
+    @PreAuthorize("@ss.hasPermi('info:buildingInfo:edit')")
94
+    @Log(title = "大楼信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody BuildingInfo buildingInfo)
97
+    {
98
+        return resultByRows(buildingInfoService.updateBuildingInfo(buildingInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除大楼信息
103
+     */
104
+    @ApiOperation("删除大楼信息")
105
+    @PreAuthorize("@ss.hasPermi('info:buildingInfo:remove')")
106
+    @Log(title = "大楼信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{buildingIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] buildingIds)
109
+    {
110
+        return resultByRows(buildingInfoService.deleteBuildingInfoByBuildingIds(buildingIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/ElevatorInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.ElevatorInfo;
21
+import com.lqkj.info.service.ElevatorInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 电梯信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-12
30
+ */
31
+@Api(tags = {"电梯信息"})
32
+@RestController
33
+@RequestMapping("/info/elevatorInfo")
34
+public class ElevatorInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private ElevatorInfoService elevatorInfoService;
38
+
39
+    /**
40
+     * 查询电梯信息列表
41
+     */
42
+    @ApiOperation("查询电梯信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:elevatorInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(ElevatorInfo elevatorInfo)
46
+    {
47
+        startPage( elevatorInfo);
48
+        PageInfo<ElevatorInfo> pageInfo = new PageInfo<>(elevatorInfoService.selectElevatorInfoList(elevatorInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出电梯信息列表
54
+     */
55
+    @ApiOperation("导出电梯信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:elevatorInfo:export')")
57
+    @Log(title = "电梯信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(ElevatorInfo elevatorInfo)
60
+    {
61
+        List<ElevatorInfo> list = elevatorInfoService.selectElevatorInfoList(elevatorInfo);
62
+        ExcelUtil<ElevatorInfo> util = new ExcelUtil<ElevatorInfo>(ElevatorInfo.class);
63
+        return util.exportExcel(list, "电梯信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取电梯信息详细信息
68
+     */
69
+    @ApiOperation("获取电梯信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:elevatorInfo:query')")
71
+    @GetMapping(value = "/{elevatorId}")
72
+    public ResultUtil getInfo(@PathVariable("elevatorId") Integer elevatorId)
73
+    {
74
+        return ResultUtil.success(elevatorInfoService.selectElevatorInfoByElevatorId(elevatorId));
75
+    }
76
+
77
+    /**
78
+     * 新增电梯信息
79
+     */
80
+    @ApiOperation("新增电梯信息")
81
+    @PreAuthorize("@ss.hasPermi('info:elevatorInfo:add')")
82
+    @Log(title = "电梯信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody ElevatorInfo elevatorInfo)
85
+    {
86
+        return resultByRows(elevatorInfoService.insertElevatorInfo(elevatorInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改电梯信息
91
+     */
92
+    @ApiOperation("修改电梯信息")
93
+    @PreAuthorize("@ss.hasPermi('info:elevatorInfo:edit')")
94
+    @Log(title = "电梯信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody ElevatorInfo elevatorInfo)
97
+    {
98
+        return resultByRows(elevatorInfoService.updateElevatorInfo(elevatorInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除电梯信息
103
+     */
104
+    @ApiOperation("删除电梯信息")
105
+    @PreAuthorize("@ss.hasPermi('info:elevatorInfo:remove')")
106
+    @Log(title = "电梯信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{elevatorIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] elevatorIds)
109
+    {
110
+        return resultByRows(elevatorInfoService.deleteElevatorInfoByElevatorIds(elevatorIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/EquipmentInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.EquipmentInfo;
21
+import com.lqkj.info.service.EquipmentInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 设备信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-12
30
+ */
31
+@Api(tags = {"设备信息"})
32
+@RestController
33
+@RequestMapping("/info/equipmentInfo")
34
+public class EquipmentInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private EquipmentInfoService equipmentInfoService;
38
+
39
+    /**
40
+     * 查询设备信息列表
41
+     */
42
+    @ApiOperation("查询设备信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:equipmentInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(EquipmentInfo equipmentInfo)
46
+    {
47
+        startPage( equipmentInfo);
48
+        PageInfo<EquipmentInfo> pageInfo = new PageInfo<>(equipmentInfoService.selectEquipmentInfoList(equipmentInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出设备信息列表
54
+     */
55
+    @ApiOperation("导出设备信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:equipmentInfo:export')")
57
+    @Log(title = "设备信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(EquipmentInfo equipmentInfo)
60
+    {
61
+        List<EquipmentInfo> list = equipmentInfoService.selectEquipmentInfoList(equipmentInfo);
62
+        ExcelUtil<EquipmentInfo> util = new ExcelUtil<EquipmentInfo>(EquipmentInfo.class);
63
+        return util.exportExcel(list, "设备信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取设备信息详细信息
68
+     */
69
+    @ApiOperation("获取设备信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:equipmentInfo:query')")
71
+    @GetMapping(value = "/{equipmentId}")
72
+    public ResultUtil getInfo(@PathVariable("equipmentId") Integer equipmentId)
73
+    {
74
+        return ResultUtil.success(equipmentInfoService.selectEquipmentInfoByEquipmentId(equipmentId));
75
+    }
76
+
77
+    /**
78
+     * 新增设备信息
79
+     */
80
+    @ApiOperation("新增设备信息")
81
+    @PreAuthorize("@ss.hasPermi('info:equipmentInfo:add')")
82
+    @Log(title = "设备信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody EquipmentInfo equipmentInfo)
85
+    {
86
+        return resultByRows(equipmentInfoService.insertEquipmentInfo(equipmentInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改设备信息
91
+     */
92
+    @ApiOperation("修改设备信息")
93
+    @PreAuthorize("@ss.hasPermi('info:equipmentInfo:edit')")
94
+    @Log(title = "设备信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody EquipmentInfo equipmentInfo)
97
+    {
98
+        return resultByRows(equipmentInfoService.updateEquipmentInfo(equipmentInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除设备信息
103
+     */
104
+    @ApiOperation("删除设备信息")
105
+    @PreAuthorize("@ss.hasPermi('info:equipmentInfo:remove')")
106
+    @Log(title = "设备信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{equipmentIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] equipmentIds)
109
+    {
110
+        return resultByRows(equipmentInfoService.deleteEquipmentInfoByEquipmentIds(equipmentIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/ForewarningInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.ForewarningInfo;
21
+import com.lqkj.info.service.ForewarningInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 预警信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-12
30
+ */
31
+@Api(tags = {"预警信息"})
32
+@RestController
33
+@RequestMapping("/info/forewarningInfo")
34
+public class ForewarningInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private ForewarningInfoService forewarningInfoService;
38
+
39
+    /**
40
+     * 查询预警信息列表
41
+     */
42
+    @ApiOperation("查询预警信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:forewarningInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(ForewarningInfo forewarningInfo)
46
+    {
47
+        startPage( forewarningInfo);
48
+        PageInfo<ForewarningInfo> pageInfo = new PageInfo<>(forewarningInfoService.selectForewarningInfoList(forewarningInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出预警信息列表
54
+     */
55
+    @ApiOperation("导出预警信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:forewarningInfo:export')")
57
+    @Log(title = "预警信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(ForewarningInfo forewarningInfo)
60
+    {
61
+        List<ForewarningInfo> list = forewarningInfoService.selectForewarningInfoList(forewarningInfo);
62
+        ExcelUtil<ForewarningInfo> util = new ExcelUtil<ForewarningInfo>(ForewarningInfo.class);
63
+        return util.exportExcel(list, "预警信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取预警信息详细信息
68
+     */
69
+    @ApiOperation("获取预警信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:forewarningInfo:query')")
71
+    @GetMapping(value = "/{forewarningId}")
72
+    public ResultUtil getInfo(@PathVariable("forewarningId") Integer forewarningId)
73
+    {
74
+        return ResultUtil.success(forewarningInfoService.selectForewarningInfoByForewarningId(forewarningId));
75
+    }
76
+
77
+    /**
78
+     * 新增预警信息
79
+     */
80
+    @ApiOperation("新增预警信息")
81
+    @PreAuthorize("@ss.hasPermi('info:forewarningInfo:add')")
82
+    @Log(title = "预警信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody ForewarningInfo forewarningInfo)
85
+    {
86
+        return resultByRows(forewarningInfoService.insertForewarningInfo(forewarningInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改预警信息
91
+     */
92
+    @ApiOperation("修改预警信息")
93
+    @PreAuthorize("@ss.hasPermi('info:forewarningInfo:edit')")
94
+    @Log(title = "预警信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody ForewarningInfo forewarningInfo)
97
+    {
98
+        return resultByRows(forewarningInfoService.updateForewarningInfo(forewarningInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除预警信息
103
+     */
104
+    @ApiOperation("删除预警信息")
105
+    @PreAuthorize("@ss.hasPermi('info:forewarningInfo:remove')")
106
+    @Log(title = "预警信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{forewarningIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] forewarningIds)
109
+    {
110
+        return resultByRows(forewarningInfoService.deleteForewarningInfoByForewarningIds(forewarningIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/OrganizationInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.OrganizationInfo;
21
+import com.lqkj.info.service.OrganizationInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 主体信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-13
30
+ */
31
+@Api(tags = {"主体信息"})
32
+@RestController
33
+@RequestMapping("/info/organizationInfo")
34
+public class OrganizationInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private OrganizationInfoService organizationInfoService;
38
+
39
+    /**
40
+     * 查询主体信息列表
41
+     */
42
+    @ApiOperation("查询主体信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:organizationInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(OrganizationInfo organizationInfo)
46
+    {
47
+        startPage( organizationInfo);
48
+        PageInfo<OrganizationInfo> pageInfo = new PageInfo<>(organizationInfoService.selectOrganizationInfoList(organizationInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出主体信息列表
54
+     */
55
+    @ApiOperation("导出主体信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:organizationInfo:export')")
57
+    @Log(title = "主体信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(OrganizationInfo organizationInfo)
60
+    {
61
+        List<OrganizationInfo> list = organizationInfoService.selectOrganizationInfoList(organizationInfo);
62
+        ExcelUtil<OrganizationInfo> util = new ExcelUtil<OrganizationInfo>(OrganizationInfo.class);
63
+        return util.exportExcel(list, "主体信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取主体信息详细信息
68
+     */
69
+    @ApiOperation("获取主体信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:organizationInfo:query')")
71
+    @GetMapping(value = "/{organizationId}")
72
+    public ResultUtil getInfo(@PathVariable("organizationId") Integer organizationId)
73
+    {
74
+        return ResultUtil.success(organizationInfoService.selectOrganizationInfoByOrganizationId(organizationId));
75
+    }
76
+
77
+    /**
78
+     * 新增主体信息
79
+     */
80
+    @ApiOperation("新增主体信息")
81
+    @PreAuthorize("@ss.hasPermi('info:organizationInfo:add')")
82
+    @Log(title = "主体信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody OrganizationInfo organizationInfo)
85
+    {
86
+        return resultByRows(organizationInfoService.insertOrganizationInfo(organizationInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改主体信息
91
+     */
92
+    @ApiOperation("修改主体信息")
93
+    @PreAuthorize("@ss.hasPermi('info:organizationInfo:edit')")
94
+    @Log(title = "主体信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody OrganizationInfo organizationInfo)
97
+    {
98
+        return resultByRows(organizationInfoService.updateOrganizationInfo(organizationInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除主体信息
103
+     */
104
+    @ApiOperation("删除主体信息")
105
+    @PreAuthorize("@ss.hasPermi('info:organizationInfo:remove')")
106
+    @Log(title = "主体信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{organizationIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] organizationIds)
109
+    {
110
+        return resultByRows(organizationInfoService.deleteOrganizationInfoByOrganizationIds(organizationIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/PlanInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.PlanInfo;
21
+import com.lqkj.info.service.PlanInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 规划对象Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-13
30
+ */
31
+@Api(tags = {"规划对象"})
32
+@RestController
33
+@RequestMapping("/info/planInfo")
34
+public class PlanInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private PlanInfoService planInfoService;
38
+
39
+    /**
40
+     * 查询规划对象列表
41
+     */
42
+    @ApiOperation("查询规划对象列表")
43
+    @PreAuthorize("@ss.hasPermi('info:planInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(PlanInfo planInfo)
46
+    {
47
+        startPage( planInfo);
48
+        PageInfo<PlanInfo> pageInfo = new PageInfo<>(planInfoService.selectPlanInfoList(planInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出规划对象列表
54
+     */
55
+    @ApiOperation("导出规划对象列表")
56
+    @PreAuthorize("@ss.hasPermi('info:planInfo:export')")
57
+    @Log(title = "规划对象", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(PlanInfo planInfo)
60
+    {
61
+        List<PlanInfo> list = planInfoService.selectPlanInfoList(planInfo);
62
+        ExcelUtil<PlanInfo> util = new ExcelUtil<PlanInfo>(PlanInfo.class);
63
+        return util.exportExcel(list, "规划对象数据");
64
+    }
65
+
66
+    /**
67
+     * 获取规划对象详细信息
68
+     */
69
+    @ApiOperation("获取规划对象详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:planInfo:query')")
71
+    @GetMapping(value = "/{planId}")
72
+    public ResultUtil getInfo(@PathVariable("planId") Integer planId)
73
+    {
74
+        return ResultUtil.success(planInfoService.selectPlanInfoByPlanId(planId));
75
+    }
76
+
77
+    /**
78
+     * 新增规划对象
79
+     */
80
+    @ApiOperation("新增规划对象")
81
+    @PreAuthorize("@ss.hasPermi('info:planInfo:add')")
82
+    @Log(title = "规划对象", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody PlanInfo planInfo)
85
+    {
86
+        return resultByRows(planInfoService.insertPlanInfo(planInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改规划对象
91
+     */
92
+    @ApiOperation("修改规划对象")
93
+    @PreAuthorize("@ss.hasPermi('info:planInfo:edit')")
94
+    @Log(title = "规划对象", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody PlanInfo planInfo)
97
+    {
98
+        return resultByRows(planInfoService.updatePlanInfo(planInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除规划对象
103
+     */
104
+    @ApiOperation("删除规划对象")
105
+    @PreAuthorize("@ss.hasPermi('info:planInfo:remove')")
106
+    @Log(title = "规划对象", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{planIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] planIds)
109
+    {
110
+        return resultByRows(planInfoService.deletePlanInfoByPlanIds(planIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/PolicyInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.PolicyInfo;
21
+import com.lqkj.info.service.PolicyInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 政策信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-15
30
+ */
31
+@Api(tags = {"政策信息"})
32
+@RestController
33
+@RequestMapping("/info/policyInfo")
34
+public class PolicyInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private PolicyInfoService policyInfoService;
38
+
39
+    /**
40
+     * 查询政策信息列表
41
+     */
42
+    @ApiOperation("查询政策信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:policyInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(PolicyInfo policyInfo)
46
+    {
47
+        startPage( policyInfo);
48
+        PageInfo<PolicyInfo> pageInfo = new PageInfo<>(policyInfoService.selectPolicyInfoList(policyInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出政策信息列表
54
+     */
55
+    @ApiOperation("导出政策信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:policyInfo:export')")
57
+    @Log(title = "政策信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(PolicyInfo policyInfo)
60
+    {
61
+        List<PolicyInfo> list = policyInfoService.selectPolicyInfoList(policyInfo);
62
+        ExcelUtil<PolicyInfo> util = new ExcelUtil<PolicyInfo>(PolicyInfo.class);
63
+        return util.exportExcel(list, "政策信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取政策信息详细信息
68
+     */
69
+    @ApiOperation("获取政策信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:policyInfo:query')")
71
+    @GetMapping(value = "/{policyId}")
72
+    public ResultUtil getInfo(@PathVariable("policyId") Integer policyId)
73
+    {
74
+        return ResultUtil.success(policyInfoService.selectPolicyInfoByPolicyId(policyId));
75
+    }
76
+
77
+    /**
78
+     * 新增政策信息
79
+     */
80
+    @ApiOperation("新增政策信息")
81
+    @PreAuthorize("@ss.hasPermi('info:policyInfo:add')")
82
+    @Log(title = "政策信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody PolicyInfo policyInfo)
85
+    {
86
+        return resultByRows(policyInfoService.insertPolicyInfo(policyInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改政策信息
91
+     */
92
+    @ApiOperation("修改政策信息")
93
+    @PreAuthorize("@ss.hasPermi('info:policyInfo:edit')")
94
+    @Log(title = "政策信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody PolicyInfo policyInfo)
97
+    {
98
+        return resultByRows(policyInfoService.updatePolicyInfo(policyInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除政策信息
103
+     */
104
+    @ApiOperation("删除政策信息")
105
+    @PreAuthorize("@ss.hasPermi('info:policyInfo:remove')")
106
+    @Log(title = "政策信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{policyIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] policyIds)
109
+    {
110
+        return resultByRows(policyInfoService.deletePolicyInfoByPolicyIds(policyIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/RoomInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.RoomInfo;
21
+import com.lqkj.info.service.RoomInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 房间信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-13
30
+ */
31
+@Api(tags = {"房间信息"})
32
+@RestController
33
+@RequestMapping("/info/roomInfo")
34
+public class RoomInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private RoomInfoService roomInfoService;
38
+
39
+    /**
40
+     * 查询房间信息列表
41
+     */
42
+    @ApiOperation("查询房间信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:roomInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(RoomInfo roomInfo)
46
+    {
47
+        startPage( roomInfo);
48
+        PageInfo<RoomInfo> pageInfo = new PageInfo<>(roomInfoService.selectRoomInfoList(roomInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出房间信息列表
54
+     */
55
+    @ApiOperation("导出房间信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:roomInfo:export')")
57
+    @Log(title = "房间信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(RoomInfo roomInfo)
60
+    {
61
+        List<RoomInfo> list = roomInfoService.selectRoomInfoList(roomInfo);
62
+        ExcelUtil<RoomInfo> util = new ExcelUtil<RoomInfo>(RoomInfo.class);
63
+        return util.exportExcel(list, "房间信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取房间信息详细信息
68
+     */
69
+    @ApiOperation("获取房间信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:roomInfo:query')")
71
+    @GetMapping(value = "/{roomId}")
72
+    public ResultUtil getInfo(@PathVariable("roomId") Integer roomId)
73
+    {
74
+        return ResultUtil.success(roomInfoService.selectRoomInfoByRoomId(roomId));
75
+    }
76
+
77
+    /**
78
+     * 新增房间信息
79
+     */
80
+    @ApiOperation("新增房间信息")
81
+    @PreAuthorize("@ss.hasPermi('info:roomInfo:add')")
82
+    @Log(title = "房间信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody RoomInfo roomInfo)
85
+    {
86
+        return resultByRows(roomInfoService.insertRoomInfo(roomInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改房间信息
91
+     */
92
+    @ApiOperation("修改房间信息")
93
+    @PreAuthorize("@ss.hasPermi('info:roomInfo:edit')")
94
+    @Log(title = "房间信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody RoomInfo roomInfo)
97
+    {
98
+        return resultByRows(roomInfoService.updateRoomInfo(roomInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除房间信息
103
+     */
104
+    @ApiOperation("删除房间信息")
105
+    @PreAuthorize("@ss.hasPermi('info:roomInfo:remove')")
106
+    @Log(title = "房间信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{roomIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] roomIds)
109
+    {
110
+        return resultByRows(roomInfoService.deleteRoomInfoByRoomIds(roomIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/StationInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.StationInfo;
21
+import com.lqkj.info.service.StationInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 站点信息Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-14
30
+ */
31
+@Api(tags = {"站点信息"})
32
+@RestController
33
+@RequestMapping("/info/stationInfo")
34
+public class StationInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private StationInfoService stationInfoService;
38
+
39
+    /**
40
+     * 查询站点信息列表
41
+     */
42
+    @ApiOperation("查询站点信息列表")
43
+    @PreAuthorize("@ss.hasPermi('info:stationInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(StationInfo stationInfo)
46
+    {
47
+        startPage( stationInfo);
48
+        PageInfo<StationInfo> pageInfo = new PageInfo<>(stationInfoService.selectStationInfoList(stationInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出站点信息列表
54
+     */
55
+    @ApiOperation("导出站点信息列表")
56
+    @PreAuthorize("@ss.hasPermi('info:stationInfo:export')")
57
+    @Log(title = "站点信息", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(StationInfo stationInfo)
60
+    {
61
+        List<StationInfo> list = stationInfoService.selectStationInfoList(stationInfo);
62
+        ExcelUtil<StationInfo> util = new ExcelUtil<StationInfo>(StationInfo.class);
63
+        return util.exportExcel(list, "站点信息数据");
64
+    }
65
+
66
+    /**
67
+     * 获取站点信息详细信息
68
+     */
69
+    @ApiOperation("获取站点信息详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:stationInfo:query')")
71
+    @GetMapping(value = "/{stationId}")
72
+    public ResultUtil getInfo(@PathVariable("stationId") Integer stationId)
73
+    {
74
+        return ResultUtil.success(stationInfoService.selectStationInfoByStationId(stationId));
75
+    }
76
+
77
+    /**
78
+     * 新增站点信息
79
+     */
80
+    @ApiOperation("新增站点信息")
81
+    @PreAuthorize("@ss.hasPermi('info:stationInfo:add')")
82
+    @Log(title = "站点信息", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody StationInfo stationInfo)
85
+    {
86
+        return resultByRows(stationInfoService.insertStationInfo(stationInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改站点信息
91
+     */
92
+    @ApiOperation("修改站点信息")
93
+    @PreAuthorize("@ss.hasPermi('info:stationInfo:edit')")
94
+    @Log(title = "站点信息", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody StationInfo stationInfo)
97
+    {
98
+        return resultByRows(stationInfoService.updateStationInfo(stationInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除站点信息
103
+     */
104
+    @ApiOperation("删除站点信息")
105
+    @PreAuthorize("@ss.hasPermi('info:stationInfo:remove')")
106
+    @Log(title = "站点信息", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{stationIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] stationIds)
109
+    {
110
+        return resultByRows(stationInfoService.deleteStationInfoByStationIds(stationIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/info/controller/TrafficInfoController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.info.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.info.entity.TrafficInfo;
21
+import com.lqkj.info.service.TrafficInfoService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 交通对象Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-14
30
+ */
31
+@Api(tags = {"交通对象"})
32
+@RestController
33
+@RequestMapping("/info/trafficInfo")
34
+public class TrafficInfoController extends BaseController
35
+{
36
+    @Autowired
37
+    private TrafficInfoService trafficInfoService;
38
+
39
+    /**
40
+     * 查询交通对象列表
41
+     */
42
+    @ApiOperation("查询交通对象列表")
43
+    @PreAuthorize("@ss.hasPermi('info:trafficInfo:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(TrafficInfo trafficInfo)
46
+    {
47
+        startPage( trafficInfo);
48
+        PageInfo<TrafficInfo> pageInfo = new PageInfo<>(trafficInfoService.selectTrafficInfoList(trafficInfo));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出交通对象列表
54
+     */
55
+    @ApiOperation("导出交通对象列表")
56
+    @PreAuthorize("@ss.hasPermi('info:trafficInfo:export')")
57
+    @Log(title = "交通对象", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(TrafficInfo trafficInfo)
60
+    {
61
+        List<TrafficInfo> list = trafficInfoService.selectTrafficInfoList(trafficInfo);
62
+        ExcelUtil<TrafficInfo> util = new ExcelUtil<TrafficInfo>(TrafficInfo.class);
63
+        return util.exportExcel(list, "交通对象数据");
64
+    }
65
+
66
+    /**
67
+     * 获取交通对象详细信息
68
+     */
69
+    @ApiOperation("获取交通对象详细信息")
70
+    @PreAuthorize("@ss.hasPermi('info:trafficInfo:query')")
71
+    @GetMapping(value = "/{trafficId}")
72
+    public ResultUtil getInfo(@PathVariable("trafficId") Integer trafficId)
73
+    {
74
+        return ResultUtil.success(trafficInfoService.selectTrafficInfoByTrafficId(trafficId));
75
+    }
76
+
77
+    /**
78
+     * 新增交通对象
79
+     */
80
+    @ApiOperation("新增交通对象")
81
+    @PreAuthorize("@ss.hasPermi('info:trafficInfo:add')")
82
+    @Log(title = "交通对象", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody TrafficInfo trafficInfo)
85
+    {
86
+        return resultByRows(trafficInfoService.insertTrafficInfo(trafficInfo));
87
+    }
88
+
89
+    /**
90
+     * 修改交通对象
91
+     */
92
+    @ApiOperation("修改交通对象")
93
+    @PreAuthorize("@ss.hasPermi('info:trafficInfo:edit')")
94
+    @Log(title = "交通对象", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody TrafficInfo trafficInfo)
97
+    {
98
+        return resultByRows(trafficInfoService.updateTrafficInfo(trafficInfo));
99
+    }
100
+
101
+    /**
102
+     * 删除交通对象
103
+     */
104
+    @ApiOperation("删除交通对象")
105
+    @PreAuthorize("@ss.hasPermi('info:trafficInfo:remove')")
106
+    @Log(title = "交通对象", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{trafficIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] trafficIds)
109
+    {
110
+        return resultByRows(trafficInfoService.deleteTrafficInfoByTrafficIds(trafficIds));
111
+    }
112
+}

+ 147 - 0
src/main/java/com/lqkj/info/entity/AreaInfo.java

@@ -0,0 +1,147 @@
1
+package com.lqkj.info.entity;
2
+
3
+import com.lqkj.type.entity.AreaType;
4
+import com.lqkj.type.mapper.AreaTypeMapper;
5
+import com.lqkj.type.service.AreaTypeService;
6
+import org.apache.commons.lang3.builder.ToStringBuilder;
7
+import org.apache.commons.lang3.builder.ToStringStyle;
8
+import com.lqkj.common.annotation.Excel;
9
+import com.lqkj.common.core.model.BaseEntity;
10
+import org.codehaus.jackson.annotate.JsonIgnore;
11
+import org.springframework.beans.factory.annotation.Autowired;
12
+
13
+import javax.annotation.PostConstruct;
14
+import javax.annotation.Resource;
15
+
16
+/**
17
+ * 区域对象:area_info对象 area_info
18
+ * 
19
+ * @author lqkj
20
+ * @date 2024-11-11
21
+ */
22
+public class AreaInfo extends BaseEntity
23
+{
24
+    private static final long serialVersionUID = 1L;
25
+
26
+    @Resource
27
+    private AreaTypeService areaTypeService;
28
+
29
+    /** 区域id */
30
+    @Excel(name = "区域id")
31
+    private Integer areaId;
32
+
33
+    /** 类别编号 */
34
+    private Integer typeId;
35
+
36
+    /** 类别名称 */
37
+    @JsonIgnore
38
+    private String typeName;
39
+
40
+    /** 名字 */
41
+    @Excel(name = "名字")
42
+    private String areaName;
43
+
44
+    /** 备注 */
45
+    private String memo;
46
+
47
+    /** 颜色 */
48
+    @Excel(name = "颜色")
49
+    private String colour;
50
+
51
+    /** 面积 */
52
+    @Excel(name = "面积")
53
+    private Integer acreage;
54
+
55
+    /** 坐标 */
56
+    @Excel(name = "坐标")
57
+    private Object location;
58
+
59
+    public void setAreaId(Integer areaId) 
60
+    {
61
+        this.areaId = areaId;
62
+    }
63
+
64
+    public Integer getAreaId() 
65
+    {
66
+        return areaId;
67
+    }
68
+    public void setTypeId(Integer typeId) 
69
+    {
70
+        this.typeId = typeId;
71
+    }
72
+
73
+    public Integer getTypeId() 
74
+    {
75
+        return typeId;
76
+    }
77
+    public void setAreaName(String areaName) 
78
+    {
79
+        this.areaName = areaName;
80
+    }
81
+
82
+    public String getAreaName() 
83
+    {
84
+        return areaName;
85
+    }
86
+    public void setMemo(String memo) 
87
+    {
88
+        this.memo = memo;
89
+    }
90
+
91
+    public String getMemo() 
92
+    {
93
+        return memo;
94
+    }
95
+    public void setColour(String colour) 
96
+    {
97
+        this.colour = colour;
98
+    }
99
+
100
+    public String getColour() 
101
+    {
102
+        return colour;
103
+    }
104
+    public void setAcreage(Integer acreage) 
105
+    {
106
+        this.acreage = acreage;
107
+    }
108
+
109
+    public Integer getAcreage() 
110
+    {
111
+        return acreage;
112
+    }
113
+    public void setLocation(Object location)
114
+    {
115
+        this.location = location;
116
+    }
117
+
118
+    public Object getLocation()
119
+    {
120
+        return location;
121
+    }
122
+
123
+    @Override
124
+    public String toString() {
125
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
126
+            .append("areaId", getAreaId())
127
+            .append("typeId", getTypeId())
128
+            .append("areaName", getAreaName())
129
+            .append("memo", getMemo())
130
+            .append("colour", getColour())
131
+            .append("acreage", getAcreage())
132
+            .append("location", getLocation())
133
+            .toString();
134
+    }
135
+
136
+
137
+
138
+    public void setTypeName(String typeName) {
139
+        this.typeName = typeName;
140
+    }
141
+
142
+    public String getTypeName() {
143
+        return typeName;
144
+    }
145
+
146
+
147
+}

+ 276 - 0
src/main/java/com/lqkj/info/entity/BuildingInfo.java

@@ -0,0 +1,276 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+import org.codehaus.jackson.annotate.JsonIgnore;
8
+
9
+/**
10
+ * 大楼信息对象 building_info
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-12
14
+ */
15
+public class BuildingInfo extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 大楼编号 */
20
+    @Excel(name = "大楼编号")
21
+    private Integer buildingId;
22
+
23
+    /** 类型编号 */
24
+    @Excel(name = "类型编号")
25
+    private Integer typeId;
26
+
27
+    @JsonIgnore
28
+    private String typeName;
29
+
30
+    /** 大楼名称 */
31
+    @Excel(name = "大楼名称")
32
+    private String buildingName;
33
+
34
+    /** 地图编码 */
35
+    private Integer mapCode;
36
+
37
+    /** 英文名称 */
38
+    private String enName;
39
+
40
+    /** 别名 */
41
+    private String alias;
42
+
43
+    /** 排序 */
44
+    private Integer orderId;
45
+
46
+    /** 是否已同步 */
47
+    private Boolean synStatus;
48
+
49
+    /** 是否删除 */
50
+    private Boolean delete;
51
+
52
+    /** 简介 */
53
+    private String brief;
54
+
55
+    /** 二维坐标 */
56
+    private String lngLat;
57
+
58
+    /** 备注 */
59
+    private String memo;
60
+
61
+    /** 三维坐标 */
62
+    @Excel(name = "三维坐标")
63
+    private String rasterLngLat;
64
+
65
+    /** 地址 */
66
+    private String address;
67
+
68
+    /** 高度 */
69
+    private Integer height;
70
+
71
+    /** 楼层数 */
72
+    private Integer levelNumber;
73
+
74
+    /** 户数 */
75
+    @Excel(name = "户数")
76
+    private Integer households;
77
+
78
+    /** 面积 */
79
+    @Excel(name = "面积")
80
+    private Integer acreage;
81
+
82
+    public void setBuildingId(Integer buildingId) 
83
+    {
84
+        this.buildingId = buildingId;
85
+    }
86
+
87
+    public Integer getBuildingId() 
88
+    {
89
+        return buildingId;
90
+    }
91
+    public void setTypeId(Integer typeId) 
92
+    {
93
+        this.typeId = typeId;
94
+    }
95
+
96
+    public Integer getTypeId() 
97
+    {
98
+        return typeId;
99
+    }
100
+    public void setBuildingName(String buildingName) 
101
+    {
102
+        this.buildingName = buildingName;
103
+    }
104
+
105
+    public String getBuildingName() 
106
+    {
107
+        return buildingName;
108
+    }
109
+    public void setMapCode(Integer mapCode) 
110
+    {
111
+        this.mapCode = mapCode;
112
+    }
113
+
114
+    public Integer getMapCode() 
115
+    {
116
+        return mapCode;
117
+    }
118
+    public void setEnName(String enName) 
119
+    {
120
+        this.enName = enName;
121
+    }
122
+
123
+    public String getEnName() 
124
+    {
125
+        return enName;
126
+    }
127
+    public void setAlias(String alias) 
128
+    {
129
+        this.alias = alias;
130
+    }
131
+
132
+    public String getAlias() 
133
+    {
134
+        return alias;
135
+    }
136
+    public void setOrderId(Integer orderId) 
137
+    {
138
+        this.orderId = orderId;
139
+    }
140
+
141
+    public Integer getOrderId() 
142
+    {
143
+        return orderId;
144
+    }
145
+    public void setSynStatus(Boolean synStatus) 
146
+    {
147
+        this.synStatus = synStatus;
148
+    }
149
+
150
+    public Boolean getSynStatus() 
151
+    {
152
+        return synStatus;
153
+    }
154
+    public void setDelete(Boolean delete) 
155
+    {
156
+        this.delete = delete;
157
+    }
158
+
159
+    public Boolean getDelete() 
160
+    {
161
+        return delete;
162
+    }
163
+    public void setBrief(String brief) 
164
+    {
165
+        this.brief = brief;
166
+    }
167
+
168
+    public String getBrief() 
169
+    {
170
+        return brief;
171
+    }
172
+    public void setLngLat(String lngLat) 
173
+    {
174
+        this.lngLat = lngLat;
175
+    }
176
+
177
+    public String getLngLat()
178
+    {
179
+        return lngLat;
180
+    }
181
+    public void setMemo(String memo) 
182
+    {
183
+        this.memo = memo;
184
+    }
185
+
186
+    public String getMemo() 
187
+    {
188
+        return memo;
189
+    }
190
+    public void setRasterLngLat(String rasterLngLat) 
191
+    {
192
+        this.rasterLngLat = rasterLngLat;
193
+    }
194
+
195
+    public String getRasterLngLat()
196
+    {
197
+        return rasterLngLat;
198
+    }
199
+    public void setAddress(String address) 
200
+    {
201
+        this.address = address;
202
+    }
203
+
204
+    public String getAddress() 
205
+    {
206
+        return address;
207
+    }
208
+    public void setHeight(Integer height) 
209
+    {
210
+        this.height = height;
211
+    }
212
+
213
+    public Integer getHeight() 
214
+    {
215
+        return height;
216
+    }
217
+    public void setLevelNumber(Integer levelNumber) 
218
+    {
219
+        this.levelNumber = levelNumber;
220
+    }
221
+
222
+    public Integer getLevelNumber() 
223
+    {
224
+        return levelNumber;
225
+    }
226
+    public void setHouseholds(Integer households) 
227
+    {
228
+        this.households = households;
229
+    }
230
+
231
+    public Integer getHouseholds() 
232
+    {
233
+        return households;
234
+    }
235
+    public void setAcreage(Integer acreage) 
236
+    {
237
+        this.acreage = acreage;
238
+    }
239
+
240
+    public Integer getAcreage() 
241
+    {
242
+        return acreage;
243
+    }
244
+
245
+    @Override
246
+    public String toString() {
247
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
248
+            .append("buildingId", getBuildingId())
249
+            .append("typeId", getTypeId())
250
+            .append("buildingName", getBuildingName())
251
+            .append("mapCode", getMapCode())
252
+            .append("enName", getEnName())
253
+            .append("alias", getAlias())
254
+            .append("orderId", getOrderId())
255
+            .append("synStatus", getSynStatus())
256
+            .append("delete", getDelete())
257
+            .append("brief", getBrief())
258
+            .append("lngLat", getLngLat())
259
+            .append("memo", getMemo())
260
+            .append("rasterLngLat", getRasterLngLat())
261
+            .append("address", getAddress())
262
+            .append("height", getHeight())
263
+            .append("levelNumber", getLevelNumber())
264
+            .append("households", getHouseholds())
265
+            .append("acreage", getAcreage())
266
+            .toString();
267
+    }
268
+
269
+    public String getTypeName() {
270
+        return typeName;
271
+    }
272
+
273
+    public void setTypeName(String typeName) {
274
+        this.typeName = typeName;
275
+    }
276
+}

+ 108 - 0
src/main/java/com/lqkj/info/entity/ElevatorInfo.java

@@ -0,0 +1,108 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 电梯信息对象 elevator_info
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-12
13
+ */
14
+public class ElevatorInfo extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 电梯id */
19
+    @Excel(name = "电梯id")
20
+    private Integer elevatorId;
21
+
22
+    /** 电梯型号 */
23
+    @Excel(name = "电梯型号")
24
+    private String elevatorCode;
25
+
26
+    /** 大楼id */
27
+    @Excel(name = "大楼id")
28
+    private Integer buildingId;
29
+
30
+    /** 电梯状态 */
31
+    @Excel(name = "电梯状态")
32
+    private Integer status;
33
+
34
+    /** 电梯名字 */
35
+    @Excel(name = "电梯名字")
36
+    private String elevatorName;
37
+
38
+    /** 保养次数 */
39
+    @Excel(name = "保养次数")
40
+    private Integer upkeepNum;
41
+
42
+    public void setElevatorId(Integer elevatorId) 
43
+    {
44
+        this.elevatorId = elevatorId;
45
+    }
46
+
47
+    public Integer getElevatorId() 
48
+    {
49
+        return elevatorId;
50
+    }
51
+    public void setElevatorCode(String elevatorCode) 
52
+    {
53
+        this.elevatorCode = elevatorCode;
54
+    }
55
+
56
+    public String getElevatorCode() 
57
+    {
58
+        return elevatorCode;
59
+    }
60
+    public void setBuildingId(Integer buildingId) 
61
+    {
62
+        this.buildingId = buildingId;
63
+    }
64
+
65
+    public Integer getBuildingId() 
66
+    {
67
+        return buildingId;
68
+    }
69
+    public void setStatus(Integer status) 
70
+    {
71
+        this.status = status;
72
+    }
73
+
74
+    public Integer getStatus() 
75
+    {
76
+        return status;
77
+    }
78
+    public void setElevatorName(String elevatorName) 
79
+    {
80
+        this.elevatorName = elevatorName;
81
+    }
82
+
83
+    public String getElevatorName() 
84
+    {
85
+        return elevatorName;
86
+    }
87
+    public void setUpkeepNum(Integer upkeepNum) 
88
+    {
89
+        this.upkeepNum = upkeepNum;
90
+    }
91
+
92
+    public Integer getUpkeepNum() 
93
+    {
94
+        return upkeepNum;
95
+    }
96
+
97
+    @Override
98
+    public String toString() {
99
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
100
+            .append("elevatorId", getElevatorId())
101
+            .append("elevatorCode", getElevatorCode())
102
+            .append("buildingId", getBuildingId())
103
+            .append("status", getStatus())
104
+            .append("elevatorName", getElevatorName())
105
+            .append("upkeepNum", getUpkeepNum())
106
+            .toString();
107
+    }
108
+}

+ 162 - 0
src/main/java/com/lqkj/info/entity/EquipmentInfo.java

@@ -0,0 +1,162 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 设备信息对象 equipment_info
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-12
13
+ */
14
+public class EquipmentInfo extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 设备id */
19
+    private Integer equipmentId;
20
+
21
+    /** 类别id */
22
+    private Integer typeId;
23
+
24
+    /** 房间编号 */
25
+    @Excel(name = "房间编号")
26
+    private Integer roomId;
27
+
28
+    /** 大楼编号 */
29
+    @Excel(name = "大楼编号")
30
+    private Integer buildingId;
31
+
32
+    /** 区域id */
33
+    @Excel(name = "区域id")
34
+    private Integer areaId;
35
+
36
+    /** 名称 */
37
+    @Excel(name = "名称")
38
+    private String equipmentName;
39
+
40
+    /** 二维坐标 */
41
+    @Excel(name = "二维坐标")
42
+    private String lngLat;
43
+
44
+    /** 三维坐标 */
45
+    @Excel(name = "三维坐标")
46
+    private String rasterLngLat;
47
+
48
+    /** 类型 */
49
+    @Excel(name = "类型")
50
+    private String typeName;
51
+
52
+    /** 状态 */
53
+    @Excel(name = "状态")
54
+    private Integer status;
55
+
56
+    public void setEquipmentId(Integer equipmentId) 
57
+    {
58
+        this.equipmentId = equipmentId;
59
+    }
60
+
61
+    public Integer getEquipmentId() 
62
+    {
63
+        return equipmentId;
64
+    }
65
+    public void setTypeId(Integer typeId) 
66
+    {
67
+        this.typeId = typeId;
68
+    }
69
+
70
+    public Integer getTypeId() 
71
+    {
72
+        return typeId;
73
+    }
74
+    public void setRoomId(Integer roomId) 
75
+    {
76
+        this.roomId = roomId;
77
+    }
78
+
79
+    public Integer getRoomId() 
80
+    {
81
+        return roomId;
82
+    }
83
+    public void setBuildingId(Integer buildingId) 
84
+    {
85
+        this.buildingId = buildingId;
86
+    }
87
+
88
+    public Integer getBuildingId() 
89
+    {
90
+        return buildingId;
91
+    }
92
+    public void setAreaId(Integer areaId) 
93
+    {
94
+        this.areaId = areaId;
95
+    }
96
+
97
+    public Integer getAreaId() 
98
+    {
99
+        return areaId;
100
+    }
101
+    public void setEquipmentName(String equipmentName) 
102
+    {
103
+        this.equipmentName = equipmentName;
104
+    }
105
+
106
+    public String getEquipmentName() 
107
+    {
108
+        return equipmentName;
109
+    }
110
+    public void setLngLat(String lngLat) 
111
+    {
112
+        this.lngLat = lngLat;
113
+    }
114
+
115
+    public String getLngLat()
116
+    {
117
+        return lngLat;
118
+    }
119
+    public void setRasterLngLat(String rasterLngLat) 
120
+    {
121
+        this.rasterLngLat = rasterLngLat;
122
+    }
123
+
124
+    public String getRasterLngLat()
125
+    {
126
+        return rasterLngLat;
127
+    }
128
+    public void setTypeName(String typeName) 
129
+    {
130
+        this.typeName = typeName;
131
+    }
132
+
133
+    public String getTypeName() 
134
+    {
135
+        return typeName;
136
+    }
137
+    public void setStatus(Integer status) 
138
+    {
139
+        this.status = status;
140
+    }
141
+
142
+    public Integer getStatus() 
143
+    {
144
+        return status;
145
+    }
146
+
147
+    @Override
148
+    public String toString() {
149
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
150
+            .append("equipmentId", getEquipmentId())
151
+            .append("typeId", getTypeId())
152
+            .append("roomId", getRoomId())
153
+            .append("buildingId", getBuildingId())
154
+            .append("areaId", getAreaId())
155
+            .append("equipmentName", getEquipmentName())
156
+            .append("lngLat", getLngLat())
157
+            .append("rasterLngLat", getRasterLngLat())
158
+            .append("typeName", getTypeName())
159
+            .append("status", getStatus())
160
+            .toString();
161
+    }
162
+}

+ 124 - 0
src/main/java/com/lqkj/info/entity/ForewarningInfo.java

@@ -0,0 +1,124 @@
1
+package com.lqkj.info.entity;
2
+
3
+import java.time.LocalDateTime;
4
+import com.fasterxml.jackson.annotation.JsonFormat;
5
+import org.apache.commons.lang3.builder.ToStringBuilder;
6
+import org.apache.commons.lang3.builder.ToStringStyle;
7
+import com.lqkj.common.annotation.Excel;
8
+import com.lqkj.common.core.model.BaseEntity;
9
+
10
+/**
11
+ * 预警信息对象 forewarning_info
12
+ * 
13
+ * @author lqkj
14
+ * @date 2024-11-12
15
+ */
16
+public class ForewarningInfo extends BaseEntity
17
+{
18
+    private static final long serialVersionUID = 1L;
19
+
20
+    /** 预警id */
21
+    private Integer forewarningId;
22
+
23
+    /** 预警标题 */
24
+    @Excel(name = "预警标题")
25
+    private String forewarningName;
26
+
27
+    /** 内容 */
28
+    private String content;
29
+
30
+    /** 设备id */
31
+    @Excel(name = "设备id")
32
+    private Integer equipmentId;
33
+
34
+    /** 设备名 */
35
+    @Excel(name = "设备名")
36
+    private String equipmentName;
37
+
38
+    /** 是否解决 */
39
+    @Excel(name = "是否解决")
40
+    private Boolean isResolve;
41
+
42
+    /** 解决时间 */
43
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
44
+    @Excel(name = "解决时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
45
+    private LocalDateTime resolveTime;
46
+
47
+    public void setForewarningId(Integer forewarningId) 
48
+    {
49
+        this.forewarningId = forewarningId;
50
+    }
51
+
52
+    public Integer getForewarningId() 
53
+    {
54
+        return forewarningId;
55
+    }
56
+    public void setForewarningName(String forewarningName) 
57
+    {
58
+        this.forewarningName = forewarningName;
59
+    }
60
+
61
+    public String getForewarningName() 
62
+    {
63
+        return forewarningName;
64
+    }
65
+    public void setContent(String content) 
66
+    {
67
+        this.content = content;
68
+    }
69
+
70
+    public String getContent() 
71
+    {
72
+        return content;
73
+    }
74
+    public void setEquipmentId(Integer equipmentId) 
75
+    {
76
+        this.equipmentId = equipmentId;
77
+    }
78
+
79
+    public Integer getEquipmentId() 
80
+    {
81
+        return equipmentId;
82
+    }
83
+    public void setEquipmentName(String equipmentName) 
84
+    {
85
+        this.equipmentName = equipmentName;
86
+    }
87
+
88
+    public String getEquipmentName() 
89
+    {
90
+        return equipmentName;
91
+    }
92
+    public void setIsResolve(Boolean isResolve) 
93
+    {
94
+        this.isResolve = isResolve;
95
+    }
96
+
97
+    public Boolean getIsResolve() 
98
+    {
99
+        return isResolve;
100
+    }
101
+    public void setResolveTime(LocalDateTime resolveTime) 
102
+    {
103
+        this.resolveTime = resolveTime;
104
+    }
105
+
106
+    public LocalDateTime getResolveTime() 
107
+    {
108
+        return resolveTime;
109
+    }
110
+
111
+    @Override
112
+    public String toString() {
113
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
114
+            .append("forewarningId", getForewarningId())
115
+            .append("forewarningName", getForewarningName())
116
+            .append("content", getContent())
117
+            .append("equipmentId", getEquipmentId())
118
+            .append("equipmentName", getEquipmentName())
119
+            .append("createTime", getCreateTime())
120
+            .append("isResolve", getIsResolve())
121
+            .append("resolveTime", getResolveTime())
122
+            .toString();
123
+    }
124
+}

+ 255 - 0
src/main/java/com/lqkj/info/entity/OrganizationInfo.java

@@ -0,0 +1,255 @@
1
+package com.lqkj.info.entity;
2
+
3
+import java.time.LocalDateTime;
4
+import com.fasterxml.jackson.annotation.JsonFormat;
5
+import org.apache.commons.lang3.builder.ToStringBuilder;
6
+import org.apache.commons.lang3.builder.ToStringStyle;
7
+import com.lqkj.common.annotation.Excel;
8
+import com.lqkj.common.core.model.BaseEntity;
9
+
10
+/**
11
+ * 主体信息对象 organization_info
12
+ * 
13
+ * @author lqkj
14
+ * @date 2024-11-13
15
+ */
16
+public class OrganizationInfo extends BaseEntity
17
+{
18
+    private static final long serialVersionUID = 1L;
19
+
20
+    /** 主体id */
21
+    private Integer organizationId;
22
+
23
+    /** 类别id */
24
+    @Excel(name = "类别id")
25
+    private Integer typeId;
26
+
27
+    /** 房间编号 */
28
+    @Excel(name = "房间编号")
29
+    private Integer roomId;
30
+
31
+    /** 大楼编号 */
32
+    @Excel(name = "大楼编号")
33
+    private Integer buildingId;
34
+
35
+    /** 区域id */
36
+    @Excel(name = "区域id")
37
+    private Integer areaId;
38
+
39
+    /** 名称 */
40
+    @Excel(name = "名称")
41
+    private String organizationName;
42
+
43
+    /** 简介 */
44
+    private String intro;
45
+
46
+    /** 二维坐标 */
47
+    private String lngLat;
48
+
49
+    /** 三维坐标 */
50
+    private String rasterLngLat;
51
+
52
+    /** 是否重要 */
53
+    @Excel(name = "是否重要")
54
+    private Boolean important;
55
+
56
+    /** 类型名 */
57
+    private String typeName;
58
+
59
+    /** 地址 */
60
+    private String address;
61
+
62
+    /** logo */
63
+    @Excel(name = "logo")
64
+    private String logo;
65
+
66
+    /** 联系方式 */
67
+    private String telephone;
68
+
69
+    /** 主要产品 */
70
+    private String product;
71
+
72
+    /** 入驻时间 */
73
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
74
+    private LocalDateTime enterTime;
75
+
76
+    /** 员工人数 */
77
+    private Integer employeNum;
78
+
79
+    public void setOrganizationId(Integer organizationId) 
80
+    {
81
+        this.organizationId = organizationId;
82
+    }
83
+
84
+    public Integer getOrganizationId() 
85
+    {
86
+        return organizationId;
87
+    }
88
+    public void setTypeId(Integer typeId) 
89
+    {
90
+        this.typeId = typeId;
91
+    }
92
+
93
+    public Integer getTypeId() 
94
+    {
95
+        return typeId;
96
+    }
97
+    public void setRoomId(Integer roomId) 
98
+    {
99
+        this.roomId = roomId;
100
+    }
101
+
102
+    public Integer getRoomId() 
103
+    {
104
+        return roomId;
105
+    }
106
+    public void setBuildingId(Integer buildingId) 
107
+    {
108
+        this.buildingId = buildingId;
109
+    }
110
+
111
+    public Integer getBuildingId() 
112
+    {
113
+        return buildingId;
114
+    }
115
+    public void setAreaId(Integer areaId) 
116
+    {
117
+        this.areaId = areaId;
118
+    }
119
+
120
+    public Integer getAreaId() 
121
+    {
122
+        return areaId;
123
+    }
124
+    public void setOrganizationName(String organizationName) 
125
+    {
126
+        this.organizationName = organizationName;
127
+    }
128
+
129
+    public String getOrganizationName() 
130
+    {
131
+        return organizationName;
132
+    }
133
+    public void setIntro(String intro) 
134
+    {
135
+        this.intro = intro;
136
+    }
137
+
138
+    public String getIntro() 
139
+    {
140
+        return intro;
141
+    }
142
+    public void setLngLat(String lngLat) 
143
+    {
144
+        this.lngLat = lngLat;
145
+    }
146
+
147
+    public String getLngLat()
148
+    {
149
+        return lngLat;
150
+    }
151
+    public void setRasterLngLat(String rasterLngLat) 
152
+    {
153
+        this.rasterLngLat = rasterLngLat;
154
+    }
155
+
156
+    public String getRasterLngLat()
157
+    {
158
+        return rasterLngLat;
159
+    }
160
+    public void setImportant(Boolean important) 
161
+    {
162
+        this.important = important;
163
+    }
164
+
165
+    public Boolean getImportant() 
166
+    {
167
+        return important;
168
+    }
169
+    public void setTypeName(String typeName) 
170
+    {
171
+        this.typeName = typeName;
172
+    }
173
+
174
+    public String getTypeName() 
175
+    {
176
+        return typeName;
177
+    }
178
+    public void setAddress(String address) 
179
+    {
180
+        this.address = address;
181
+    }
182
+
183
+    public String getAddress() 
184
+    {
185
+        return address;
186
+    }
187
+    public void setLogo(String logo) 
188
+    {
189
+        this.logo = logo;
190
+    }
191
+
192
+    public String getLogo() 
193
+    {
194
+        return logo;
195
+    }
196
+    public void setTelephone(String telephone) 
197
+    {
198
+        this.telephone = telephone;
199
+    }
200
+
201
+    public String getTelephone() 
202
+    {
203
+        return telephone;
204
+    }
205
+    public void setProduct(String product) 
206
+    {
207
+        this.product = product;
208
+    }
209
+
210
+    public String getProduct() 
211
+    {
212
+        return product;
213
+    }
214
+    public void setEnterTime(LocalDateTime enterTime) 
215
+    {
216
+        this.enterTime = enterTime;
217
+    }
218
+
219
+    public LocalDateTime getEnterTime() 
220
+    {
221
+        return enterTime;
222
+    }
223
+    public void setEmployeNum(Integer employeNum) 
224
+    {
225
+        this.employeNum = employeNum;
226
+    }
227
+
228
+    public Integer getEmployeNum() 
229
+    {
230
+        return employeNum;
231
+    }
232
+
233
+    @Override
234
+    public String toString() {
235
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
236
+            .append("organizationId", getOrganizationId())
237
+            .append("typeId", getTypeId())
238
+            .append("roomId", getRoomId())
239
+            .append("buildingId", getBuildingId())
240
+            .append("areaId", getAreaId())
241
+            .append("organizationName", getOrganizationName())
242
+            .append("intro", getIntro())
243
+            .append("lngLat", getLngLat())
244
+            .append("rasterLngLat", getRasterLngLat())
245
+            .append("important", getImportant())
246
+            .append("typeName", getTypeName())
247
+            .append("address", getAddress())
248
+            .append("logo", getLogo())
249
+            .append("telephone", getTelephone())
250
+            .append("product", getProduct())
251
+            .append("enterTime", getEnterTime())
252
+            .append("employeNum", getEmployeNum())
253
+            .toString();
254
+    }
255
+}

+ 121 - 0
src/main/java/com/lqkj/info/entity/PlanInfo.java

@@ -0,0 +1,121 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 规划对象对象 plan_info
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-13
13
+ */
14
+public class PlanInfo extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 规划id */
19
+    private Integer planId;
20
+
21
+    /** 区域 */
22
+    @Excel(name = "区域")
23
+    private Integer areaId;
24
+
25
+    /** 类别 */
26
+    @Excel(name = "类别")
27
+    private Integer typeId;
28
+
29
+    /** 名字 */
30
+    @Excel(name = "名字")
31
+    private String planName;
32
+
33
+    /** 备注 */
34
+    @Excel(name = "备注")
35
+    private String content;
36
+
37
+    /** 颜色 */
38
+    @Excel(name = "颜色")
39
+    private String colour;
40
+
41
+    /** 面积 */
42
+    @Excel(name = "面积")
43
+    private Integer acreage;
44
+
45
+    public void setPlanId(Integer planId) 
46
+    {
47
+        this.planId = planId;
48
+    }
49
+
50
+    public Integer getPlanId() 
51
+    {
52
+        return planId;
53
+    }
54
+    public void setAreaId(Integer areaId) 
55
+    {
56
+        this.areaId = areaId;
57
+    }
58
+
59
+    public Integer getAreaId() 
60
+    {
61
+        return areaId;
62
+    }
63
+    public void setTypeId(Integer typeId) 
64
+    {
65
+        this.typeId = typeId;
66
+    }
67
+
68
+    public Integer getTypeId() 
69
+    {
70
+        return typeId;
71
+    }
72
+    public void setPlanName(String planName) 
73
+    {
74
+        this.planName = planName;
75
+    }
76
+
77
+    public String getPlanName() 
78
+    {
79
+        return planName;
80
+    }
81
+    public void setContent(String content) 
82
+    {
83
+        this.content = content;
84
+    }
85
+
86
+    public String getContent() 
87
+    {
88
+        return content;
89
+    }
90
+    public void setColour(String colour) 
91
+    {
92
+        this.colour = colour;
93
+    }
94
+
95
+    public String getColour() 
96
+    {
97
+        return colour;
98
+    }
99
+    public void setAcreage(Integer acreage) 
100
+    {
101
+        this.acreage = acreage;
102
+    }
103
+
104
+    public Integer getAcreage() 
105
+    {
106
+        return acreage;
107
+    }
108
+
109
+    @Override
110
+    public String toString() {
111
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
112
+            .append("planId", getPlanId())
113
+            .append("areaId", getAreaId())
114
+            .append("typeId", getTypeId())
115
+            .append("planName", getPlanName())
116
+            .append("content", getContent())
117
+            .append("colour", getColour())
118
+            .append("acreage", getAcreage())
119
+            .toString();
120
+    }
121
+}

+ 79 - 0
src/main/java/com/lqkj/info/entity/PolicyInfo.java

@@ -0,0 +1,79 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 政策信息对象 policy_info
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-15
13
+ */
14
+public class PolicyInfo extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 政策id */
19
+    private Integer policyId;
20
+
21
+    /** 政策名称 */
22
+    @Excel(name = "政策名称")
23
+    private String policyName;
24
+
25
+    /** 政策文件 */
26
+    private String url;
27
+
28
+    /** 文件名 */
29
+    @Excel(name = "文件名")
30
+    private String fileName;
31
+
32
+    public void setPolicyId(Integer policyId) 
33
+    {
34
+        this.policyId = policyId;
35
+    }
36
+
37
+    public Integer getPolicyId() 
38
+    {
39
+        return policyId;
40
+    }
41
+    public void setPolicyName(String policyName) 
42
+    {
43
+        this.policyName = policyName;
44
+    }
45
+
46
+    public String getPolicyName() 
47
+    {
48
+        return policyName;
49
+    }
50
+    public void setUrl(String url) 
51
+    {
52
+        this.url = url;
53
+    }
54
+
55
+    public String getUrl() 
56
+    {
57
+        return url;
58
+    }
59
+    public void setFileName(String fileName) 
60
+    {
61
+        this.fileName = fileName;
62
+    }
63
+
64
+    public String getFileName() 
65
+    {
66
+        return fileName;
67
+    }
68
+
69
+    @Override
70
+    public String toString() {
71
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
72
+            .append("policyId", getPolicyId())
73
+            .append("policyName", getPolicyName())
74
+            .append("url", getUrl())
75
+            .append("createTime", getCreateTime())
76
+            .append("fileName", getFileName())
77
+            .toString();
78
+    }
79
+}

+ 292 - 0
src/main/java/com/lqkj/info/entity/RoomInfo.java

@@ -0,0 +1,292 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 房间信息对象 room_info
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-13
13
+ */
14
+public class RoomInfo extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 房间编号 */
19
+    private Integer roomId;
20
+
21
+    /** 类型 */
22
+    @Excel(name = "类型")
23
+    private Integer typeId;
24
+
25
+    /** 大楼 */
26
+    @Excel(name = "大楼")
27
+    private Integer buildingId;
28
+
29
+    /** 户型 */
30
+    @Excel(name = "户型")
31
+    private Integer houseTypeId;
32
+
33
+    /** 房间名称 */
34
+    @Excel(name = "房间名称")
35
+    private String roomName;
36
+
37
+    /** 地图编码 */
38
+    private Integer mapCode;
39
+
40
+    /** 英文名称 */
41
+    private String enName;
42
+
43
+    /** 别名 */
44
+    private String alias;
45
+
46
+    /** 排序 */
47
+    private Integer orderId;
48
+
49
+    /** 是否已同步 */
50
+    @Excel(name = "是否已同步")
51
+    private Boolean synStatus;
52
+
53
+    /** 是否删除 */
54
+    private Boolean delete;
55
+
56
+    /** 简介 */
57
+    private String brief;
58
+
59
+    /** 二维坐标 */
60
+    @Excel(name = "二维坐标")
61
+    private String lngLat;
62
+
63
+    /** 三维坐标 */
64
+    @Excel(name = "三维坐标")
65
+    private String rasterLngLat;
66
+
67
+    /** 备注 */
68
+    private String memo;
69
+
70
+    /** 地址 */
71
+    private String address;
72
+
73
+    /** 楼层编码 */
74
+    @Excel(name = "楼层编码")
75
+    private Integer levelNumber;
76
+
77
+    /** 面积 */
78
+    private Integer acreage;
79
+
80
+    /** 大楼名称:building_name */
81
+    private String buildingName;
82
+
83
+    /** 门牌号:hourse_number */
84
+    private String hourseNumber;
85
+
86
+    public void setRoomId(Integer roomId) 
87
+    {
88
+        this.roomId = roomId;
89
+    }
90
+
91
+    public Integer getRoomId() 
92
+    {
93
+        return roomId;
94
+    }
95
+    public void setTypeId(Integer typeId) 
96
+    {
97
+        this.typeId = typeId;
98
+    }
99
+
100
+    public Integer getTypeId() 
101
+    {
102
+        return typeId;
103
+    }
104
+    public void setBuildingId(Integer buildingId) 
105
+    {
106
+        this.buildingId = buildingId;
107
+    }
108
+
109
+    public Integer getBuildingId() 
110
+    {
111
+        return buildingId;
112
+    }
113
+    public void setHouseTypeId(Integer houseTypeId) 
114
+    {
115
+        this.houseTypeId = houseTypeId;
116
+    }
117
+
118
+    public Integer getHouseTypeId() 
119
+    {
120
+        return houseTypeId;
121
+    }
122
+    public void setRoomName(String roomName) 
123
+    {
124
+        this.roomName = roomName;
125
+    }
126
+
127
+    public String getRoomName() 
128
+    {
129
+        return roomName;
130
+    }
131
+    public void setMapCode(Integer mapCode) 
132
+    {
133
+        this.mapCode = mapCode;
134
+    }
135
+
136
+    public Integer getMapCode() 
137
+    {
138
+        return mapCode;
139
+    }
140
+    public void setEnName(String enName) 
141
+    {
142
+        this.enName = enName;
143
+    }
144
+
145
+    public String getEnName() 
146
+    {
147
+        return enName;
148
+    }
149
+    public void setAlias(String alias) 
150
+    {
151
+        this.alias = alias;
152
+    }
153
+
154
+    public String getAlias() 
155
+    {
156
+        return alias;
157
+    }
158
+    public void setOrderId(Integer orderId) 
159
+    {
160
+        this.orderId = orderId;
161
+    }
162
+
163
+    public Integer getOrderId() 
164
+    {
165
+        return orderId;
166
+    }
167
+    public void setSynStatus(Boolean synStatus) 
168
+    {
169
+        this.synStatus = synStatus;
170
+    }
171
+
172
+    public Boolean getSynStatus() 
173
+    {
174
+        return synStatus;
175
+    }
176
+    public void setDelete(Boolean delete) 
177
+    {
178
+        this.delete = delete;
179
+    }
180
+
181
+    public Boolean getDelete() 
182
+    {
183
+        return delete;
184
+    }
185
+    public void setBrief(String brief) 
186
+    {
187
+        this.brief = brief;
188
+    }
189
+
190
+    public String getBrief() 
191
+    {
192
+        return brief;
193
+    }
194
+    public void setLngLat(String lngLat) 
195
+    {
196
+        this.lngLat = lngLat;
197
+    }
198
+
199
+    public String getLngLat() 
200
+    {
201
+        return lngLat;
202
+    }
203
+    public void setRasterLngLat(String rasterLngLat) 
204
+    {
205
+        this.rasterLngLat = rasterLngLat;
206
+    }
207
+
208
+    public String getRasterLngLat() 
209
+    {
210
+        return rasterLngLat;
211
+    }
212
+    public void setMemo(String memo) 
213
+    {
214
+        this.memo = memo;
215
+    }
216
+
217
+    public String getMemo() 
218
+    {
219
+        return memo;
220
+    }
221
+    public void setAddress(String address) 
222
+    {
223
+        this.address = address;
224
+    }
225
+
226
+    public String getAddress() 
227
+    {
228
+        return address;
229
+    }
230
+    public void setLevelNumber(Integer levelNumber) 
231
+    {
232
+        this.levelNumber = levelNumber;
233
+    }
234
+
235
+    public Integer getLevelNumber() 
236
+    {
237
+        return levelNumber;
238
+    }
239
+    public void setAcreage(Integer acreage) 
240
+    {
241
+        this.acreage = acreage;
242
+    }
243
+
244
+    public Integer getAcreage() 
245
+    {
246
+        return acreage;
247
+    }
248
+    public void setBuildingName(String buildingName) 
249
+    {
250
+        this.buildingName = buildingName;
251
+    }
252
+
253
+    public String getBuildingName() 
254
+    {
255
+        return buildingName;
256
+    }
257
+    public void setHourseNumber(String hourseNumber) 
258
+    {
259
+        this.hourseNumber = hourseNumber;
260
+    }
261
+
262
+    public String getHourseNumber() 
263
+    {
264
+        return hourseNumber;
265
+    }
266
+
267
+    @Override
268
+    public String toString() {
269
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
270
+            .append("roomId", getRoomId())
271
+            .append("typeId", getTypeId())
272
+            .append("buildingId", getBuildingId())
273
+            .append("houseTypeId", getHouseTypeId())
274
+            .append("roomName", getRoomName())
275
+            .append("mapCode", getMapCode())
276
+            .append("enName", getEnName())
277
+            .append("alias", getAlias())
278
+            .append("orderId", getOrderId())
279
+            .append("synStatus", getSynStatus())
280
+            .append("delete", getDelete())
281
+            .append("brief", getBrief())
282
+            .append("lngLat", getLngLat())
283
+            .append("rasterLngLat", getRasterLngLat())
284
+            .append("memo", getMemo())
285
+            .append("address", getAddress())
286
+            .append("levelNumber", getLevelNumber())
287
+            .append("acreage", getAcreage())
288
+            .append("buildingName", getBuildingName())
289
+            .append("hourseNumber", getHourseNumber())
290
+            .toString();
291
+    }
292
+}

+ 106 - 0
src/main/java/com/lqkj/info/entity/StationInfo.java

@@ -0,0 +1,106 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 站点信息对象 station_info
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-14
13
+ */
14
+public class StationInfo extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 站点id */
19
+    private Integer stationId;
20
+
21
+    /** 站点名称 */
22
+    @Excel(name = "站点名称")
23
+    private String stationName;
24
+
25
+    /** 备注 */
26
+    private String memo;
27
+
28
+    /** 二维坐标 */
29
+    @Excel(name = "二维坐标")
30
+    private String lngLat;
31
+
32
+    /** 三维坐标 */
33
+    @Excel(name = "三维坐标")
34
+    private String rasterLngLat;
35
+
36
+    /** 车辆 */
37
+    @Excel(name = "车辆")
38
+    private Integer trafficId;
39
+
40
+    public void setStationId(Integer stationId) 
41
+    {
42
+        this.stationId = stationId;
43
+    }
44
+
45
+    public Integer getStationId() 
46
+    {
47
+        return stationId;
48
+    }
49
+    public void setStationName(String stationName) 
50
+    {
51
+        this.stationName = stationName;
52
+    }
53
+
54
+    public String getStationName() 
55
+    {
56
+        return stationName;
57
+    }
58
+    public void setMemo(String memo) 
59
+    {
60
+        this.memo = memo;
61
+    }
62
+
63
+    public String getMemo() 
64
+    {
65
+        return memo;
66
+    }
67
+    public void setLngLat(String lngLat) 
68
+    {
69
+        this.lngLat = lngLat;
70
+    }
71
+
72
+    public String getLngLat() 
73
+    {
74
+        return lngLat;
75
+    }
76
+    public void setRasterLngLat(String rasterLngLat) 
77
+    {
78
+        this.rasterLngLat = rasterLngLat;
79
+    }
80
+
81
+    public String getRasterLngLat() 
82
+    {
83
+        return rasterLngLat;
84
+    }
85
+    public void setTrafficId(Integer trafficId) 
86
+    {
87
+        this.trafficId = trafficId;
88
+    }
89
+
90
+    public Integer getTrafficId() 
91
+    {
92
+        return trafficId;
93
+    }
94
+
95
+    @Override
96
+    public String toString() {
97
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
98
+            .append("stationId", getStationId())
99
+            .append("stationName", getStationName())
100
+            .append("memo", getMemo())
101
+            .append("lngLat", getLngLat())
102
+            .append("rasterLngLat", getRasterLngLat())
103
+            .append("trafficId", getTrafficId())
104
+            .toString();
105
+    }
106
+}

+ 106 - 0
src/main/java/com/lqkj/info/entity/TrafficInfo.java

@@ -0,0 +1,106 @@
1
+package com.lqkj.info.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 交通对象对象 traffic_info
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-14
13
+ */
14
+public class TrafficInfo extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 交通id */
19
+    private Integer trafficId;
20
+
21
+    /** 类别 */
22
+    @Excel(name = "类别")
23
+    private Integer typeId;
24
+
25
+    /** 名字 */
26
+    @Excel(name = "名字")
27
+    private String trafficName;
28
+
29
+    /** 数量 */
30
+    @Excel(name = "数量")
31
+    private Integer amount;
32
+
33
+    /** 备注 */
34
+    private String memo;
35
+
36
+    /** 颜色 */
37
+    @Excel(name = "颜色")
38
+    private String colour;
39
+
40
+    public void setTrafficId(Integer trafficId) 
41
+    {
42
+        this.trafficId = trafficId;
43
+    }
44
+
45
+    public Integer getTrafficId() 
46
+    {
47
+        return trafficId;
48
+    }
49
+    public void setTypeId(Integer typeId) 
50
+    {
51
+        this.typeId = typeId;
52
+    }
53
+
54
+    public Integer getTypeId() 
55
+    {
56
+        return typeId;
57
+    }
58
+    public void setTrafficName(String trafficName) 
59
+    {
60
+        this.trafficName = trafficName;
61
+    }
62
+
63
+    public String getTrafficName() 
64
+    {
65
+        return trafficName;
66
+    }
67
+    public void setAmount(Integer amount) 
68
+    {
69
+        this.amount = amount;
70
+    }
71
+
72
+    public Integer getAmount() 
73
+    {
74
+        return amount;
75
+    }
76
+    public void setMemo(String memo) 
77
+    {
78
+        this.memo = memo;
79
+    }
80
+
81
+    public String getMemo() 
82
+    {
83
+        return memo;
84
+    }
85
+    public void setColour(String colour) 
86
+    {
87
+        this.colour = colour;
88
+    }
89
+
90
+    public String getColour() 
91
+    {
92
+        return colour;
93
+    }
94
+
95
+    @Override
96
+    public String toString() {
97
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
98
+            .append("trafficId", getTrafficId())
99
+            .append("typeId", getTypeId())
100
+            .append("trafficName", getTrafficName())
101
+            .append("amount", getAmount())
102
+            .append("memo", getMemo())
103
+            .append("colour", getColour())
104
+            .toString();
105
+    }
106
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/AreaInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.AreaInfo;
6
+
7
+/**
8
+ * 区域对象Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-13
12
+ */
13
+@Mapper
14
+public interface AreaInfoMapper 
15
+{
16
+    /**
17
+     * 查询区域对象
18
+     * 
19
+     * @param areaId 区域对象主键
20
+     * @return 区域对象
21
+     */
22
+    public AreaInfo selectAreaInfoByAreaId(Integer areaId);
23
+
24
+    /**
25
+     * 查询区域对象列表
26
+     * 
27
+     * @param areaInfo 区域对象
28
+     * @return 区域对象集合
29
+     */
30
+    public List<AreaInfo> selectAreaInfoList(AreaInfo areaInfo);
31
+
32
+    /**
33
+     * 新增区域对象
34
+     * 
35
+     * @param areaInfo 区域对象
36
+     * @return 结果
37
+     */
38
+    public int insertAreaInfo(AreaInfo areaInfo);
39
+
40
+    /**
41
+     * 修改区域对象
42
+     * 
43
+     * @param areaInfo 区域对象
44
+     * @return 结果
45
+     */
46
+    public int updateAreaInfo(AreaInfo areaInfo);
47
+
48
+    /**
49
+     * 删除区域对象
50
+     * 
51
+     * @param areaId 区域对象主键
52
+     * @return 结果
53
+     */
54
+    public int deleteAreaInfoByAreaId(Integer areaId);
55
+
56
+    /**
57
+     * 批量删除区域对象
58
+     * 
59
+     * @param areaIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteAreaInfoByAreaIds(Integer[] areaIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/BuildingInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.BuildingInfo;
6
+
7
+/**
8
+ * 大楼信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-12
12
+ */
13
+@Mapper
14
+public interface BuildingInfoMapper 
15
+{
16
+    /**
17
+     * 查询大楼信息
18
+     * 
19
+     * @param buildingId 大楼信息主键
20
+     * @return 大楼信息
21
+     */
22
+    public BuildingInfo selectBuildingInfoByBuildingId(Integer buildingId);
23
+
24
+    /**
25
+     * 查询大楼信息列表
26
+     * 
27
+     * @param buildingInfo 大楼信息
28
+     * @return 大楼信息集合
29
+     */
30
+    public List<BuildingInfo> selectBuildingInfoList(BuildingInfo buildingInfo);
31
+
32
+    /**
33
+     * 新增大楼信息
34
+     * 
35
+     * @param buildingInfo 大楼信息
36
+     * @return 结果
37
+     */
38
+    public int insertBuildingInfo(BuildingInfo buildingInfo);
39
+
40
+    /**
41
+     * 修改大楼信息
42
+     * 
43
+     * @param buildingInfo 大楼信息
44
+     * @return 结果
45
+     */
46
+    public int updateBuildingInfo(BuildingInfo buildingInfo);
47
+
48
+    /**
49
+     * 删除大楼信息
50
+     * 
51
+     * @param buildingId 大楼信息主键
52
+     * @return 结果
53
+     */
54
+    public int deleteBuildingInfoByBuildingId(Integer buildingId);
55
+
56
+    /**
57
+     * 批量删除大楼信息
58
+     * 
59
+     * @param buildingIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteBuildingInfoByBuildingIds(Integer[] buildingIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/ElevatorInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.ElevatorInfo;
6
+
7
+/**
8
+ * 电梯信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-12
12
+ */
13
+@Mapper
14
+public interface ElevatorInfoMapper 
15
+{
16
+    /**
17
+     * 查询电梯信息
18
+     * 
19
+     * @param elevatorId 电梯信息主键
20
+     * @return 电梯信息
21
+     */
22
+    public ElevatorInfo selectElevatorInfoByElevatorId(Integer elevatorId);
23
+
24
+    /**
25
+     * 查询电梯信息列表
26
+     * 
27
+     * @param elevatorInfo 电梯信息
28
+     * @return 电梯信息集合
29
+     */
30
+    public List<ElevatorInfo> selectElevatorInfoList(ElevatorInfo elevatorInfo);
31
+
32
+    /**
33
+     * 新增电梯信息
34
+     * 
35
+     * @param elevatorInfo 电梯信息
36
+     * @return 结果
37
+     */
38
+    public int insertElevatorInfo(ElevatorInfo elevatorInfo);
39
+
40
+    /**
41
+     * 修改电梯信息
42
+     * 
43
+     * @param elevatorInfo 电梯信息
44
+     * @return 结果
45
+     */
46
+    public int updateElevatorInfo(ElevatorInfo elevatorInfo);
47
+
48
+    /**
49
+     * 删除电梯信息
50
+     * 
51
+     * @param elevatorId 电梯信息主键
52
+     * @return 结果
53
+     */
54
+    public int deleteElevatorInfoByElevatorId(Integer elevatorId);
55
+
56
+    /**
57
+     * 批量删除电梯信息
58
+     * 
59
+     * @param elevatorIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteElevatorInfoByElevatorIds(Integer[] elevatorIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/EquipmentInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.EquipmentInfo;
6
+
7
+/**
8
+ * 设备信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-12
12
+ */
13
+@Mapper
14
+public interface EquipmentInfoMapper 
15
+{
16
+    /**
17
+     * 查询设备信息
18
+     * 
19
+     * @param equipmentId 设备信息主键
20
+     * @return 设备信息
21
+     */
22
+    public EquipmentInfo selectEquipmentInfoByEquipmentId(Integer equipmentId);
23
+
24
+    /**
25
+     * 查询设备信息列表
26
+     * 
27
+     * @param equipmentInfo 设备信息
28
+     * @return 设备信息集合
29
+     */
30
+    public List<EquipmentInfo> selectEquipmentInfoList(EquipmentInfo equipmentInfo);
31
+
32
+    /**
33
+     * 新增设备信息
34
+     * 
35
+     * @param equipmentInfo 设备信息
36
+     * @return 结果
37
+     */
38
+    public int insertEquipmentInfo(EquipmentInfo equipmentInfo);
39
+
40
+    /**
41
+     * 修改设备信息
42
+     * 
43
+     * @param equipmentInfo 设备信息
44
+     * @return 结果
45
+     */
46
+    public int updateEquipmentInfo(EquipmentInfo equipmentInfo);
47
+
48
+    /**
49
+     * 删除设备信息
50
+     * 
51
+     * @param equipmentId 设备信息主键
52
+     * @return 结果
53
+     */
54
+    public int deleteEquipmentInfoByEquipmentId(Integer equipmentId);
55
+
56
+    /**
57
+     * 批量删除设备信息
58
+     * 
59
+     * @param equipmentIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteEquipmentInfoByEquipmentIds(Integer[] equipmentIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/ForewarningInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.ForewarningInfo;
6
+
7
+/**
8
+ * 预警信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-12
12
+ */
13
+@Mapper
14
+public interface ForewarningInfoMapper 
15
+{
16
+    /**
17
+     * 查询预警信息
18
+     * 
19
+     * @param forewarningId 预警信息主键
20
+     * @return 预警信息
21
+     */
22
+    public ForewarningInfo selectForewarningInfoByForewarningId(Integer forewarningId);
23
+
24
+    /**
25
+     * 查询预警信息列表
26
+     * 
27
+     * @param forewarningInfo 预警信息
28
+     * @return 预警信息集合
29
+     */
30
+    public List<ForewarningInfo> selectForewarningInfoList(ForewarningInfo forewarningInfo);
31
+
32
+    /**
33
+     * 新增预警信息
34
+     * 
35
+     * @param forewarningInfo 预警信息
36
+     * @return 结果
37
+     */
38
+    public int insertForewarningInfo(ForewarningInfo forewarningInfo);
39
+
40
+    /**
41
+     * 修改预警信息
42
+     * 
43
+     * @param forewarningInfo 预警信息
44
+     * @return 结果
45
+     */
46
+    public int updateForewarningInfo(ForewarningInfo forewarningInfo);
47
+
48
+    /**
49
+     * 删除预警信息
50
+     * 
51
+     * @param forewarningId 预警信息主键
52
+     * @return 结果
53
+     */
54
+    public int deleteForewarningInfoByForewarningId(Integer forewarningId);
55
+
56
+    /**
57
+     * 批量删除预警信息
58
+     * 
59
+     * @param forewarningIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteForewarningInfoByForewarningIds(Integer[] forewarningIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/OrganizationInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.OrganizationInfo;
6
+
7
+/**
8
+ * 主体信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-13
12
+ */
13
+@Mapper
14
+public interface OrganizationInfoMapper 
15
+{
16
+    /**
17
+     * 查询主体信息
18
+     * 
19
+     * @param organizationId 主体信息主键
20
+     * @return 主体信息
21
+     */
22
+    public OrganizationInfo selectOrganizationInfoByOrganizationId(Integer organizationId);
23
+
24
+    /**
25
+     * 查询主体信息列表
26
+     * 
27
+     * @param organizationInfo 主体信息
28
+     * @return 主体信息集合
29
+     */
30
+    public List<OrganizationInfo> selectOrganizationInfoList(OrganizationInfo organizationInfo);
31
+
32
+    /**
33
+     * 新增主体信息
34
+     * 
35
+     * @param organizationInfo 主体信息
36
+     * @return 结果
37
+     */
38
+    public int insertOrganizationInfo(OrganizationInfo organizationInfo);
39
+
40
+    /**
41
+     * 修改主体信息
42
+     * 
43
+     * @param organizationInfo 主体信息
44
+     * @return 结果
45
+     */
46
+    public int updateOrganizationInfo(OrganizationInfo organizationInfo);
47
+
48
+    /**
49
+     * 删除主体信息
50
+     * 
51
+     * @param organizationId 主体信息主键
52
+     * @return 结果
53
+     */
54
+    public int deleteOrganizationInfoByOrganizationId(Integer organizationId);
55
+
56
+    /**
57
+     * 批量删除主体信息
58
+     * 
59
+     * @param organizationIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteOrganizationInfoByOrganizationIds(Integer[] organizationIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/PlanInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.PlanInfo;
6
+
7
+/**
8
+ * 规划对象Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-13
12
+ */
13
+@Mapper
14
+public interface PlanInfoMapper 
15
+{
16
+    /**
17
+     * 查询规划对象
18
+     * 
19
+     * @param planId 规划对象主键
20
+     * @return 规划对象
21
+     */
22
+    public PlanInfo selectPlanInfoByPlanId(Integer planId);
23
+
24
+    /**
25
+     * 查询规划对象列表
26
+     * 
27
+     * @param planInfo 规划对象
28
+     * @return 规划对象集合
29
+     */
30
+    public List<PlanInfo> selectPlanInfoList(PlanInfo planInfo);
31
+
32
+    /**
33
+     * 新增规划对象
34
+     * 
35
+     * @param planInfo 规划对象
36
+     * @return 结果
37
+     */
38
+    public int insertPlanInfo(PlanInfo planInfo);
39
+
40
+    /**
41
+     * 修改规划对象
42
+     * 
43
+     * @param planInfo 规划对象
44
+     * @return 结果
45
+     */
46
+    public int updatePlanInfo(PlanInfo planInfo);
47
+
48
+    /**
49
+     * 删除规划对象
50
+     * 
51
+     * @param planId 规划对象主键
52
+     * @return 结果
53
+     */
54
+    public int deletePlanInfoByPlanId(Integer planId);
55
+
56
+    /**
57
+     * 批量删除规划对象
58
+     * 
59
+     * @param planIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deletePlanInfoByPlanIds(Integer[] planIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/PolicyInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.PolicyInfo;
6
+
7
+/**
8
+ * 政策信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-15
12
+ */
13
+@Mapper
14
+public interface PolicyInfoMapper 
15
+{
16
+    /**
17
+     * 查询政策信息
18
+     * 
19
+     * @param policyId 政策信息主键
20
+     * @return 政策信息
21
+     */
22
+    public PolicyInfo selectPolicyInfoByPolicyId(Integer policyId);
23
+
24
+    /**
25
+     * 查询政策信息列表
26
+     * 
27
+     * @param policyInfo 政策信息
28
+     * @return 政策信息集合
29
+     */
30
+    public List<PolicyInfo> selectPolicyInfoList(PolicyInfo policyInfo);
31
+
32
+    /**
33
+     * 新增政策信息
34
+     * 
35
+     * @param policyInfo 政策信息
36
+     * @return 结果
37
+     */
38
+    public int insertPolicyInfo(PolicyInfo policyInfo);
39
+
40
+    /**
41
+     * 修改政策信息
42
+     * 
43
+     * @param policyInfo 政策信息
44
+     * @return 结果
45
+     */
46
+    public int updatePolicyInfo(PolicyInfo policyInfo);
47
+
48
+    /**
49
+     * 删除政策信息
50
+     * 
51
+     * @param policyId 政策信息主键
52
+     * @return 结果
53
+     */
54
+    public int deletePolicyInfoByPolicyId(Integer policyId);
55
+
56
+    /**
57
+     * 批量删除政策信息
58
+     * 
59
+     * @param policyIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deletePolicyInfoByPolicyIds(Integer[] policyIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/RoomInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.RoomInfo;
6
+
7
+/**
8
+ * 房间信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-13
12
+ */
13
+@Mapper
14
+public interface RoomInfoMapper 
15
+{
16
+    /**
17
+     * 查询房间信息
18
+     * 
19
+     * @param roomId 房间信息主键
20
+     * @return 房间信息
21
+     */
22
+    public RoomInfo selectRoomInfoByRoomId(Integer roomId);
23
+
24
+    /**
25
+     * 查询房间信息列表
26
+     * 
27
+     * @param roomInfo 房间信息
28
+     * @return 房间信息集合
29
+     */
30
+    public List<RoomInfo> selectRoomInfoList(RoomInfo roomInfo);
31
+
32
+    /**
33
+     * 新增房间信息
34
+     * 
35
+     * @param roomInfo 房间信息
36
+     * @return 结果
37
+     */
38
+    public int insertRoomInfo(RoomInfo roomInfo);
39
+
40
+    /**
41
+     * 修改房间信息
42
+     * 
43
+     * @param roomInfo 房间信息
44
+     * @return 结果
45
+     */
46
+    public int updateRoomInfo(RoomInfo roomInfo);
47
+
48
+    /**
49
+     * 删除房间信息
50
+     * 
51
+     * @param roomId 房间信息主键
52
+     * @return 结果
53
+     */
54
+    public int deleteRoomInfoByRoomId(Integer roomId);
55
+
56
+    /**
57
+     * 批量删除房间信息
58
+     * 
59
+     * @param roomIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteRoomInfoByRoomIds(Integer[] roomIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/StationInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.StationInfo;
6
+
7
+/**
8
+ * 站点信息Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-14
12
+ */
13
+@Mapper
14
+public interface StationInfoMapper 
15
+{
16
+    /**
17
+     * 查询站点信息
18
+     * 
19
+     * @param stationId 站点信息主键
20
+     * @return 站点信息
21
+     */
22
+    public StationInfo selectStationInfoByStationId(Integer stationId);
23
+
24
+    /**
25
+     * 查询站点信息列表
26
+     * 
27
+     * @param stationInfo 站点信息
28
+     * @return 站点信息集合
29
+     */
30
+    public List<StationInfo> selectStationInfoList(StationInfo stationInfo);
31
+
32
+    /**
33
+     * 新增站点信息
34
+     * 
35
+     * @param stationInfo 站点信息
36
+     * @return 结果
37
+     */
38
+    public int insertStationInfo(StationInfo stationInfo);
39
+
40
+    /**
41
+     * 修改站点信息
42
+     * 
43
+     * @param stationInfo 站点信息
44
+     * @return 结果
45
+     */
46
+    public int updateStationInfo(StationInfo stationInfo);
47
+
48
+    /**
49
+     * 删除站点信息
50
+     * 
51
+     * @param stationId 站点信息主键
52
+     * @return 结果
53
+     */
54
+    public int deleteStationInfoByStationId(Integer stationId);
55
+
56
+    /**
57
+     * 批量删除站点信息
58
+     * 
59
+     * @param stationIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteStationInfoByStationIds(Integer[] stationIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/info/mapper/TrafficInfoMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.info.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.info.entity.TrafficInfo;
6
+
7
+/**
8
+ * 交通对象Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-14
12
+ */
13
+@Mapper
14
+public interface TrafficInfoMapper 
15
+{
16
+    /**
17
+     * 查询交通对象
18
+     * 
19
+     * @param trafficId 交通对象主键
20
+     * @return 交通对象
21
+     */
22
+    public TrafficInfo selectTrafficInfoByTrafficId(Integer trafficId);
23
+
24
+    /**
25
+     * 查询交通对象列表
26
+     * 
27
+     * @param trafficInfo 交通对象
28
+     * @return 交通对象集合
29
+     */
30
+    public List<TrafficInfo> selectTrafficInfoList(TrafficInfo trafficInfo);
31
+
32
+    /**
33
+     * 新增交通对象
34
+     * 
35
+     * @param trafficInfo 交通对象
36
+     * @return 结果
37
+     */
38
+    public int insertTrafficInfo(TrafficInfo trafficInfo);
39
+
40
+    /**
41
+     * 修改交通对象
42
+     * 
43
+     * @param trafficInfo 交通对象
44
+     * @return 结果
45
+     */
46
+    public int updateTrafficInfo(TrafficInfo trafficInfo);
47
+
48
+    /**
49
+     * 删除交通对象
50
+     * 
51
+     * @param trafficId 交通对象主键
52
+     * @return 结果
53
+     */
54
+    public int deleteTrafficInfoByTrafficId(Integer trafficId);
55
+
56
+    /**
57
+     * 批量删除交通对象
58
+     * 
59
+     * @param trafficIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteTrafficInfoByTrafficIds(Integer[] trafficIds);
63
+}

+ 103 - 0
src/main/java/com/lqkj/info/service/AreaInfoService.java

@@ -0,0 +1,103 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+
5
+import com.lqkj.info.mapper.AreaInfoMapper;
6
+import com.lqkj.type.service.AreaTypeService;
7
+import org.apache.commons.lang.StringEscapeUtils;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.stereotype.Service;
10
+import com.lqkj.info.entity.AreaInfo;
11
+
12
+/**
13
+ * 区域对象:area_infoService业务层处理
14
+ * 
15
+ * @author lqkj
16
+ * @date 2024-11-11
17
+ */
18
+@Service
19
+public class AreaInfoService
20
+{
21
+    @Autowired
22
+    private AreaInfoMapper areaInfoMapper;
23
+
24
+    @Autowired
25
+    private AreaTypeService areaTypeService;
26
+
27
+    /**
28
+     * 查询区域对象:area_info
29
+     * 
30
+     * @param areaId 区域对象:area_info主键
31
+     * @return 区域对象:area_info
32
+     */
33
+    
34
+    public AreaInfo selectAreaInfoByAreaId(Integer areaId)
35
+    {
36
+        return areaInfoMapper.selectAreaInfoByAreaId(areaId);
37
+    }
38
+
39
+    /**
40
+     * 查询区域对象:area_info列表
41
+     * 
42
+     * @param areaInfo 区域对象:area_info
43
+     * @return 区域对象:area_info
44
+     */
45
+    public List<AreaInfo> selectAreaInfoList(AreaInfo areaInfo)
46
+    {
47
+        List<AreaInfo> areaInfos = areaInfoMapper.selectAreaInfoList(areaInfo);
48
+        areaInfos.stream().forEach(areaInfo1 -> {
49
+            areaInfo1.setTypeName(areaTypeService.selectAreaTypeByTypeId(areaInfo1.getTypeId()).getTypeName());
50
+        });
51
+        return areaInfos;
52
+    }
53
+
54
+    /**
55
+     * 新增区域对象:area_info
56
+     * 
57
+     * @param areaInfo 区域对象:area_info
58
+     * @return 结果
59
+     */
60
+    
61
+    public int insertAreaInfo(AreaInfo areaInfo)
62
+    {
63
+        areaInfo.setLocation(StringEscapeUtils.unescapeHtml(areaInfo.getLocation().toString()));
64
+        return areaInfoMapper.insertAreaInfo(areaInfo);
65
+    }
66
+
67
+    /**
68
+     * 修改区域对象:area_info
69
+     * 
70
+     * @param areaInfo 区域对象:area_info
71
+     * @return 结果
72
+     */
73
+    
74
+    public int updateAreaInfo(AreaInfo areaInfo)
75
+    {
76
+        areaInfo.setLocation(StringEscapeUtils.unescapeHtml(areaInfo.getLocation().toString()));
77
+        return areaInfoMapper.updateAreaInfo(areaInfo);
78
+    }
79
+
80
+    /**
81
+     * 批量删除区域对象:area_info
82
+     * 
83
+     * @param areaIds 需要删除的区域对象:area_info主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteAreaInfoByAreaIds(Integer[] areaIds)
88
+    {
89
+        return areaInfoMapper.deleteAreaInfoByAreaIds(areaIds);
90
+    }
91
+
92
+    /**
93
+     * 删除区域对象:area_info信息
94
+     * 
95
+     * @param areaId 区域对象:area_info主键
96
+     * @return 结果
97
+     */
98
+    
99
+    public int deleteAreaInfoByAreaId(Integer areaId)
100
+    {
101
+        return areaInfoMapper.deleteAreaInfoByAreaId(areaId);
102
+    }
103
+}

+ 101 - 0
src/main/java/com/lqkj/info/service/BuildingInfoService.java

@@ -0,0 +1,101 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+
5
+import com.lqkj.type.service.BuildingTypeService;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.stereotype.Service;
8
+import com.lqkj.info.mapper.BuildingInfoMapper;
9
+import com.lqkj.info.entity.BuildingInfo;
10
+import com.lqkj.common.utils.uuid.IdUtils;
11
+/**
12
+ * 大楼信息Service业务层处理
13
+ * 
14
+ * @author lqkj
15
+ * @date 2024-11-12
16
+ */
17
+@Service
18
+public class BuildingInfoService
19
+{
20
+    @Autowired
21
+    private BuildingInfoMapper buildingInfoMapper;
22
+
23
+    @Autowired
24
+    private BuildingTypeService buildingTypeService;
25
+
26
+    /**
27
+     * 查询大楼信息
28
+     * 
29
+     * @param buildingId 大楼信息主键
30
+     * @return 大楼信息
31
+     */
32
+    
33
+    public BuildingInfo selectBuildingInfoByBuildingId(Integer buildingId)
34
+    {
35
+        return buildingInfoMapper.selectBuildingInfoByBuildingId(buildingId);
36
+    }
37
+
38
+    /**
39
+     * 查询大楼信息列表
40
+     * 
41
+     * @param buildingInfo 大楼信息
42
+     * @return 大楼信息
43
+     */
44
+    public List<BuildingInfo> selectBuildingInfoList(BuildingInfo buildingInfo)
45
+    {
46
+        List<BuildingInfo> buildingInfos = buildingInfoMapper.selectBuildingInfoList(buildingInfo);
47
+        buildingInfos.stream().forEach(b->{
48
+            b.setTypeName(buildingTypeService.selectBuildingTypeByTypeId(b.getTypeId()).getTypeName());
49
+        });
50
+        return buildingInfos;
51
+
52
+    }
53
+
54
+    /**
55
+     * 新增大楼信息
56
+     * 
57
+     * @param buildingInfo 大楼信息
58
+     * @return 结果
59
+     */
60
+    
61
+    public int insertBuildingInfo(BuildingInfo buildingInfo)
62
+    {
63
+        return buildingInfoMapper.insertBuildingInfo(buildingInfo);
64
+    }
65
+
66
+    /**
67
+     * 修改大楼信息
68
+     * 
69
+     * @param buildingInfo 大楼信息
70
+     * @return 结果
71
+     */
72
+    
73
+    public int updateBuildingInfo(BuildingInfo buildingInfo)
74
+    {
75
+        return buildingInfoMapper.updateBuildingInfo(buildingInfo);
76
+    }
77
+
78
+    /**
79
+     * 批量删除大楼信息
80
+     * 
81
+     * @param buildingIds 需要删除的大楼信息主键
82
+     * @return 结果
83
+     */
84
+    
85
+    public int deleteBuildingInfoByBuildingIds(Integer[] buildingIds)
86
+    {
87
+        return buildingInfoMapper.deleteBuildingInfoByBuildingIds(buildingIds);
88
+    }
89
+
90
+    /**
91
+     * 删除大楼信息信息
92
+     * 
93
+     * @param buildingId 大楼信息主键
94
+     * @return 结果
95
+     */
96
+    
97
+    public int deleteBuildingInfoByBuildingId(Integer buildingId)
98
+    {
99
+        return buildingInfoMapper.deleteBuildingInfoByBuildingId(buildingId);
100
+    }
101
+}

+ 91 - 0
src/main/java/com/lqkj/info/service/ElevatorInfoService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.info.mapper.ElevatorInfoMapper;
7
+import com.lqkj.info.entity.ElevatorInfo;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 电梯信息Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-12
14
+ */
15
+@Service
16
+public class ElevatorInfoService
17
+{
18
+    @Autowired
19
+    private ElevatorInfoMapper elevatorInfoMapper;
20
+
21
+    /**
22
+     * 查询电梯信息
23
+     * 
24
+     * @param elevatorId 电梯信息主键
25
+     * @return 电梯信息
26
+     */
27
+    
28
+    public ElevatorInfo selectElevatorInfoByElevatorId(Integer elevatorId)
29
+    {
30
+        return elevatorInfoMapper.selectElevatorInfoByElevatorId(elevatorId);
31
+    }
32
+
33
+    /**
34
+     * 查询电梯信息列表
35
+     * 
36
+     * @param elevatorInfo 电梯信息
37
+     * @return 电梯信息
38
+     */
39
+    public List<ElevatorInfo> selectElevatorInfoList(ElevatorInfo elevatorInfo)
40
+    {
41
+        return elevatorInfoMapper.selectElevatorInfoList(elevatorInfo);
42
+    }
43
+
44
+    /**
45
+     * 新增电梯信息
46
+     * 
47
+     * @param elevatorInfo 电梯信息
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertElevatorInfo(ElevatorInfo elevatorInfo)
52
+    {
53
+        return elevatorInfoMapper.insertElevatorInfo(elevatorInfo);
54
+    }
55
+
56
+    /**
57
+     * 修改电梯信息
58
+     * 
59
+     * @param elevatorInfo 电梯信息
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateElevatorInfo(ElevatorInfo elevatorInfo)
64
+    {
65
+        return elevatorInfoMapper.updateElevatorInfo(elevatorInfo);
66
+    }
67
+
68
+    /**
69
+     * 批量删除电梯信息
70
+     * 
71
+     * @param elevatorIds 需要删除的电梯信息主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteElevatorInfoByElevatorIds(Integer[] elevatorIds)
76
+    {
77
+        return elevatorInfoMapper.deleteElevatorInfoByElevatorIds(elevatorIds);
78
+    }
79
+
80
+    /**
81
+     * 删除电梯信息信息
82
+     * 
83
+     * @param elevatorId 电梯信息主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteElevatorInfoByElevatorId(Integer elevatorId)
88
+    {
89
+        return elevatorInfoMapper.deleteElevatorInfoByElevatorId(elevatorId);
90
+    }
91
+}

+ 93 - 0
src/main/java/com/lqkj/info/service/EquipmentInfoService.java

@@ -0,0 +1,93 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+
5
+import org.apache.commons.lang.StringEscapeUtils;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.stereotype.Service;
8
+import com.lqkj.info.mapper.EquipmentInfoMapper;
9
+import com.lqkj.info.entity.EquipmentInfo;
10
+import com.lqkj.common.utils.uuid.IdUtils;
11
+/**
12
+ * 设备信息Service业务层处理
13
+ * 
14
+ * @author lqkj
15
+ * @date 2024-11-12
16
+ */
17
+@Service
18
+public class EquipmentInfoService
19
+{
20
+    @Autowired
21
+    private EquipmentInfoMapper equipmentInfoMapper;
22
+
23
+    /**
24
+     * 查询设备信息
25
+     * 
26
+     * @param equipmentId 设备信息主键
27
+     * @return 设备信息
28
+     */
29
+    
30
+    public EquipmentInfo selectEquipmentInfoByEquipmentId(Integer equipmentId)
31
+    {
32
+        return equipmentInfoMapper.selectEquipmentInfoByEquipmentId(equipmentId);
33
+    }
34
+
35
+    /**
36
+     * 查询设备信息列表
37
+     * 
38
+     * @param equipmentInfo 设备信息
39
+     * @return 设备信息
40
+     */
41
+    public List<EquipmentInfo> selectEquipmentInfoList(EquipmentInfo equipmentInfo)
42
+    {
43
+        return equipmentInfoMapper.selectEquipmentInfoList(equipmentInfo);
44
+    }
45
+
46
+    /**
47
+     * 新增设备信息
48
+     * 
49
+     * @param equipmentInfo 设备信息
50
+     * @return 结果
51
+     */
52
+    
53
+    public int insertEquipmentInfo(EquipmentInfo equipmentInfo)
54
+    {
55
+        return equipmentInfoMapper.insertEquipmentInfo(equipmentInfo);
56
+    }
57
+
58
+    /**
59
+     * 修改设备信息
60
+     * 
61
+     * @param equipmentInfo 设备信息
62
+     * @return 结果
63
+     */
64
+    
65
+    public int updateEquipmentInfo(EquipmentInfo equipmentInfo)
66
+    {
67
+        return equipmentInfoMapper.updateEquipmentInfo(equipmentInfo);
68
+    }
69
+
70
+    /**
71
+     * 批量删除设备信息
72
+     * 
73
+     * @param equipmentIds 需要删除的设备信息主键
74
+     * @return 结果
75
+     */
76
+    
77
+    public int deleteEquipmentInfoByEquipmentIds(Integer[] equipmentIds)
78
+    {
79
+        return equipmentInfoMapper.deleteEquipmentInfoByEquipmentIds(equipmentIds);
80
+    }
81
+
82
+    /**
83
+     * 删除设备信息信息
84
+     * 
85
+     * @param equipmentId 设备信息主键
86
+     * @return 结果
87
+     */
88
+    
89
+    public int deleteEquipmentInfoByEquipmentId(Integer equipmentId)
90
+    {
91
+        return equipmentInfoMapper.deleteEquipmentInfoByEquipmentId(equipmentId);
92
+    }
93
+}

+ 93 - 0
src/main/java/com/lqkj/info/service/ForewarningInfoService.java

@@ -0,0 +1,93 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import java.time.LocalDateTime;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.stereotype.Service;
7
+import com.lqkj.info.mapper.ForewarningInfoMapper;
8
+import com.lqkj.info.entity.ForewarningInfo;
9
+import com.lqkj.common.utils.uuid.IdUtils;
10
+/**
11
+ * 预警信息Service业务层处理
12
+ * 
13
+ * @author lqkj
14
+ * @date 2024-11-12
15
+ */
16
+@Service
17
+public class ForewarningInfoService
18
+{
19
+    @Autowired
20
+    private ForewarningInfoMapper forewarningInfoMapper;
21
+
22
+    /**
23
+     * 查询预警信息
24
+     * 
25
+     * @param forewarningId 预警信息主键
26
+     * @return 预警信息
27
+     */
28
+    
29
+    public ForewarningInfo selectForewarningInfoByForewarningId(Integer forewarningId)
30
+    {
31
+        return forewarningInfoMapper.selectForewarningInfoByForewarningId(forewarningId);
32
+    }
33
+
34
+    /**
35
+     * 查询预警信息列表
36
+     * 
37
+     * @param forewarningInfo 预警信息
38
+     * @return 预警信息
39
+     */
40
+    public List<ForewarningInfo> selectForewarningInfoList(ForewarningInfo forewarningInfo)
41
+    {
42
+        return forewarningInfoMapper.selectForewarningInfoList(forewarningInfo);
43
+    }
44
+
45
+    /**
46
+     * 新增预警信息
47
+     * 
48
+     * @param forewarningInfo 预警信息
49
+     * @return 结果
50
+     */
51
+    
52
+    public int insertForewarningInfo(ForewarningInfo forewarningInfo)
53
+    {
54
+        forewarningInfo.setCreateTime(LocalDateTime.now());
55
+        return forewarningInfoMapper.insertForewarningInfo(forewarningInfo);
56
+    }
57
+
58
+    /**
59
+     * 修改预警信息
60
+     * 
61
+     * @param forewarningInfo 预警信息
62
+     * @return 结果
63
+     */
64
+    
65
+    public int updateForewarningInfo(ForewarningInfo forewarningInfo)
66
+    {
67
+        return forewarningInfoMapper.updateForewarningInfo(forewarningInfo);
68
+    }
69
+
70
+    /**
71
+     * 批量删除预警信息
72
+     * 
73
+     * @param forewarningIds 需要删除的预警信息主键
74
+     * @return 结果
75
+     */
76
+    
77
+    public int deleteForewarningInfoByForewarningIds(Integer[] forewarningIds)
78
+    {
79
+        return forewarningInfoMapper.deleteForewarningInfoByForewarningIds(forewarningIds);
80
+    }
81
+
82
+    /**
83
+     * 删除预警信息信息
84
+     * 
85
+     * @param forewarningId 预警信息主键
86
+     * @return 结果
87
+     */
88
+    
89
+    public int deleteForewarningInfoByForewarningId(Integer forewarningId)
90
+    {
91
+        return forewarningInfoMapper.deleteForewarningInfoByForewarningId(forewarningId);
92
+    }
93
+}

+ 91 - 0
src/main/java/com/lqkj/info/service/OrganizationInfoService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.info.mapper.OrganizationInfoMapper;
7
+import com.lqkj.info.entity.OrganizationInfo;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 主体信息Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-13
14
+ */
15
+@Service
16
+public class OrganizationInfoService
17
+{
18
+    @Autowired
19
+    private OrganizationInfoMapper organizationInfoMapper;
20
+
21
+    /**
22
+     * 查询主体信息
23
+     * 
24
+     * @param organizationId 主体信息主键
25
+     * @return 主体信息
26
+     */
27
+    
28
+    public OrganizationInfo selectOrganizationInfoByOrganizationId(Integer organizationId)
29
+    {
30
+        return organizationInfoMapper.selectOrganizationInfoByOrganizationId(organizationId);
31
+    }
32
+
33
+    /**
34
+     * 查询主体信息列表
35
+     * 
36
+     * @param organizationInfo 主体信息
37
+     * @return 主体信息
38
+     */
39
+    public List<OrganizationInfo> selectOrganizationInfoList(OrganizationInfo organizationInfo)
40
+    {
41
+        return organizationInfoMapper.selectOrganizationInfoList(organizationInfo);
42
+    }
43
+
44
+    /**
45
+     * 新增主体信息
46
+     * 
47
+     * @param organizationInfo 主体信息
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertOrganizationInfo(OrganizationInfo organizationInfo)
52
+    {
53
+        return organizationInfoMapper.insertOrganizationInfo(organizationInfo);
54
+    }
55
+
56
+    /**
57
+     * 修改主体信息
58
+     * 
59
+     * @param organizationInfo 主体信息
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateOrganizationInfo(OrganizationInfo organizationInfo)
64
+    {
65
+        return organizationInfoMapper.updateOrganizationInfo(organizationInfo);
66
+    }
67
+
68
+    /**
69
+     * 批量删除主体信息
70
+     * 
71
+     * @param organizationIds 需要删除的主体信息主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteOrganizationInfoByOrganizationIds(Integer[] organizationIds)
76
+    {
77
+        return organizationInfoMapper.deleteOrganizationInfoByOrganizationIds(organizationIds);
78
+    }
79
+
80
+    /**
81
+     * 删除主体信息信息
82
+     * 
83
+     * @param organizationId 主体信息主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteOrganizationInfoByOrganizationId(Integer organizationId)
88
+    {
89
+        return organizationInfoMapper.deleteOrganizationInfoByOrganizationId(organizationId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/info/service/PlanInfoService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.info.mapper.PlanInfoMapper;
7
+import com.lqkj.info.entity.PlanInfo;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 规划对象Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-13
14
+ */
15
+@Service
16
+public class PlanInfoService
17
+{
18
+    @Autowired
19
+    private PlanInfoMapper planInfoMapper;
20
+
21
+    /**
22
+     * 查询规划对象
23
+     * 
24
+     * @param planId 规划对象主键
25
+     * @return 规划对象
26
+     */
27
+    
28
+    public PlanInfo selectPlanInfoByPlanId(Integer planId)
29
+    {
30
+        return planInfoMapper.selectPlanInfoByPlanId(planId);
31
+    }
32
+
33
+    /**
34
+     * 查询规划对象列表
35
+     * 
36
+     * @param planInfo 规划对象
37
+     * @return 规划对象
38
+     */
39
+    public List<PlanInfo> selectPlanInfoList(PlanInfo planInfo)
40
+    {
41
+        return planInfoMapper.selectPlanInfoList(planInfo);
42
+    }
43
+
44
+    /**
45
+     * 新增规划对象
46
+     * 
47
+     * @param planInfo 规划对象
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertPlanInfo(PlanInfo planInfo)
52
+    {
53
+        return planInfoMapper.insertPlanInfo(planInfo);
54
+    }
55
+
56
+    /**
57
+     * 修改规划对象
58
+     * 
59
+     * @param planInfo 规划对象
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updatePlanInfo(PlanInfo planInfo)
64
+    {
65
+        return planInfoMapper.updatePlanInfo(planInfo);
66
+    }
67
+
68
+    /**
69
+     * 批量删除规划对象
70
+     * 
71
+     * @param planIds 需要删除的规划对象主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deletePlanInfoByPlanIds(Integer[] planIds)
76
+    {
77
+        return planInfoMapper.deletePlanInfoByPlanIds(planIds);
78
+    }
79
+
80
+    /**
81
+     * 删除规划对象信息
82
+     * 
83
+     * @param planId 规划对象主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deletePlanInfoByPlanId(Integer planId)
88
+    {
89
+        return planInfoMapper.deletePlanInfoByPlanId(planId);
90
+    }
91
+}

+ 93 - 0
src/main/java/com/lqkj/info/service/PolicyInfoService.java

@@ -0,0 +1,93 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import java.time.LocalDateTime;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.stereotype.Service;
7
+import com.lqkj.info.mapper.PolicyInfoMapper;
8
+import com.lqkj.info.entity.PolicyInfo;
9
+import com.lqkj.common.utils.uuid.IdUtils;
10
+/**
11
+ * 政策信息Service业务层处理
12
+ * 
13
+ * @author lqkj
14
+ * @date 2024-11-15
15
+ */
16
+@Service
17
+public class PolicyInfoService
18
+{
19
+    @Autowired
20
+    private PolicyInfoMapper policyInfoMapper;
21
+
22
+    /**
23
+     * 查询政策信息
24
+     * 
25
+     * @param policyId 政策信息主键
26
+     * @return 政策信息
27
+     */
28
+    
29
+    public PolicyInfo selectPolicyInfoByPolicyId(Integer policyId)
30
+    {
31
+        return policyInfoMapper.selectPolicyInfoByPolicyId(policyId);
32
+    }
33
+
34
+    /**
35
+     * 查询政策信息列表
36
+     * 
37
+     * @param policyInfo 政策信息
38
+     * @return 政策信息
39
+     */
40
+    public List<PolicyInfo> selectPolicyInfoList(PolicyInfo policyInfo)
41
+    {
42
+        return policyInfoMapper.selectPolicyInfoList(policyInfo);
43
+    }
44
+
45
+    /**
46
+     * 新增政策信息
47
+     * 
48
+     * @param policyInfo 政策信息
49
+     * @return 结果
50
+     */
51
+    
52
+    public int insertPolicyInfo(PolicyInfo policyInfo)
53
+    {
54
+        policyInfo.setCreateTime(LocalDateTime.now());
55
+        return policyInfoMapper.insertPolicyInfo(policyInfo);
56
+    }
57
+
58
+    /**
59
+     * 修改政策信息
60
+     * 
61
+     * @param policyInfo 政策信息
62
+     * @return 结果
63
+     */
64
+    
65
+    public int updatePolicyInfo(PolicyInfo policyInfo)
66
+    {
67
+        return policyInfoMapper.updatePolicyInfo(policyInfo);
68
+    }
69
+
70
+    /**
71
+     * 批量删除政策信息
72
+     * 
73
+     * @param policyIds 需要删除的政策信息主键
74
+     * @return 结果
75
+     */
76
+    
77
+    public int deletePolicyInfoByPolicyIds(Integer[] policyIds)
78
+    {
79
+        return policyInfoMapper.deletePolicyInfoByPolicyIds(policyIds);
80
+    }
81
+
82
+    /**
83
+     * 删除政策信息信息
84
+     * 
85
+     * @param policyId 政策信息主键
86
+     * @return 结果
87
+     */
88
+    
89
+    public int deletePolicyInfoByPolicyId(Integer policyId)
90
+    {
91
+        return policyInfoMapper.deletePolicyInfoByPolicyId(policyId);
92
+    }
93
+}

+ 91 - 0
src/main/java/com/lqkj/info/service/RoomInfoService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.info.mapper.RoomInfoMapper;
7
+import com.lqkj.info.entity.RoomInfo;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 房间信息Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-13
14
+ */
15
+@Service
16
+public class RoomInfoService
17
+{
18
+    @Autowired
19
+    private RoomInfoMapper roomInfoMapper;
20
+
21
+    /**
22
+     * 查询房间信息
23
+     * 
24
+     * @param roomId 房间信息主键
25
+     * @return 房间信息
26
+     */
27
+    
28
+    public RoomInfo selectRoomInfoByRoomId(Integer roomId)
29
+    {
30
+        return roomInfoMapper.selectRoomInfoByRoomId(roomId);
31
+    }
32
+
33
+    /**
34
+     * 查询房间信息列表
35
+     * 
36
+     * @param roomInfo 房间信息
37
+     * @return 房间信息
38
+     */
39
+    public List<RoomInfo> selectRoomInfoList(RoomInfo roomInfo)
40
+    {
41
+        return roomInfoMapper.selectRoomInfoList(roomInfo);
42
+    }
43
+
44
+    /**
45
+     * 新增房间信息
46
+     * 
47
+     * @param roomInfo 房间信息
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertRoomInfo(RoomInfo roomInfo)
52
+    {
53
+        return roomInfoMapper.insertRoomInfo(roomInfo);
54
+    }
55
+
56
+    /**
57
+     * 修改房间信息
58
+     * 
59
+     * @param roomInfo 房间信息
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateRoomInfo(RoomInfo roomInfo)
64
+    {
65
+        return roomInfoMapper.updateRoomInfo(roomInfo);
66
+    }
67
+
68
+    /**
69
+     * 批量删除房间信息
70
+     * 
71
+     * @param roomIds 需要删除的房间信息主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteRoomInfoByRoomIds(Integer[] roomIds)
76
+    {
77
+        return roomInfoMapper.deleteRoomInfoByRoomIds(roomIds);
78
+    }
79
+
80
+    /**
81
+     * 删除房间信息信息
82
+     * 
83
+     * @param roomId 房间信息主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteRoomInfoByRoomId(Integer roomId)
88
+    {
89
+        return roomInfoMapper.deleteRoomInfoByRoomId(roomId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/info/service/StationInfoService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.info.mapper.StationInfoMapper;
7
+import com.lqkj.info.entity.StationInfo;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 站点信息Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-14
14
+ */
15
+@Service
16
+public class StationInfoService
17
+{
18
+    @Autowired
19
+    private StationInfoMapper stationInfoMapper;
20
+
21
+    /**
22
+     * 查询站点信息
23
+     * 
24
+     * @param stationId 站点信息主键
25
+     * @return 站点信息
26
+     */
27
+    
28
+    public StationInfo selectStationInfoByStationId(Integer stationId)
29
+    {
30
+        return stationInfoMapper.selectStationInfoByStationId(stationId);
31
+    }
32
+
33
+    /**
34
+     * 查询站点信息列表
35
+     * 
36
+     * @param stationInfo 站点信息
37
+     * @return 站点信息
38
+     */
39
+    public List<StationInfo> selectStationInfoList(StationInfo stationInfo)
40
+    {
41
+        return stationInfoMapper.selectStationInfoList(stationInfo);
42
+    }
43
+
44
+    /**
45
+     * 新增站点信息
46
+     * 
47
+     * @param stationInfo 站点信息
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertStationInfo(StationInfo stationInfo)
52
+    {
53
+        return stationInfoMapper.insertStationInfo(stationInfo);
54
+    }
55
+
56
+    /**
57
+     * 修改站点信息
58
+     * 
59
+     * @param stationInfo 站点信息
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateStationInfo(StationInfo stationInfo)
64
+    {
65
+        return stationInfoMapper.updateStationInfo(stationInfo);
66
+    }
67
+
68
+    /**
69
+     * 批量删除站点信息
70
+     * 
71
+     * @param stationIds 需要删除的站点信息主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteStationInfoByStationIds(Integer[] stationIds)
76
+    {
77
+        return stationInfoMapper.deleteStationInfoByStationIds(stationIds);
78
+    }
79
+
80
+    /**
81
+     * 删除站点信息信息
82
+     * 
83
+     * @param stationId 站点信息主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteStationInfoByStationId(Integer stationId)
88
+    {
89
+        return stationInfoMapper.deleteStationInfoByStationId(stationId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/info/service/TrafficInfoService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.info.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.info.mapper.TrafficInfoMapper;
7
+import com.lqkj.info.entity.TrafficInfo;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 交通对象Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-14
14
+ */
15
+@Service
16
+public class TrafficInfoService
17
+{
18
+    @Autowired
19
+    private TrafficInfoMapper trafficInfoMapper;
20
+
21
+    /**
22
+     * 查询交通对象
23
+     * 
24
+     * @param trafficId 交通对象主键
25
+     * @return 交通对象
26
+     */
27
+    
28
+    public TrafficInfo selectTrafficInfoByTrafficId(Integer trafficId)
29
+    {
30
+        return trafficInfoMapper.selectTrafficInfoByTrafficId(trafficId);
31
+    }
32
+
33
+    /**
34
+     * 查询交通对象列表
35
+     * 
36
+     * @param trafficInfo 交通对象
37
+     * @return 交通对象
38
+     */
39
+    public List<TrafficInfo> selectTrafficInfoList(TrafficInfo trafficInfo)
40
+    {
41
+        return trafficInfoMapper.selectTrafficInfoList(trafficInfo);
42
+    }
43
+
44
+    /**
45
+     * 新增交通对象
46
+     * 
47
+     * @param trafficInfo 交通对象
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertTrafficInfo(TrafficInfo trafficInfo)
52
+    {
53
+        return trafficInfoMapper.insertTrafficInfo(trafficInfo);
54
+    }
55
+
56
+    /**
57
+     * 修改交通对象
58
+     * 
59
+     * @param trafficInfo 交通对象
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateTrafficInfo(TrafficInfo trafficInfo)
64
+    {
65
+        return trafficInfoMapper.updateTrafficInfo(trafficInfo);
66
+    }
67
+
68
+    /**
69
+     * 批量删除交通对象
70
+     * 
71
+     * @param trafficIds 需要删除的交通对象主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteTrafficInfoByTrafficIds(Integer[] trafficIds)
76
+    {
77
+        return trafficInfoMapper.deleteTrafficInfoByTrafficIds(trafficIds);
78
+    }
79
+
80
+    /**
81
+     * 删除交通对象信息
82
+     * 
83
+     * @param trafficId 交通对象主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteTrafficInfoByTrafficId(Integer trafficId)
88
+    {
89
+        return trafficInfoMapper.deleteTrafficInfoByTrafficId(trafficId);
90
+    }
91
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/AreaTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.AreaType;
21
+import com.lqkj.type.service.AreaTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 区域类型:area_typeController
27
+ *
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"区域类型:area_type"})
32
+@RestController
33
+@RequestMapping("/type/areaType")
34
+public class AreaTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private AreaTypeService areaTypeService;
38
+
39
+    /**
40
+     * 查询区域类型:area_type列表
41
+     */
42
+    @ApiOperation("查询区域类型:area_type列表")
43
+    @PreAuthorize("@ss.hasPermi('type:areaType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(AreaType areaType)
46
+    {
47
+        startPage( areaType);
48
+        PageInfo<AreaType> pageInfo = new PageInfo<>(areaTypeService.selectAreaTypeList(areaType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出区域类型:area_type列表
54
+     */
55
+    @ApiOperation("导出区域类型:area_type列表")
56
+    @PreAuthorize("@ss.hasPermi('type:areaType:export')")
57
+    @Log(title = "区域类型:area_type", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(AreaType areaType)
60
+    {
61
+        List<AreaType> list = areaTypeService.selectAreaTypeList(areaType);
62
+        ExcelUtil<AreaType> util = new ExcelUtil<AreaType>(AreaType.class);
63
+        return util.exportExcel(list, "区域类型:area_type数据");
64
+    }
65
+
66
+    /**
67
+     * 获取区域类型:area_type详细信息
68
+     */
69
+    @ApiOperation("获取区域类型:area_type详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:areaType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(areaTypeService.selectAreaTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增区域类型:area_type
79
+     */
80
+    @ApiOperation("新增区域类型:area_type")
81
+    @PreAuthorize("@ss.hasPermi('type:areaType:add')")
82
+    @Log(title = "区域类型:area_type", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody AreaType areaType)
85
+    {
86
+        return resultByRows(areaTypeService.insertAreaType(areaType));
87
+    }
88
+
89
+    /**
90
+     * 修改区域类型:area_type
91
+     */
92
+    @ApiOperation("修改区域类型:area_type")
93
+    @PreAuthorize("@ss.hasPermi('type:areaType:edit')")
94
+    @Log(title = "区域类型:area_type", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody AreaType areaType)
97
+    {
98
+        return resultByRows(areaTypeService.updateAreaType(areaType));
99
+    }
100
+
101
+    /**
102
+     * 删除区域类型:area_type
103
+     */
104
+    @ApiOperation("删除区域类型:area_type")
105
+    @PreAuthorize("@ss.hasPermi('type:areaType:remove')")
106
+    @Log(title = "区域类型:area_type", businessType = BusinessType.DELETE)
107
+    @DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(areaTypeService.deleteAreaTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/BuildingTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.BuildingType;
21
+import com.lqkj.type.service.BuildingTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 大楼类别:building_typeController
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"大楼类别:building_type"})
32
+@RestController
33
+@RequestMapping("/type/buildingType")
34
+public class BuildingTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private BuildingTypeService buildingTypeService;
38
+
39
+    /**
40
+     * 查询大楼类别:building_type列表
41
+     */
42
+    @ApiOperation("查询大楼类别:building_type列表")
43
+    @PreAuthorize("@ss.hasPermi('type:buildingType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(BuildingType buildingType)
46
+    {
47
+        startPage( buildingType);
48
+        PageInfo<BuildingType> pageInfo = new PageInfo<>(buildingTypeService.selectBuildingTypeList(buildingType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出大楼类别:building_type列表
54
+     */
55
+    @ApiOperation("导出大楼类别:building_type列表")
56
+    @PreAuthorize("@ss.hasPermi('type:buildingType:export')")
57
+    @Log(title = "大楼类别:building_type", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(BuildingType buildingType)
60
+    {
61
+        List<BuildingType> list = buildingTypeService.selectBuildingTypeList(buildingType);
62
+        ExcelUtil<BuildingType> util = new ExcelUtil<BuildingType>(BuildingType.class);
63
+        return util.exportExcel(list, "大楼类别:building_type数据");
64
+    }
65
+
66
+    /**
67
+     * 获取大楼类别:building_type详细信息
68
+     */
69
+    @ApiOperation("获取大楼类别:building_type详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:buildingType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(buildingTypeService.selectBuildingTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增大楼类别:building_type
79
+     */
80
+    @ApiOperation("新增大楼类别:building_type")
81
+    @PreAuthorize("@ss.hasPermi('type:buildingType:add')")
82
+    @Log(title = "大楼类别:building_type", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody BuildingType buildingType)
85
+    {
86
+        return resultByRows(buildingTypeService.insertBuildingType(buildingType));
87
+    }
88
+
89
+    /**
90
+     * 修改大楼类别:building_type
91
+     */
92
+    @ApiOperation("修改大楼类别:building_type")
93
+    @PreAuthorize("@ss.hasPermi('type:buildingType:edit')")
94
+    @Log(title = "大楼类别:building_type", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody BuildingType buildingType)
97
+    {
98
+        return resultByRows(buildingTypeService.updateBuildingType(buildingType));
99
+    }
100
+
101
+    /**
102
+     * 删除大楼类别:building_type
103
+     */
104
+    @ApiOperation("删除大楼类别:building_type")
105
+    @PreAuthorize("@ss.hasPermi('type:buildingType:remove')")
106
+    @Log(title = "大楼类别:building_type", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(buildingTypeService.deleteBuildingTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/EquipmentTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.EquipmentType;
21
+import com.lqkj.type.service.EquipmentTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 设备类型:equipment_typeController
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"设备类型:equipment_type"})
32
+@RestController
33
+@RequestMapping("/type/equipmentType")
34
+public class EquipmentTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private EquipmentTypeService equipmentTypeService;
38
+
39
+    /**
40
+     * 查询设备类型:equipment_type列表
41
+     */
42
+    @ApiOperation("查询设备类型:equipment_type列表")
43
+    @PreAuthorize("@ss.hasPermi('type:equipmentType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(EquipmentType equipmentType)
46
+    {
47
+        startPage( equipmentType);
48
+        PageInfo<EquipmentType> pageInfo = new PageInfo<>(equipmentTypeService.selectEquipmentTypeList(equipmentType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出设备类型:equipment_type列表
54
+     */
55
+    @ApiOperation("导出设备类型:equipment_type列表")
56
+    @PreAuthorize("@ss.hasPermi('type:equipmentType:export')")
57
+    @Log(title = "设备类型:equipment_type", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(EquipmentType equipmentType)
60
+    {
61
+        List<EquipmentType> list = equipmentTypeService.selectEquipmentTypeList(equipmentType);
62
+        ExcelUtil<EquipmentType> util = new ExcelUtil<EquipmentType>(EquipmentType.class);
63
+        return util.exportExcel(list, "设备类型:equipment_type数据");
64
+    }
65
+
66
+    /**
67
+     * 获取设备类型:equipment_type详细信息
68
+     */
69
+    @ApiOperation("获取设备类型:equipment_type详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:equipmentType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(equipmentTypeService.selectEquipmentTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增设备类型:equipment_type
79
+     */
80
+    @ApiOperation("新增设备类型:equipment_type")
81
+    @PreAuthorize("@ss.hasPermi('type:equipmentType:add')")
82
+    @Log(title = "设备类型:equipment_type", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody EquipmentType equipmentType)
85
+    {
86
+        return resultByRows(equipmentTypeService.insertEquipmentType(equipmentType));
87
+    }
88
+
89
+    /**
90
+     * 修改设备类型:equipment_type
91
+     */
92
+    @ApiOperation("修改设备类型:equipment_type")
93
+    @PreAuthorize("@ss.hasPermi('type:equipmentType:edit')")
94
+    @Log(title = "设备类型:equipment_type", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody EquipmentType equipmentType)
97
+    {
98
+        return resultByRows(equipmentTypeService.updateEquipmentType(equipmentType));
99
+    }
100
+
101
+    /**
102
+     * 删除设备类型:equipment_type
103
+     */
104
+    @ApiOperation("删除设备类型:equipment_type")
105
+    @PreAuthorize("@ss.hasPermi('type:equipmentType:remove')")
106
+    @Log(title = "设备类型:equipment_type", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(equipmentTypeService.deleteEquipmentTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/HouseTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.HouseType;
21
+import com.lqkj.type.service.HouseTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 户型信息:house_typeController
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"户型信息:house_type"})
32
+@RestController
33
+@RequestMapping("/type/houseType")
34
+public class HouseTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private HouseTypeService houseTypeService;
38
+
39
+    /**
40
+     * 查询户型信息:house_type列表
41
+     */
42
+    @ApiOperation("查询户型信息:house_type列表")
43
+    @PreAuthorize("@ss.hasPermi('type:houseType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(HouseType houseType)
46
+    {
47
+        startPage( houseType);
48
+        PageInfo<HouseType> pageInfo = new PageInfo<>(houseTypeService.selectHouseTypeList(houseType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出户型信息:house_type列表
54
+     */
55
+    @ApiOperation("导出户型信息:house_type列表")
56
+    @PreAuthorize("@ss.hasPermi('type:houseType:export')")
57
+    @Log(title = "户型信息:house_type", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(HouseType houseType)
60
+    {
61
+        List<HouseType> list = houseTypeService.selectHouseTypeList(houseType);
62
+        ExcelUtil<HouseType> util = new ExcelUtil<HouseType>(HouseType.class);
63
+        return util.exportExcel(list, "户型信息:house_type数据");
64
+    }
65
+
66
+    /**
67
+     * 获取户型信息:house_type详细信息
68
+     */
69
+    @ApiOperation("获取户型信息:house_type详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:houseType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(houseTypeService.selectHouseTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增户型信息:house_type
79
+     */
80
+    @ApiOperation("新增户型信息:house_type")
81
+    @PreAuthorize("@ss.hasPermi('type:houseType:add')")
82
+    @Log(title = "户型信息:house_type", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody HouseType houseType)
85
+    {
86
+        return resultByRows(houseTypeService.insertHouseType(houseType));
87
+    }
88
+
89
+    /**
90
+     * 修改户型信息:house_type
91
+     */
92
+    @ApiOperation("修改户型信息:house_type")
93
+    @PreAuthorize("@ss.hasPermi('type:houseType:edit')")
94
+    @Log(title = "户型信息:house_type", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody HouseType houseType)
97
+    {
98
+        return resultByRows(houseTypeService.updateHouseType(houseType));
99
+    }
100
+
101
+    /**
102
+     * 删除户型信息:house_type
103
+     */
104
+    @ApiOperation("删除户型信息:house_type")
105
+    @PreAuthorize("@ss.hasPermi('type:houseType:remove')")
106
+    @Log(title = "户型信息:house_type", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(houseTypeService.deleteHouseTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/OrganizationTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.OrganizationType;
21
+import com.lqkj.type.service.OrganizationTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 主体类型Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"主体类型"})
32
+@RestController
33
+@RequestMapping("/type/organizationType")
34
+public class OrganizationTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private OrganizationTypeService organizationTypeService;
38
+
39
+    /**
40
+     * 查询主体类型列表
41
+     */
42
+    @ApiOperation("查询主体类型列表")
43
+    @PreAuthorize("@ss.hasPermi('type:organizationType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(OrganizationType organizationType)
46
+    {
47
+        startPage( organizationType);
48
+        PageInfo<OrganizationType> pageInfo = new PageInfo<>(organizationTypeService.selectOrganizationTypeList(organizationType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出主体类型列表
54
+     */
55
+    @ApiOperation("导出主体类型列表")
56
+    @PreAuthorize("@ss.hasPermi('type:organizationType:export')")
57
+    @Log(title = "主体类型", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(OrganizationType organizationType)
60
+    {
61
+        List<OrganizationType> list = organizationTypeService.selectOrganizationTypeList(organizationType);
62
+        ExcelUtil<OrganizationType> util = new ExcelUtil<OrganizationType>(OrganizationType.class);
63
+        return util.exportExcel(list, "主体类型数据");
64
+    }
65
+
66
+    /**
67
+     * 获取主体类型详细信息
68
+     */
69
+    @ApiOperation("获取主体类型详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:organizationType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(organizationTypeService.selectOrganizationTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增主体类型
79
+     */
80
+    @ApiOperation("新增主体类型")
81
+    @PreAuthorize("@ss.hasPermi('type:organizationType:add')")
82
+    @Log(title = "主体类型", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody OrganizationType organizationType)
85
+    {
86
+        return resultByRows(organizationTypeService.insertOrganizationType(organizationType));
87
+    }
88
+
89
+    /**
90
+     * 修改主体类型
91
+     */
92
+    @ApiOperation("修改主体类型")
93
+    @PreAuthorize("@ss.hasPermi('type:organizationType:edit')")
94
+    @Log(title = "主体类型", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody OrganizationType organizationType)
97
+    {
98
+        return resultByRows(organizationTypeService.updateOrganizationType(organizationType));
99
+    }
100
+
101
+    /**
102
+     * 删除主体类型
103
+     */
104
+    @ApiOperation("删除主体类型")
105
+    @PreAuthorize("@ss.hasPermi('type:organizationType:remove')")
106
+    @Log(title = "主体类型", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(organizationTypeService.deleteOrganizationTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/PlanTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.PlanType;
21
+import com.lqkj.type.service.PlanTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 规划类型Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"规划类型"})
32
+@RestController
33
+@RequestMapping("/type/planType")
34
+public class PlanTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private PlanTypeService planTypeService;
38
+
39
+    /**
40
+     * 查询规划类型列表
41
+     */
42
+    @ApiOperation("查询规划类型列表")
43
+    @PreAuthorize("@ss.hasPermi('type:planType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(PlanType planType)
46
+    {
47
+        startPage( planType);
48
+        PageInfo<PlanType> pageInfo = new PageInfo<>(planTypeService.selectPlanTypeList(planType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出规划类型列表
54
+     */
55
+    @ApiOperation("导出规划类型列表")
56
+    @PreAuthorize("@ss.hasPermi('type:planType:export')")
57
+    @Log(title = "规划类型", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(PlanType planType)
60
+    {
61
+        List<PlanType> list = planTypeService.selectPlanTypeList(planType);
62
+        ExcelUtil<PlanType> util = new ExcelUtil<PlanType>(PlanType.class);
63
+        return util.exportExcel(list, "规划类型数据");
64
+    }
65
+
66
+    /**
67
+     * 获取规划类型详细信息
68
+     */
69
+    @ApiOperation("获取规划类型详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:planType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(planTypeService.selectPlanTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增规划类型
79
+     */
80
+    @ApiOperation("新增规划类型")
81
+    @PreAuthorize("@ss.hasPermi('type:planType:add')")
82
+    @Log(title = "规划类型", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody PlanType planType)
85
+    {
86
+        return resultByRows(planTypeService.insertPlanType(planType));
87
+    }
88
+
89
+    /**
90
+     * 修改规划类型
91
+     */
92
+    @ApiOperation("修改规划类型")
93
+    @PreAuthorize("@ss.hasPermi('type:planType:edit')")
94
+    @Log(title = "规划类型", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody PlanType planType)
97
+    {
98
+        return resultByRows(planTypeService.updatePlanType(planType));
99
+    }
100
+
101
+    /**
102
+     * 删除规划类型
103
+     */
104
+    @ApiOperation("删除规划类型")
105
+    @PreAuthorize("@ss.hasPermi('type:planType:remove')")
106
+    @Log(title = "规划类型", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(planTypeService.deletePlanTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/RoomTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.RoomType;
21
+import com.lqkj.type.service.RoomTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 房间类别Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"房间类别"})
32
+@RestController
33
+@RequestMapping("/type/roomType")
34
+public class RoomTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private RoomTypeService roomTypeService;
38
+
39
+    /**
40
+     * 查询房间类别列表
41
+     */
42
+    @ApiOperation("查询房间类别列表")
43
+    @PreAuthorize("@ss.hasPermi('type:roomType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(RoomType roomType)
46
+    {
47
+        startPage( roomType);
48
+        PageInfo<RoomType> pageInfo = new PageInfo<>(roomTypeService.selectRoomTypeList(roomType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出房间类别列表
54
+     */
55
+    @ApiOperation("导出房间类别列表")
56
+    @PreAuthorize("@ss.hasPermi('type:roomType:export')")
57
+    @Log(title = "房间类别", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(RoomType roomType)
60
+    {
61
+        List<RoomType> list = roomTypeService.selectRoomTypeList(roomType);
62
+        ExcelUtil<RoomType> util = new ExcelUtil<RoomType>(RoomType.class);
63
+        return util.exportExcel(list, "房间类别数据");
64
+    }
65
+
66
+    /**
67
+     * 获取房间类别详细信息
68
+     */
69
+    @ApiOperation("获取房间类别详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:roomType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(roomTypeService.selectRoomTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增房间类别
79
+     */
80
+    @ApiOperation("新增房间类别")
81
+    @PreAuthorize("@ss.hasPermi('type:roomType:add')")
82
+    @Log(title = "房间类别", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody RoomType roomType)
85
+    {
86
+        return resultByRows(roomTypeService.insertRoomType(roomType));
87
+    }
88
+
89
+    /**
90
+     * 修改房间类别
91
+     */
92
+    @ApiOperation("修改房间类别")
93
+    @PreAuthorize("@ss.hasPermi('type:roomType:edit')")
94
+    @Log(title = "房间类别", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody RoomType roomType)
97
+    {
98
+        return resultByRows(roomTypeService.updateRoomType(roomType));
99
+    }
100
+
101
+    /**
102
+     * 删除房间类别
103
+     */
104
+    @ApiOperation("删除房间类别")
105
+    @PreAuthorize("@ss.hasPermi('type:roomType:remove')")
106
+    @Log(title = "房间类别", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(roomTypeService.deleteRoomTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 112 - 0
src/main/java/com/lqkj/type/controller/TrafficTypeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.type.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.type.entity.TrafficType;
21
+import com.lqkj.type.service.TrafficTypeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 交通类型Controller
27
+ *
28
+ * @author lqkj
29
+ * @date 2024-11-11
30
+ */
31
+@Api(tags = {"交通类型"})
32
+@RestController
33
+@RequestMapping("/type/trafficType")
34
+public class TrafficTypeController extends BaseController
35
+{
36
+    @Autowired
37
+    private TrafficTypeService trafficTypeService;
38
+
39
+    /**
40
+     * 查询交通类型列表
41
+     */
42
+    @ApiOperation("查询交通类型列表")
43
+    @PreAuthorize("@ss.hasPermi('type:trafficType:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(TrafficType trafficType)
46
+    {
47
+        startPage( trafficType);
48
+        PageInfo<TrafficType> pageInfo = new PageInfo<>(trafficTypeService.selectTrafficTypeList(trafficType));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出交通类型列表
54
+     */
55
+    @ApiOperation("导出交通类型列表")
56
+    @PreAuthorize("@ss.hasPermi('type:trafficType:export')")
57
+    @Log(title = "交通类型", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(TrafficType trafficType)
60
+    {
61
+        List<TrafficType> list = trafficTypeService.selectTrafficTypeList(trafficType);
62
+        ExcelUtil<TrafficType> util = new ExcelUtil<TrafficType>(TrafficType.class);
63
+        return util.exportExcel(list, "交通类型数据");
64
+    }
65
+
66
+    /**
67
+     * 获取交通类型详细信息
68
+     */
69
+    @ApiOperation("获取交通类型详细信息")
70
+    @PreAuthorize("@ss.hasPermi('type:trafficType:query')")
71
+    @GetMapping(value = "/{typeId}")
72
+    public ResultUtil getInfo(@PathVariable("typeId") Integer typeId)
73
+    {
74
+        return ResultUtil.success(trafficTypeService.selectTrafficTypeByTypeId(typeId));
75
+    }
76
+
77
+    /**
78
+     * 新增交通类型
79
+     */
80
+    @ApiOperation("新增交通类型")
81
+    @PreAuthorize("@ss.hasPermi('type:trafficType:add')")
82
+    @Log(title = "交通类型", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody TrafficType trafficType)
85
+    {
86
+        return resultByRows(trafficTypeService.insertTrafficType(trafficType));
87
+    }
88
+
89
+    /**
90
+     * 修改交通类型
91
+     */
92
+    @ApiOperation("修改交通类型")
93
+    @PreAuthorize("@ss.hasPermi('type:trafficType:edit')")
94
+    @Log(title = "交通类型", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody TrafficType trafficType)
97
+    {
98
+        return resultByRows(trafficTypeService.updateTrafficType(trafficType));
99
+    }
100
+
101
+    /**
102
+     * 删除交通类型
103
+     */
104
+    @ApiOperation("删除交通类型")
105
+    @PreAuthorize("@ss.hasPermi('type:trafficType:remove')")
106
+    @Log(title = "交通类型", businessType = BusinessType.DELETE)
107
+    @DeleteMapping("/{typeIds}")
108
+    public ResultUtil remove(@PathVariable Integer[] typeIds)
109
+    {
110
+        return resultByRows(trafficTypeService.deleteTrafficTypeByTypeIds(typeIds));
111
+    }
112
+}

+ 145 - 0
src/main/java/com/lqkj/type/entity/AreaType.java

@@ -0,0 +1,145 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 区域类型:area_type对象 area_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class AreaType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 类别id:type_id */
19
+    private Integer typeId;
20
+
21
+    /** 父类型编号:parent_id */
22
+    private Integer parentId;
23
+
24
+    /** 类别名称:type_name */
25
+    @Excel(name = "类别名称:type_name")
26
+    private String typeName;
27
+
28
+    /** 是否可点击:click */
29
+    @Excel(name = "是否可点击:click")
30
+    private Boolean click;
31
+
32
+    /** 是否可搜索:search */
33
+    @Excel(name = "是否可搜索:search")
34
+    private Boolean search;
35
+
36
+    /** 类别描述:description */
37
+    private String description;
38
+
39
+    /** 排序:order_id */
40
+    private Integer orderId;
41
+
42
+    /** 备注:memo */
43
+    private String memo;
44
+
45
+    /** 颜色:colour */
46
+    @Excel(name = "颜色:colour")
47
+    private String colour;
48
+
49
+    public void setTypeId(Integer typeId) 
50
+    {
51
+        this.typeId = typeId;
52
+    }
53
+
54
+    public Integer getTypeId() 
55
+    {
56
+        return typeId;
57
+    }
58
+    public void setParentId(Integer parentId) 
59
+    {
60
+        this.parentId = parentId;
61
+    }
62
+
63
+    public Integer getParentId() 
64
+    {
65
+        return parentId;
66
+    }
67
+    public void setTypeName(String typeName) 
68
+    {
69
+        this.typeName = typeName;
70
+    }
71
+
72
+    public String getTypeName() 
73
+    {
74
+        return typeName;
75
+    }
76
+    public void setClick(Boolean click) 
77
+    {
78
+        this.click = click;
79
+    }
80
+
81
+    public Boolean getClick() 
82
+    {
83
+        return click;
84
+    }
85
+    public void setSearch(Boolean search) 
86
+    {
87
+        this.search = search;
88
+    }
89
+
90
+    public Boolean getSearch() 
91
+    {
92
+        return search;
93
+    }
94
+    public void setDescription(String description) 
95
+    {
96
+        this.description = description;
97
+    }
98
+
99
+    public String getDescription() 
100
+    {
101
+        return description;
102
+    }
103
+    public void setOrderId(Integer orderId) 
104
+    {
105
+        this.orderId = orderId;
106
+    }
107
+
108
+    public Integer getOrderId() 
109
+    {
110
+        return orderId;
111
+    }
112
+    public void setMemo(String memo) 
113
+    {
114
+        this.memo = memo;
115
+    }
116
+
117
+    public String getMemo() 
118
+    {
119
+        return memo;
120
+    }
121
+    public void setColour(String colour) 
122
+    {
123
+        this.colour = colour;
124
+    }
125
+
126
+    public String getColour() 
127
+    {
128
+        return colour;
129
+    }
130
+
131
+    @Override
132
+    public String toString() {
133
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
134
+            .append("typeId", getTypeId())
135
+            .append("parentId", getParentId())
136
+            .append("typeName", getTypeName())
137
+            .append("click", getClick())
138
+            .append("search", getSearch())
139
+            .append("description", getDescription())
140
+            .append("orderId", getOrderId())
141
+            .append("memo", getMemo())
142
+            .append("colour", getColour())
143
+            .toString();
144
+    }
145
+}

+ 131 - 0
src/main/java/com/lqkj/type/entity/BuildingType.java

@@ -0,0 +1,131 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 大楼类别:building_type对象 building_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class BuildingType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 类别编号 */
19
+    private Integer typeId;
20
+
21
+    /** 父类型编号 */
22
+    private Integer parentId;
23
+
24
+    /** Col类别名称 */
25
+    @Excel(name = "Col类别名称")
26
+    private String typeName;
27
+
28
+    /** 是否可点击 */
29
+    @Excel(name = "是否可点击")
30
+    private Boolean click;
31
+
32
+    /** 是否可搜索 */
33
+    @Excel(name = "是否可搜索")
34
+    private Boolean search;
35
+
36
+    /** 类别描述 */
37
+    private String description;
38
+
39
+    /** 排序 */
40
+    private Integer orderId;
41
+
42
+    /** 备注 */
43
+    private String memo;
44
+
45
+    public void setTypeId(Integer typeId) 
46
+    {
47
+        this.typeId = typeId;
48
+    }
49
+
50
+    public Integer getTypeId() 
51
+    {
52
+        return typeId;
53
+    }
54
+    public void setParentId(Integer parentId) 
55
+    {
56
+        this.parentId = parentId;
57
+    }
58
+
59
+    public Integer getParentId() 
60
+    {
61
+        return parentId;
62
+    }
63
+    public void setTypeName(String typeName) 
64
+    {
65
+        this.typeName = typeName;
66
+    }
67
+
68
+    public String getTypeName() 
69
+    {
70
+        return typeName;
71
+    }
72
+    public void setClick(Boolean click) 
73
+    {
74
+        this.click = click;
75
+    }
76
+
77
+    public Boolean getClick() 
78
+    {
79
+        return click;
80
+    }
81
+    public void setSearch(Boolean search) 
82
+    {
83
+        this.search = search;
84
+    }
85
+
86
+    public Boolean getSearch() 
87
+    {
88
+        return search;
89
+    }
90
+    public void setDescription(String description) 
91
+    {
92
+        this.description = description;
93
+    }
94
+
95
+    public String getDescription() 
96
+    {
97
+        return description;
98
+    }
99
+    public void setOrderId(Integer orderId) 
100
+    {
101
+        this.orderId = orderId;
102
+    }
103
+
104
+    public Integer getOrderId() 
105
+    {
106
+        return orderId;
107
+    }
108
+    public void setMemo(String memo) 
109
+    {
110
+        this.memo = memo;
111
+    }
112
+
113
+    public String getMemo() 
114
+    {
115
+        return memo;
116
+    }
117
+
118
+    @Override
119
+    public String toString() {
120
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
121
+            .append("typeId", getTypeId())
122
+            .append("parentId", getParentId())
123
+            .append("typeName", getTypeName())
124
+            .append("click", getClick())
125
+            .append("search", getSearch())
126
+            .append("description", getDescription())
127
+            .append("orderId", getOrderId())
128
+            .append("memo", getMemo())
129
+            .toString();
130
+    }
131
+}

+ 145 - 0
src/main/java/com/lqkj/type/entity/EquipmentType.java

@@ -0,0 +1,145 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 设备类型:equipment_type对象 equipment_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class EquipmentType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 类别id */
19
+    private Integer typeId;
20
+
21
+    /** 父类型编号 */
22
+    private Integer parentId;
23
+
24
+    /** 类别名称 */
25
+    @Excel(name = "类别名称")
26
+    private String typeName;
27
+
28
+    /** 是否可点击 */
29
+    @Excel(name = "是否可点击")
30
+    private Boolean click;
31
+
32
+    /** 是否可搜索 */
33
+    @Excel(name = "是否可搜索")
34
+    private Boolean search;
35
+
36
+    /** 类别描述 */
37
+    private String description;
38
+
39
+    /** 排序 */
40
+    private Integer orderId;
41
+
42
+    /** 备注 */
43
+    private String memo;
44
+
45
+    /** 颜色 */
46
+    @Excel(name = "颜色")
47
+    private String colour;
48
+
49
+    public void setTypeId(Integer typeId) 
50
+    {
51
+        this.typeId = typeId;
52
+    }
53
+
54
+    public Integer getTypeId() 
55
+    {
56
+        return typeId;
57
+    }
58
+    public void setParentId(Integer parentId) 
59
+    {
60
+        this.parentId = parentId;
61
+    }
62
+
63
+    public Integer getParentId() 
64
+    {
65
+        return parentId;
66
+    }
67
+    public void setTypeName(String typeName) 
68
+    {
69
+        this.typeName = typeName;
70
+    }
71
+
72
+    public String getTypeName() 
73
+    {
74
+        return typeName;
75
+    }
76
+    public void setClick(Boolean click) 
77
+    {
78
+        this.click = click;
79
+    }
80
+
81
+    public Boolean getClick() 
82
+    {
83
+        return click;
84
+    }
85
+    public void setSearch(Boolean search) 
86
+    {
87
+        this.search = search;
88
+    }
89
+
90
+    public Boolean getSearch() 
91
+    {
92
+        return search;
93
+    }
94
+    public void setDescription(String description) 
95
+    {
96
+        this.description = description;
97
+    }
98
+
99
+    public String getDescription() 
100
+    {
101
+        return description;
102
+    }
103
+    public void setOrderId(Integer orderId) 
104
+    {
105
+        this.orderId = orderId;
106
+    }
107
+
108
+    public Integer getOrderId() 
109
+    {
110
+        return orderId;
111
+    }
112
+    public void setMemo(String memo) 
113
+    {
114
+        this.memo = memo;
115
+    }
116
+
117
+    public String getMemo() 
118
+    {
119
+        return memo;
120
+    }
121
+    public void setColour(String colour) 
122
+    {
123
+        this.colour = colour;
124
+    }
125
+
126
+    public String getColour() 
127
+    {
128
+        return colour;
129
+    }
130
+
131
+    @Override
132
+    public String toString() {
133
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
134
+            .append("typeId", getTypeId())
135
+            .append("parentId", getParentId())
136
+            .append("typeName", getTypeName())
137
+            .append("click", getClick())
138
+            .append("search", getSearch())
139
+            .append("description", getDescription())
140
+            .append("orderId", getOrderId())
141
+            .append("memo", getMemo())
142
+            .append("colour", getColour())
143
+            .toString();
144
+    }
145
+}

+ 78 - 0
src/main/java/com/lqkj/type/entity/HouseType.java

@@ -0,0 +1,78 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 户型信息:house_type对象 house_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class HouseType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 户型id */
19
+    private Integer typeId;
20
+
21
+    /** 户型名 */
22
+    @Excel(name = "户型名")
23
+    private String typeName;
24
+
25
+    /** 户型图地址 */
26
+    @Excel(name = "户型图地址")
27
+    private String url;
28
+
29
+    /** 备注 */
30
+    private String memo;
31
+
32
+    public void setTypeId(Integer typeId) 
33
+    {
34
+        this.typeId = typeId;
35
+    }
36
+
37
+    public Integer getTypeId() 
38
+    {
39
+        return typeId;
40
+    }
41
+    public void setTypeName(String typeName) 
42
+    {
43
+        this.typeName = typeName;
44
+    }
45
+
46
+    public String getTypeName() 
47
+    {
48
+        return typeName;
49
+    }
50
+    public void setUrl(String url) 
51
+    {
52
+        this.url = url;
53
+    }
54
+
55
+    public String getUrl() 
56
+    {
57
+        return url;
58
+    }
59
+    public void setMemo(String memo) 
60
+    {
61
+        this.memo = memo;
62
+    }
63
+
64
+    public String getMemo() 
65
+    {
66
+        return memo;
67
+    }
68
+
69
+    @Override
70
+    public String toString() {
71
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
72
+            .append("typeId", getTypeId())
73
+            .append("typeName", getTypeName())
74
+            .append("url", getUrl())
75
+            .append("memo", getMemo())
76
+            .toString();
77
+    }
78
+}

+ 145 - 0
src/main/java/com/lqkj/type/entity/OrganizationType.java

@@ -0,0 +1,145 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 主体类型对象 organization_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class OrganizationType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 类别id */
19
+    private Integer typeId;
20
+
21
+    /** 父类型编 */
22
+    private Integer parentId;
23
+
24
+    /** 类别名称 */
25
+    @Excel(name = "类别名称")
26
+    private String typeName;
27
+
28
+    /** 是否可点击 */
29
+    @Excel(name = "是否可点击")
30
+    private Boolean click;
31
+
32
+    /** 是否可搜索 */
33
+    @Excel(name = "是否可搜索")
34
+    private Boolean search;
35
+
36
+    /** 类别描述 */
37
+    private String description;
38
+
39
+    /** 排序 */
40
+    private Integer orderId;
41
+
42
+    /** 备注 */
43
+    private String memo;
44
+
45
+    /** 颜色 */
46
+    @Excel(name = "颜色")
47
+    private String colour;
48
+
49
+    public void setTypeId(Integer typeId) 
50
+    {
51
+        this.typeId = typeId;
52
+    }
53
+
54
+    public Integer getTypeId() 
55
+    {
56
+        return typeId;
57
+    }
58
+    public void setParentId(Integer parentId) 
59
+    {
60
+        this.parentId = parentId;
61
+    }
62
+
63
+    public Integer getParentId() 
64
+    {
65
+        return parentId;
66
+    }
67
+    public void setTypeName(String typeName) 
68
+    {
69
+        this.typeName = typeName;
70
+    }
71
+
72
+    public String getTypeName() 
73
+    {
74
+        return typeName;
75
+    }
76
+    public void setClick(Boolean click) 
77
+    {
78
+        this.click = click;
79
+    }
80
+
81
+    public Boolean getClick() 
82
+    {
83
+        return click;
84
+    }
85
+    public void setSearch(Boolean search) 
86
+    {
87
+        this.search = search;
88
+    }
89
+
90
+    public Boolean getSearch() 
91
+    {
92
+        return search;
93
+    }
94
+    public void setDescription(String description) 
95
+    {
96
+        this.description = description;
97
+    }
98
+
99
+    public String getDescription() 
100
+    {
101
+        return description;
102
+    }
103
+    public void setOrderId(Integer orderId) 
104
+    {
105
+        this.orderId = orderId;
106
+    }
107
+
108
+    public Integer getOrderId() 
109
+    {
110
+        return orderId;
111
+    }
112
+    public void setMemo(String memo) 
113
+    {
114
+        this.memo = memo;
115
+    }
116
+
117
+    public String getMemo() 
118
+    {
119
+        return memo;
120
+    }
121
+    public void setColour(String colour) 
122
+    {
123
+        this.colour = colour;
124
+    }
125
+
126
+    public String getColour() 
127
+    {
128
+        return colour;
129
+    }
130
+
131
+    @Override
132
+    public String toString() {
133
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
134
+            .append("typeId", getTypeId())
135
+            .append("parentId", getParentId())
136
+            .append("typeName", getTypeName())
137
+            .append("click", getClick())
138
+            .append("search", getSearch())
139
+            .append("description", getDescription())
140
+            .append("orderId", getOrderId())
141
+            .append("memo", getMemo())
142
+            .append("colour", getColour())
143
+            .toString();
144
+    }
145
+}

+ 145 - 0
src/main/java/com/lqkj/type/entity/PlanType.java

@@ -0,0 +1,145 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 规划类型对象 plan_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class PlanType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 类别id */
19
+    private Integer typeId;
20
+
21
+    /** 父类型编号 */
22
+    private Integer parentId;
23
+
24
+    /** 类别名称 */
25
+    @Excel(name = "类别名称")
26
+    private String typeName;
27
+
28
+    /** 是否可点击 */
29
+    @Excel(name = "是否可点击")
30
+    private Boolean click;
31
+
32
+    /** 是否可搜索 */
33
+    @Excel(name = "是否可搜索")
34
+    private Boolean search;
35
+
36
+    /** 类别描述 */
37
+    private String description;
38
+
39
+    /** 排序 */
40
+    private Integer orderId;
41
+
42
+    /** 备注 */
43
+    private String memo;
44
+
45
+    /** 颜色 */
46
+    @Excel(name = "颜色")
47
+    private String colour;
48
+
49
+    public void setTypeId(Integer typeId) 
50
+    {
51
+        this.typeId = typeId;
52
+    }
53
+
54
+    public Integer getTypeId() 
55
+    {
56
+        return typeId;
57
+    }
58
+    public void setParentId(Integer parentId) 
59
+    {
60
+        this.parentId = parentId;
61
+    }
62
+
63
+    public Integer getParentId() 
64
+    {
65
+        return parentId;
66
+    }
67
+    public void setTypeName(String typeName) 
68
+    {
69
+        this.typeName = typeName;
70
+    }
71
+
72
+    public String getTypeName() 
73
+    {
74
+        return typeName;
75
+    }
76
+    public void setClick(Boolean click) 
77
+    {
78
+        this.click = click;
79
+    }
80
+
81
+    public Boolean getClick() 
82
+    {
83
+        return click;
84
+    }
85
+    public void setSearch(Boolean search) 
86
+    {
87
+        this.search = search;
88
+    }
89
+
90
+    public Boolean getSearch() 
91
+    {
92
+        return search;
93
+    }
94
+    public void setDescription(String description) 
95
+    {
96
+        this.description = description;
97
+    }
98
+
99
+    public String getDescription() 
100
+    {
101
+        return description;
102
+    }
103
+    public void setOrderId(Integer orderId) 
104
+    {
105
+        this.orderId = orderId;
106
+    }
107
+
108
+    public Integer getOrderId() 
109
+    {
110
+        return orderId;
111
+    }
112
+    public void setMemo(String memo) 
113
+    {
114
+        this.memo = memo;
115
+    }
116
+
117
+    public String getMemo() 
118
+    {
119
+        return memo;
120
+    }
121
+    public void setColour(String colour) 
122
+    {
123
+        this.colour = colour;
124
+    }
125
+
126
+    public String getColour() 
127
+    {
128
+        return colour;
129
+    }
130
+
131
+    @Override
132
+    public String toString() {
133
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
134
+            .append("typeId", getTypeId())
135
+            .append("parentId", getParentId())
136
+            .append("typeName", getTypeName())
137
+            .append("click", getClick())
138
+            .append("search", getSearch())
139
+            .append("description", getDescription())
140
+            .append("orderId", getOrderId())
141
+            .append("memo", getMemo())
142
+            .append("colour", getColour())
143
+            .toString();
144
+    }
145
+}

+ 131 - 0
src/main/java/com/lqkj/type/entity/RoomType.java

@@ -0,0 +1,131 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 房间类别对象 room_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class RoomType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 类别编号 */
19
+    private Integer typeId;
20
+
21
+    /** 父类型编号 */
22
+    private Integer parentId;
23
+
24
+    /** 类别名称 */
25
+    @Excel(name = "类别名称")
26
+    private String typeName;
27
+
28
+    /** 是否可点击 */
29
+    @Excel(name = "是否可点击")
30
+    private Boolean click;
31
+
32
+    /** 是否可搜索 */
33
+    @Excel(name = "是否可搜索")
34
+    private Boolean search;
35
+
36
+    /** 类别描述 */
37
+    private String description;
38
+
39
+    /** 排序 */
40
+    private Integer orderId;
41
+
42
+    /** 备注 */
43
+    private String memo;
44
+
45
+    public void setTypeId(Integer typeId) 
46
+    {
47
+        this.typeId = typeId;
48
+    }
49
+
50
+    public Integer getTypeId() 
51
+    {
52
+        return typeId;
53
+    }
54
+    public void setParentId(Integer parentId) 
55
+    {
56
+        this.parentId = parentId;
57
+    }
58
+
59
+    public Integer getParentId() 
60
+    {
61
+        return parentId;
62
+    }
63
+    public void setTypeName(String typeName) 
64
+    {
65
+        this.typeName = typeName;
66
+    }
67
+
68
+    public String getTypeName() 
69
+    {
70
+        return typeName;
71
+    }
72
+    public void setClick(Boolean click) 
73
+    {
74
+        this.click = click;
75
+    }
76
+
77
+    public Boolean getClick() 
78
+    {
79
+        return click;
80
+    }
81
+    public void setSearch(Boolean search) 
82
+    {
83
+        this.search = search;
84
+    }
85
+
86
+    public Boolean getSearch() 
87
+    {
88
+        return search;
89
+    }
90
+    public void setDescription(String description) 
91
+    {
92
+        this.description = description;
93
+    }
94
+
95
+    public String getDescription() 
96
+    {
97
+        return description;
98
+    }
99
+    public void setOrderId(Integer orderId) 
100
+    {
101
+        this.orderId = orderId;
102
+    }
103
+
104
+    public Integer getOrderId() 
105
+    {
106
+        return orderId;
107
+    }
108
+    public void setMemo(String memo) 
109
+    {
110
+        this.memo = memo;
111
+    }
112
+
113
+    public String getMemo() 
114
+    {
115
+        return memo;
116
+    }
117
+
118
+    @Override
119
+    public String toString() {
120
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
121
+            .append("typeId", getTypeId())
122
+            .append("parentId", getParentId())
123
+            .append("typeName", getTypeName())
124
+            .append("click", getClick())
125
+            .append("search", getSearch())
126
+            .append("description", getDescription())
127
+            .append("orderId", getOrderId())
128
+            .append("memo", getMemo())
129
+            .toString();
130
+    }
131
+}

+ 145 - 0
src/main/java/com/lqkj/type/entity/TrafficType.java

@@ -0,0 +1,145 @@
1
+package com.lqkj.type.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 交通类型对象 traffic_type
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-11
13
+ */
14
+public class TrafficType extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 类别编号 */
19
+    private Integer typeId;
20
+
21
+    /** 父类型编号 */
22
+    private Integer parentId;
23
+
24
+    /** 类别名称 */
25
+    @Excel(name = "类别名称")
26
+    private String typeName;
27
+
28
+    /** 是否可点击 */
29
+    @Excel(name = "是否可点击")
30
+    private Boolean click;
31
+
32
+    /** 是否可搜索 */
33
+    @Excel(name = "是否可搜索")
34
+    private Boolean search;
35
+
36
+    /** 类别描述 */
37
+    private String description;
38
+
39
+    /** 排序 */
40
+    private Integer orderId;
41
+
42
+    /** 备注 */
43
+    private String memo;
44
+
45
+    /** 颜色 */
46
+    @Excel(name = "颜色")
47
+    private String colour;
48
+
49
+    public void setTypeId(Integer typeId) 
50
+    {
51
+        this.typeId = typeId;
52
+    }
53
+
54
+    public Integer getTypeId() 
55
+    {
56
+        return typeId;
57
+    }
58
+    public void setParentId(Integer parentId) 
59
+    {
60
+        this.parentId = parentId;
61
+    }
62
+
63
+    public Integer getParentId() 
64
+    {
65
+        return parentId;
66
+    }
67
+    public void setTypeName(String typeName) 
68
+    {
69
+        this.typeName = typeName;
70
+    }
71
+
72
+    public String getTypeName() 
73
+    {
74
+        return typeName;
75
+    }
76
+    public void setClick(Boolean click) 
77
+    {
78
+        this.click = click;
79
+    }
80
+
81
+    public Boolean getClick() 
82
+    {
83
+        return click;
84
+    }
85
+    public void setSearch(Boolean search) 
86
+    {
87
+        this.search = search;
88
+    }
89
+
90
+    public Boolean getSearch() 
91
+    {
92
+        return search;
93
+    }
94
+    public void setDescription(String description) 
95
+    {
96
+        this.description = description;
97
+    }
98
+
99
+    public String getDescription() 
100
+    {
101
+        return description;
102
+    }
103
+    public void setOrderId(Integer orderId) 
104
+    {
105
+        this.orderId = orderId;
106
+    }
107
+
108
+    public Integer getOrderId() 
109
+    {
110
+        return orderId;
111
+    }
112
+    public void setMemo(String memo) 
113
+    {
114
+        this.memo = memo;
115
+    }
116
+
117
+    public String getMemo() 
118
+    {
119
+        return memo;
120
+    }
121
+    public void setColour(String colour) 
122
+    {
123
+        this.colour = colour;
124
+    }
125
+
126
+    public String getColour() 
127
+    {
128
+        return colour;
129
+    }
130
+
131
+    @Override
132
+    public String toString() {
133
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
134
+            .append("typeId", getTypeId())
135
+            .append("parentId", getParentId())
136
+            .append("typeName", getTypeName())
137
+            .append("click", getClick())
138
+            .append("search", getSearch())
139
+            .append("description", getDescription())
140
+            .append("orderId", getOrderId())
141
+            .append("memo", getMemo())
142
+            .append("colour", getColour())
143
+            .toString();
144
+    }
145
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/AreaTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.AreaType;
6
+
7
+/**
8
+ * 区域类型:area_typeMapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface AreaTypeMapper 
15
+{
16
+    /**
17
+     * 查询区域类型:area_type
18
+     * 
19
+     * @param typeId 区域类型:area_type主键
20
+     * @return 区域类型:area_type
21
+     */
22
+    public AreaType selectAreaTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询区域类型:area_type列表
26
+     * 
27
+     * @param areaType 区域类型:area_type
28
+     * @return 区域类型:area_type集合
29
+     */
30
+    public List<AreaType> selectAreaTypeList(AreaType areaType);
31
+
32
+    /**
33
+     * 新增区域类型:area_type
34
+     * 
35
+     * @param areaType 区域类型:area_type
36
+     * @return 结果
37
+     */
38
+    public int insertAreaType(AreaType areaType);
39
+
40
+    /**
41
+     * 修改区域类型:area_type
42
+     * 
43
+     * @param areaType 区域类型:area_type
44
+     * @return 结果
45
+     */
46
+    public int updateAreaType(AreaType areaType);
47
+
48
+    /**
49
+     * 删除区域类型:area_type
50
+     * 
51
+     * @param typeId 区域类型:area_type主键
52
+     * @return 结果
53
+     */
54
+    public int deleteAreaTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除区域类型:area_type
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteAreaTypeByTypeIds(Integer[] typeIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/BuildingTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.BuildingType;
6
+
7
+/**
8
+ * 大楼类别:building_typeMapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface BuildingTypeMapper 
15
+{
16
+    /**
17
+     * 查询大楼类别:building_type
18
+     * 
19
+     * @param typeId 大楼类别:building_type主键
20
+     * @return 大楼类别:building_type
21
+     */
22
+    public BuildingType selectBuildingTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询大楼类别:building_type列表
26
+     * 
27
+     * @param buildingType 大楼类别:building_type
28
+     * @return 大楼类别:building_type集合
29
+     */
30
+    public List<BuildingType> selectBuildingTypeList(BuildingType buildingType);
31
+
32
+    /**
33
+     * 新增大楼类别:building_type
34
+     * 
35
+     * @param buildingType 大楼类别:building_type
36
+     * @return 结果
37
+     */
38
+    public int insertBuildingType(BuildingType buildingType);
39
+
40
+    /**
41
+     * 修改大楼类别:building_type
42
+     * 
43
+     * @param buildingType 大楼类别:building_type
44
+     * @return 结果
45
+     */
46
+    public int updateBuildingType(BuildingType buildingType);
47
+
48
+    /**
49
+     * 删除大楼类别:building_type
50
+     * 
51
+     * @param typeId 大楼类别:building_type主键
52
+     * @return 结果
53
+     */
54
+    public int deleteBuildingTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除大楼类别:building_type
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteBuildingTypeByTypeIds(Integer[] typeIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/EquipmentTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.EquipmentType;
6
+
7
+/**
8
+ * 设备类型:equipment_typeMapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface EquipmentTypeMapper 
15
+{
16
+    /**
17
+     * 查询设备类型:equipment_type
18
+     * 
19
+     * @param typeId 设备类型:equipment_type主键
20
+     * @return 设备类型:equipment_type
21
+     */
22
+    public EquipmentType selectEquipmentTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询设备类型:equipment_type列表
26
+     * 
27
+     * @param equipmentType 设备类型:equipment_type
28
+     * @return 设备类型:equipment_type集合
29
+     */
30
+    public List<EquipmentType> selectEquipmentTypeList(EquipmentType equipmentType);
31
+
32
+    /**
33
+     * 新增设备类型:equipment_type
34
+     * 
35
+     * @param equipmentType 设备类型:equipment_type
36
+     * @return 结果
37
+     */
38
+    public int insertEquipmentType(EquipmentType equipmentType);
39
+
40
+    /**
41
+     * 修改设备类型:equipment_type
42
+     * 
43
+     * @param equipmentType 设备类型:equipment_type
44
+     * @return 结果
45
+     */
46
+    public int updateEquipmentType(EquipmentType equipmentType);
47
+
48
+    /**
49
+     * 删除设备类型:equipment_type
50
+     * 
51
+     * @param typeId 设备类型:equipment_type主键
52
+     * @return 结果
53
+     */
54
+    public int deleteEquipmentTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除设备类型:equipment_type
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteEquipmentTypeByTypeIds(Integer[] typeIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/HouseTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.HouseType;
6
+
7
+/**
8
+ * 户型信息:house_typeMapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface HouseTypeMapper 
15
+{
16
+    /**
17
+     * 查询户型信息:house_type
18
+     * 
19
+     * @param typeId 户型信息:house_type主键
20
+     * @return 户型信息:house_type
21
+     */
22
+    public HouseType selectHouseTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询户型信息:house_type列表
26
+     * 
27
+     * @param houseType 户型信息:house_type
28
+     * @return 户型信息:house_type集合
29
+     */
30
+    public List<HouseType> selectHouseTypeList(HouseType houseType);
31
+
32
+    /**
33
+     * 新增户型信息:house_type
34
+     * 
35
+     * @param houseType 户型信息:house_type
36
+     * @return 结果
37
+     */
38
+    public int insertHouseType(HouseType houseType);
39
+
40
+    /**
41
+     * 修改户型信息:house_type
42
+     * 
43
+     * @param houseType 户型信息:house_type
44
+     * @return 结果
45
+     */
46
+    public int updateHouseType(HouseType houseType);
47
+
48
+    /**
49
+     * 删除户型信息:house_type
50
+     * 
51
+     * @param typeId 户型信息:house_type主键
52
+     * @return 结果
53
+     */
54
+    public int deleteHouseTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除户型信息:house_type
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteHouseTypeByTypeIds(Integer[] typeIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/OrganizationTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.OrganizationType;
6
+
7
+/**
8
+ * 主体类型Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface OrganizationTypeMapper 
15
+{
16
+    /**
17
+     * 查询主体类型
18
+     * 
19
+     * @param typeId 主体类型主键
20
+     * @return 主体类型
21
+     */
22
+    public OrganizationType selectOrganizationTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询主体类型列表
26
+     * 
27
+     * @param organizationType 主体类型
28
+     * @return 主体类型集合
29
+     */
30
+    public List<OrganizationType> selectOrganizationTypeList(OrganizationType organizationType);
31
+
32
+    /**
33
+     * 新增主体类型
34
+     * 
35
+     * @param organizationType 主体类型
36
+     * @return 结果
37
+     */
38
+    public int insertOrganizationType(OrganizationType organizationType);
39
+
40
+    /**
41
+     * 修改主体类型
42
+     * 
43
+     * @param organizationType 主体类型
44
+     * @return 结果
45
+     */
46
+    public int updateOrganizationType(OrganizationType organizationType);
47
+
48
+    /**
49
+     * 删除主体类型
50
+     * 
51
+     * @param typeId 主体类型主键
52
+     * @return 结果
53
+     */
54
+    public int deleteOrganizationTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除主体类型
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteOrganizationTypeByTypeIds(Integer[] typeIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/PlanTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.PlanType;
6
+
7
+/**
8
+ * 规划类型Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface PlanTypeMapper 
15
+{
16
+    /**
17
+     * 查询规划类型
18
+     * 
19
+     * @param typeId 规划类型主键
20
+     * @return 规划类型
21
+     */
22
+    public PlanType selectPlanTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询规划类型列表
26
+     * 
27
+     * @param planType 规划类型
28
+     * @return 规划类型集合
29
+     */
30
+    public List<PlanType> selectPlanTypeList(PlanType planType);
31
+
32
+    /**
33
+     * 新增规划类型
34
+     * 
35
+     * @param planType 规划类型
36
+     * @return 结果
37
+     */
38
+    public int insertPlanType(PlanType planType);
39
+
40
+    /**
41
+     * 修改规划类型
42
+     * 
43
+     * @param planType 规划类型
44
+     * @return 结果
45
+     */
46
+    public int updatePlanType(PlanType planType);
47
+
48
+    /**
49
+     * 删除规划类型
50
+     * 
51
+     * @param typeId 规划类型主键
52
+     * @return 结果
53
+     */
54
+    public int deletePlanTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除规划类型
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deletePlanTypeByTypeIds(Integer[] typeIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/RoomTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.RoomType;
6
+
7
+/**
8
+ * 房间类别Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface RoomTypeMapper 
15
+{
16
+    /**
17
+     * 查询房间类别
18
+     * 
19
+     * @param typeId 房间类别主键
20
+     * @return 房间类别
21
+     */
22
+    public RoomType selectRoomTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询房间类别列表
26
+     * 
27
+     * @param roomType 房间类别
28
+     * @return 房间类别集合
29
+     */
30
+    public List<RoomType> selectRoomTypeList(RoomType roomType);
31
+
32
+    /**
33
+     * 新增房间类别
34
+     * 
35
+     * @param roomType 房间类别
36
+     * @return 结果
37
+     */
38
+    public int insertRoomType(RoomType roomType);
39
+
40
+    /**
41
+     * 修改房间类别
42
+     * 
43
+     * @param roomType 房间类别
44
+     * @return 结果
45
+     */
46
+    public int updateRoomType(RoomType roomType);
47
+
48
+    /**
49
+     * 删除房间类别
50
+     * 
51
+     * @param typeId 房间类别主键
52
+     * @return 结果
53
+     */
54
+    public int deleteRoomTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除房间类别
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteRoomTypeByTypeIds(Integer[] typeIds);
63
+}

+ 63 - 0
src/main/java/com/lqkj/type/mapper/TrafficTypeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.type.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.type.entity.TrafficType;
6
+
7
+/**
8
+ * 交通类型Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-11
12
+ */
13
+@Mapper
14
+public interface TrafficTypeMapper 
15
+{
16
+    /**
17
+     * 查询交通类型
18
+     * 
19
+     * @param typeId 交通类型主键
20
+     * @return 交通类型
21
+     */
22
+    public TrafficType selectTrafficTypeByTypeId(Integer typeId);
23
+
24
+    /**
25
+     * 查询交通类型列表
26
+     * 
27
+     * @param trafficType 交通类型
28
+     * @return 交通类型集合
29
+     */
30
+    public List<TrafficType> selectTrafficTypeList(TrafficType trafficType);
31
+
32
+    /**
33
+     * 新增交通类型
34
+     * 
35
+     * @param trafficType 交通类型
36
+     * @return 结果
37
+     */
38
+    public int insertTrafficType(TrafficType trafficType);
39
+
40
+    /**
41
+     * 修改交通类型
42
+     * 
43
+     * @param trafficType 交通类型
44
+     * @return 结果
45
+     */
46
+    public int updateTrafficType(TrafficType trafficType);
47
+
48
+    /**
49
+     * 删除交通类型
50
+     * 
51
+     * @param typeId 交通类型主键
52
+     * @return 结果
53
+     */
54
+    public int deleteTrafficTypeByTypeId(Integer typeId);
55
+
56
+    /**
57
+     * 批量删除交通类型
58
+     * 
59
+     * @param typeIds 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteTrafficTypeByTypeIds(Integer[] typeIds);
63
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/AreaTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.AreaTypeMapper;
7
+import com.lqkj.type.entity.AreaType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 区域类型:area_typeService业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class AreaTypeService
17
+{
18
+    @Autowired
19
+    private AreaTypeMapper areaTypeMapper;
20
+
21
+    /**
22
+     * 查询区域类型:area_type
23
+     * 
24
+     * @param typeId 区域类型:area_type主键
25
+     * @return 区域类型:area_type
26
+     */
27
+    
28
+    public AreaType selectAreaTypeByTypeId(Integer typeId)
29
+    {
30
+        return areaTypeMapper.selectAreaTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询区域类型:area_type列表
35
+     * 
36
+     * @param areaType 区域类型:area_type
37
+     * @return 区域类型:area_type
38
+     */
39
+    public List<AreaType> selectAreaTypeList(AreaType areaType)
40
+    {
41
+        return areaTypeMapper.selectAreaTypeList(areaType);
42
+    }
43
+
44
+    /**
45
+     * 新增区域类型:area_type
46
+     * 
47
+     * @param areaType 区域类型:area_type
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertAreaType(AreaType areaType)
52
+    {
53
+        return areaTypeMapper.insertAreaType(areaType);
54
+    }
55
+
56
+    /**
57
+     * 修改区域类型:area_type
58
+     * 
59
+     * @param areaType 区域类型:area_type
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateAreaType(AreaType areaType)
64
+    {
65
+        return areaTypeMapper.updateAreaType(areaType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除区域类型:area_type
70
+     * 
71
+     * @param typeIds 需要删除的区域类型:area_type主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteAreaTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return areaTypeMapper.deleteAreaTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除区域类型:area_type信息
82
+     * 
83
+     * @param typeId 区域类型:area_type主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteAreaTypeByTypeId(Integer typeId)
88
+    {
89
+        return areaTypeMapper.deleteAreaTypeByTypeId(typeId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/BuildingTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.BuildingTypeMapper;
7
+import com.lqkj.type.entity.BuildingType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 大楼类别:building_typeService业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class BuildingTypeService
17
+{
18
+    @Autowired
19
+    private BuildingTypeMapper buildingTypeMapper;
20
+
21
+    /**
22
+     * 查询大楼类别:building_type
23
+     * 
24
+     * @param typeId 大楼类别:building_type主键
25
+     * @return 大楼类别:building_type
26
+     */
27
+    
28
+    public BuildingType selectBuildingTypeByTypeId(Integer typeId)
29
+    {
30
+        return buildingTypeMapper.selectBuildingTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询大楼类别:building_type列表
35
+     * 
36
+     * @param buildingType 大楼类别:building_type
37
+     * @return 大楼类别:building_type
38
+     */
39
+    public List<BuildingType> selectBuildingTypeList(BuildingType buildingType)
40
+    {
41
+        return buildingTypeMapper.selectBuildingTypeList(buildingType);
42
+    }
43
+
44
+    /**
45
+     * 新增大楼类别:building_type
46
+     * 
47
+     * @param buildingType 大楼类别:building_type
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertBuildingType(BuildingType buildingType)
52
+    {
53
+        return buildingTypeMapper.insertBuildingType(buildingType);
54
+    }
55
+
56
+    /**
57
+     * 修改大楼类别:building_type
58
+     * 
59
+     * @param buildingType 大楼类别:building_type
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateBuildingType(BuildingType buildingType)
64
+    {
65
+        return buildingTypeMapper.updateBuildingType(buildingType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除大楼类别:building_type
70
+     * 
71
+     * @param typeIds 需要删除的大楼类别:building_type主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteBuildingTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return buildingTypeMapper.deleteBuildingTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除大楼类别:building_type信息
82
+     * 
83
+     * @param typeId 大楼类别:building_type主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteBuildingTypeByTypeId(Integer typeId)
88
+    {
89
+        return buildingTypeMapper.deleteBuildingTypeByTypeId(typeId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/EquipmentTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.EquipmentTypeMapper;
7
+import com.lqkj.type.entity.EquipmentType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 设备类型:equipment_typeService业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class EquipmentTypeService
17
+{
18
+    @Autowired
19
+    private EquipmentTypeMapper equipmentTypeMapper;
20
+
21
+    /**
22
+     * 查询设备类型:equipment_type
23
+     * 
24
+     * @param typeId 设备类型:equipment_type主键
25
+     * @return 设备类型:equipment_type
26
+     */
27
+    
28
+    public EquipmentType selectEquipmentTypeByTypeId(Integer typeId)
29
+    {
30
+        return equipmentTypeMapper.selectEquipmentTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询设备类型:equipment_type列表
35
+     * 
36
+     * @param equipmentType 设备类型:equipment_type
37
+     * @return 设备类型:equipment_type
38
+     */
39
+    public List<EquipmentType> selectEquipmentTypeList(EquipmentType equipmentType)
40
+    {
41
+        return equipmentTypeMapper.selectEquipmentTypeList(equipmentType);
42
+    }
43
+
44
+    /**
45
+     * 新增设备类型:equipment_type
46
+     * 
47
+     * @param equipmentType 设备类型:equipment_type
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertEquipmentType(EquipmentType equipmentType)
52
+    {
53
+        return equipmentTypeMapper.insertEquipmentType(equipmentType);
54
+    }
55
+
56
+    /**
57
+     * 修改设备类型:equipment_type
58
+     * 
59
+     * @param equipmentType 设备类型:equipment_type
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateEquipmentType(EquipmentType equipmentType)
64
+    {
65
+        return equipmentTypeMapper.updateEquipmentType(equipmentType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除设备类型:equipment_type
70
+     * 
71
+     * @param typeIds 需要删除的设备类型:equipment_type主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteEquipmentTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return equipmentTypeMapper.deleteEquipmentTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除设备类型:equipment_type信息
82
+     * 
83
+     * @param typeId 设备类型:equipment_type主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteEquipmentTypeByTypeId(Integer typeId)
88
+    {
89
+        return equipmentTypeMapper.deleteEquipmentTypeByTypeId(typeId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/HouseTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.HouseTypeMapper;
7
+import com.lqkj.type.entity.HouseType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 户型信息:house_typeService业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class HouseTypeService
17
+{
18
+    @Autowired
19
+    private HouseTypeMapper houseTypeMapper;
20
+
21
+    /**
22
+     * 查询户型信息:house_type
23
+     * 
24
+     * @param typeId 户型信息:house_type主键
25
+     * @return 户型信息:house_type
26
+     */
27
+    
28
+    public HouseType selectHouseTypeByTypeId(Integer typeId)
29
+    {
30
+        return houseTypeMapper.selectHouseTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询户型信息:house_type列表
35
+     * 
36
+     * @param houseType 户型信息:house_type
37
+     * @return 户型信息:house_type
38
+     */
39
+    public List<HouseType> selectHouseTypeList(HouseType houseType)
40
+    {
41
+        return houseTypeMapper.selectHouseTypeList(houseType);
42
+    }
43
+
44
+    /**
45
+     * 新增户型信息:house_type
46
+     * 
47
+     * @param houseType 户型信息:house_type
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertHouseType(HouseType houseType)
52
+    {
53
+        return houseTypeMapper.insertHouseType(houseType);
54
+    }
55
+
56
+    /**
57
+     * 修改户型信息:house_type
58
+     * 
59
+     * @param houseType 户型信息:house_type
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateHouseType(HouseType houseType)
64
+    {
65
+        return houseTypeMapper.updateHouseType(houseType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除户型信息:house_type
70
+     * 
71
+     * @param typeIds 需要删除的户型信息:house_type主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteHouseTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return houseTypeMapper.deleteHouseTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除户型信息:house_type信息
82
+     * 
83
+     * @param typeId 户型信息:house_type主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteHouseTypeByTypeId(Integer typeId)
88
+    {
89
+        return houseTypeMapper.deleteHouseTypeByTypeId(typeId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/OrganizationTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.OrganizationTypeMapper;
7
+import com.lqkj.type.entity.OrganizationType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 主体类型Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class OrganizationTypeService
17
+{
18
+    @Autowired
19
+    private OrganizationTypeMapper organizationTypeMapper;
20
+
21
+    /**
22
+     * 查询主体类型
23
+     * 
24
+     * @param typeId 主体类型主键
25
+     * @return 主体类型
26
+     */
27
+    
28
+    public OrganizationType selectOrganizationTypeByTypeId(Integer typeId)
29
+    {
30
+        return organizationTypeMapper.selectOrganizationTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询主体类型列表
35
+     * 
36
+     * @param organizationType 主体类型
37
+     * @return 主体类型
38
+     */
39
+    public List<OrganizationType> selectOrganizationTypeList(OrganizationType organizationType)
40
+    {
41
+        return organizationTypeMapper.selectOrganizationTypeList(organizationType);
42
+    }
43
+
44
+    /**
45
+     * 新增主体类型
46
+     * 
47
+     * @param organizationType 主体类型
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertOrganizationType(OrganizationType organizationType)
52
+    {
53
+        return organizationTypeMapper.insertOrganizationType(organizationType);
54
+    }
55
+
56
+    /**
57
+     * 修改主体类型
58
+     * 
59
+     * @param organizationType 主体类型
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateOrganizationType(OrganizationType organizationType)
64
+    {
65
+        return organizationTypeMapper.updateOrganizationType(organizationType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除主体类型
70
+     * 
71
+     * @param typeIds 需要删除的主体类型主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteOrganizationTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return organizationTypeMapper.deleteOrganizationTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除主体类型信息
82
+     * 
83
+     * @param typeId 主体类型主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteOrganizationTypeByTypeId(Integer typeId)
88
+    {
89
+        return organizationTypeMapper.deleteOrganizationTypeByTypeId(typeId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/PlanTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.PlanTypeMapper;
7
+import com.lqkj.type.entity.PlanType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 规划类型Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class PlanTypeService
17
+{
18
+    @Autowired
19
+    private PlanTypeMapper planTypeMapper;
20
+
21
+    /**
22
+     * 查询规划类型
23
+     * 
24
+     * @param typeId 规划类型主键
25
+     * @return 规划类型
26
+     */
27
+    
28
+    public PlanType selectPlanTypeByTypeId(Integer typeId)
29
+    {
30
+        return planTypeMapper.selectPlanTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询规划类型列表
35
+     * 
36
+     * @param planType 规划类型
37
+     * @return 规划类型
38
+     */
39
+    public List<PlanType> selectPlanTypeList(PlanType planType)
40
+    {
41
+        return planTypeMapper.selectPlanTypeList(planType);
42
+    }
43
+
44
+    /**
45
+     * 新增规划类型
46
+     * 
47
+     * @param planType 规划类型
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertPlanType(PlanType planType)
52
+    {
53
+        return planTypeMapper.insertPlanType(planType);
54
+    }
55
+
56
+    /**
57
+     * 修改规划类型
58
+     * 
59
+     * @param planType 规划类型
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updatePlanType(PlanType planType)
64
+    {
65
+        return planTypeMapper.updatePlanType(planType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除规划类型
70
+     * 
71
+     * @param typeIds 需要删除的规划类型主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deletePlanTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return planTypeMapper.deletePlanTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除规划类型信息
82
+     * 
83
+     * @param typeId 规划类型主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deletePlanTypeByTypeId(Integer typeId)
88
+    {
89
+        return planTypeMapper.deletePlanTypeByTypeId(typeId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/RoomTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.RoomTypeMapper;
7
+import com.lqkj.type.entity.RoomType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 房间类别Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class RoomTypeService
17
+{
18
+    @Autowired
19
+    private RoomTypeMapper roomTypeMapper;
20
+
21
+    /**
22
+     * 查询房间类别
23
+     * 
24
+     * @param typeId 房间类别主键
25
+     * @return 房间类别
26
+     */
27
+    
28
+    public RoomType selectRoomTypeByTypeId(Integer typeId)
29
+    {
30
+        return roomTypeMapper.selectRoomTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询房间类别列表
35
+     * 
36
+     * @param roomType 房间类别
37
+     * @return 房间类别
38
+     */
39
+    public List<RoomType> selectRoomTypeList(RoomType roomType)
40
+    {
41
+        return roomTypeMapper.selectRoomTypeList(roomType);
42
+    }
43
+
44
+    /**
45
+     * 新增房间类别
46
+     * 
47
+     * @param roomType 房间类别
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertRoomType(RoomType roomType)
52
+    {
53
+        return roomTypeMapper.insertRoomType(roomType);
54
+    }
55
+
56
+    /**
57
+     * 修改房间类别
58
+     * 
59
+     * @param roomType 房间类别
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateRoomType(RoomType roomType)
64
+    {
65
+        return roomTypeMapper.updateRoomType(roomType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除房间类别
70
+     * 
71
+     * @param typeIds 需要删除的房间类别主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteRoomTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return roomTypeMapper.deleteRoomTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除房间类别信息
82
+     * 
83
+     * @param typeId 房间类别主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteRoomTypeByTypeId(Integer typeId)
88
+    {
89
+        return roomTypeMapper.deleteRoomTypeByTypeId(typeId);
90
+    }
91
+}

+ 91 - 0
src/main/java/com/lqkj/type/service/TrafficTypeService.java

@@ -0,0 +1,91 @@
1
+package com.lqkj.type.service;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.lqkj.type.mapper.TrafficTypeMapper;
7
+import com.lqkj.type.entity.TrafficType;
8
+import com.lqkj.common.utils.uuid.IdUtils;
9
+/**
10
+ * 交通类型Service业务层处理
11
+ * 
12
+ * @author lqkj
13
+ * @date 2024-11-11
14
+ */
15
+@Service
16
+public class TrafficTypeService
17
+{
18
+    @Autowired
19
+    private TrafficTypeMapper trafficTypeMapper;
20
+
21
+    /**
22
+     * 查询交通类型
23
+     * 
24
+     * @param typeId 交通类型主键
25
+     * @return 交通类型
26
+     */
27
+    
28
+    public TrafficType selectTrafficTypeByTypeId(Integer typeId)
29
+    {
30
+        return trafficTypeMapper.selectTrafficTypeByTypeId(typeId);
31
+    }
32
+
33
+    /**
34
+     * 查询交通类型列表
35
+     * 
36
+     * @param trafficType 交通类型
37
+     * @return 交通类型
38
+     */
39
+    public List<TrafficType> selectTrafficTypeList(TrafficType trafficType)
40
+    {
41
+        return trafficTypeMapper.selectTrafficTypeList(trafficType);
42
+    }
43
+
44
+    /**
45
+     * 新增交通类型
46
+     * 
47
+     * @param trafficType 交通类型
48
+     * @return 结果
49
+     */
50
+    
51
+    public int insertTrafficType(TrafficType trafficType)
52
+    {
53
+        return trafficTypeMapper.insertTrafficType(trafficType);
54
+    }
55
+
56
+    /**
57
+     * 修改交通类型
58
+     * 
59
+     * @param trafficType 交通类型
60
+     * @return 结果
61
+     */
62
+    
63
+    public int updateTrafficType(TrafficType trafficType)
64
+    {
65
+        return trafficTypeMapper.updateTrafficType(trafficType);
66
+    }
67
+
68
+    /**
69
+     * 批量删除交通类型
70
+     * 
71
+     * @param typeIds 需要删除的交通类型主键
72
+     * @return 结果
73
+     */
74
+    
75
+    public int deleteTrafficTypeByTypeIds(Integer[] typeIds)
76
+    {
77
+        return trafficTypeMapper.deleteTrafficTypeByTypeIds(typeIds);
78
+    }
79
+
80
+    /**
81
+     * 删除交通类型信息
82
+     * 
83
+     * @param typeId 交通类型主键
84
+     * @return 结果
85
+     */
86
+    
87
+    public int deleteTrafficTypeByTypeId(Integer typeId)
88
+    {
89
+        return trafficTypeMapper.deleteTrafficTypeByTypeId(typeId);
90
+    }
91
+}

+ 112 - 0
src/main/java/com/lqkj/view/controller/SynthesisAnalyzeController.java

@@ -0,0 +1,112 @@
1
+package com.lqkj.view.controller;
2
+
3
+import java.util.List;
4
+import org.springframework.security.access.prepost.PreAuthorize;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.lqkj.common.annotation.Log;
15
+import com.lqkj.common.core.controller.BaseController;
16
+import com.lqkj.common.core.model.ResultUtil;
17
+import com.lqkj.common.enums.BusinessType;
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiOperation;
20
+import com.lqkj.view.entity.SynthesisAnalyze;
21
+import com.lqkj.view.service.SynthesisAnalyzeService;
22
+import com.lqkj.common.utils.poi.ExcelUtil;
23
+import com.github.pagehelper.PageInfo;
24
+
25
+/**
26
+ * 综合分析Controller
27
+ * 
28
+ * @author lqkj
29
+ * @date 2024-11-18
30
+ */
31
+@Api(tags = {"综合分析"})
32
+@RestController
33
+@RequestMapping("/view/synthesisAnalyze")
34
+public class SynthesisAnalyzeController extends BaseController
35
+{
36
+    @Autowired
37
+    private SynthesisAnalyzeService synthesisAnalyzeService;
38
+
39
+    /**
40
+     * 查询综合分析列表
41
+     */
42
+    @ApiOperation("查询综合分析列表")
43
+    @PreAuthorize("@ss.hasPermi('view:synthesisAnalyze:list')")
44
+    @GetMapping("/list")
45
+    public ResultUtil list(SynthesisAnalyze synthesisAnalyze)
46
+    {
47
+        startPage( synthesisAnalyze);
48
+        PageInfo<SynthesisAnalyze> pageInfo = new PageInfo<>(synthesisAnalyzeService.selectSynthesisAnalyzeList(synthesisAnalyze));
49
+        return ResultUtil.success(pageInfo);
50
+    }
51
+
52
+    /**
53
+     * 导出综合分析列表
54
+     */
55
+    @ApiOperation("导出综合分析列表")
56
+    @PreAuthorize("@ss.hasPermi('view:synthesisAnalyze:export')")
57
+    @Log(title = "综合分析", businessType = BusinessType.EXPORT)
58
+    @GetMapping("/export")
59
+    public ResultUtil export(SynthesisAnalyze synthesisAnalyze)
60
+    {
61
+        List<SynthesisAnalyze> list = synthesisAnalyzeService.selectSynthesisAnalyzeList(synthesisAnalyze);
62
+        ExcelUtil<SynthesisAnalyze> util = new ExcelUtil<SynthesisAnalyze>(SynthesisAnalyze.class);
63
+        return util.exportExcel(list, "综合分析数据");
64
+    }
65
+
66
+    /**
67
+     * 获取综合分析详细信息
68
+     */
69
+    @ApiOperation("获取综合分析详细信息")
70
+    @PreAuthorize("@ss.hasPermi('view:synthesisAnalyze:query')")
71
+    @GetMapping(value = "/{id}")
72
+    public ResultUtil getInfo(@PathVariable("id") Integer id)
73
+    {
74
+        return ResultUtil.success(synthesisAnalyzeService.selectSynthesisAnalyzeById(id));
75
+    }
76
+
77
+    /**
78
+     * 新增综合分析
79
+     */
80
+    @ApiOperation("新增综合分析")
81
+    @PreAuthorize("@ss.hasPermi('view:synthesisAnalyze:add')")
82
+    @Log(title = "综合分析", businessType = BusinessType.INSERT)
83
+    @PostMapping
84
+    public ResultUtil add(@RequestBody SynthesisAnalyze synthesisAnalyze)
85
+    {
86
+        return resultByRows(synthesisAnalyzeService.insertSynthesisAnalyze(synthesisAnalyze));
87
+    }
88
+
89
+    /**
90
+     * 修改综合分析
91
+     */
92
+    @ApiOperation("修改综合分析")
93
+    @PreAuthorize("@ss.hasPermi('view:synthesisAnalyze:edit')")
94
+    @Log(title = "综合分析", businessType = BusinessType.UPDATE)
95
+    @PutMapping
96
+    public ResultUtil edit(@RequestBody SynthesisAnalyze synthesisAnalyze)
97
+    {
98
+        return resultByRows(synthesisAnalyzeService.updateSynthesisAnalyze(synthesisAnalyze));
99
+    }
100
+
101
+    /**
102
+     * 删除综合分析
103
+     */
104
+    @ApiOperation("删除综合分析")
105
+    @PreAuthorize("@ss.hasPermi('view:synthesisAnalyze:remove')")
106
+    @Log(title = "综合分析", businessType = BusinessType.DELETE)
107
+	@DeleteMapping("/{ids}")
108
+    public ResultUtil remove(@PathVariable Integer[] ids)
109
+    {
110
+        return resultByRows(synthesisAnalyzeService.deleteSynthesisAnalyzeByIds(ids));
111
+    }
112
+}

+ 93 - 0
src/main/java/com/lqkj/view/entity/SynthesisAnalyze.java

@@ -0,0 +1,93 @@
1
+package com.lqkj.view.entity;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.lqkj.common.annotation.Excel;
6
+import com.lqkj.common.core.model.BaseEntity;
7
+
8
+/**
9
+ * 综合分析对象 synthesis_analyze
10
+ * 
11
+ * @author lqkj
12
+ * @date 2024-11-18
13
+ */
14
+public class SynthesisAnalyze extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** id */
19
+    @Excel(name = "id")
20
+    private Integer id;
21
+
22
+    /** 发展定位 */
23
+    @Excel(name = "发展定位")
24
+    private String orientation;
25
+
26
+    /** 红利政策 */
27
+    @Excel(name = "红利政策")
28
+    private String bonusPolicy;
29
+
30
+    /** 规划蓝图 */
31
+    @Excel(name = "规划蓝图")
32
+    private String planningLayout;
33
+
34
+    /** 宣传视频 */
35
+    private String audioUrl;
36
+
37
+    public void setId(Integer id) 
38
+    {
39
+        this.id = id;
40
+    }
41
+
42
+    public Integer getId() 
43
+    {
44
+        return id;
45
+    }
46
+    public void setOrientation(String orientation) 
47
+    {
48
+        this.orientation = orientation;
49
+    }
50
+
51
+    public String getOrientation() 
52
+    {
53
+        return orientation;
54
+    }
55
+    public void setBonusPolicy(String bonusPolicy) 
56
+    {
57
+        this.bonusPolicy = bonusPolicy;
58
+    }
59
+
60
+    public String getBonusPolicy() 
61
+    {
62
+        return bonusPolicy;
63
+    }
64
+    public void setPlanningLayout(String planningLayout) 
65
+    {
66
+        this.planningLayout = planningLayout;
67
+    }
68
+
69
+    public String getPlanningLayout() 
70
+    {
71
+        return planningLayout;
72
+    }
73
+    public void setAudioUrl(String audioUrl) 
74
+    {
75
+        this.audioUrl = audioUrl;
76
+    }
77
+
78
+    public String getAudioUrl() 
79
+    {
80
+        return audioUrl;
81
+    }
82
+
83
+    @Override
84
+    public String toString() {
85
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
86
+            .append("id", getId())
87
+            .append("orientation", getOrientation())
88
+            .append("bonusPolicy", getBonusPolicy())
89
+            .append("planningLayout", getPlanningLayout())
90
+            .append("audioUrl", getAudioUrl())
91
+            .toString();
92
+    }
93
+}

+ 63 - 0
src/main/java/com/lqkj/view/mapper/SynthesisAnalyzeMapper.java

@@ -0,0 +1,63 @@
1
+package com.lqkj.view.mapper;
2
+
3
+import java.util.List;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import com.lqkj.view.entity.SynthesisAnalyze;
6
+
7
+/**
8
+ * 综合分析Mapper接口
9
+ * 
10
+ * @author lqkj
11
+ * @date 2024-11-18
12
+ */
13
+@Mapper
14
+public interface SynthesisAnalyzeMapper 
15
+{
16
+    /**
17
+     * 查询综合分析
18
+     * 
19
+     * @param id 综合分析主键
20
+     * @return 综合分析
21
+     */
22
+    public SynthesisAnalyze selectSynthesisAnalyzeById(Integer id);
23
+
24
+    /**
25
+     * 查询综合分析列表
26
+     * 
27
+     * @param synthesisAnalyze 综合分析
28
+     * @return 综合分析集合
29
+     */
30
+    public List<SynthesisAnalyze> selectSynthesisAnalyzeList(SynthesisAnalyze synthesisAnalyze);
31
+
32
+    /**
33
+     * 新增综合分析
34
+     * 
35
+     * @param synthesisAnalyze 综合分析
36
+     * @return 结果
37
+     */
38
+    public int insertSynthesisAnalyze(SynthesisAnalyze synthesisAnalyze);
39
+
40
+    /**
41
+     * 修改综合分析
42
+     * 
43
+     * @param synthesisAnalyze 综合分析
44
+     * @return 结果
45
+     */
46
+    public int updateSynthesisAnalyze(SynthesisAnalyze synthesisAnalyze);
47
+
48
+    /**
49
+     * 删除综合分析
50
+     * 
51
+     * @param id 综合分析主键
52
+     * @return 结果
53
+     */
54
+    public int deleteSynthesisAnalyzeById(Integer id);
55
+
56
+    /**
57
+     * 批量删除综合分析
58
+     * 
59
+     * @param ids 需要删除的数据主键集合
60
+     * @return 结果
61
+     */
62
+    public int deleteSynthesisAnalyzeByIds(Integer[] ids);
63
+}

+ 97 - 0
src/main/java/com/lqkj/view/service/SynthesisAnalyzeService.java

@@ -0,0 +1,97 @@
1
+package com.lqkj.view.service;
2
+
3
+import java.util.List;
4
+
5
+import org.apache.commons.lang.StringEscapeUtils;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.stereotype.Service;
8
+import com.lqkj.view.mapper.SynthesisAnalyzeMapper;
9
+import com.lqkj.view.entity.SynthesisAnalyze;
10
+import com.lqkj.common.utils.uuid.IdUtils;
11
+/**
12
+ * 综合分析Service业务层处理
13
+ *
14
+ * @author lqkj
15
+ * @date 2024-11-18
16
+ */
17
+@Service
18
+public class SynthesisAnalyzeService
19
+{
20
+    @Autowired
21
+    private SynthesisAnalyzeMapper synthesisAnalyzeMapper;
22
+
23
+    /**
24
+     * 查询综合分析
25
+     *
26
+     * @param id 综合分析主键
27
+     * @return 综合分析
28
+     */
29
+
30
+    public SynthesisAnalyze selectSynthesisAnalyzeById(Integer id)
31
+    {
32
+        return synthesisAnalyzeMapper.selectSynthesisAnalyzeById(id);
33
+    }
34
+
35
+    /**
36
+     * 查询综合分析列表
37
+     *
38
+     * @param synthesisAnalyze 综合分析
39
+     * @return 综合分析
40
+     */
41
+    public List<SynthesisAnalyze> selectSynthesisAnalyzeList(SynthesisAnalyze synthesisAnalyze)
42
+    {
43
+        return synthesisAnalyzeMapper.selectSynthesisAnalyzeList(synthesisAnalyze);
44
+    }
45
+
46
+    /**
47
+     * 新增综合分析
48
+     *
49
+     * @param synthesisAnalyze 综合分析
50
+     * @return 结果
51
+     */
52
+
53
+    public int insertSynthesisAnalyze(SynthesisAnalyze synthesisAnalyze)
54
+    {
55
+        synthesisAnalyze.setOrientation(StringEscapeUtils.unescapeHtml(synthesisAnalyze.getOrientation()));
56
+        synthesisAnalyze.setBonusPolicy(StringEscapeUtils.unescapeHtml(synthesisAnalyze.getBonusPolicy()));
57
+        return synthesisAnalyzeMapper.insertSynthesisAnalyze(synthesisAnalyze);
58
+    }
59
+
60
+    /**
61
+     * 修改综合分析
62
+     *
63
+     * @param synthesisAnalyze 综合分析
64
+     * @return 结果
65
+     */
66
+
67
+    public int updateSynthesisAnalyze(SynthesisAnalyze synthesisAnalyze)
68
+    {
69
+        synthesisAnalyze.setOrientation(StringEscapeUtils.unescapeHtml(synthesisAnalyze.getOrientation()));
70
+        synthesisAnalyze.setBonusPolicy(StringEscapeUtils.unescapeHtml(synthesisAnalyze.getBonusPolicy()));
71
+        return synthesisAnalyzeMapper.updateSynthesisAnalyze(synthesisAnalyze);
72
+    }
73
+
74
+    /**
75
+     * 批量删除综合分析
76
+     *
77
+     * @param ids 需要删除的综合分析主键
78
+     * @return 结果
79
+     */
80
+
81
+    public int deleteSynthesisAnalyzeByIds(Integer[] ids)
82
+    {
83
+        return synthesisAnalyzeMapper.deleteSynthesisAnalyzeByIds(ids);
84
+    }
85
+
86
+    /**
87
+     * 删除综合分析信息
88
+     *
89
+     * @param id 综合分析主键
90
+     * @return 结果
91
+     */
92
+
93
+    public int deleteSynthesisAnalyzeById(Integer id)
94
+    {
95
+        return synthesisAnalyzeMapper.deleteSynthesisAnalyzeById(id);
96
+    }
97
+}

+ 1 - 1
src/main/resources/db/migration/V1_2__20230202.sql

@@ -1,4 +1,4 @@
1
-update sys_config set config_value = '白玉县水利局管理系统' where config_key = 'sys.index.title';
1
+update sys_config set config_value = '武侯区华西医美健康城管理系统' where config_key = 'sys.index.title';
2 2
 
3 3
 delete from cms_category;
4 4
 insert into cms_category values(1, 0, null, '新闻资讯', 0, null, 1, '超级管理员', now());

File diff suppressed because it is too large
+ 1039 - 0
src/main/resources/db/migration/V1_4__20241111.sql


+ 222 - 0
src/main/resources/db/migration/V1_5__20241111_menu.sql

@@ -0,0 +1,222 @@
1
+-- 菜单 SQL
2
+
3
+
4
+INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2050, '属性类别管理', 0, 0, 'type', NULL, NULL, 'f', 't', 'M', 't', 't', NULL, 'management', '超级管理员', '2024-11-11 10:24:59.159073', NULL, NULL, NULL);
5
+
6
+SELECT setval('sys_menu_menu_id_seq', (SELECT MAX(menu_id) FROM sys_menu));
7
+
8
+
9
+
10
+with temp_menu as (
11
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
12
+values('区域类型', '2050', '1', 'areaType', 'type/areaType/index', false, true, 'C', true, true, 'type:areaType:list', 'operation', 'admin', now(), '', null, '区域类型:area_type菜单') returning menu_id
13
+    )
14
+
15
+
16
+-- 按钮 SQL
17
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
18
+values('区域类型', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:areaType:query',        '#', 'admin', now(), '', null, ''),
19
+    ('区域类型', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:areaType:add',          '#', 'admin', now(), '', null, ''),
20
+    ('区域类型', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:areaType:edit',         '#', 'admin', now(), '', null, ''),
21
+    ('区域类型', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:areaType:remove',       '#', 'admin', now(), '', null, ''),
22
+    ('区域类型', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:areaType:export',       '#', 'admin', now(), '', null, '');
23
+
24
+
25
+
26
+
27
+
28
+
29
+-- 菜单 SQL
30
+with temp_menu as (
31
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
32
+values('大楼类别', '2050', '1', 'buildingType', 'type/buildingType/index', false, true, 'C', true, true, 'type:buildingType:list', 'operation', 'admin', now(), '', null, '大楼类别:building_type菜单') returning menu_id
33
+    )
34
+-- 按钮 SQL
35
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
36
+values('大楼类别', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:buildingType:query',        '#', 'admin', now(), '', null, ''),
37
+    ('大楼类别', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:buildingType:add',          '#', 'admin', now(), '', null, ''),
38
+    ('大楼类别', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:buildingType:edit',         '#', 'admin', now(), '', null, ''),
39
+    ('大楼类别', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:buildingType:remove',       '#', 'admin', now(), '', null, ''),
40
+    ('大楼类别', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:buildingType:export',       '#', 'admin', now(), '', null, '');
41
+
42
+
43
+
44
+-- 菜单 SQL
45
+with temp_menu as (
46
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
47
+values('设备类型', '2050', '1', 'equipmentType', 'type/equipmentType/index', false, true, 'C', true, true, 'type:equipmentType:list', 'operation', 'admin', now(), '', null, '设备类型:equipment_type菜单') returning menu_id
48
+    )
49
+-- 按钮 SQL
50
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
51
+values('设备类型', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:equipmentType:query',        '#', 'admin', now(), '', null, ''),
52
+    ('设备类型', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:equipmentType:add',          '#', 'admin', now(), '', null, ''),
53
+    ('设备类型', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:equipmentType:edit',         '#', 'admin', now(), '', null, ''),
54
+    ('设备类型', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:equipmentType:remove',       '#', 'admin', now(), '', null, ''),
55
+    ('设备类型', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:equipmentType:export',       '#', 'admin', now(), '', null, '');
56
+
57
+
58
+
59
+-- 菜单 SQL
60
+with temp_menu as (
61
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
62
+values('户型信息', '2050', '1', 'houseType', 'type/houseType/index', false, true, 'C', true, true, 'type:houseType:list', 'operation', 'admin', now(), '', null, '户型信息:house_type菜单') returning menu_id
63
+    )
64
+-- 按钮 SQL
65
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
66
+values('户型信息', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:houseType:query',        '#', 'admin', now(), '', null, ''),
67
+    ('户型信息', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:houseType:add',          '#', 'admin', now(), '', null, ''),
68
+    ('户型信息', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:houseType:edit',         '#', 'admin', now(), '', null, ''),
69
+    ('户型信息', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:houseType:remove',       '#', 'admin', now(), '', null, ''),
70
+    ('户型信息', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:houseType:export',       '#', 'admin', now(), '', null, '');
71
+
72
+
73
+
74
+-- 菜单 SQL
75
+with temp_menu as (
76
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
77
+values('主体类型', '2050', '1', 'organizationType', 'type/organizationType/index', false, true, 'C', true, true, 'type:organizationType:list', 'operation', 'admin', now(), '', null, '主体类型菜单') returning menu_id
78
+    )
79
+-- 按钮 SQL
80
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
81
+values('主体类型查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:organizationType:query',        '#', 'admin', now(), '', null, ''),
82
+    ('主体类型新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:organizationType:add',          '#', 'admin', now(), '', null, ''),
83
+    ('主体类型修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:organizationType:edit',         '#', 'admin', now(), '', null, ''),
84
+    ('主体类型删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:organizationType:remove',       '#', 'admin', now(), '', null, ''),
85
+    ('主体类型导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:organizationType:export',       '#', 'admin', now(), '', null, '');
86
+
87
+
88
+
89
+-- 菜单 SQL
90
+with temp_menu as (
91
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
92
+values('规划类型', '2050', '1', 'planType', 'type/planType/index', false, true, 'C', true, true, 'type:planType:list', 'operation', 'admin', now(), '', null, '规划类型菜单') returning menu_id
93
+    )
94
+-- 按钮 SQL
95
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
96
+values('规划类型查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:planType:query',        '#', 'admin', now(), '', null, ''),
97
+    ('规划类型新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:planType:add',          '#', 'admin', now(), '', null, ''),
98
+    ('规划类型修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:planType:edit',         '#', 'admin', now(), '', null, ''),
99
+    ('规划类型删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:planType:remove',       '#', 'admin', now(), '', null, ''),
100
+    ('规划类型导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:planType:export',       '#', 'admin', now(), '', null, '');
101
+
102
+
103
+
104
+-- 菜单 SQL
105
+with temp_menu as (
106
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
107
+values('房间类别', '2050', '1', 'roomType', 'type/roomType/index', false, true, 'C', true, true, 'type:roomType:list', 'operation', 'admin', now(), '', null, '房间类别菜单') returning menu_id
108
+    )
109
+-- 按钮 SQL
110
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
111
+values('房间类别查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:roomType:query',        '#', 'admin', now(), '', null, ''),
112
+    ('房间类别新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:roomType:add',          '#', 'admin', now(), '', null, ''),
113
+    ('房间类别修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:roomType:edit',         '#', 'admin', now(), '', null, ''),
114
+    ('房间类别删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:roomType:remove',       '#', 'admin', now(), '', null, ''),
115
+    ('房间类别导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:roomType:export',       '#', 'admin', now(), '', null, '');
116
+
117
+
118
+
119
+-- 菜单 SQL
120
+with temp_menu as (
121
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
122
+values('交通类型', '2050', '1', 'trafficType', 'type/trafficType/index', false, true, 'C', true, true, 'type:trafficType:list', 'operation', 'admin', now(), '', null, '交通类型菜单') returning menu_id
123
+    )
124
+-- 按钮 SQL
125
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
126
+values('交通类型查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'type:trafficType:query',        '#', 'admin', now(), '', null, ''),
127
+    ('交通类型新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'type:trafficType:add',          '#', 'admin', now(), '', null, ''),
128
+    ('交通类型修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'type:trafficType:edit',         '#', 'admin', now(), '', null, ''),
129
+    ('交通类型删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'type:trafficType:remove',       '#', 'admin', now(), '', null, ''),
130
+    ('交通类型导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'type:trafficType:export',       '#', 'admin', now(), '', null, '');
131
+
132
+INSERT INTO "public"."sys_menu" ("menu_id", "menu_name", "parent_id", "order_num", "path", "component", "query", "is_frame", "is_cache", "menu_type", "visible", "status", "perms", "icon", "create_by", "create_time", "update_by", "update_time", "remark") VALUES (2200, '属性信息管理', 0, 0, 'info', NULL, NULL, 'f', 't', 'M', 't', 't', NULL, 'management', '超级管理员', '2024-11-11 17:14:06.847279', NULL, NULL, NULL);
133
+
134
+SELECT setval('sys_menu_menu_id_seq', (SELECT MAX(menu_id) FROM sys_menu));
135
+
136
+-- 菜单 SQL
137
+with temp_menu as (
138
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
139
+values('区域对象', '2200', '1', 'areaInfo', 'info/areaInfo/index', false, true, 'C', true, true, 'info:areaInfo:list', 'operation', 'admin', now(), '', null, '区域对象菜单') returning menu_id
140
+    )
141
+-- 按钮 SQL
142
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
143
+values('区域对象查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'info:areaInfo:query',        '#', 'admin', now(), '', null, ''),
144
+    ('区域对象新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'info:areaInfo:add',          '#', 'admin', now(), '', null, ''),
145
+    ('区域对象修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'info:areaInfo:edit',         '#', 'admin', now(), '', null, ''),
146
+    ('区域对象删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'info:areaInfo:remove',       '#', 'admin', now(), '', null, ''),
147
+    ('区域对象导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'info:areaInfo:export',       '#', 'admin', now(), '', null, '');
148
+
149
+
150
+-- 菜单 SQL
151
+with temp_menu as (
152
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
153
+values('大楼信息', '2200', '1', 'buildingInfo', 'info/buildingInfo/index', false, true, 'C', true, true, 'info:buildingInfo:list', 'operation', 'admin', now(), '', null, '大楼信息菜单') returning menu_id
154
+    )
155
+-- 按钮 SQL
156
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
157
+values('大楼信息查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'info:buildingInfo:query',        '#', 'admin', now(), '', null, ''),
158
+    ('大楼信息新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'info:buildingInfo:add',          '#', 'admin', now(), '', null, ''),
159
+    ('大楼信息修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'info:buildingInfo:edit',         '#', 'admin', now(), '', null, ''),
160
+    ('大楼信息删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'info:buildingInfo:remove',       '#', 'admin', now(), '', null, ''),
161
+    ('大楼信息导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'info:buildingInfo:export',       '#', 'admin', now(), '', null, '');
162
+
163
+
164
+
165
+-- 菜单 SQL
166
+with temp_menu as (
167
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
168
+values('电梯信息', '2200', '1', 'elevatorInfo', 'info/elevatorInfo/index', false, true, 'C', true, true, 'info:elevatorInfo:list', 'operation', 'admin', now(), '', null, '电梯信息菜单') returning menu_id
169
+    )
170
+-- 按钮 SQL
171
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
172
+values('电梯信息查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'info:elevatorInfo:query',        '#', 'admin', now(), '', null, ''),
173
+    ('电梯信息新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'info:elevatorInfo:add',          '#', 'admin', now(), '', null, ''),
174
+    ('电梯信息修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'info:elevatorInfo:edit',         '#', 'admin', now(), '', null, ''),
175
+    ('电梯信息删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'info:elevatorInfo:remove',       '#', 'admin', now(), '', null, ''),
176
+    ('电梯信息导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'info:elevatorInfo:export',       '#', 'admin', now(), '', null, '');
177
+
178
+
179
+
180
+
181
+-- 菜单 SQL
182
+with temp_menu as (
183
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
184
+values('设备信息', '2200', '1', 'equipmentInfo', 'info/equipmentInfo/index', false, true, 'C', true, true, 'info:equipmentInfo:list', 'operation', 'admin', now(), '', null, '设备信息菜单') returning menu_id
185
+    )
186
+-- 按钮 SQL
187
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
188
+values('设备信息查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'info:equipmentInfo:query',        '#', 'admin', now(), '', null, ''),
189
+    ('设备信息新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'info:equipmentInfo:add',          '#', 'admin', now(), '', null, ''),
190
+    ('设备信息修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'info:equipmentInfo:edit',         '#', 'admin', now(), '', null, ''),
191
+    ('设备信息删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'info:equipmentInfo:remove',       '#', 'admin', now(), '', null, ''),
192
+    ('设备信息导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'info:equipmentInfo:export',       '#', 'admin', now(), '', null, '');
193
+
194
+
195
+
196
+-- 菜单 SQL
197
+with temp_menu as (
198
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
199
+values('预警信息', '2200', '1', 'forewarningInfo', 'info/forewarningInfo/index', false, true, 'C', true, true, 'info:forewarningInfo:list', 'operation', 'admin', now(), '', null, '预警信息菜单') returning menu_id
200
+    )
201
+-- 按钮 SQL
202
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
203
+values('预警信息查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'info:forewarningInfo:query',        '#', 'admin', now(), '', null, ''),
204
+    ('预警信息新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'info:forewarningInfo:add',          '#', 'admin', now(), '', null, ''),
205
+    ('预警信息修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'info:forewarningInfo:edit',         '#', 'admin', now(), '', null, ''),
206
+    ('预警信息删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'info:forewarningInfo:remove',       '#', 'admin', now(), '', null, ''),
207
+    ('预警信息导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'info:forewarningInfo:export',       '#', 'admin', now(), '', null, '');
208
+
209
+
210
+
211
+-- 菜单 SQL
212
+with temp_menu as (
213
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
214
+values('主体信息', '2200', '1', 'organizationInfo', 'info/organizationInfo/index', false, true, 'C', true, true, 'info:organizationInfo:list', 'operation', 'admin', now(), '', null, '主体信息菜单') returning menu_id
215
+    )
216
+-- 按钮 SQL
217
+insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
218
+values('主体信息查询', (select * from temp_menu), '1',  '#', '', false, true, 'F', true, true, 'info:organizationInfo:query',        '#', 'admin', now(), '', null, ''),
219
+    ('主体信息新增', (select * from temp_menu), '2',  '#', '', false, true, 'F', true, true, 'info:organizationInfo:add',          '#', 'admin', now(), '', null, ''),
220
+    ('主体信息修改', (select * from temp_menu), '3',  '#', '', false, true, 'F', true, true, 'info:organizationInfo:edit',         '#', 'admin', now(), '', null, ''),
221
+    ('主体信息删除', (select * from temp_menu), '4',  '#', '', false, true, 'F', true, true, 'info:organizationInfo:remove',       '#', 'admin', now(), '', null, ''),
222
+    ('主体信息导出', (select * from temp_menu), '5',  '#', '', false, true, 'F', true, true, 'info:organizationInfo:export',       '#', 'admin', now(), '', null, '');

+ 79 - 0
src/main/resources/mapper/info/AreaInfoMapper.xml

@@ -0,0 +1,79 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.AreaInfoMapper">
6
+
7
+	<resultMap type="AreaInfo" id="AreaInfoResult">
8
+		<result property="areaId"    column="area_id"    />
9
+		<result property="typeId"    column="type_id"    />
10
+		<result property="areaName"    column="area_name"    />
11
+		<result property="memo"    column="memo"    />
12
+		<result property="colour"    column="colour"    />
13
+		<result property="acreage"    column="acreage"    />
14
+		<result property="location"    column="location"    />
15
+	</resultMap>
16
+
17
+	<sql id="selectAreaInfoVo">
18
+		select area_id, type_id, area_name, memo, colour, acreage, location from area_info
19
+	</sql>
20
+
21
+	<select id="selectAreaInfoList" parameterType="AreaInfo" resultMap="AreaInfoResult">
22
+		<include refid="selectAreaInfoVo"/>
23
+		<where>
24
+			<if test="typeId != null "> and type_id = #{typeId}</if>
25
+			<if test="areaName != null  and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
26
+		</where>
27
+		order by area_id
28
+
29
+	</select>
30
+
31
+	<select id="selectAreaInfoByAreaId" parameterType="Integer" resultMap="AreaInfoResult">
32
+		<include refid="selectAreaInfoVo"/>
33
+		where area_id = #{areaId}
34
+	</select>
35
+
36
+	<insert id="insertAreaInfo" parameterType="AreaInfo" useGeneratedKeys="true" keyProperty="areaId">
37
+		insert into area_info
38
+		<trim prefix="(" suffix=")" suffixOverrides=",">
39
+			<if test="typeId != null">type_id,</if>
40
+			<if test="areaName != null and areaName != ''">area_name,</if>
41
+			<if test="memo != null and memo != ''">memo,</if>
42
+			<if test="colour != null and colour != ''">colour,</if>
43
+			<if test="acreage != null">acreage,</if>
44
+			<if test="location != null and location != ''">location,</if>
45
+		</trim>
46
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
47
+			<if test="typeId != null">#{typeId},</if>
48
+			<if test="areaName != null and areaName != ''">#{areaName},</if>
49
+			<if test="memo != null and memo != ''">#{memo},</if>
50
+			<if test="colour != null and colour != ''">#{colour},</if>
51
+			<if test="acreage != null">#{acreage},</if>
52
+			<if test="location != null and location != ''">#{location,jdbcType=OTHER,typeHandler=com.lqkj.framework.sql.JsonbTypeHandler},</if>
53
+		</trim>
54
+	</insert>
55
+
56
+	<update id="updateAreaInfo" parameterType="AreaInfo">
57
+		update area_info
58
+		<trim prefix="SET" suffixOverrides=",">
59
+			<if test="typeId != null ">type_id = #{typeId},</if>
60
+			area_name = #{areaName},
61
+			memo = #{memo},
62
+			colour = #{colour},
63
+			acreage = #{acreage},
64
+			location = #{location,jdbcType=OTHER,typeHandler=com.lqkj.framework.sql.JsonbTypeHandler},
65
+		</trim>
66
+		where area_id = #{areaId}
67
+	</update>
68
+
69
+	<delete id="deleteAreaInfoByAreaId" parameterType="Integer">
70
+		delete from area_info where area_id = #{areaId}
71
+	</delete>
72
+
73
+	<delete id="deleteAreaInfoByAreaIds" parameterType="String">
74
+		delete from area_info where area_id in
75
+		<foreach item="areaId" collection="array" open="(" separator="," close=")">
76
+			#{areaId}
77
+		</foreach>
78
+	</delete>
79
+</mapper>

+ 123 - 0
src/main/resources/mapper/info/BuildingInfoMapper.xml

@@ -0,0 +1,123 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.BuildingInfoMapper">
6
+
7
+	<resultMap type="BuildingInfo" id="BuildingInfoResult">
8
+		<result property="buildingId"    column="building_id"    />
9
+		<result property="typeId"    column="type_id"    />
10
+		<result property="buildingName"    column="building_name"    />
11
+		<result property="mapCode"    column="map_code"    />
12
+		<result property="enName"    column="en_name"    />
13
+		<result property="alias"    column="alias"    />
14
+		<result property="orderId"    column="order_id"    />
15
+		<result property="synStatus"    column="syn_status"    />
16
+		<result property="delete"    column="delete"    />
17
+		<result property="brief"    column="brief"    />
18
+		<result property="lngLat"    column="lng_lat"    />
19
+		<result property="memo"    column="memo"    />
20
+		<result property="rasterLngLat"    column="raster_lng_lat"    />
21
+		<result property="address"    column="address"    />
22
+		<result property="height"    column="height"    />
23
+		<result property="levelNumber"    column="level_number"    />
24
+		<result property="households"    column="households"    />
25
+		<result property="acreage"    column="acreage"    />
26
+	</resultMap>
27
+
28
+	<sql id="selectBuildingInfoVo">
29
+		select building_id, type_id, building_name, map_code, en_name, alias, order_id, syn_status, delete, brief, lng_lat, memo, raster_lng_lat, address, height, level_number, households, acreage from building_info
30
+	</sql>
31
+
32
+	<select id="selectBuildingInfoList" parameterType="BuildingInfo" resultMap="BuildingInfoResult">
33
+		<include refid="selectBuildingInfoVo"/>
34
+		<where>
35
+			<if test="typeId != null "> and type_id = #{typeId}</if>
36
+			<if test="buildingName != null  and buildingName != ''"> and building_name like concat('%', #{buildingName}, '%')</if>
37
+		</where>
38
+		order by building_id
39
+
40
+	</select>
41
+
42
+	<select id="selectBuildingInfoByBuildingId" parameterType="Integer" resultMap="BuildingInfoResult">
43
+		<include refid="selectBuildingInfoVo"/>
44
+		where building_id = #{buildingId}
45
+	</select>
46
+
47
+	<insert id="insertBuildingInfo" parameterType="BuildingInfo" useGeneratedKeys="true" keyProperty="buildingId">
48
+		insert into building_info
49
+		<trim prefix="(" suffix=")" suffixOverrides=",">
50
+			<if test="typeId != null">type_id,</if>
51
+			<if test="buildingName != null and buildingName != ''">building_name,</if>
52
+			<if test="mapCode != null">map_code,</if>
53
+			<if test="enName != null and enName != ''">en_name,</if>
54
+			<if test="alias != null and alias != ''">alias,</if>
55
+			<if test="orderId != null">order_id,</if>
56
+			<if test="synStatus != null">syn_status,</if>
57
+			<if test="delete != null">delete,</if>
58
+			<if test="brief != null and brief != ''">brief,</if>
59
+			<if test="lngLat != null and lngLat != ''">lng_lat,</if>
60
+			<if test="memo != null and memo != ''">memo,</if>
61
+			<if test="rasterLngLat != null and rasterLngLat != ''">raster_lng_lat,</if>
62
+			<if test="address != null and address != ''">address,</if>
63
+			<if test="height != null">height,</if>
64
+			<if test="levelNumber != null">level_number,</if>
65
+			<if test="households != null">households,</if>
66
+			<if test="acreage != null">acreage,</if>
67
+		</trim>
68
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
69
+			<if test="typeId != null">#{typeId},</if>
70
+			<if test="buildingName != null and buildingName != ''">#{buildingName},</if>
71
+			<if test="mapCode != null">#{mapCode},</if>
72
+			<if test="enName != null and enName != ''">#{enName},</if>
73
+			<if test="alias != null and alias != ''">#{alias},</if>
74
+			<if test="orderId != null">#{orderId},</if>
75
+			<if test="synStatus != null">#{synStatus},</if>
76
+			<if test="delete != null">#{delete},</if>
77
+			<if test="brief != null and brief != ''">#{brief},</if>
78
+			<if test="lngLat != null and lngLat != ''">#{lngLat},</if>
79
+			<if test="memo != null and memo != ''">#{memo},</if>
80
+			<if test="rasterLngLat != null and rasterLngLat != ''">#{rasterLngLat},</if>
81
+			<if test="address != null and address != ''">#{address},</if>
82
+			<if test="height != null">#{height},</if>
83
+			<if test="levelNumber != null">#{levelNumber},</if>
84
+			<if test="households != null">#{households},</if>
85
+			<if test="acreage != null">#{acreage},</if>
86
+		</trim>
87
+	</insert>
88
+
89
+	<update id="updateBuildingInfo" parameterType="BuildingInfo">
90
+		update building_info
91
+		<trim prefix="SET" suffixOverrides=",">
92
+			type_id = #{typeId},
93
+			building_name = #{buildingName},
94
+			map_code = #{mapCode},
95
+			en_name = #{enName},
96
+			alias = #{alias},
97
+			order_id = #{orderId},
98
+			syn_status = #{synStatus},
99
+			delete = #{delete},
100
+			brief = #{brief},
101
+			lng_lat = #{lngLat},
102
+			memo = #{memo},
103
+			raster_lng_lat = #{rasterLngLat},
104
+			address = #{address},
105
+			height = #{height},
106
+			level_number = #{levelNumber},
107
+			households = #{households},
108
+			acreage = #{acreage},
109
+		</trim>
110
+		where building_id = #{buildingId}
111
+	</update>
112
+
113
+	<delete id="deleteBuildingInfoByBuildingId" parameterType="Integer">
114
+		delete from building_info where building_id = #{buildingId}
115
+	</delete>
116
+
117
+	<delete id="deleteBuildingInfoByBuildingIds" parameterType="String">
118
+		delete from building_info where building_id in
119
+		<foreach item="buildingId" collection="array" open="(" separator="," close=")">
120
+			#{buildingId}
121
+		</foreach>
122
+	</delete>
123
+</mapper>

+ 77 - 0
src/main/resources/mapper/info/ElevatorInfoMapper.xml

@@ -0,0 +1,77 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.ElevatorInfoMapper">
6
+
7
+	<resultMap type="ElevatorInfo" id="ElevatorInfoResult">
8
+		<result property="elevatorId"    column="elevator_id"    />
9
+		<result property="elevatorCode"    column="elevator_code"    />
10
+		<result property="buildingId"    column="building_id"    />
11
+		<result property="status"    column="status"    />
12
+		<result property="elevatorName"    column="elevator_name"    />
13
+		<result property="upkeepNum"    column="upkeep_num"    />
14
+	</resultMap>
15
+
16
+	<sql id="selectElevatorInfoVo">
17
+		select elevator_id, elevator_code, building_id, status, elevator_name, upkeep_num from elevator_info
18
+	</sql>
19
+
20
+	<select id="selectElevatorInfoList" parameterType="ElevatorInfo" resultMap="ElevatorInfoResult">
21
+		<include refid="selectElevatorInfoVo"/>
22
+		<where>
23
+			<if test="elevatorCode != null  and elevatorCode != ''"> and elevator_code = #{elevatorCode}</if>
24
+			<if test="buildingId != null "> and building_id = #{buildingId}</if>
25
+			<if test="status != null "> and status = #{status}</if>
26
+			<if test="elevatorName != null  and elevatorName != ''"> and elevator_name like concat('%', #{elevatorName}, '%')</if>
27
+		</where>
28
+		order by elevator_id
29
+
30
+	</select>
31
+
32
+	<select id="selectElevatorInfoByElevatorId" parameterType="Integer" resultMap="ElevatorInfoResult">
33
+		<include refid="selectElevatorInfoVo"/>
34
+		where elevator_id = #{elevatorId}
35
+	</select>
36
+
37
+	<insert id="insertElevatorInfo" parameterType="ElevatorInfo" useGeneratedKeys="true" keyProperty="elevatorId">
38
+		insert into elevator_info
39
+		<trim prefix="(" suffix=")" suffixOverrides=",">
40
+			<if test="elevatorCode != null and elevatorCode != ''">elevator_code,</if>
41
+			<if test="buildingId != null">building_id,</if>
42
+			<if test="status != null">status,</if>
43
+			<if test="elevatorName != null and elevatorName != ''">elevator_name,</if>
44
+			<if test="upkeepNum != null">upkeep_num,</if>
45
+		</trim>
46
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
47
+			<if test="elevatorCode != null and elevatorCode != ''">#{elevatorCode},</if>
48
+			<if test="buildingId != null">#{buildingId},</if>
49
+			<if test="status != null">#{status},</if>
50
+			<if test="elevatorName != null and elevatorName != ''">#{elevatorName},</if>
51
+			<if test="upkeepNum != null">#{upkeepNum},</if>
52
+		</trim>
53
+	</insert>
54
+
55
+	<update id="updateElevatorInfo" parameterType="ElevatorInfo">
56
+		update elevator_info
57
+		<trim prefix="SET" suffixOverrides=",">
58
+			elevator_code = #{elevatorCode},
59
+			building_id = #{buildingId},
60
+			status = #{status},
61
+			elevator_name = #{elevatorName},
62
+			upkeep_num = #{upkeepNum},
63
+		</trim>
64
+		where elevator_id = #{elevatorId}
65
+	</update>
66
+
67
+	<delete id="deleteElevatorInfoByElevatorId" parameterType="Integer">
68
+		delete from elevator_info where elevator_id = #{elevatorId}
69
+	</delete>
70
+
71
+	<delete id="deleteElevatorInfoByElevatorIds" parameterType="String">
72
+		delete from elevator_info where elevator_id in
73
+		<foreach item="elevatorId" collection="array" open="(" separator="," close=")">
74
+			#{elevatorId}
75
+		</foreach>
76
+	</delete>
77
+</mapper>

+ 93 - 0
src/main/resources/mapper/info/EquipmentInfoMapper.xml

@@ -0,0 +1,93 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.EquipmentInfoMapper">
6
+
7
+	<resultMap type="EquipmentInfo" id="EquipmentInfoResult">
8
+		<result property="equipmentId"    column="equipment_id"    />
9
+		<result property="typeId"    column="type_id"    />
10
+		<result property="roomId"    column="room_id"    />
11
+		<result property="buildingId"    column="building_id"    />
12
+		<result property="areaId"    column="area_id"    />
13
+		<result property="equipmentName"    column="equipment_name"    />
14
+		<result property="lngLat"    column="lng_lat"    />
15
+		<result property="rasterLngLat"    column="raster_lng_lat"    />
16
+		<result property="typeName"    column="type_name"    />
17
+		<result property="status"    column="status"    />
18
+	</resultMap>
19
+
20
+	<sql id="selectEquipmentInfoVo">
21
+		select equipment_id, type_id, room_id, building_id, area_id, equipment_name, lng_lat, raster_lng_lat, type_name, status from equipment_info
22
+	</sql>
23
+
24
+	<select id="selectEquipmentInfoList" parameterType="EquipmentInfo" resultMap="EquipmentInfoResult">
25
+		<include refid="selectEquipmentInfoVo"/>
26
+		<where>
27
+			<if test="equipmentName != null  and equipmentName != ''"> and equipment_name like concat('%', #{equipmentName}, '%')</if>
28
+			<if test="lngLat != null  and lngLat != ''"> and lng_lat like concat('%', #{lngLat}, '%')</if>
29
+			<if test="rasterLngLat != null  and rasterLngLat != ''"> and raster_lng_lat like concat('%', #{rasterLngLat}, '%')</if>
30
+			<if test="typeName != null  and typeName != ''"> and type_name = #{typeName}</if>
31
+		</where>
32
+		order by equipment_id
33
+
34
+	</select>
35
+
36
+	<select id="selectEquipmentInfoByEquipmentId" parameterType="Integer" resultMap="EquipmentInfoResult">
37
+		<include refid="selectEquipmentInfoVo"/>
38
+		where equipment_id = #{equipmentId}
39
+	</select>
40
+
41
+	<insert id="insertEquipmentInfo" parameterType="EquipmentInfo" useGeneratedKeys="true" keyProperty="equipmentId">
42
+		insert into equipment_info
43
+		<trim prefix="(" suffix=")" suffixOverrides=",">
44
+			<if test="typeId != null">type_id,</if>
45
+			<if test="roomId != null">room_id,</if>
46
+			<if test="buildingId != null">building_id,</if>
47
+			<if test="areaId != null">area_id,</if>
48
+			<if test="equipmentName != null and equipmentName != ''">equipment_name,</if>
49
+			<if test="lngLat != null and lngLat != ''">lng_lat,</if>
50
+			<if test="rasterLngLat != null and rasterLngLat != ''">raster_lng_lat,</if>
51
+			<if test="typeName != null and typeName != ''">type_name,</if>
52
+			<if test="status != null">status,</if>
53
+		</trim>
54
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
55
+			<if test="typeId != null">#{typeId},</if>
56
+			<if test="roomId != null">#{roomId},</if>
57
+			<if test="buildingId != null">#{buildingId},</if>
58
+			<if test="areaId != null">#{areaId},</if>
59
+			<if test="equipmentName != null and equipmentName != ''">#{equipmentName},</if>
60
+			<if test="lngLat != null and lngLat != ''">#{lngLat},</if>
61
+			<if test="rasterLngLat != null and rasterLngLat != ''">#{rasterLngLat},</if>
62
+			<if test="typeName != null and typeName != ''">#{typeName},</if>
63
+			<if test="status != null">#{status},</if>
64
+		</trim>
65
+	</insert>
66
+
67
+	<update id="updateEquipmentInfo" parameterType="EquipmentInfo">
68
+		update equipment_info
69
+		<trim prefix="SET" suffixOverrides=",">
70
+			type_id = #{typeId},
71
+			room_id = #{roomId},
72
+			building_id = #{buildingId},
73
+			area_id = #{areaId},
74
+			equipment_name = #{equipmentName},
75
+			lng_lat = #{lngLat},
76
+			raster_lng_lat = #{rasterLngLat},
77
+			type_name = #{typeName},
78
+			status = #{status},
79
+		</trim>
80
+		where equipment_id = #{equipmentId}
81
+	</update>
82
+
83
+	<delete id="deleteEquipmentInfoByEquipmentId" parameterType="Integer">
84
+		delete from equipment_info where equipment_id = #{equipmentId}
85
+	</delete>
86
+
87
+	<delete id="deleteEquipmentInfoByEquipmentIds" parameterType="String">
88
+		delete from equipment_info where equipment_id in
89
+		<foreach item="equipmentId" collection="array" open="(" separator="," close=")">
90
+			#{equipmentId}
91
+		</foreach>
92
+	</delete>
93
+</mapper>

+ 84 - 0
src/main/resources/mapper/info/ForewarningInfoMapper.xml

@@ -0,0 +1,84 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.ForewarningInfoMapper">
6
+
7
+	<resultMap type="ForewarningInfo" id="ForewarningInfoResult">
8
+		<result property="forewarningId"    column="forewarning_id"    />
9
+		<result property="forewarningName"    column="forewarning_name"    />
10
+		<result property="content"    column="content"    />
11
+		<result property="equipmentId"    column="equipment_id"    />
12
+		<result property="equipmentName"    column="equipment_name"    />
13
+		<result property="createTime"    column="create_time"    />
14
+		<result property="isResolve"    column="is_resolve"    />
15
+		<result property="resolveTime"    column="resolve_time"    />
16
+	</resultMap>
17
+
18
+	<sql id="selectForewarningInfoVo">
19
+		select forewarning_id, forewarning_name, content, equipment_id, equipment_name, create_time, is_resolve, resolve_time from forewarning_info
20
+	</sql>
21
+
22
+	<select id="selectForewarningInfoList" parameterType="ForewarningInfo" resultMap="ForewarningInfoResult">
23
+		<include refid="selectForewarningInfoVo"/>
24
+		<where>
25
+			<if test="forewarningName != null  and forewarningName != ''"> and forewarning_name like concat('%', #{forewarningName}, '%')</if>
26
+			<if test="equipmentId != null "> and equipment_id = #{equipmentId}</if>
27
+			<if test="isResolve != null "> and is_resolve like concat('%', #{isResolve}, '%')</if>
28
+			<if test="resolveTime != null "> and resolve_time like concat('%', #{resolveTime}, '%')</if>
29
+		</where>
30
+		order by forewarning_id
31
+
32
+	</select>
33
+
34
+	<select id="selectForewarningInfoByForewarningId" parameterType="Integer" resultMap="ForewarningInfoResult">
35
+		<include refid="selectForewarningInfoVo"/>
36
+		where forewarning_id = #{forewarningId}
37
+	</select>
38
+
39
+	<insert id="insertForewarningInfo" parameterType="ForewarningInfo" useGeneratedKeys="true" keyProperty="forewarningId">
40
+		insert into forewarning_info
41
+		<trim prefix="(" suffix=")" suffixOverrides=",">
42
+			<if test="forewarningName != null and forewarningName != ''">forewarning_name,</if>
43
+			<if test="content != null and content != ''">content,</if>
44
+			<if test="equipmentId != null">equipment_id,</if>
45
+			<if test="equipmentName != null and equipmentName != ''">equipment_name,</if>
46
+			<if test="createTime != null">create_time,</if>
47
+			<if test="isResolve != null">is_resolve,</if>
48
+			<if test="resolveTime != null">resolve_time,</if>
49
+		</trim>
50
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
51
+			<if test="forewarningName != null and forewarningName != ''">#{forewarningName},</if>
52
+			<if test="content != null and content != ''">#{content},</if>
53
+			<if test="equipmentId != null">#{equipmentId},</if>
54
+			<if test="equipmentName != null and equipmentName != ''">#{equipmentName},</if>
55
+			now(),
56
+			<if test="isResolve != null">#{isResolve},</if>
57
+			<if test="resolveTime != null">#{resolveTime},</if>
58
+		</trim>
59
+	</insert>
60
+
61
+	<update id="updateForewarningInfo" parameterType="ForewarningInfo">
62
+		update forewarning_info
63
+		<trim prefix="SET" suffixOverrides=",">
64
+			forewarning_name = #{forewarningName},
65
+			content = #{content},
66
+			equipment_id = #{equipmentId},
67
+			equipment_name = #{equipmentName},
68
+			is_resolve = #{isResolve},
69
+			resolve_time = #{resolveTime},
70
+		</trim>
71
+		where forewarning_id = #{forewarningId}
72
+	</update>
73
+
74
+	<delete id="deleteForewarningInfoByForewarningId" parameterType="Integer">
75
+		delete from forewarning_info where forewarning_id = #{forewarningId}
76
+	</delete>
77
+
78
+	<delete id="deleteForewarningInfoByForewarningIds" parameterType="String">
79
+		delete from forewarning_info where forewarning_id in
80
+		<foreach item="forewarningId" collection="array" open="(" separator="," close=")">
81
+			#{forewarningId}
82
+		</foreach>
83
+	</delete>
84
+</mapper>

+ 123 - 0
src/main/resources/mapper/info/OrganizationInfoMapper.xml

@@ -0,0 +1,123 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.OrganizationInfoMapper">
6
+
7
+	<resultMap type="OrganizationInfo" id="OrganizationInfoResult">
8
+		<result property="organizationId"    column="organization_id"    />
9
+		<result property="typeId"    column="type_id"    />
10
+		<result property="roomId"    column="room_id"    />
11
+		<result property="buildingId"    column="building_id"    />
12
+		<result property="areaId"    column="area_id"    />
13
+		<result property="organizationName"    column="organization_name"    />
14
+		<result property="intro"    column="intro"    />
15
+		<result property="lngLat"    column="lng_lat"    />
16
+		<result property="rasterLngLat"    column="raster_lng_lat"    />
17
+		<result property="important"    column="important"    />
18
+		<result property="typeName"    column="type_name"    />
19
+		<result property="address"    column="address"    />
20
+		<result property="logo"    column="logo"    />
21
+		<result property="telephone"    column="telephone"    />
22
+		<result property="product"    column="product"    />
23
+		<result property="enterTime"    column="enter_time"    />
24
+		<result property="employeNum"    column="employe_num"    />
25
+	</resultMap>
26
+
27
+	<sql id="selectOrganizationInfoVo">
28
+		select organization_id, type_id, room_id, building_id, area_id, organization_name, intro, lng_lat, raster_lng_lat, important, type_name, address, logo, telephone, product, enter_time, employe_num from organization_info
29
+	</sql>
30
+
31
+	<select id="selectOrganizationInfoList" parameterType="OrganizationInfo" resultMap="OrganizationInfoResult">
32
+		<include refid="selectOrganizationInfoVo"/>
33
+		<where>
34
+			<if test="typeId != null "> and type_id = #{typeId}</if>
35
+			<if test="roomId != null "> and room_id = #{roomId}</if>
36
+			<if test="buildingId != null "> and building_id = #{buildingId}</if>
37
+			<if test="areaId != null "> and area_id = #{areaId}</if>
38
+			<if test="organizationName != null  and organizationName != ''"> and organization_name like concat('%', #{organizationName}, '%')</if>
39
+			<if test="important != null "> and important = #{important}</if>
40
+		</where>
41
+		order by organization_id
42
+
43
+	</select>
44
+
45
+	<select id="selectOrganizationInfoByOrganizationId" parameterType="Integer" resultMap="OrganizationInfoResult">
46
+		<include refid="selectOrganizationInfoVo"/>
47
+		where organization_id = #{organizationId}
48
+	</select>
49
+
50
+	<insert id="insertOrganizationInfo" parameterType="OrganizationInfo" useGeneratedKeys="true" keyProperty="organizationId">
51
+		insert into organization_info
52
+		<trim prefix="(" suffix=")" suffixOverrides=",">
53
+			<if test="typeId != null">type_id,</if>
54
+			<if test="roomId != null">room_id,</if>
55
+			<if test="buildingId != null">building_id,</if>
56
+			<if test="areaId != null">area_id,</if>
57
+			<if test="organizationName != null and organizationName != ''">organization_name,</if>
58
+			<if test="intro != null and intro != ''">intro,</if>
59
+			<if test="lngLat != null and lngLat != ''">lng_lat,</if>
60
+			<if test="rasterLngLat != null and rasterLngLat != ''">raster_lng_lat,</if>
61
+			<if test="important != null">important,</if>
62
+			<if test="typeName != null and typeName != ''">type_name,</if>
63
+			<if test="address != null and address != ''">address,</if>
64
+			<if test="logo != null and logo != ''">logo,</if>
65
+			<if test="telephone != null and telephone != ''">telephone,</if>
66
+			<if test="product != null and product != ''">product,</if>
67
+			<if test="enterTime != null">enter_time,</if>
68
+			<if test="employeNum != null">employe_num,</if>
69
+		</trim>
70
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
71
+			<if test="typeId != null">#{typeId},</if>
72
+			<if test="roomId != null">#{roomId},</if>
73
+			<if test="buildingId != null">#{buildingId},</if>
74
+			<if test="areaId != null">#{areaId},</if>
75
+			<if test="organizationName != null and organizationName != ''">#{organizationName},</if>
76
+			<if test="intro != null and intro != ''">#{intro},</if>
77
+			<if test="lngLat != null and lngLat != ''">#{lngLat},</if>
78
+			<if test="rasterLngLat != null and rasterLngLat != ''">#{rasterLngLat},</if>
79
+			<if test="important != null">#{important},</if>
80
+			<if test="typeName != null and typeName != ''">#{typeName},</if>
81
+			<if test="address != null and address != ''">#{address},</if>
82
+			<if test="logo != null and logo != ''">#{logo},</if>
83
+			<if test="telephone != null and telephone != ''">#{telephone},</if>
84
+			<if test="product != null and product != ''">#{product},</if>
85
+			<if test="enterTime != null">#{enterTime},</if>
86
+			<if test="employeNum != null">#{employeNum},</if>
87
+		</trim>
88
+	</insert>
89
+
90
+	<update id="updateOrganizationInfo" parameterType="OrganizationInfo">
91
+		update organization_info
92
+		<trim prefix="SET" suffixOverrides=",">
93
+			type_id = #{typeId},
94
+			room_id = #{roomId},
95
+			building_id = #{buildingId},
96
+			area_id = #{areaId},
97
+			organization_name = #{organizationName},
98
+			intro = #{intro},
99
+			lng_lat = #{lngLat},
100
+			raster_lng_lat = #{rasterLngLat},
101
+			important = #{important},
102
+			type_name = #{typeName},
103
+			address = #{address},
104
+			logo = #{logo},
105
+			telephone = #{telephone},
106
+			product = #{product},
107
+			enter_time = #{enterTime},
108
+			employe_num = #{employeNum},
109
+		</trim>
110
+		where organization_id = #{organizationId}
111
+	</update>
112
+
113
+	<delete id="deleteOrganizationInfoByOrganizationId" parameterType="Integer">
114
+		delete from organization_info where organization_id = #{organizationId}
115
+	</delete>
116
+
117
+	<delete id="deleteOrganizationInfoByOrganizationIds" parameterType="String">
118
+		delete from organization_info where organization_id in
119
+		<foreach item="organizationId" collection="array" open="(" separator="," close=")">
120
+			#{organizationId}
121
+		</foreach>
122
+	</delete>
123
+</mapper>

+ 80 - 0
src/main/resources/mapper/info/PlanInfoMapper.xml

@@ -0,0 +1,80 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.PlanInfoMapper">
6
+
7
+	<resultMap type="PlanInfo" id="PlanInfoResult">
8
+		<result property="planId"    column="plan_id"    />
9
+		<result property="areaId"    column="area_id"    />
10
+		<result property="typeId"    column="type_id"    />
11
+		<result property="planName"    column="plan_name"    />
12
+		<result property="content"    column="content"    />
13
+		<result property="colour"    column="colour"    />
14
+		<result property="acreage"    column="acreage"    />
15
+	</resultMap>
16
+
17
+	<sql id="selectPlanInfoVo">
18
+		select plan_id, area_id, type_id, plan_name, content, colour, acreage from plan_info
19
+	</sql>
20
+
21
+	<select id="selectPlanInfoList" parameterType="PlanInfo" resultMap="PlanInfoResult">
22
+		<include refid="selectPlanInfoVo"/>
23
+		<where>
24
+			<if test="areaId != null "> and area_id = #{areaId}</if>
25
+			<if test="typeId != null "> and type_id = #{typeId}</if>
26
+			<if test="planName != null  and planName != ''"> and plan_name like concat('%', #{planName}, '%')</if>
27
+		</where>
28
+		order by plan_id
29
+
30
+	</select>
31
+
32
+	<select id="selectPlanInfoByPlanId" parameterType="Integer" resultMap="PlanInfoResult">
33
+		<include refid="selectPlanInfoVo"/>
34
+		where plan_id = #{planId}
35
+	</select>
36
+
37
+	<insert id="insertPlanInfo" parameterType="PlanInfo" useGeneratedKeys="true" keyProperty="planId">
38
+		insert into plan_info
39
+		<trim prefix="(" suffix=")" suffixOverrides=",">
40
+			<if test="areaId != null">area_id,</if>
41
+			<if test="typeId != null">type_id,</if>
42
+			<if test="planName != null and planName != ''">plan_name,</if>
43
+			<if test="content != null and content != ''">content,</if>
44
+			<if test="colour != null and colour != ''">colour,</if>
45
+			<if test="acreage != null">acreage,</if>
46
+		</trim>
47
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
48
+			<if test="areaId != null">#{areaId},</if>
49
+			<if test="typeId != null">#{typeId},</if>
50
+			<if test="planName != null and planName != ''">#{planName},</if>
51
+			<if test="content != null and content != ''">#{content},</if>
52
+			<if test="colour != null and colour != ''">#{colour},</if>
53
+			<if test="acreage != null">#{acreage},</if>
54
+		</trim>
55
+	</insert>
56
+
57
+	<update id="updatePlanInfo" parameterType="PlanInfo">
58
+		update plan_info
59
+		<trim prefix="SET" suffixOverrides=",">
60
+			area_id = #{areaId},
61
+			type_id = #{typeId},
62
+			plan_name = #{planName},
63
+			content = #{content},
64
+			colour = #{colour},
65
+			acreage = #{acreage},
66
+		</trim>
67
+		where plan_id = #{planId}
68
+	</update>
69
+
70
+	<delete id="deletePlanInfoByPlanId" parameterType="Integer">
71
+		delete from plan_info where plan_id = #{planId}
72
+	</delete>
73
+
74
+	<delete id="deletePlanInfoByPlanIds" parameterType="String">
75
+		delete from plan_info where plan_id in
76
+		<foreach item="planId" collection="array" open="(" separator="," close=")">
77
+			#{planId}
78
+		</foreach>
79
+	</delete>
80
+</mapper>

+ 71 - 0
src/main/resources/mapper/info/PolicyInfoMapper.xml

@@ -0,0 +1,71 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.PolicyInfoMapper">
6
+
7
+	<resultMap type="PolicyInfo" id="PolicyInfoResult">
8
+		<result property="policyId"    column="policy_id"    />
9
+		<result property="policyName"    column="policy_name"    />
10
+		<result property="url"    column="url"    />
11
+		<result property="createTime"    column="create_time"    />
12
+		<result property="fileName"    column="file_name"    />
13
+	</resultMap>
14
+
15
+	<sql id="selectPolicyInfoVo">
16
+		select policy_id, policy_name, url, create_time, file_name from policy_info
17
+	</sql>
18
+
19
+	<select id="selectPolicyInfoList" parameterType="PolicyInfo" resultMap="PolicyInfoResult">
20
+		<include refid="selectPolicyInfoVo"/>
21
+		<where>
22
+			<if test="policyName != null  and policyName != ''"> and policy_name like concat('%', #{policyName}, '%')</if>
23
+			<if test="createTime != null "> and create_time = #{createTime}</if>
24
+			<if test="fileName != null  and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
25
+		</where>
26
+		order by policy_id
27
+
28
+	</select>
29
+
30
+	<select id="selectPolicyInfoByPolicyId" parameterType="Integer" resultMap="PolicyInfoResult">
31
+		<include refid="selectPolicyInfoVo"/>
32
+		where policy_id = #{policyId}
33
+	</select>
34
+
35
+	<insert id="insertPolicyInfo" parameterType="PolicyInfo" useGeneratedKeys="true" keyProperty="policyId">
36
+		insert into policy_info
37
+		<trim prefix="(" suffix=")" suffixOverrides=",">
38
+			<if test="policyName != null and policyName != ''">policy_name,</if>
39
+			<if test="url != null and url != ''">url,</if>
40
+			<if test="createTime != null">create_time,</if>
41
+			<if test="fileName != null and fileName != ''">file_name,</if>
42
+		</trim>
43
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
44
+			<if test="policyName != null and policyName != ''">#{policyName},</if>
45
+			<if test="url != null and url != ''">#{url},</if>
46
+			now(),
47
+			<if test="fileName != null and fileName != ''">#{fileName},</if>
48
+		</trim>
49
+	</insert>
50
+
51
+	<update id="updatePolicyInfo" parameterType="PolicyInfo">
52
+		update policy_info
53
+		<trim prefix="SET" suffixOverrides=",">
54
+			policy_name = #{policyName},
55
+			url = #{url},
56
+			file_name = #{fileName},
57
+		</trim>
58
+		where policy_id = #{policyId}
59
+	</update>
60
+
61
+	<delete id="deletePolicyInfoByPolicyId" parameterType="Integer">
62
+		delete from policy_info where policy_id = #{policyId}
63
+	</delete>
64
+
65
+	<delete id="deletePolicyInfoByPolicyIds" parameterType="String">
66
+		delete from policy_info where policy_id in
67
+		<foreach item="policyId" collection="array" open="(" separator="," close=")">
68
+			#{policyId}
69
+		</foreach>
70
+	</delete>
71
+</mapper>

+ 133 - 0
src/main/resources/mapper/info/RoomInfoMapper.xml

@@ -0,0 +1,133 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.RoomInfoMapper">
6
+
7
+	<resultMap type="RoomInfo" id="RoomInfoResult">
8
+		<result property="roomId"    column="room_id"    />
9
+		<result property="typeId"    column="type_id"    />
10
+		<result property="buildingId"    column="building_id"    />
11
+		<result property="houseTypeId"    column="house_type_id"    />
12
+		<result property="roomName"    column="room_name"    />
13
+		<result property="mapCode"    column="map_code"    />
14
+		<result property="enName"    column="en_name"    />
15
+		<result property="alias"    column="alias"    />
16
+		<result property="orderId"    column="order_id"    />
17
+		<result property="synStatus"    column="syn_status"    />
18
+		<result property="delete"    column="delete"    />
19
+		<result property="brief"    column="brief"    />
20
+		<result property="lngLat"    column="lng_lat"    />
21
+		<result property="rasterLngLat"    column="raster_lng_lat"    />
22
+		<result property="memo"    column="memo"    />
23
+		<result property="address"    column="address"    />
24
+		<result property="levelNumber"    column="level_number"    />
25
+		<result property="acreage"    column="acreage"    />
26
+		<result property="buildingName"    column="building_name"    />
27
+		<result property="hourseNumber"    column="hourse_number"    />
28
+	</resultMap>
29
+
30
+	<sql id="selectRoomInfoVo">
31
+		select room_id, type_id, building_id, house_type_id, room_name, map_code, en_name, alias, order_id, syn_status, delete, brief, lng_lat, raster_lng_lat, memo, address, level_number, acreage, building_name, hourse_number from room_info
32
+	</sql>
33
+
34
+	<select id="selectRoomInfoList" parameterType="RoomInfo" resultMap="RoomInfoResult">
35
+		<include refid="selectRoomInfoVo"/>
36
+		<where>
37
+			<if test="typeId != null "> and type_id = #{typeId}</if>
38
+			<if test="buildingId != null "> and building_id = #{buildingId}</if>
39
+			<if test="houseTypeId != null "> and house_type_id = #{houseTypeId}</if>
40
+			<if test="roomName != null  and roomName != ''"> and room_name like concat('%', #{roomName}, '%')</if>
41
+		</where>
42
+		order by room_id
43
+
44
+	</select>
45
+
46
+	<select id="selectRoomInfoByRoomId" parameterType="Integer" resultMap="RoomInfoResult">
47
+		<include refid="selectRoomInfoVo"/>
48
+		where room_id = #{roomId}
49
+	</select>
50
+
51
+	<insert id="insertRoomInfo" parameterType="RoomInfo" useGeneratedKeys="true" keyProperty="roomId">
52
+		insert into room_info
53
+		<trim prefix="(" suffix=")" suffixOverrides=",">
54
+			<if test="typeId != null">type_id,</if>
55
+			<if test="buildingId != null">building_id,</if>
56
+			<if test="houseTypeId != null">house_type_id,</if>
57
+			<if test="roomName != null and roomName != ''">room_name,</if>
58
+			<if test="mapCode != null">map_code,</if>
59
+			<if test="enName != null and enName != ''">en_name,</if>
60
+			<if test="alias != null and alias != ''">alias,</if>
61
+			<if test="orderId != null">order_id,</if>
62
+			<if test="synStatus != null">syn_status,</if>
63
+			<if test="delete != null">delete,</if>
64
+			<if test="brief != null and brief != ''">brief,</if>
65
+			<if test="lngLat != null and lngLat != ''">lng_lat,</if>
66
+			<if test="rasterLngLat != null and rasterLngLat != ''">raster_lng_lat,</if>
67
+			<if test="memo != null and memo != ''">memo,</if>
68
+			<if test="address != null and address != ''">address,</if>
69
+			<if test="levelNumber != null">level_number,</if>
70
+			<if test="acreage != null">acreage,</if>
71
+			<if test="buildingName != null and buildingName != ''">building_name,</if>
72
+			<if test="hourseNumber != null and hourseNumber != ''">hourse_number,</if>
73
+		</trim>
74
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
75
+			<if test="typeId != null">#{typeId},</if>
76
+			<if test="buildingId != null">#{buildingId},</if>
77
+			<if test="houseTypeId != null">#{houseTypeId},</if>
78
+			<if test="roomName != null and roomName != ''">#{roomName},</if>
79
+			<if test="mapCode != null">#{mapCode},</if>
80
+			<if test="enName != null and enName != ''">#{enName},</if>
81
+			<if test="alias != null and alias != ''">#{alias},</if>
82
+			<if test="orderId != null">#{orderId},</if>
83
+			<if test="synStatus != null">#{synStatus},</if>
84
+			<if test="delete != null">#{delete},</if>
85
+			<if test="brief != null and brief != ''">#{brief},</if>
86
+			<if test="lngLat != null and lngLat != ''">#{lngLat},</if>
87
+			<if test="rasterLngLat != null and rasterLngLat != ''">#{rasterLngLat},</if>
88
+			<if test="memo != null and memo != ''">#{memo},</if>
89
+			<if test="address != null and address != ''">#{address},</if>
90
+			<if test="levelNumber != null">#{levelNumber},</if>
91
+			<if test="acreage != null">#{acreage},</if>
92
+			<if test="buildingName != null and buildingName != ''">#{buildingName},</if>
93
+			<if test="hourseNumber != null and hourseNumber != ''">#{hourseNumber},</if>
94
+		</trim>
95
+	</insert>
96
+
97
+	<update id="updateRoomInfo" parameterType="RoomInfo">
98
+		update room_info
99
+		<trim prefix="SET" suffixOverrides=",">
100
+			type_id = #{typeId},
101
+			building_id = #{buildingId},
102
+			house_type_id = #{houseTypeId},
103
+			room_name = #{roomName},
104
+			map_code = #{mapCode},
105
+			en_name = #{enName},
106
+			alias = #{alias},
107
+			order_id = #{orderId},
108
+			syn_status = #{synStatus},
109
+			delete = #{delete},
110
+			brief = #{brief},
111
+			lng_lat = #{lngLat},
112
+			raster_lng_lat = #{rasterLngLat},
113
+			memo = #{memo},
114
+			address = #{address},
115
+			level_number = #{levelNumber},
116
+			acreage = #{acreage},
117
+			building_name = #{buildingName},
118
+			hourse_number = #{hourseNumber},
119
+		</trim>
120
+		where room_id = #{roomId}
121
+	</update>
122
+
123
+	<delete id="deleteRoomInfoByRoomId" parameterType="Integer">
124
+		delete from room_info where room_id = #{roomId}
125
+	</delete>
126
+
127
+	<delete id="deleteRoomInfoByRoomIds" parameterType="String">
128
+		delete from room_info where room_id in
129
+		<foreach item="roomId" collection="array" open="(" separator="," close=")">
130
+			#{roomId}
131
+		</foreach>
132
+	</delete>
133
+</mapper>

+ 76 - 0
src/main/resources/mapper/info/StationInfoMapper.xml

@@ -0,0 +1,76 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.StationInfoMapper">
6
+
7
+	<resultMap type="StationInfo" id="StationInfoResult">
8
+		<result property="stationId"    column="station_id"    />
9
+		<result property="stationName"    column="station_name"    />
10
+		<result property="memo"    column="memo"    />
11
+		<result property="lngLat"    column="lng_lat"    />
12
+		<result property="rasterLngLat"    column="raster_lng_lat"    />
13
+		<result property="trafficId"    column="traffic_id"    />
14
+	</resultMap>
15
+
16
+	<sql id="selectStationInfoVo">
17
+		select station_id, station_name, memo, lng_lat, raster_lng_lat, traffic_id from station_info
18
+	</sql>
19
+
20
+	<select id="selectStationInfoList" parameterType="StationInfo" resultMap="StationInfoResult">
21
+		<include refid="selectStationInfoVo"/>
22
+		<where>
23
+			<if test="stationName != null  and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
24
+			<if test="memo != null  and memo != ''"> and memo like concat('%', #{memo}, '%')</if>
25
+			<if test="trafficId != null "> and traffic_id = #{trafficId}</if>
26
+		</where>
27
+		order by station_id
28
+
29
+	</select>
30
+
31
+	<select id="selectStationInfoByStationId" parameterType="Integer" resultMap="StationInfoResult">
32
+		<include refid="selectStationInfoVo"/>
33
+		where station_id = #{stationId}
34
+	</select>
35
+
36
+	<insert id="insertStationInfo" parameterType="StationInfo" useGeneratedKeys="true" keyProperty="stationId">
37
+		insert into station_info
38
+		<trim prefix="(" suffix=")" suffixOverrides=",">
39
+			<if test="stationName != null and stationName != ''">station_name,</if>
40
+			<if test="memo != null and memo != ''">memo,</if>
41
+			<if test="lngLat != null and lngLat != ''">lng_lat,</if>
42
+			<if test="rasterLngLat != null and rasterLngLat != ''">raster_lng_lat,</if>
43
+			<if test="trafficId != null">traffic_id,</if>
44
+		</trim>
45
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
46
+			<if test="stationName != null and stationName != ''">#{stationName},</if>
47
+			<if test="memo != null and memo != ''">#{memo},</if>
48
+			<if test="lngLat != null and lngLat != ''">#{lngLat},</if>
49
+			<if test="rasterLngLat != null and rasterLngLat != ''">#{rasterLngLat},</if>
50
+			<if test="trafficId != null">#{trafficId},</if>
51
+		</trim>
52
+	</insert>
53
+
54
+	<update id="updateStationInfo" parameterType="StationInfo">
55
+		update station_info
56
+		<trim prefix="SET" suffixOverrides=",">
57
+			station_name = #{stationName},
58
+			memo = #{memo},
59
+			lng_lat = #{lngLat},
60
+			raster_lng_lat = #{rasterLngLat},
61
+			traffic_id = #{trafficId},
62
+		</trim>
63
+		where station_id = #{stationId}
64
+	</update>
65
+
66
+	<delete id="deleteStationInfoByStationId" parameterType="Integer">
67
+		delete from station_info where station_id = #{stationId}
68
+	</delete>
69
+
70
+	<delete id="deleteStationInfoByStationIds" parameterType="String">
71
+		delete from station_info where station_id in
72
+		<foreach item="stationId" collection="array" open="(" separator="," close=")">
73
+			#{stationId}
74
+		</foreach>
75
+	</delete>
76
+</mapper>

+ 74 - 0
src/main/resources/mapper/info/TrafficInfoMapper.xml

@@ -0,0 +1,74 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.info.mapper.TrafficInfoMapper">
6
+
7
+	<resultMap type="TrafficInfo" id="TrafficInfoResult">
8
+		<result property="trafficId"    column="traffic_id"    />
9
+		<result property="typeId"    column="type_id"    />
10
+		<result property="trafficName"    column="traffic_name"    />
11
+		<result property="amount"    column="amount"    />
12
+		<result property="memo"    column="memo"    />
13
+		<result property="colour"    column="colour"    />
14
+	</resultMap>
15
+
16
+	<sql id="selectTrafficInfoVo">
17
+		select traffic_id, type_id, traffic_name, amount, memo, colour from traffic_info
18
+	</sql>
19
+
20
+	<select id="selectTrafficInfoList" parameterType="TrafficInfo" resultMap="TrafficInfoResult">
21
+		<include refid="selectTrafficInfoVo"/>
22
+		<where>
23
+			<if test="trafficName != null  and trafficName != ''"> and traffic_name like concat('%', #{trafficName}, '%')</if>
24
+		</where>
25
+		order by traffic_id
26
+
27
+	</select>
28
+
29
+	<select id="selectTrafficInfoByTrafficId" parameterType="Integer" resultMap="TrafficInfoResult">
30
+		<include refid="selectTrafficInfoVo"/>
31
+		where traffic_id = #{trafficId}
32
+	</select>
33
+
34
+	<insert id="insertTrafficInfo" parameterType="TrafficInfo" useGeneratedKeys="true" keyProperty="trafficId">
35
+		insert into traffic_info
36
+		<trim prefix="(" suffix=")" suffixOverrides=",">
37
+			<if test="typeId != null">type_id,</if>
38
+			<if test="trafficName != null and trafficName != ''">traffic_name,</if>
39
+			<if test="amount != null">amount,</if>
40
+			<if test="memo != null and memo != ''">memo,</if>
41
+			<if test="colour != null and colour != ''">colour,</if>
42
+		</trim>
43
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
44
+			<if test="typeId != null">#{typeId},</if>
45
+			<if test="trafficName != null and trafficName != ''">#{trafficName},</if>
46
+			<if test="amount != null">#{amount},</if>
47
+			<if test="memo != null and memo != ''">#{memo},</if>
48
+			<if test="colour != null and colour != ''">#{colour},</if>
49
+		</trim>
50
+	</insert>
51
+
52
+	<update id="updateTrafficInfo" parameterType="TrafficInfo">
53
+		update traffic_info
54
+		<trim prefix="SET" suffixOverrides=",">
55
+			<if test="typeId != null ">type_id = #{typeId},</if>
56
+			traffic_name = #{trafficName},
57
+			amount = #{amount},
58
+			memo = #{memo},
59
+			colour = #{colour},
60
+		</trim>
61
+		where traffic_id = #{trafficId}
62
+	</update>
63
+
64
+	<delete id="deleteTrafficInfoByTrafficId" parameterType="Integer">
65
+		delete from traffic_info where traffic_id = #{trafficId}
66
+	</delete>
67
+
68
+	<delete id="deleteTrafficInfoByTrafficIds" parameterType="String">
69
+		delete from traffic_info where traffic_id in
70
+		<foreach item="trafficId" collection="array" open="(" separator="," close=")">
71
+			#{trafficId}
72
+		</foreach>
73
+	</delete>
74
+</mapper>

+ 86 - 0
src/main/resources/mapper/type/AreaTypeMapper.xml

@@ -0,0 +1,86 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.type.mapper.AreaTypeMapper">
6
+
7
+	<resultMap type="AreaType" id="AreaTypeResult">
8
+		<result property="typeId"    column="type_id"    />
9
+		<result property="parentId"    column="parent_id"    />
10
+		<result property="typeName"    column="type_name"    />
11
+		<result property="click"    column="click"    />
12
+		<result property="search"    column="search"    />
13
+		<result property="description"    column="description"    />
14
+		<result property="orderId"    column="order_id"    />
15
+		<result property="memo"    column="memo"    />
16
+		<result property="colour"    column="colour"    />
17
+	</resultMap>
18
+
19
+	<sql id="selectAreaTypeVo">
20
+		select type_id, parent_id, type_name, click, search, description, order_id, memo, colour from area_type
21
+	</sql>
22
+
23
+	<select id="selectAreaTypeList" parameterType="AreaType" resultMap="AreaTypeResult">
24
+		<include refid="selectAreaTypeVo"/>
25
+		<where>
26
+			<if test="typeName != null  and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
27
+		</where>
28
+		order by type_id
29
+
30
+	</select>
31
+
32
+	<select id="selectAreaTypeByTypeId" parameterType="Integer" resultMap="AreaTypeResult">
33
+		<include refid="selectAreaTypeVo"/>
34
+		where type_id = #{typeId}
35
+	</select>
36
+
37
+	<insert id="insertAreaType" parameterType="AreaType" useGeneratedKeys="true" keyProperty="typeId">
38
+		insert into area_type
39
+		<trim prefix="(" suffix=")" suffixOverrides=",">
40
+			<if test="parentId != null">parent_id,</if>
41
+			<if test="typeName != null and typeName != ''">type_name,</if>
42
+			<if test="click != null">click,</if>
43
+			<if test="search != null">search,</if>
44
+			<if test="description != null and description != ''">description,</if>
45
+			<if test="orderId != null">order_id,</if>
46
+			<if test="memo != null and memo != ''">memo,</if>
47
+			<if test="colour != null and colour != ''">colour,</if>
48
+		</trim>
49
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
50
+			<if test="parentId != null">#{parentId},</if>
51
+			<if test="typeName != null and typeName != ''">#{typeName},</if>
52
+			<if test="click != null">#{click},</if>
53
+			<if test="search != null">#{search},</if>
54
+			<if test="description != null and description != ''">#{description},</if>
55
+			<if test="orderId != null">#{orderId},</if>
56
+			<if test="memo != null and memo != ''">#{memo},</if>
57
+			<if test="colour != null and colour != ''">#{colour},</if>
58
+		</trim>
59
+	</insert>
60
+
61
+	<update id="updateAreaType" parameterType="AreaType">
62
+		update area_type
63
+		<trim prefix="SET" suffixOverrides=",">
64
+			parent_id = #{parentId},
65
+			type_name = #{typeName},
66
+			click = #{click},
67
+			search = #{search},
68
+			description = #{description},
69
+			order_id = #{orderId},
70
+			memo = #{memo},
71
+			colour = #{colour},
72
+		</trim>
73
+		where type_id = #{typeId}
74
+	</update>
75
+
76
+	<delete id="deleteAreaTypeByTypeId" parameterType="Integer">
77
+		delete from area_type where type_id = #{typeId}
78
+	</delete>
79
+
80
+	<delete id="deleteAreaTypeByTypeIds" parameterType="String">
81
+		delete from area_type where type_id in
82
+		<foreach item="typeId" collection="array" open="(" separator="," close=")">
83
+			#{typeId}
84
+		</foreach>
85
+	</delete>
86
+</mapper>

+ 82 - 0
src/main/resources/mapper/type/BuildingTypeMapper.xml

@@ -0,0 +1,82 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.type.mapper.BuildingTypeMapper">
6
+
7
+	<resultMap type="BuildingType" id="BuildingTypeResult">
8
+		<result property="typeId"    column="type_id"    />
9
+		<result property="parentId"    column="parent_id"    />
10
+		<result property="typeName"    column="type_name"    />
11
+		<result property="click"    column="click"    />
12
+		<result property="search"    column="search"    />
13
+		<result property="description"    column="description"    />
14
+		<result property="orderId"    column="order_id"    />
15
+		<result property="memo"    column="memo"    />
16
+	</resultMap>
17
+
18
+	<sql id="selectBuildingTypeVo">
19
+		select type_id, parent_id, type_name, click, search, description, order_id, memo from building_type
20
+	</sql>
21
+
22
+	<select id="selectBuildingTypeList" parameterType="BuildingType" resultMap="BuildingTypeResult">
23
+		<include refid="selectBuildingTypeVo"/>
24
+		<where>
25
+			<if test="typeName != null  and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
26
+		</where>
27
+		order by type_id
28
+
29
+	</select>
30
+
31
+	<select id="selectBuildingTypeByTypeId" parameterType="Integer" resultMap="BuildingTypeResult">
32
+		<include refid="selectBuildingTypeVo"/>
33
+		where type_id = #{typeId}
34
+	</select>
35
+
36
+	<insert id="insertBuildingType" parameterType="BuildingType" useGeneratedKeys="true" keyProperty="typeId">
37
+		insert into building_type
38
+		<trim prefix="(" suffix=")" suffixOverrides=",">
39
+			<if test="parentId != null">parent_id,</if>
40
+			<if test="typeName != null and typeName != ''">type_name,</if>
41
+			<if test="click != null">click,</if>
42
+			<if test="search != null">search,</if>
43
+			<if test="description != null and description != ''">description,</if>
44
+			<if test="orderId != null">order_id,</if>
45
+			<if test="memo != null and memo != ''">memo,</if>
46
+		</trim>
47
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
48
+			<if test="parentId != null">#{parentId},</if>
49
+			<if test="typeName != null and typeName != ''">#{typeName},</if>
50
+			<if test="click != null">#{click},</if>
51
+			<if test="search != null">#{search},</if>
52
+			<if test="description != null and description != ''">#{description},</if>
53
+			<if test="orderId != null">#{orderId},</if>
54
+			<if test="memo != null and memo != ''">#{memo},</if>
55
+		</trim>
56
+	</insert>
57
+
58
+	<update id="updateBuildingType" parameterType="BuildingType">
59
+		update building_type
60
+		<trim prefix="SET" suffixOverrides=",">
61
+			parent_id = #{parentId},
62
+			type_name = #{typeName},
63
+			click = #{click},
64
+			search = #{search},
65
+			description = #{description},
66
+			order_id = #{orderId},
67
+			memo = #{memo},
68
+		</trim>
69
+		where type_id = #{typeId}
70
+	</update>
71
+
72
+	<delete id="deleteBuildingTypeByTypeId" parameterType="Integer">
73
+		delete from building_type where type_id = #{typeId}
74
+	</delete>
75
+
76
+	<delete id="deleteBuildingTypeByTypeIds" parameterType="String">
77
+		delete from building_type where type_id in
78
+		<foreach item="typeId" collection="array" open="(" separator="," close=")">
79
+			#{typeId}
80
+		</foreach>
81
+	</delete>
82
+</mapper>

+ 86 - 0
src/main/resources/mapper/type/EquipmentTypeMapper.xml

@@ -0,0 +1,86 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.type.mapper.EquipmentTypeMapper">
6
+
7
+	<resultMap type="EquipmentType" id="EquipmentTypeResult">
8
+		<result property="typeId"    column="type_id"    />
9
+		<result property="parentId"    column="parent_id"    />
10
+		<result property="typeName"    column="type_name"    />
11
+		<result property="click"    column="click"    />
12
+		<result property="search"    column="search"    />
13
+		<result property="description"    column="description"    />
14
+		<result property="orderId"    column="order_id"    />
15
+		<result property="memo"    column="memo"    />
16
+		<result property="colour"    column="colour"    />
17
+	</resultMap>
18
+
19
+	<sql id="selectEquipmentTypeVo">
20
+		select type_id, parent_id, type_name, click, search, description, order_id, memo, colour from equipment_type
21
+	</sql>
22
+
23
+	<select id="selectEquipmentTypeList" parameterType="EquipmentType" resultMap="EquipmentTypeResult">
24
+		<include refid="selectEquipmentTypeVo"/>
25
+		<where>
26
+			<if test="typeName != null  and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
27
+		</where>
28
+		order by type_id
29
+
30
+	</select>
31
+
32
+	<select id="selectEquipmentTypeByTypeId" parameterType="Integer" resultMap="EquipmentTypeResult">
33
+		<include refid="selectEquipmentTypeVo"/>
34
+		where type_id = #{typeId}
35
+	</select>
36
+
37
+	<insert id="insertEquipmentType" parameterType="EquipmentType" useGeneratedKeys="true" keyProperty="typeId">
38
+		insert into equipment_type
39
+		<trim prefix="(" suffix=")" suffixOverrides=",">
40
+			<if test="parentId != null">parent_id,</if>
41
+			<if test="typeName != null and typeName != ''">type_name,</if>
42
+			<if test="click != null">click,</if>
43
+			<if test="search != null">search,</if>
44
+			<if test="description != null and description != ''">description,</if>
45
+			<if test="orderId != null">order_id,</if>
46
+			<if test="memo != null and memo != ''">memo,</if>
47
+			<if test="colour != null and colour != ''">colour,</if>
48
+		</trim>
49
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
50
+			<if test="parentId != null">#{parentId},</if>
51
+			<if test="typeName != null and typeName != ''">#{typeName},</if>
52
+			<if test="click != null">#{click},</if>
53
+			<if test="search != null">#{search},</if>
54
+			<if test="description != null and description != ''">#{description},</if>
55
+			<if test="orderId != null">#{orderId},</if>
56
+			<if test="memo != null and memo != ''">#{memo},</if>
57
+			<if test="colour != null and colour != ''">#{colour},</if>
58
+		</trim>
59
+	</insert>
60
+
61
+	<update id="updateEquipmentType" parameterType="EquipmentType">
62
+		update equipment_type
63
+		<trim prefix="SET" suffixOverrides=",">
64
+			parent_id = #{parentId},
65
+			type_name = #{typeName},
66
+			click = #{click},
67
+			search = #{search},
68
+			description = #{description},
69
+			order_id = #{orderId},
70
+			memo = #{memo},
71
+			colour = #{colour},
72
+		</trim>
73
+		where type_id = #{typeId}
74
+	</update>
75
+
76
+	<delete id="deleteEquipmentTypeByTypeId" parameterType="Integer">
77
+		delete from equipment_type where type_id = #{typeId}
78
+	</delete>
79
+
80
+	<delete id="deleteEquipmentTypeByTypeIds" parameterType="String">
81
+		delete from equipment_type where type_id in
82
+		<foreach item="typeId" collection="array" open="(" separator="," close=")">
83
+			#{typeId}
84
+		</foreach>
85
+	</delete>
86
+</mapper>

+ 66 - 0
src/main/resources/mapper/type/HouseTypeMapper.xml

@@ -0,0 +1,66 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+		PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+		"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.lqkj.type.mapper.HouseTypeMapper">
6
+
7
+	<resultMap type="HouseType" id="HouseTypeResult">
8
+		<result property="typeId"    column="type_id"    />
9
+		<result property="typeName"    column="type_name"    />
10
+		<result property="url"    column="url"    />
11
+		<result property="memo"    column="memo"    />
12
+	</resultMap>
13
+
14
+	<sql id="selectHouseTypeVo">
15
+		select type_id, type_name, url, memo from house_type
16
+	</sql>
17
+
18
+	<select id="selectHouseTypeList" parameterType="HouseType" resultMap="HouseTypeResult">
19
+		<include refid="selectHouseTypeVo"/>
20
+		<where>
21
+			<if test="typeName != null  and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
22
+		</where>
23
+		order by type_id
24
+
25
+	</select>
26
+
27
+	<select id="selectHouseTypeByTypeId" parameterType="Integer" resultMap="HouseTypeResult">
28
+		<include refid="selectHouseTypeVo"/>
29
+		where type_id = #{typeId}
30
+	</select>
31
+
32
+	<insert id="insertHouseType" parameterType="HouseType" useGeneratedKeys="true" keyProperty="typeId">
33
+		insert into house_type
34
+		<trim prefix="(" suffix=")" suffixOverrides=",">
35
+			<if test="typeName != null and typeName != ''">type_name,</if>
36
+			<if test="url != null and url != ''">url,</if>
37
+			<if test="memo != null and memo != ''">memo,</if>
38
+		</trim>
39
+		<trim prefix="values (" suffix=")" suffixOverrides=",">
40
+			<if test="typeName != null and typeName != ''">#{typeName},</if>
41
+			<if test="url != null and url != ''">#{url},</if>
42
+			<if test="memo != null and memo != ''">#{memo},</if>
43
+		</trim>
44
+	</insert>
45
+
46
+	<update id="updateHouseType" parameterType="HouseType">
47
+		update house_type
48
+		<trim prefix="SET" suffixOverrides=",">
49
+			type_name = #{typeName},
50
+			url = #{url},
51
+			memo = #{memo},
52
+		</trim>
53
+		where type_id = #{typeId}
54
+	</update>
55
+
56
+	<delete id="deleteHouseTypeByTypeId" parameterType="Integer">
57
+		delete from house_type where type_id = #{typeId}
58
+	</delete>
59
+
60
+	<delete id="deleteHouseTypeByTypeIds" parameterType="String">
61
+		delete from house_type where type_id in
62
+		<foreach item="typeId" collection="array" open="(" separator="," close=")">
63
+			#{typeId}
64
+		</foreach>
65
+	</delete>
66
+</mapper>

+ 0 - 0
src/main/resources/mapper/type/OrganizationTypeMapper.xml


Some files were not shown because too many files changed in this diff