浏览代码

添加 微信编号

weiximei 6 年前
父节点
当前提交
59da0c9271

+ 5
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java 查看文件

106
      */
106
      */
107
     private Integer status;
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
         billInvoice.setStatus(0);
212
         billInvoice.setStatus(0);
213
 
213
 
214
         int result = billInvoiceMapper.insert(billInvoice);
214
         int result = billInvoiceMapper.insert(billInvoice);
215
+        billInvoice.setOutTradeNo(String.valueOf(System.currentTimeMillis()) + billInvoice.getId());
216
+        result = billInvoiceMapper.updateById(billInvoice);
215
         if (result <= 0) {
217
         if (result <= 0) {
216
             throw new WisdomException("添加失败");
218
             throw new WisdomException("添加失败");
217
         }
219
         }