Browse Source

演示后需求更改

zhouwang 1 week ago
parent
commit
3d787ad667

+ 19 - 3
src/main/java/com/lqkj/info/controller/ParkInfoController.java

@@ -24,7 +24,7 @@ import com.github.pagehelper.PageInfo;
24
 
24
 
25
 /**
25
 /**
26
  * 园区对象Controller
26
  * 园区对象Controller
27
- * 
27
+ *
28
  * @author lqkj
28
  * @author lqkj
29
  * @date 2024-12-16
29
  * @date 2024-12-16
30
  */
30
  */
@@ -39,9 +39,20 @@ public class ParkInfoController extends BaseController
39
     /**
39
     /**
40
      * 查询园区对象列表
40
      * 查询园区对象列表
41
      */
41
      */
42
+    @ApiOperation("查询园区对象列表 排除健康城")
43
+
44
+    @GetMapping("/keyList")
45
+    public ResultUtil keyList() {
46
+        return ResultUtil.success(parkInfoService.selectParkInfoKeyList());
47
+    }
48
+
49
+
50
+    /**
51
+     * 查询园区对象列表
52
+     */
42
     @ApiOperation("查询园区对象列表")
53
     @ApiOperation("查询园区对象列表")
43
-    @PreAuthorize("@ss.hasPermi('info:parkInfo:list')")
44
     @GetMapping("/list")
54
     @GetMapping("/list")
55
+    @PreAuthorize("@ss.hasPermi('info:parkInfo:list')")
45
     public ResultUtil list(ParkInfo parkInfo)
56
     public ResultUtil list(ParkInfo parkInfo)
46
     {
57
     {
47
         startPage( parkInfo);
58
         startPage( parkInfo);
@@ -49,6 +60,11 @@ public class ParkInfoController extends BaseController
49
         return ResultUtil.success(pageInfo);
60
         return ResultUtil.success(pageInfo);
50
     }
61
     }
51
 
62
 
63
+
64
+
65
+
66
+
67
+
52
     /**
68
     /**
53
      * 导出园区对象列表
69
      * 导出园区对象列表
54
      */
70
      */
@@ -109,4 +125,4 @@ public class ParkInfoController extends BaseController
109
     {
125
     {
110
         return resultByRows(parkInfoService.deleteParkInfoByParkIds(parkIds));
126
         return resultByRows(parkInfoService.deleteParkInfoByParkIds(parkIds));
111
     }
127
     }
112
-}
128
+}

+ 11 - 11
src/main/java/com/lqkj/info/entity/ParkInfo.java

@@ -8,7 +8,7 @@ import com.lqkj.common.core.model.BaseEntity;
8
 
8
 
9
 /**
9
 /**
10
  * 园区对象对象 park_info
10
  * 园区对象对象 park_info
11
- * 
11
+ *
12
  * @author lqkj
12
  * @author lqkj
13
  * @date 2024-12-16
13
  * @date 2024-12-16
14
  */
14
  */
@@ -25,45 +25,45 @@ public class ParkInfo extends BaseEntity
25
 
25
 
26
     /** 坐标 */
26
     /** 坐标 */
27
     @Excel(name = "坐标")
27
     @Excel(name = "坐标")
28
-    private Object location;
28
+    private String location;
29
 
29
 
30
     /** 备注 */
30
     /** 备注 */
31
     @Excel(name = "备注")
31
     @Excel(name = "备注")
32
     private String memo;
32
     private String memo;
33
 
33
 
34
-    public void setParkId(Integer parkId) 
34
+    public void setParkId(Integer parkId)
35
     {
35
     {
36
         this.parkId = parkId;
36
         this.parkId = parkId;
37
     }
37
     }
38
 
38
 
39
-    public Integer getParkId() 
39
+    public Integer getParkId()
40
     {
40
     {
41
         return parkId;
41
         return parkId;
42
     }
42
     }
43
-    public void setParkName(String parkName) 
43
+    public void setParkName(String parkName)
44
     {
44
     {
45
         this.parkName = parkName;
45
         this.parkName = parkName;
46
     }
46
     }
47
 
47
 
48
-    public String getParkName() 
48
+    public String getParkName()
49
     {
49
     {
50
         return parkName;
50
         return parkName;
51
     }
51
     }
