|
|
|
@@ -1552,6 +1552,21 @@ public class WxBillAllServiceImpl implements WxBillAllService { |
|
|
|
wxBillDaily.setId(businessId); |
|
|
|
wxBillDaily.setReceivePay(newPrice); |
|
|
|
wxBillDaily.setOwe(newPrice + dbBill.getServiceChargePay() - dbBill.getPay()); |
|
|
|
|
|
|
|
JSONArray priceDetals = new JSONArray(); |
|
|
|
JSONObject priceDetal = new JSONObject(); |
|
|
|
priceDetal.put("key", "price"); |
|
|
|
priceDetal.put("value", 0); |
|
|
|
priceDetals.add(priceDetal); |
|
|
|
priceDetal = new JSONObject(); |
|
|
|
priceDetal.put("key", "way"); |
|
|
|
priceDetal.put("value", 0); |
|
|
|
priceDetals.add(priceDetal); |
|
|
|
priceDetal = new JSONObject(); |
|
|
|
priceDetal.put("key", "unit"); |
|
|
|
priceDetal.put("value", 0); |
|
|
|
priceDetals.add(priceDetal); |
|
|
|
wxBillDaily.setPriceDetail(JSONArray.toJSONString(priceDetals)); |
|
|
|
if (newPrice.equals(dbBill.getPay())) { |
|
|
|
wxBillDaily.setStatus(EnumBillRentStatus.PAID.getCode()); |
|
|
|
} |
|
|
|
|