diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/controller/MtFactoryDataController.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/controller/MtFactoryDataController.java index 4ffa454cb..19e7bdf46 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/controller/MtFactoryDataController.java +++ b/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 map = (Map) 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{