52
-    public void setLocation(Object location)
52
+    public void setLocation(String location)
53
     {
53
     {
54
         this.location = location;
54
         this.location = location;
55
     }
55
     }
56
 
56
 
57
-    public Object getLocation()
57
+    public String getLocation()
58
     {
58
     {
59
         return location;
59
         return location;
60
     }
60
     }
61
-    public void setMemo(String memo) 
61
+    public void setMemo(String memo)
62
     {
62
     {
63
         this.memo = memo;
63
         this.memo = memo;
64
     }
64
     }
65
 
65
 
66
-    public String getMemo() 
66
+    public String getMemo()
67
     {
67
     {
68
         return memo;
68
         return memo;
69
     }
69
     }
@@ -77,4 +77,4 @@ public class ParkInfo extends BaseEntity
77
             .append("memo", getMemo())
77
             .append("memo", getMemo())
78
             .toString();
78
             .toString();
79
     }
79
     }
80
-}
80
+}

+ 16 - 9
src/main/java/com/lqkj/info/mapper/ParkInfoMapper.java

@@ -6,16 +6,16 @@ import com.lqkj.info.entity.ParkInfo;
6
 
6
 
7
 /**
7
 /**
8
  * 园区对象Mapper接口
8
  * 园区对象Mapper接口
9
- * 
9
+ *
10
  * @author lqkj
10
  * @author lqkj
11
  * @date 2024-12-16
11
  * @date 2024-12-16
12
  */
12
  */
13
 @Mapper
13
 @Mapper
14
-public interface ParkInfoMapper 
14
+public interface ParkInfoMapper
15
 {
15
 {
16
     /**
16
     /**
17
      * 查询园区对象
17
      * 查询园区对象
18
-     * 
18
+     *
19
      * @param parkId 园区对象主键
19
      * @param parkId 园区对象主键
20
      * @return 园区对象
20
      * @return 园区对象
21
      */
21
      */
@@ -23,15 +23,22 @@ public interface ParkInfoMapper
23
 
23
 
24
     /**
24
     /**
25
      * 查询园区对象列表
25
      * 查询园区对象列表
26
-     * 
26
+     *
27
      * @param parkInfo 园区对象
27
      * @param parkInfo 园区对象
28
      * @return 园区对象集合
28
      * @return 园区对象集合
29
      */
29
      */
30
     public List<ParkInfo> selectParkInfoList(ParkInfo parkInfo);
30
     public List<ParkInfo> selectParkInfoList(ParkInfo parkInfo);
31
 
31
 
32
     /**
32
     /**
33
+     * 查询园区对象列表 排除健康城园区
34
+     *
35
+     * @return 园区对象集合
36
+     */
37
+    public List<ParkInfo> selectParkInfoKeyList();
38
+
39
+    /**
33
      * 新增园区对象
40
      * 新增园区对象
34
-     * 
41
+     *
35
      * @param parkInfo 园区对象
42
      * @param parkInfo 园区对象
36
      * @return 结果
43
      * @return 结果
37
      */
44
      */
@@ -39,7 +46,7 @@ public interface ParkInfoMapper
39
 
46
 
40
     /**
47
     /**
41
      * 修改园区对象
48
      * 修改园区对象
42
-     * 
49
+     *
43
      * @param parkInfo 园区对象
50
      * @param parkInfo 园区对象
44
      * @return 结果
51
      * @return 结果
45
      */
52
      */
@@ -47,7 +54,7 @@ public interface ParkInfoMapper
47
 
54
 
48
     /**
55
     /**
49
      * 删除园区对象
56
      * 删除园区对象
50
-     * 
57
+     *
51
      * @param parkId 园区对象主键
58
      * @param parkId 园区对象主键
52
      * @return 结果
59
      * @return 结果
53
      */
60
      */
@@ -55,9 +62,9 @@ public interface ParkInfoMapper
55
 
62
 
56
     /**
63
     /**
57
      * 批量删除园区对象
64
      * 批量删除园区对象
58
-     * 
65
+     *
59
      * @param parkIds 需要删除的数据主键集合
66
      * @param parkIds 需要删除的数据主键集合
60
      * @return 结果
67
      * @return 结果
61
      */
68
      */
62
     public int deleteParkInfoByParkIds(Integer[] parkIds);
69
     public int deleteParkInfoByParkIds(Integer[] parkIds);
63
-}
70
+}

