|
|
@@ -3,14 +3,7 @@ package com.ruoyi.logistics.controller;
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import com.ruoyi.common.log.annotation.Log;
|
|
|
import com.ruoyi.common.log.enums.BusinessType;
|
|
|
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
|
|
@@ -75,9 +68,9 @@ public class SysDeptRateController extends BaseController
|
|
|
@RequiresPermissions("logistics:rate:add")
|
|
|
@Log(title = "供应商费率配置", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody List<SysDeptRate> sysDeptRates)
|
|
|
+ public AjaxResult add(@RequestBody List<SysDeptRate> sysDeptRates, @RequestParam("deptId") Long deptId)
|
|
|
{
|
|
|
- return toAjax(sysDeptRateService.insertSysDeptRate(sysDeptRates));
|
|
|
+ return toAjax(sysDeptRateService.insertSysDeptRate(sysDeptRates, deptId));
|
|
|
}
|
|
|
|
|
|
/**
|