|
|
|
@ -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{ |
|
|
|
|