+ 23 - 13
src/main/java/com/lqkj/info/service/ParkInfoService.java

@@ -8,7 +8,7 @@ import com.lqkj.info.entity.ParkInfo;
8
 import com.lqkj.common.utils.uuid.IdUtils;
8
 import com.lqkj.common.utils.uuid.IdUtils;
9
 /**
9
 /**
10
  * 园区对象Service业务层处理
10
  * 园区对象Service业务层处理
11
- * 
11
+ *
12
  * @author lqkj
12
  * @author lqkj
13
  * @date 2024-12-16
13
  * @date 2024-12-16
14
  */
14
  */
@@ -20,11 +20,11 @@ public class ParkInfoService
20
 
20
 
21
     /**
21
     /**
22
      * 查询园区对象
22
      * 查询园区对象
23
-     * 
23
+     *
24
      * @param parkId 园区对象主键
24
      * @param parkId 园区对象主键
25
      * @return 园区对象
25
      * @return 园区对象
26
      */
26
      */
27
-    
27
+
28
     public ParkInfo selectParkInfoByParkId(Integer parkId)
28
     public ParkInfo selectParkInfoByParkId(Integer parkId)
29
     {
29
     {
30
         return parkInfoMapper.selectParkInfoByParkId(parkId);
30
         return parkInfoMapper.selectParkInfoByParkId(parkId);
@@ -32,7 +32,7 @@ public class ParkInfoService
32
 
32
 
33
     /**
33
     /**
34
      * 查询园区对象列表
34
      * 查询园区对象列表
35
-     * 
35
+     *
36
      * @param parkInfo 园区对象
36
      * @param parkInfo 园区对象
37
      * @return 园区对象
37
      * @return 园区对象
38
      */
38
      */
@@ -42,12 +42,22 @@ public class ParkInfoService
42
     }
42
     }
43
 
43
 
44
     /**
44
     /**
45
+     * 查询园区对象列表 排除健康城
46
+     *
47
+     * @return 园区对象
48
+     */
49
+    public List<ParkInfo> selectParkInfoKeyList()
50
+    {
51
+        return parkInfoMapper.selectParkInfoKeyList();
52
+    }
53
+
54
+    /**
45
      * 新增园区对象
55
      * 新增园区对象
46
-     * 
56
+     *
47
      * @param parkInfo 园区对象
57
      * @param parkInfo 园区对象
48
      * @return 结果
58
      * @return 结果
49
      */
59
      */
50
-    
60
+
51
     public int insertParkInfo(ParkInfo parkInfo)
61
     public int insertParkInfo(ParkInfo parkInfo)
