|
@@ -1,5 +1,7 @@
|
|
|
package com.malk.dongfangxinhua.service.Impl;
|
|
|
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.XmlUtil;
|
|
|
import cn.hutool.http.HttpRequest;
|
|
|
import cn.hutool.json.JSONObject;
|
|
@@ -243,7 +245,7 @@ public class PayServiceImpl implements PayService {
|
|
|
if ("明源ERP".equals(formData.get("selectField_lqalbx96"))){
|
|
|
//付款成功的更新Erp状态
|
|
|
String erpRsp = UtilHttp.doPost("https://gateway.dslink.net.cn/api/webhook/E185908E63CF407B911FA870642A39A5",
|
|
|
- null,null, UtilMap.map("PayGUID, BillCode ,StrPayDate",formData.get("textField_li1y52yh"),"",formData.get("textField_lxlt9ptd")),new HashMap());
|
|
|
+ null,null, UtilMap.map("PayGUID, BillCode, StrPayDate",formData.get("textField_li1y52yh"),"", ObjectUtil.isEmpty(formData.get("textField_lxlt9ptd"))? DateUtil.format(new Date(),"yyyy-MM-dd"):formData.get("textField_lxlt9ptd")),new HashMap());
|
|
|
|
|
|
//通过 http status 判定, 200 即为成功
|
|
|
Map result = (Map) JSON.parse(erpRsp);
|