|
@@ -34,6 +34,11 @@ public class BillServiceImpl implements BillServiceI {
|
34
|
34
|
//使用分页插件
|
35
|
35
|
Page<Map<String,Object>> page = PageHelper.startPage(pageNum, pageSize);
|
36
|
36
|
List<Map<String,Object>> billsList = tpBillInvoiceMapper.getBillsList(communityId, userId, payType);
|
|
37
|
+ billsList.forEach(e-> {
|
|
38
|
+ String payPrice = String.valueOf(e.get("payPrice"));
|
|
39
|
+ Double payPriceDouble = Double.parseDouble(payPrice) / 100;
|
|
40
|
+ e.put("payPrice", payPriceDouble);
|
|
41
|
+ });
|
37
|
42
|
Map<String,Object> result = Maps.newHashMap();
|
38
|
43
|
result.put("list",billsList);
|
39
|
44
|
result.put("total",page.getTotal());
|
|
@@ -47,6 +52,10 @@ public class BillServiceImpl implements BillServiceI {
|
47
|
52
|
*/
|
48
|
53
|
@Override
|
49
|
54
|
public Map<String, Object> getBillInvoiceDetail(Integer communityId,Integer billInvoiceId) {
|
50
|
|
- return tpBillInvoiceMapper.getBillInvoiceDetail(communityId,billInvoiceId);
|
|
55
|
+ Map<String, Object> billInvoiceDetail = tpBillInvoiceMapper.getBillInvoiceDetail(communityId, billInvoiceId);
|
|
56
|
+ String payPrice = String.valueOf(billInvoiceDetail.get("payPrice"));
|
|
57
|
+ Double payPriceDouble = Double.parseDouble(payPrice) / 100;
|
|
58
|
+ billInvoiceDetail.put("payPrice", payPriceDouble);
|
|
59
|
+ return billInvoiceDetail;
|
51
|
60
|
}
|
52
|
61
|
}
|