52
     {
62
     {
53
         return parkInfoMapper.insertParkInfo(parkInfo);
63
         return parkInfoMapper.insertParkInfo(parkInfo);
@@ -55,11 +65,11 @@ public class ParkInfoService
55
 
65
 
56
     /**
66
     /**
57
      * 修改园区对象
67
      * 修改园区对象
58
-     * 
68
+     *
59
      * @param parkInfo 园区对象
69
      * @param parkInfo 园区对象
60
      * @return 结果
70
      * @return 结果
61
      */
71
      */
62
-    
72
+
63
     public int updateParkInfo(ParkInfo parkInfo)
73
     public int updateParkInfo(ParkInfo parkInfo)
64
     {
74
     {
65
         return parkInfoMapper.updateParkInfo(parkInfo);
75
         return parkInfoMapper.updateParkInfo(parkInfo);
@@ -67,11 +77,11 @@ public class ParkInfoService
67
 
77
 
68
     /**
78
     /**
69
      * 批量删除园区对象
79
      * 批量删除园区对象
70
-     * 
80
+     *
71
      * @param parkIds 需要删除的园区对象主键
81
      * @param parkIds 需要删除的园区对象主键
72
      * @return 结果
82
      * @return 结果
73
      */
83
      */
74
-    
84
+
75
     public int deleteParkInfoByParkIds(Integer[] parkIds)
85
     public int deleteParkInfoByParkIds(Integer[] parkIds)
76
     {
86
     {
77
         return parkInfoMapper.deleteParkInfoByParkIds(parkIds);
87
         return parkInfoMapper.deleteParkInfoByParkIds(parkIds);
@@ -79,13 +89,13 @@ public class ParkInfoService
79
 
89
 
80
     /**
90
     /**
81
      * 删除园区对象信息
91
      * 删除园区对象信息
82
-     * 
92
+     *
83
      * @param parkId 园区对象主键
93
      * @param parkId 园区对象主键
84
      * @return 结果
94
      * @return 结果
85
      */
95
      */
86
-    
96
+
87
     public int deleteParkInfoByParkId(Integer parkId)
97
     public int deleteParkInfoByParkId(Integer parkId)
88
     {
98
     {
89
         return parkInfoMapper.deleteParkInfoByParkId(parkId);
99
         return parkInfoMapper.deleteParkInfoByParkId(parkId);
90
     }
100
     }
91
-}
101
+}

+ 14 - 2
src/main/java/com/lqkj/type/controller/PlanTypeController.java

@@ -24,7 +24,7 @@ import com.github.pagehelper.PageInfo;
24
 
24
 
25
 /**
25
 /**
26
  * 规划类型Controller
26
  * 规划类型Controller
27
- * 
27
+ *
28
  * @author lqkj
28
  * @author lqkj
29
  * @date 2024-11-11
29
  * @date 2024-11-11
30
  */
30
  */
@@ -50,6 +50,18 @@ public class PlanTypeController extends BaseController
50
     }
50
     }
51
 
51
 
52
     /**
52
     /**
53
+     * 查询规划类型列表  排除重点状态
54
+     */
55
+    @ApiOperation("查询规划类型列表")
56
+    @GetMapping("/planList")
57
+    public ResultUtil planList(PlanType planType)
58
+    {
59
+        startPage( planType);
60
+        PageInfo<PlanType> pageInfo = new PageInfo<>(planTypeService.planList(planType));
61
+        return ResultUtil.success(pageInfo);
62
+    }
63
+
64
+    /**
53
      * 导出规划类型列表
65
      * 导出规划类型列表
54
      */
66
      */
55
     @ApiOperation("导出规划类型列表")
67
     @ApiOperation("导出规划类型列表")
@@ -109,4 +121,4 @@ public class PlanTypeController extends BaseController
109
     {
121
     {
110
         return resultByRows(planTypeService.deletePlanTypeByTypeIds(typeIds));
122
         return resultByRows(planTypeService.deletePlanTypeByTypeIds(typeIds));
111
     }
123
     }
112
-}
124
+}

+ 12 - 9
src/main/java/com/lqkj/type/mapper/PlanTypeMapper.java

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

+ 27 - 13
src/main/java/com/lqkj/type/service/PlanTypeService.java

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

+ 10 - 0
src/main/resources/db/migration/V1_15__20250329.sql

@@ -0,0 +1,10 @@
1
+INSERT INTO "public"."organization_type" ("parent_id", "type_name", "click", "search", "description", "order_id", "memo", "colour", "icon") VALUES ( 0, '重点建筑', 't', 't', NULL, 0, NULL, NULL, '/profile/upload/2025/01/03/160e794f-782f-4e1c-a5df-a97c611fb659.png');
2
+
3
+ALTER TABLE park_info
4
+ALTER COLUMN location TYPE VARCHAR(255),
5
+ALTER COLUMN memo TYPE text;
6
+
7
+
8
+
9
+INSERT INTO "public"."plan_type" ("type_id", "parent_id", "type_name", "click", "search", "description", "order_id", "memo", "colour", "icon") VALUES (3, 0, '重点建筑', 't', 't', NULL, 0, NULL, NULL, NULL);
10
+

+ 11 - 3
src/main/resources/mapper/info/ParkInfoMapper.xml

@@ -23,6 +23,12 @@
23
 		order by park_id
23
 		order by park_id
24
 
24
 
25
 	</select>
25
 	</select>
