luobang 2 éve
szülő
commit
4f7329761a

+ 17 - 0
src/main/java/com/steerinfo/dil/controller/BmstruckDetailsOrderController.java

@@ -320,6 +320,23 @@ public class BmstruckDetailsOrderController extends BaseRESTfulController {
         return success(code);
     }
 
+
+    @ApiModelProperty(value = "批量修改详单")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "detailsId,priceId", value = "详单id,价格id", required = false, dataType = "BigDecimal"),
+    })
+    @PostMapping("/updateBatchDetailsOrder")
+    public RESTfulResult updateBatchDetailsOrder(@RequestBody Map<String,Object> mapValue) throws Exception {
+        List<Map<String,Object>> mapList = (List<Map<String,Object>>) mapValue.get("mapList");
+        int code = 0;
+        for (Map<String,Object> map :mapList) {
+             map.put("updatePlace",mapValue.get("updatePlace"));
+             code += bmstruckDetailsOrderService.updateDetailsOrder(map);
+        }
+        return success(code);
+    }
+
+
     /**addLossFeeOfCoke
      * 增加焦炭途损费
      *