浏览代码

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

张延森 4 年前
父节点
当前提交
75eee957a5

+ 3
- 0
src/main/java/com/huiju/estateagents/property/model/TpTicketRecordComment.java 查看文件

84
     @TableField(exist = false)
84
     @TableField(exist = false)
85
     private List<TdImages> imgURL;
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 查看文件

97
             // 缴费单id集合
97
             // 缴费单id集合
98
             List<Integer> billInvoiceIdCollect = childBillOrderList.stream().map(billOrder -> billOrder.getTpBillInvoiceId()).collect(Collectors.toList());
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
                 BillInvoice billInvoice = billInvoiceMapper.selectById(billOrder.getTpBillInvoiceId());
101
                 BillInvoice billInvoice = billInvoiceMapper.selectById(billOrder.getTpBillInvoiceId());
102
                 return billInvoice.getPayPrice();
102
                 return billInvoice.getPayPrice();
103
-            }).count();
103
+            }).sum();
104
 
104
 
105
             e.setBillIdList(billIdCollect);
105
             e.setBillIdList(billIdCollect);
106
             e.setBillInvoiceIdList(billInvoiceIdCollect);
106
             e.setBillInvoiceIdList(billInvoiceIdCollect);

+ 2
- 2
src/main/java/com/huiju/estateagents/property/service/impl/TpTicketServiceImpl.java 查看文件

289
         TaUser taUser = taUserMapper.selectById(userID);
289
         TaUser taUser = taUserMapper.selectById(userID);
290
 
290
 
291
         TpTicket tpTicket= new TpTicket();
291
         TpTicket tpTicket= new TpTicket();
292
+        tpTicket.setId(ticketId);
292
         tpTicket.setStatus("3");
293
         tpTicket.setStatus("3");
293
         tpTicket.setTpUserId(userID);
294
         tpTicket.setTpUserId(userID);
294
         tpTicket.setUpdateDate(LocalDateTime.now());
295
         tpTicket.setUpdateDate(LocalDateTime.now());
877
 //        User taUser = userMapper.selectById(userId);
878
 //        User taUser = userMapper.selectById(userId);
878
         TaPerson  taPerson = taPersonMapper.selectById(personId);
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
         tpTicketRecordComment.setUserName(taPerson.getName());
883
         tpTicketRecordComment.setUserName(taPerson.getName());
884
         tpTicketRecordComment.setParentId(tpTicketRecordComment.getId());
884
         tpTicketRecordComment.setParentId(tpTicketRecordComment.getId());