Browse Source

1.修改处理梦天数据bug

dev-warehouse
zhenghaoyu 2 years ago
parent
commit
5f2ed1340a
  1. 8
      blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/controller/MtFactoryDataController.java

8
blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/controller/MtFactoryDataController.java

@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
import java.util.Objects;
/**
* 梦天数据 控制器
@ -78,11 +79,14 @@ public class MtFactoryDataController extends BladeController {
int code = r.getCode();
Map<String,Long> map = (Map<String, Long>) r.getData();
Long mainId = map.get("mainId");
Long mainId = null;
if(!Objects.isNull(map)){
mainId = map.get("mainId");
}
if(code == 200){
orderStatusLog.setStatus(0);
//开启异步线程处理数据
if(mainId != 0){
if(!Objects.isNull(mainId)){
asyncDataService.handlerMtDataToHt(map.get("mainId"));
}
}else{

Loading…
Cancel
Save