add sale value 1

This commit is contained in:
Carl 2022-01-26 17:34:52 +08:00
parent 0bec34a4e3
commit 17deaa4f01

View File

@ -226,9 +226,15 @@ public class OrderService {
long elapsedTime = acceptTime - startTime;
JSONObject jsonObject = JSONObject.parseObject(result);
String afterDecodeResult = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
OrderEntity orderEntity = ordersDao.findByOrderId(queryEntity.getOrderNumber());
//新增支付方式paytype
com.alibaba.fastjson.JSONArray jsonArray = JSONObject.parseArray(afterDecodeResult);
JSONObject jsonObjectResult = (JSONObject)jsonArray.get(0);
jsonObjectResult.put("paytype",orderEntity.getPayType());
//记录服务响应时间
addOperatreFullData(url+"orderMaster/query",queryEntity.toString(),result, startTime,elapsedTime,acceptTime);
return afterDecodeResult;
return jsonObjectResult.toJSONString();
}
public ResponseDTO<String> addOperatreFullData(String type, String params, String result, Long startTime, Long elapsedTime, Long acceptTime){