Преглед на файлове

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