记得上下班打卡 | git大法好,push需谨慎

Commit e97fb187 authored by 胡佳晨's avatar 胡佳晨

增加日志

parent 34395f6b
...@@ -344,7 +344,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -344,7 +344,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
spuIds = spuIds.concat(item.getSpuId() + ","); spuIds = spuIds.concat(item.getSpuId() + ",");
} }
} }
long time1 = System.currentTimeMillis();
ResponseDto<GoblinUseResultVo> storeCouponVo = feignGoblinBaseClient.useCoupon(storeVoucherCode, "购买商品[" + orderCode + "]", storeTotalPrice, spuIds, uid); ResponseDto<GoblinUseResultVo> storeCouponVo = feignGoblinBaseClient.useCoupon(storeVoucherCode, "购买商品[" + orderCode + "]", storeTotalPrice, spuIds, uid);
log.info("goblin接口调用:"+(time1-System.currentTimeMillis()));
String typeVoucher; String typeVoucher;
if (!(storeCouponVo == null || storeCouponVo.getData() == null)) { if (!(storeCouponVo == null || storeCouponVo.getData() == null)) {
storeVoucherPrice = storeCouponVo.getData().getValue(); storeVoucherPrice = storeCouponVo.getData().getValue();
......
...@@ -35,6 +35,7 @@ public class GoblinOrderUtils { ...@@ -35,6 +35,7 @@ public class GoblinOrderUtils {
GoblinRedisUtils redisUtils; GoblinRedisUtils redisUtils;
public AdamRscPolymer01Vo adamAddressEnterMember(String uid, String enterIds, String addressId) { public AdamRscPolymer01Vo adamAddressEnterMember(String uid, String enterIds, String addressId) {
long time1 = System.currentTimeMillis();
try { try {
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString(); MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Accept", "application/json;charset=UTF-8"); header.add("Accept", "application/json;charset=UTF-8");
...@@ -45,6 +46,7 @@ public class GoblinOrderUtils { ...@@ -45,6 +46,7 @@ public class GoblinOrderUtils {
String resultData = HttpUtil.post(adamUrl + "/adam/rsc/inquire/of_buy_ticket", params, header); String resultData = HttpUtil.post(adamUrl + "/adam/rsc/inquire/of_buy_ticket", params, header);
ResponseDto<AdamRscPolymer01Vo> vo = JsonUtils.fromJson(resultData, new TypeReference<ResponseDto<AdamRscPolymer01Vo>>() { ResponseDto<AdamRscPolymer01Vo> vo = JsonUtils.fromJson(resultData, new TypeReference<ResponseDto<AdamRscPolymer01Vo>>() {
}); });
log.info("adam接口调用:"+(time1-System.currentTimeMillis()));
if (null != vo.getData()) { if (null != vo.getData()) {
return vo.getData(); return vo.getData();
} else { } else {
...@@ -163,27 +165,6 @@ public class GoblinOrderUtils { ...@@ -163,27 +165,6 @@ public class GoblinOrderUtils {
} }
} }
public CandyCouponVo getCouponDetails(String uCouponId) {
try {
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Authorization", "Bearer " + CurrentUtil.getToken());
header.add("Accept", "application/json;charset=UTF-8");
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("uCouponIds", uCouponId);
String returnData = HttpUtil.post(candyUrl + " /candy-coupon/receive/ListById", params, header);
ResponseDto<CandyCouponVo> innerReturnVo = JsonUtils.fromJson(returnData, new TypeReference<ResponseDto<CandyCouponVo>>() {
});
return innerReturnVo.getData();
} catch (Exception e) {
log.error("回退券ERROR:{}", e);
CandyCouponVo vo = CandyCouponVo.getNew();
vo.setUcouponId(uCouponId);
vo.setTitle("");
return vo;
}
}
public void doTask(String uid, BigDecimal price) { public void doTask(String uid, BigDecimal price) {
try { try {
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString(); MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment