瀏覽代碼

BUG修改 主体信息简介字段去除html标签。

zhouwang 1 周之前
父節點
當前提交
fc783ad34a
共有 1 個文件被更改,包括 25 次插入27 次删除
  1. 25 27
      src/main/java/com/lqkj/info/service/OrganizationInfoService.java

+ 25 - 27
src/main/java/com/lqkj/info/service/OrganizationInfoService.java

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