Commit f9fad137 by wutong

只有UnHandle,Handling才代表是刷单的

parent f40273d5
package com.bailuntec.domain.enumerate;
public enum OrderExceptionStatus {
UnHandle(1,"UnHandle"),
Handling(2,"Handling"),
Finished(3,"Finished"),
None(4,"None"),
Unknow(5,"Unknow");
private final int code;
private final String value;
OrderExceptionStatus(int code, String value) {
this.code = code;
this.value = value;
}
public String value() {
return value;
}
public int code() {
return code;
}
}
......@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import com.bailuntec.domain.constant.CommonConstant;
import com.bailuntec.domain.constant.Constant;
import com.bailuntec.domain.entity.*;
import com.bailuntec.domain.enumerate.OrderExceptionStatus;
import com.bailuntec.domain.enumerate.OrderExceptionType;
import com.bailuntec.domain.enumerate.PlatformType;
import com.bailuntec.domain.example.*;
......@@ -570,9 +571,11 @@ public class OrderSyncJob extends PointJob {
List<OrderException> orderExceptions = omsResult.getOrderExceptions();
if (orderExceptions != null && orderExceptions.size() > 0) {
for (OrderException orderException : orderExceptions) {
//type是Scalp 且status不是Finished才是刷单订单
if (StringUtils.isNotBlank(orderException.getExceptionType()) && StringUtils.isNotBlank(orderException.getStatus()) && orderException.getExceptionType().equals(OrderExceptionType.Scalp.value()) && !orderException.getStatus().equals("Finished")) {
dcBaseOmsOrder.setHasScalp(true);
//type是Scalp 且status只有UnHandle,Handling才代表是刷单的才是刷单订单
if (StringUtils.isNotBlank(orderException.getExceptionType()) && StringUtils.isNotBlank(orderException.getStatus()) && orderException.getExceptionType().equals(OrderExceptionType.Scalp.value())) {
if (orderException.getStatus().equals(OrderExceptionStatus.UnHandle.value()) || orderException.getStatus().equals(OrderExceptionStatus.Handling.value())){
dcBaseOmsOrder.setHasScalp(true);
}
}
}
}
......
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