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

Commit 9216aa91 authored by 胡佳晨's avatar 胡佳晨

无权查看 错误 20003提交

parent 1053ad7e
......@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.google.common.base.Joiner;
import com.liquidnet.commons.lang.util.*;
import com.liquidnet.service.base.ErrorMapping;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.base.SqlMapping;
import com.liquidnet.service.base.constant.MQConst;
......@@ -107,7 +108,7 @@ public class GoblinOrderAppServiceImpl implements IGoblinOrderAppService {
public ResponseDto<GoblinAppOrderDetailsVo> orderDetails(String orderId, String uid) {
GoblinStoreOrderVo orderVo = redisUtils.getGoblinOrder(orderId);
if (!orderVo.getUserId().equals(uid) && uid != null) {
return ResponseDto.failure("无权查看");
return ResponseDto.failure(ErrorMapping.get("20003"));
}
GoblinAppOrderDetailsVo vo = GoblinAppOrderDetailsVo.getNew();
List<GoblinOrderSkuVo> skuVos = ObjectUtil.getGoblinOrderSkuVoArrayList();
......
......@@ -561,7 +561,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
//检查订单时间 是否关闭
GoblinStoreOrderVo storeOrderVo = redisUtils.getGoblinOrder(param.getOrderId());
if (!storeOrderVo.getUserId().equals(uid)) {
return ResponseDto.failure("无权查看");
return ResponseDto.failure(ErrorMapping.get("20003"));
}
if (storeOrderVo == null) {
return ResponseDto.failure("订单不存在");
......
......@@ -42,4 +42,5 @@
148001=库存不足
20003=无权查看
20018=下单失败
\ No newline at end of file
......@@ -177,7 +177,7 @@ public class KylinOrderTicketsRefundServiceImpl {
if (uid.equals("809406") || uid.equals("773650")) {
} else {
if (!orderTicketVo.getUserId().equals(uid)) {
return ResponseDto.failure("无权查看");
return ResponseDto.failure(ErrorMapping.get("20003"));
}
}
......
......@@ -471,7 +471,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
LocalDateTime now = LocalDateTime.now();
if (null != orderTicketVo) {
if (!orderTicketVo.getUserId().equals(uid)) {
return ResponseDto.success("无权查看");
return ResponseDto.success(ErrorMapping.get("20003"));
}
if (!orderTicketVo.getTransferStatus().equals(0)) {
return ResponseDto.failure("已转票一次,无法再次转票");
......@@ -562,7 +562,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
LocalDateTime now = LocalDateTime.now();
if (null != orderTicketVo) {
if (!orderTicketVo.getUserId().equals(uid)) {
return ResponseDto.success("无权查看");
return ResponseDto.failure(ErrorMapping.get("20003"));
}
if (!orderTicketVo.getTransferStatus().equals(1)) {
return ResponseDto.failure("无法撤回");
......@@ -881,7 +881,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
LocalDateTime now = LocalDateTime.now();
if (null != orderTicketVo) {
if (!orderTicketVo.getUserId().equals(uid)) {
return ResponseDto.success("无权查看");
return ResponseDto.failure(ErrorMapping.get("20003"));
}
if (!orderTicketVo.getTransferStatus().equals(4)) {
return ResponseDto.failure("无法拒收");
......
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