|
@@ -1,5 +1,6 @@
|
|
|
package com.steerinfo.dil.controller;
|
|
|
|
|
|
+import com.steerinfo.dil.config.ImageFileUtils;
|
|
|
import com.steerinfo.dil.feign.TmsshipFeign;
|
|
|
import com.steerinfo.dil.feign.TmsTrainFeign;
|
|
|
import com.steerinfo.dil.feign.TmsTruckFeign;
|
|
@@ -35,6 +36,8 @@ public class TMSController extends BaseRESTfulController {
|
|
|
TmsshipFeign tmsshipFeign;
|
|
|
@Autowired
|
|
|
UniversalMapper universalMapper;
|
|
|
+ @Autowired
|
|
|
+ private ImageFileUtils imageFileUtils;
|
|
|
/*======================================船运==========================================*/
|
|
|
|
|
|
/**
|
|
@@ -1950,9 +1953,11 @@ public class TMSController extends BaseRESTfulController {
|
|
|
Integer pageSize,
|
|
|
String startTime,
|
|
|
String endTime,
|
|
|
- String carrierSsoId
|
|
|
+ String carrierSsoId,
|
|
|
+ Integer orderType,
|
|
|
+ Integer shipperId
|
|
|
){
|
|
|
- return tmsTruckFeign.getAllSaleReport(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime, carrierSsoId);
|
|
|
+ return tmsTruckFeign.getAllSaleReport(mapValue==null?new HashMap<>():mapValue, apiId, pageNum, pageSize, startTime, endTime, carrierSsoId,orderType,shipperId);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value="查询销售统计报表筛选过后的总净重")
|
|
@@ -2163,4 +2168,18 @@ public class TMSController extends BaseRESTfulController {
|
|
|
public Map<String,Object> getReceivingPhoto(@RequestParam String orderNumber){
|
|
|
return tmsTruckFeign.getReceivingPhoto(orderNumber);
|
|
|
}
|
|
|
+ @ApiOperation("展示收货的照片")
|
|
|
+ @PostMapping("/getReceivingPhotoByUrl")
|
|
|
+ public Map<String,Object> getReceivingPhotoByUrl(@RequestParam String orderNumber) throws Exception {
|
|
|
+ Map<String,Object> map=tmsTruckFeign.getReceivingPhotoByUrl(orderNumber);
|
|
|
+ if(map.containsKey("resultEmptyContainerPhoto") && map.get("resultEmptyContainerPhoto")!=null){
|
|
|
+ String resultEmptyContainerPhoto = (String) imageFileUtils.downloadFile(map.get("resultEmptyContainerPhoto").toString());
|
|
|
+ map.put("resultEmptyContainerPhoto",resultEmptyContainerPhoto);
|
|
|
+ }
|
|
|
+ if(map.containsKey("resultSignedNotePhoto") && map.get("resultSignedNotePhoto")!=null){
|
|
|
+ String resultSignedNotePhoto = (String) imageFileUtils.downloadFile(map.get("resultSignedNotePhoto").toString());
|
|
|
+ map.put("resultSignedNotePhoto",resultSignedNotePhoto);
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }
|
|
|
}
|