|
@@ -859,6 +859,39 @@ public class BMSController extends BaseRESTfulController {
|
|
|
return bmstruckFeign.findDetailsForStatement(map);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("updateTruckDetail")
|
|
|
+ @ApiOperation(value = "直接修改汽运详单")
|
|
|
+ RESTfulResult updateTruckDetail(@RequestParam("orderList")BigDecimal[] orderList,@RequestParam("detailRemark") String detailRemark,@RequestParam("detailAmount") BigDecimal detailAmount,@RequestParam("userId") BigDecimal userId, MultipartRequest request) {
|
|
|
+ String url="";
|
|
|
+ List<MultipartFile> files = new ArrayList<>();
|
|
|
+ //获取图片
|
|
|
+ for(int i=0;i<=10;i++){
|
|
|
+ MultipartFile temp = request.getFile("file"+i);
|
|
|
+ if(temp!=null){
|
|
|
+ files.add(temp);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(files.size() < 1){
|
|
|
+ return failed("没有上传图片!");
|
|
|
+ }
|
|
|
+ //上传图片
|
|
|
+ try{
|
|
|
+ for(int i=0;i<files.size();i++){
|
|
|
+ url+=imageFileUtils.updateFile(files.get(i),i)+';';
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ return failed("上传图片失败!");
|
|
|
+ }
|
|
|
+ Map<String,Object> map=new HashMap<>();
|
|
|
+ map.put("orderList",orderList);
|
|
|
+ map.put("detailAmount",detailAmount);
|
|
|
+ map.put("detailRemark",detailRemark);
|
|
|
+ map.put("url",url);
|
|
|
+ map.put("userId",userId);
|
|
|
+ return bmstruckFeign.updateTruckDetail(map);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("查询发票图片")
|
|
|
@PostMapping("/getStatementPhoto")
|
|
|
public List<String> getStatementPhoto(@RequestParam BigDecimal statementId) throws Exception{
|