From 5f2ed1340a55a443e182c30a66135e8042bad07c Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Thu, 29 Jun 2023 19:50:32 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=A4=84=E7=90=86=E6=A2=A6?= =?UTF-8?q?=E5=A4=A9=E6=95=B0=E6=8D=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../factory/mt/controller/MtFactoryDataController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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{