mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 18:26:38 +08:00
commit
fbe893551a
@ -227,14 +227,19 @@ public class OrderService {
|
|||||||
JSONObject jsonObject = JSONObject.parseObject(result);
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
||||||
String afterDecodeResult = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
|
String afterDecodeResult = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
|
||||||
com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(afterDecodeResult);
|
com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(afterDecodeResult);
|
||||||
JSONObject jsonObjectResult = (JSONObject)jsonArray.get(0);
|
for (int i = 0; i < jsonArray.size();i++){
|
||||||
if (queryEntity.getOrderNumber() != null &&queryEntity.getOrderNumber() != "") {
|
JSONObject jsonObjectResult = (JSONObject)jsonArray.get(i);
|
||||||
OrderEntity orderEntity = ordersDao.findByOrderId(queryEntity.getOrderNumber());
|
OrderEntity orderEntity = ordersDao.findByOrderId(jsonObjectResult.getString("orderNumber"));
|
||||||
//新增支付方式paytype
|
if (orderEntity == null){
|
||||||
jsonObjectResult.put("paytype",orderEntity.getPayType());
|
jsonObjectResult.put("paytype","0");
|
||||||
jsonObjectResult.put("basePoint",orderEntity.getBasePoint());
|
jsonObjectResult.put("basePoint","0");
|
||||||
}
|
}else {
|
||||||
|
//新增支付方式paytype
|
||||||
|
jsonObjectResult.put("paytype",orderEntity.getPayType());
|
||||||
|
jsonObjectResult.put("basePoint",orderEntity.getBasePoint());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
//记录服务响应时间
|
//记录服务响应时间
|
||||||
addOperatreFullData(url+"orderMaster/query",queryEntity.toString(),result, startTime,elapsedTime,acceptTime);
|
addOperatreFullData(url+"orderMaster/query",queryEntity.toString(),result, startTime,elapsedTime,acceptTime);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user