weiximei 6 лет назад
Родитель
Сommit
59da0c9271

+ 5
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java Просмотреть файл

@@ -106,6 +106,11 @@ public class BillInvoice implements Serializable {
106 106
      */
107 107
     private Integer status;
108 108
 
109
+    /**
110
+     * 微信支付的单号,唯一
111
+     */
112
+    private String outTradeNo;
113
+
109 114
     /**
110 115
      * 业主姓名
111 116
      */

+ 2
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java Просмотреть файл

@@ -212,6 +212,8 @@ public class BillInvoiceServiceImpl extends ServiceImpl<BillInvoiceMapper, BillI
212 212
         billInvoice.setStatus(0);
213 213
 
214 214
         int result = billInvoiceMapper.insert(billInvoice);
215
+        billInvoice.setOutTradeNo(String.valueOf(System.currentTimeMillis()) + billInvoice.getId());
216
+        result = billInvoiceMapper.updateById(billInvoice);
215 217
         if (result <= 0) {
216 218
             throw new WisdomException("添加失败");
217 219
         }