浏览代码

修改厂外物流bug

zx 3 年之前
父节点
当前提交
e3e6a73e25
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/main/java/com/steerinfo/dil/controller/OTMSController.java

+ 5 - 0
src/main/java/com/steerinfo/dil/controller/OTMSController.java

@@ -181,6 +181,10 @@ public class OTMSController {
     @PostMapping("/getReceivingPhotoByUrl")
     public Map<String,Object> getReceivingPhotoByUrl(@RequestParam String orderNumber) throws Exception {
         Map<String,Object> map=otmsFeign.getReceivingPhotoByUrl(orderNumber);
+        if(map==null){
+          map =new HashMap<>();
+          return  map;
+        }
         if(map.containsKey("resultEmptyContainerPhoto") && map.get("resultEmptyContainerPhoto")!=null){
             String resultEmptyContainerPhoto = (String) imageFileUtils.downloadFile(map.get("resultEmptyContainerPhoto").toString());
             map.put("resultEmptyContainerPhoto",resultEmptyContainerPhoto);
@@ -206,6 +210,7 @@ public class OTMSController {
             String resultSignedNotePhoto =(String) imageFileUtils.downloadFile(map.get("otherPhoto3").toString());
             map.put("otherPhoto3",resultSignedNotePhoto);
         }
+
         return map;
     }