26
+	<select id="selectParkInfoKeyList"  resultMap="ParkInfoResult">
27
+		<include refid="selectParkInfoVo"/>
28
+		where park_id not in (1)
29
+		order by park_id
30
+	</select>
31
+
26
 
32
 
27
 	<select id="selectParkInfoByParkId" parameterType="Integer" resultMap="ParkInfoResult">
33
 	<select id="selectParkInfoByParkId" parameterType="Integer" resultMap="ParkInfoResult">
28
 		<include refid="selectParkInfoVo"/>
34
 		<include refid="selectParkInfoVo"/>
@@ -38,7 +44,8 @@
38
 		</trim>
44
 		</trim>
39
 		<trim prefix="values (" suffix=")" suffixOverrides=",">
45
 		<trim prefix="values (" suffix=")" suffixOverrides=",">
40
 			<if test="parkName != null and parkName != ''">#{parkName},</if>
46
 			<if test="parkName != null and parkName != ''">#{parkName},</if>
41
-			<if test="location != null and location != ''">#{location, jdbcType=OTHER,typeHandler=com.lqkj.framework.sql.JsonbTypeHandler},</if>
47
+<!-- 			<if test="location != null and location != ''">#{location, jdbcType=OTHER,typeHandler=com.lqkj.framework.sql.JsonbTypeHandler},</if>-->
48
+			<if test="location != null and location != ''">#{location},</if>
42
 			<if test="memo != null and memo != ''">#{memo},</if>
49
 			<if test="memo != null and memo != ''">#{memo},</if>
43
 		</trim>
50
 		</trim>
44
 	</insert>
51
 	</insert>
@@ -47,7 +54,8 @@
47
 		update park_info
54
 		update park_info
48
 		<trim prefix="SET" suffixOverrides=",">
55
 		<trim prefix="SET" suffixOverrides=",">
49
 			park_name = #{parkName},
56
 			park_name = #{parkName},
50
-			location = #{location, jdbcType=OTHER,typeHandler=com.lqkj.framework.sql.JsonbTypeHandler},
57
+ 			<!-- location = #{location, jdbcType=OTHER,typeHandler=com.lqkj.framework.sql.JsonbTypeHandler},-->
58
+			location = #{location},
51
 			memo = #{memo},
59
 			memo = #{memo},
52
 		</trim>
60
 		</trim>
53
 		where park_id = #{parkId}
61
 		where park_id = #{parkId}
@@ -63,4 +71,4 @@
63
 			#{parkId}
71
 			#{parkId}
64
 		</foreach>
72
 		</foreach>
65
 	</delete>
73
 	</delete>
66
-</mapper>
74
+</mapper>

+ 15 - 2
src/main/resources/mapper/type/PlanTypeMapper.xml

@@ -34,7 +34,20 @@
34
 		where type_id = #{typeId}
34
 		where type_id = #{typeId}
35
 	</select>
35
 	</select>
36
 
36
 
37
-	<insert id="insertPlanType" parameterType="PlanType" useGeneratedKeys="true" keyProperty="typeId">
37
+    <select id="planList"  parameterType="PlanType" resultMap="PlanTypeResult">
38
+		<include refid="selectPlanTypeVo"/>
39
+		<where>
40
+			<if test="typeName != null and typeName != ''">
41
+				and type_name like concat('%', #{typeName}, '%')
42
+			</if>
43
+			<if test="typeName == null or typeName == ''">
44
+				and type_name not like concat('%','重点建筑', '%')
45
+			</if>
46
+		</where>
47
+		order by type_id
48
+	</select>
49
+
50
+    <insert id="insertPlanType" parameterType="PlanType" useGeneratedKeys="true" keyProperty="typeId">
38
 		insert into plan_type
51
 		insert into plan_type
39
 		<trim prefix="(" suffix=")" suffixOverrides=",">
52
 		<trim prefix="(" suffix=")" suffixOverrides=",">
40
 			<if test="parentId != null">parent_id,</if>
53
 			<if test="parentId != null">parent_id,</if>
@@ -83,4 +96,4 @@
83
 			#{typeId}
96
 			#{typeId}
84
 		</foreach>
97
 		</foreach>
85
 	</delete>
98
 	</delete>
86
-</mapper>
99
+</mapper>