weiximei 6 years ago
parent
commit
af8ff3f6b3

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketMapper.java View File

@@ -35,4 +35,6 @@ public interface TpTicketMapper {
35 35
      * @return
36 36
      */
37 37
 	TpTicket selectByTicketId(@Param("communityId") String communityId,@Param("ticketId") Integer ticketId);
38
+
39
+    void updateTpUserId(@Param("ticketId") Integer ticketId);
38 40
 }

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java View File

@@ -507,7 +507,8 @@ public class SocialServiceImpl implements SocialServiceI {
507 507
         tpTicket.setId(Integer.valueOf(ticketId));
508 508
         tpTicket.setStatus("5");
509 509
         tpTicketMapper.updateByPrimaryKeySelective(tpTicket);
510
-
510
+        //根据1.4版本需要被终止时,清空当前工单受理人
511
+        tpTicketMapper.updateTpUserId(Integer.valueOf(ticketId));
511 512
         //工单处理表新增评分记录
512 513
         TpTicketRecord record = new TpTicketRecord();
513 514
         record.setCommunityId(communityId);

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TicketServiceImpl.java View File

@@ -393,6 +393,8 @@ public class TicketServiceImpl implements ITicketService {
393 393
             tpTicket.setStatus("6");
394 394
             tpTicket.setId(ticketId);
395 395
             tpTicketMapper.updateByPrimaryKeySelective(tpTicket);
396
+            //根据1.4版本需要被终止时,清空当前工单受理人
397
+            tpTicketMapper.updateTpUserId(ticketId);
396 398
 
397 399
             TpTicketRecord tpTicketRecord = new TpTicketRecord();
398 400
             tpTicketRecord.setStatus("6");

+ 1
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpBillInvoiceMapper.xml View File

@@ -234,6 +234,7 @@
234 234
           <if test="payType == 1">
235 235
             AND (i.bill_status = 1 or i.bill_status = 2)
236 236
           </if>
237
+          and i.status=1
237 238
           AND i.ta_user_id = #{userId,jdbcType=INTEGER}
238 239
   </select>
239 240
 

+ 8
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpTicketMapper.xml View File

@@ -248,5 +248,12 @@
248 248
         t.id = #{ticketId,jdbcType=INTEGER}
249 249
         AND t.community_id = #{communityId,jdbcType=INTEGER}
250 250
   </select>
251
-  <select id="ticketList" resultType="com.community.huiju.model.TpTicket"></select>
251
+  <update id="updateTpUserId" parameterType="int" >
252
+    update tp_ticket
253
+    set
254
+      tp_user_id =null
255
+    where id = #{ticketId,jdbcType=INTEGER}
256
+  </update>
257
+
258
+
252 259
 </mapper>

+ 4
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java View File

@@ -227,7 +227,10 @@ public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IB
227 227
         bill.setPayedNum(0);
228 228
         bill.setBillStatus(billStatus);
229 229
         bill.setCreateUser(userElement.getId());
230
-        bill.setCreateDate(new Date());
230
+        //为草稿时不创建时间
231
+        if(!"2".equals(billStatus)) {
232
+            bill.setCreateDate(new Date());
233
+        }
231 234
         bill.setCommunityId(userElement.getCommunityId());
232 235
         Integer payTotalNum = tempBills.size() != 0 ? tempBills.size() : records != null ? records.size() : 0;
233 236
         Integer unpayedNum = tempBills.size() != 0 ? tempBills.size() : records != null ? records.size() : 0;

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpTicketServiceImpl.java View File

@@ -289,7 +289,7 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
289 289
         tpTicketRecordComment.setTicketRecordId(tpTicketRecord.getId());
290 290
         tpTicketRecordComment.setUuid(id);
291 291
         tpTicketRecordComment.setUserType("0");
292
-        tpTicketRecordComment.setContent("处理结果如下,原因——"+content);
292
+        tpTicketRecordComment.setContent("处理结果如下____"+content);
293 293
         tpTicketRecordComment.setUserName(userName);
294 294
         tpTicketRecordComment.setCreateDate(LocalDateTime.now());
295 295
         tpTicketRecordCommentMapper.insert(tpTicketRecordComment);

+ 5
- 5
VUECODE/smart-property-manage/src/views/ticket/details.vue View File

@@ -150,7 +150,7 @@
150 150
           <img :src="dialogImageUrl" width="100%" alt="">
151 151
         </el-dialog>
152 152
       </el-form-item>
153
-        <el-button type="primary" @click="submitContent">提交</el-button>
153
+        <el-button type="primary" @click="submitContent" style="margin-left: 90%;transform:translateY(-340%);">提交</el-button>
154 154
         </div>
155 155
         </div>
156 156
         <div v-if="listQuery.status==='3'">
@@ -159,7 +159,7 @@
159 159
         </div>
160 160
         <br>
161 161
           <div>   
162
-          <textarea v-model="listQuery.relationContent" placeholder="请输入内容" class="textarea-inherit" id="message_textarea" rows="4"></textarea> 
162
+          <textarea v-model="listQuery.relationContent" placeholder="处理完了?在此填写处理结果,发送给业主让TA给好评~" class="textarea-inherit" id="message_textarea" rows="4"></textarea> 
163 163
         </div>
164 164
         <div>
165 165
         <el-form-item label="图片附件">
@@ -179,7 +179,7 @@
179 179
           <img :src="dialogImageUrl" width="100%" alt="">
180 180
           </el-dialog>
181 181
         </el-form-item>
182
-        <el-button type="primary" @click="succeedClick">提交</el-button>
182
+        <el-button type="primary" @click="succeedClick" style="margin-left: 90%;transform:translateY(-340%);">发送处理结果</el-button>
183 183
         </div>
184 184
         </div>
185 185
         
@@ -433,7 +433,7 @@ export default {
433 433
         background: 'rgba(0, 0, 0, 0.7)'
434 434
       })
435 435
       if(this.listQuery.textContent===undefined){
436
-         this.$message.error('请填写拒绝内容')
436
+         this.$message.error('请输入内容')
437 437
          loading.close()
438 438
          return
439 439
       }
@@ -534,7 +534,7 @@ export default {
534 534
         })
535 535
           loading.close()
536 536
       }).catch(() => {
537
-        console.log('error addRecordComment')
537
+        console.log('error UpdateTicket')
538 538
       })
539 539
         this.contentImgIO = []
540 540
     },

+ 0
- 2
VUECODE/smart-property-manage/src/views/ticket/index.vue View File

@@ -23,7 +23,6 @@
23 23
          <el-option label="选择状态" value="" />
24 24
          <el-option label="待分配" value="0"/>
25 25
          <el-option label="拒绝处理" value="1"/>
26
-         <el-option label="待处理" value="2"/>
27 26
          <el-option label="正在处理" value="3"/>
28 27
          <el-option label="待评价" value="4"/>
29 28
          <el-option label="已评价" value="5"/>
@@ -69,7 +68,6 @@
69 68
         <template slot-scope="scope">
70 69
           <span v-if="scope.row.status==='0'">{{ '待分配' }}</span>
71 70
           <span v-if="scope.row.status==='1'">{{ '拒绝处理' }}</span>
72
-          <span v-if="scope.row.status==='2'">{{ '待处理' }}</span>
73 71
           <span v-if="scope.row.status==='3'">{{ '正在处理' }}</span>
74 72
           <span v-if="scope.row.status==='4'">{{ '待评价' }}</span>
75 73
           <span v-if="scope.row.status==='5'">{{ '已评价' }}</span>