Commit f5e12cc9 by 徐康

数据库字段长度调整

parent 76402e33
...@@ -2598,7 +2598,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService { ...@@ -2598,7 +2598,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
pushMccafeOrder.setStoreId(orderInfoReqs.getStoreId()); pushMccafeOrder.setStoreId(orderInfoReqs.getStoreId());
if(!"SUCCESS".equals(responseDto.getCode())) { if(!"SUCCESS".equals(responseDto.getCode())) {
pushMccafeOrder.setStatus(0); pushMccafeOrder.setStatus(0);
pushMccafeOrder.setFailReason(JSON.toJSONString(responseDto)); pushMccafeOrder.setFailReason(subLongString(JSON.toJSONString(responseDto)));
} else { } else {
pushMccafeOrder.setStatus(1); pushMccafeOrder.setStatus(1);
} }
...@@ -2624,7 +2624,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService { ...@@ -2624,7 +2624,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
pushMccafeOrder.setPartnerId(orderInfoReqs.getPartnerId()); pushMccafeOrder.setPartnerId(orderInfoReqs.getPartnerId());
pushMccafeOrder.setStoreId(orderInfoReqs.getStoreId()); pushMccafeOrder.setStoreId(orderInfoReqs.getStoreId());
pushMccafeOrder.setStatus(0); pushMccafeOrder.setStatus(0);
pushMccafeOrder.setFailReason(ExceptionUtils.getExceptionInfo(e)); pushMccafeOrder.setFailReason(subLongString(ExceptionUtils.getExceptionInfo(e)));
pushMccafeOrderManager.insertOrder(pushMccafeOrder); pushMccafeOrderManager.insertOrder(pushMccafeOrder);
} }
...@@ -2638,6 +2638,18 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService { ...@@ -2638,6 +2638,18 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
return baseResponse; return baseResponse;
} }
public String subLongString(String s) {
if(StringUtils.isNotBlank(s)) {
if(s.length() > 15000) {
return s.substring(0,15000);
} else {
return s;
}
} else {
return "";
}
}
public BaseResponse mcCafePushOrderMakeUp(McCafeQueryOrderVo queryOrderVo) { public BaseResponse mcCafePushOrderMakeUp(McCafeQueryOrderVo queryOrderVo) {
executor.submit(() -> { executor.submit(() -> {
......
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