Browse Source

Merge branch 'master' of http://git.ycjcjy.com/xiangsong/xs-service

Your Name 4 years ago
parent
commit
ca37e09ce5

+ 3
- 0
src/main/java/com/huiju/estateagents/property/model/TpTicketRecordComment.java View File

@@ -84,6 +84,9 @@ public class TpTicketRecordComment implements Serializable {
84 84
     @TableField(exist = false)
85 85
     private List<TdImages> imgURL;
86 86
 
87
+    @TableField(exist = false)
88
+    private Integer ticketRecordCommentId;
89
+
87 90
 
88 91
 
89 92
 }

+ 2
- 2
src/main/java/com/huiju/estateagents/property/service/impl/BillStatementServiceImpl.java View File

@@ -97,10 +97,10 @@ public class BillStatementServiceImpl extends ServiceImpl<BillStatementMapper, B
97 97
             // 缴费单id集合
98 98
             List<Integer> billInvoiceIdCollect = childBillOrderList.stream().map(billOrder -> billOrder.getTpBillInvoiceId()).collect(Collectors.toList());
99 99
             // 总金额
100
-            Long sumPrice = childBillOrderList.stream().map(billOrder -> {
100
+            Long sumPrice = childBillOrderList.stream().mapToLong(billOrder -> {
101 101
                 BillInvoice billInvoice = billInvoiceMapper.selectById(billOrder.getTpBillInvoiceId());
102 102
                 return billInvoice.getPayPrice();
103
-            }).count();
103
+            }).sum();
104 104
 
105 105
             e.setBillIdList(billIdCollect);
106 106
             e.setBillInvoiceIdList(billInvoiceIdCollect);

+ 2
- 2
src/main/java/com/huiju/estateagents/property/service/impl/TpTicketServiceImpl.java View File

@@ -289,6 +289,7 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
289 289
         TaUser taUser = taUserMapper.selectById(userID);
290 290
 
291 291
         TpTicket tpTicket= new TpTicket();
292
+        tpTicket.setId(ticketId);
292 293
         tpTicket.setStatus("3");
293 294
         tpTicket.setTpUserId(userID);
294 295
         tpTicket.setUpdateDate(LocalDateTime.now());
@@ -877,8 +878,7 @@ public class TpTicketServiceImpl extends ServiceImpl<TpTicketMapper, TpTicket> i
877 878
 //        User taUser = userMapper.selectById(userId);
878 879
         TaPerson  taPerson = taPersonMapper.selectById(personId);
879 880
 
880
-        TpTicket  tpTicket= tpTicketMapper.selectById(tpTicketRecordComment.getTicketId());
881
-        TpTicketRecord ticketRecord= tpTicketRecordMapper.selectTpTicketRecord(tpTicketRecordComment.getTicketId(), Integer.valueOf(tpTicket.getStatus()));
881
+        TpTicketRecord ticketRecord= tpTicketRecordMapper.selectById(tpTicketRecordComment.getTicketRecordCommentId());
882 882
 
883 883
         tpTicketRecordComment.setUserName(taPerson.getName());
884 884
         tpTicketRecordComment.setParentId(tpTicketRecordComment.getId());