dingxin 6 年前
父节点
当前提交
7141f4eb8b

+ 4
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java 查看文件

421
         String handleRemark= object.getString("handleRemark");
421
         String handleRemark= object.getString("handleRemark");
422
         Integer[] arrID = object.getJSONArray("id").toArray(new Integer[]{});
422
         Integer[] arrID = object.getJSONArray("id").toArray(new Integer[]{});
423
 
423
 
424
+        //减少数据库链接
425
+        List<TaFeedback> taFeedbackList = new ArrayList<>();
424
         for (Integer id:arrID){
426
         for (Integer id:arrID){
425
             TaFeedback taFeedback = new TaFeedback();
427
             TaFeedback taFeedback = new TaFeedback();
426
                        taFeedback.setId(id);
428
                        taFeedback.setId(id);
429
                        taFeedback.setHandleRemark(handleRemark);
431
                        taFeedback.setHandleRemark(handleRemark);
430
                        taFeedback.setHandleTime(new Date());
432
                        taFeedback.setHandleTime(new Date());
431
                        taFeedback.setUpdateDate(new Date());
433
                        taFeedback.setUpdateDate(new Date());
434
+            taFeedbackList.add(taFeedback);
432
             taFeedbackMapper.updateByPrimaryKeySelective(taFeedback);
435
             taFeedbackMapper.updateByPrimaryKeySelective(taFeedback);
433
         }
436
         }
437
+//        taFeedbackMapper.batchUpdate(taFeedbackList);
434
         response.addSuccess("成功");
438
         response.addSuccess("成功");
435
         return response;
439
         return response;
436
     }
440
     }

+ 4
- 2
CODE/smart-community/operate-api/src/main/resources/mapper/TaFeedbackMapper.xml 查看文件

176
   </update>
176
   </update>
177
 
177
 
178
   <select id="getFeedback" resultMap="BaseResultMap">
178
   <select id="getFeedback" resultMap="BaseResultMap">
179
-    select * from  ta_feedback
179
+    select
180
+    <include refid="Base_Column_List" />
181
+     from  ta_feedback
180
     <where>
182
     <where>
181
       <if test="tel != null and tel !=''">
183
       <if test="tel != null and tel !=''">
182
         and ta_user_tel like CONCAT('%', #{tel,jdbcType=VARCHAR}, '%')
184
         and ta_user_tel like CONCAT('%', #{tel,jdbcType=VARCHAR}, '%')
183
       </if>
185
       </if>
184
 
186
 
185
       <if test="content != null and content !=''">
187
       <if test="content != null and content !=''">
186
-        and handle_remark like CONCAT('%', #{content,jdbcType=VARCHAR}, '%')
188
+        and content like CONCAT('%', #{content,jdbcType=VARCHAR}, '%')
187
       </if>
189
       </if>
188
 
190
 
189
       <if test="handleStatus != null and handleStatus !=''">
191
       <if test="handleStatus != null and handleStatus !=''">

+ 20
- 0
VUECODE/smart-operate-manage/src/views/banner/feedback/index.vue 查看文件

43
     <el-table-column
43
     <el-table-column
44
      prop="content"
44
      prop="content"
45
       label="反馈内容">
45
       label="反馈内容">
46
+      <template slot-scope="scope">
47
+      <a :title="scope.row.content" v-if="scope.row.content !=null">
48
+          <span style="color: #8B8378	">
49
+            {{ scope.row.content.length>='20'?scope.row.content.substring(0,20)+'..':scope.row.content }}
50
+          </span>
51
+          <span v-if="scope.row.content==='null'">
52
+            {{ scope.row.content='' }}
53
+          </span>
54
+      </a>
55
+      </template>
46
     </el-table-column>
56
     </el-table-column>
47
     <el-table-column prop="transactionTitle" label="反馈截图" align="center">
57
     <el-table-column prop="transactionTitle" label="反馈截图" align="center">
48
            <template slot-scope="scope">
58
            <template slot-scope="scope">
74
     <el-table-column
84
     <el-table-column
75
       prop="handleRemark"
85
       prop="handleRemark"
76
       label="处理备注">
86
       label="处理备注">
87
+       <template slot-scope="scope">
88
+      <a :title="scope.row.handleRemark" v-if="scope.row.handleRemark !=null">
89
+          <span style="color: #8B8378	">
90
+            {{ scope.row.handleRemark.length>='20'?scope.row.handleRemark.substring(0,20)+'..':scope.row.handleRemark }}
91
+          </span>
92
+          <!-- <span v-if="scope.row.handleRemark==='null'">
93
+            {{ scope.row.handleRemark='' }}
94
+          </span> -->
95
+      </a>
96
+       </template>
77
     </el-table-column>
97
     </el-table-column>
78
     <el-table-column
98
     <el-table-column
79
       prop="handleUser"
99
       prop="handleUser"

+ 2
- 2
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue 查看文件

7
       <el-form-item  prop="activityCarouselImg">
7
       <el-form-item  prop="activityCarouselImg">
8
         <div >
8
         <div >
9
         <div style="transform:translateY(250%);">活动轮播图</div>
9
         <div style="transform:translateY(250%);">活动轮播图</div>
10
-        <div  style="width: 500px;padding-left:13%;">
10
+        <div  style="width: 500px;padding-left:14%;">
11
         <el-upload
11
         <el-upload
12
           :show-file-list="false"
12
           :show-file-list="false"
13
           :on-success="handleAvatarSuccess"
13
           :on-success="handleAvatarSuccess"
23
       </el-form-item>
23
       </el-form-item>
24
       <el-form-item>
24
       <el-form-item>
25
         <span style="transform:translateY(700%)">活动详情描述</span>
25
         <span style="transform:translateY(700%)">活动详情描述</span>
26
-       <div style="padding-left:12%;transform:translateY(-15%)"><wangeditor :content="ruleForm.activityContent" @wangeditorEvent="wangeditorValue"/></div>
26
+       <div style="padding-left:14%;transform:translateY(-15%)"><wangeditor :content="ruleForm.activityContent" @wangeditorEvent="wangeditorValue"/></div>
27
       </el-form-item> 
27
       </el-form-item> 
28
       <!-- <el-form-item>
28
       <!-- <el-form-item>
29
         <div >
29
         <div >