weiximei 6 gadus atpakaļ
vecāks
revīzija
e9249ef62f

+ 15
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java Parādīt failu

@@ -430,4 +430,19 @@ public class SocialController extends BaseController {
430 430
         responseBean.addSuccess(reportList);
431 431
         return responseBean;
432 432
     }
433
+
434
+    @ApiOperation(value = "二手帖子对话", notes = "二手帖子对话")
435
+    @ApiImplicitParams({
436
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
437
+                    "transactionId:当前帖子ID,replyContent:回复内容,replyTaUserId:被回复的用户ID"),
438
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
439
+    })
440
+    @RequestMapping(value = "/addTransactionReply", method = RequestMethod.POST)
441
+    public ResponseBean addTransactionReply(HttpSession session, @RequestBody String paramets) {
442
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
443
+        ResponseBean response = socialServiceI.addTransactionReply(paramets,userElement);
444
+        return response;
445
+    }
446
+
447
+
433 448
 }

+ 8
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java Parādīt failu

@@ -179,4 +179,12 @@ public interface SocialServiceI {
179 179
 	 * @return
180 180
 	 */
181 181
 	ResponseBean findUsedDetailsReply(Integer activityId, UserElement userElement, String order, Integer pageNum, Integer pageSize);
182
+	/*
183
+	 * 二帖子回复
184
+	 * @param paramets
185
+	 * @param userElement
186
+	 * @return
187
+	 */
188
+    ResponseBean addTransactionReply(String paramets, UserElement userElement);
189
+
182 190
 }

+ 18
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java Parādīt failu

@@ -13,6 +13,7 @@ import com.github.pagehelper.PageHelper;
13 13
 import com.google.common.collect.Maps;
14 14
 import com.sun.org.apache.bcel.internal.generic.NEW;
15 15
 import io.swagger.models.auth.In;
16
+import org.apache.ibatis.annotations.Param;
16 17
 import org.springframework.beans.BeanUtils;
17 18
 import org.springframework.beans.factory.annotation.Autowired;
18 19
 import org.springframework.stereotype.Service;
@@ -579,8 +580,23 @@ public class SocialServiceImpl implements SocialServiceI {
579 580
         responseBean.addError("举报出错");
580 581
         return responseBean;
581 582
     }
582
-    
583
-    
583
+
584
+    @Override
585
+    public ResponseBean addTransactionReply(String paramets, UserElement userElement) {
586
+        ResponseBean response= new ResponseBean();
587
+        TpTransactionReply tpTransactionReply= JSONObject.parseObject(paramets,TpTransactionReply.class);
588
+        tpTransactionReply.setCommunityId(userElement.getCommunityId());
589
+        tpTransactionReply.setTaUserId(userElement.getId());
590
+        tpTransactionReply.setTaUserName(userElement.getUserName());
591
+        //获取被回复的姓名
592
+        tpTransactionReply.setReplyTaUserName( taUserMapper.selectByPrimaryKey(tpTransactionReply.getReplyTaUserId()).getUserName());
593
+        tpTransactionReply.setCreateDate(new Date());
594
+        tpTransactionReplyMapper.insert(tpTransactionReply);
595
+        response.addSuccess("成功");
596
+        return response;
597
+    }
598
+
599
+
584 600
     @Override
585 601
     public void accessTicket(Integer communityId, TpTicket tpTicket, String ticketId, Integer userId) {
586 602
         //修改工单内容和评分

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java Parādīt failu

@@ -159,7 +159,7 @@ public class BillInvoice implements Serializable {
159 159
      * 流水账单编号
160 160
      */
161 161
     @TableField(exist = false)
162
-    private Integer billStatement;
162
+    private String billStatement;
163 163
 
164 164
     /**
165 165
      * 创建人姓名

+ 1
- 1
CODE/smart-community/property-api/src/main/resources/mapper/BillInvoiceMapper.xml Parādīt failu

@@ -11,7 +11,7 @@
11 11
             tboi.building as building,
12 12
             tboi.unit as unit,
13 13
             tboi.room_no as roomNo,
14
-            tbs.id as billStatement,
14
+            tpi.out_trade_no as billStatement,
15 15
             (SELECT user_name from tp_user tu WHERE tu.id = tpi.create_user) as createUserName,
16 16
             (SELECT user_name from tp_user tu WHERE tu.id = tpi.update_user) as updateUserName
17 17
         FROM

+ 3
- 3
VUECODE/smart-property-manage/src/views/bill/info/index.vue Parādīt failu

@@ -116,9 +116,9 @@
116 116
         </template>
117 117
       </el-table-column>
118 118
       <el-table-column
119
-        prop="billStatementId"
120
-        label="流水"
121
-        align="center"/>
119
+        prop="outTradeNo"
120
+        label="订单号"
121
+        align="center" width="170"/>
122 122
       <el-table-column
123 123
         prop="billStatus"
124 124
         label="缴费状态"

+ 3
- 2
VUECODE/smart-property-manage/src/views/message/messageIndex.vue Parādīt failu

@@ -247,12 +247,13 @@ export default {
247 247
         return
248 248
       }
249 249
       this.$store.dispatch('DelectRead', ide).then((res) => {
250
+        this.dataQuery()  
250 251
         this.$message({
251 252
           message: '成功',
252 253
           type: 'success'
253
-        });    
254
+        });
255
+               
254 256
       })
255
-      this.dataQuery()     
256 257
     },
257 258
     //点击详情修改当前状态为已读
258 259
     already(ide){