|
@@ -1,7 +1,9 @@
|
|
|
package com.fjhx.controller.supplier;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.fjhx.params.FlowVo;
|
|
|
import com.fjhx.params.supplier.SupplierPriceVo;
|
|
|
+import com.fjhx.service.flow.SupplierPriceUpdateFlow;
|
|
|
import com.fjhx.service.supplier.SupplierPriceService;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -10,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -27,6 +30,15 @@ public class SupplierPriceController {
|
|
|
@Autowired
|
|
|
private SupplierPriceService supplierPriceService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SupplierPriceUpdateFlow supplierPriceUpdateFlow;
|
|
|
+
|
|
|
+ @PostMapping("/list")
|
|
|
+ public R list(@RequestBody Map<String, String> condition) {
|
|
|
+ List<Map<String, Object>> result = supplierPriceService.getList(condition);
|
|
|
+ return R.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/page")
|
|
|
public R page(@RequestBody Map<String, String> condition) {
|
|
|
Page<Map<String, Object>> result = supplierPriceService.getPage(condition);
|
|
@@ -39,6 +51,18 @@ public class SupplierPriceController {
|
|
|
return R.success();
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/updateFlowCreate")
|
|
|
+ public R updateFlowCreate(@RequestBody SupplierPriceVo supplierPriceVo) {
|
|
|
+ supplierPriceUpdateFlow.create(supplierPriceVo);
|
|
|
+ return R.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/updateFlowJump")
|
|
|
+ public R updateFlowJump(@RequestBody FlowVo flowVo) {
|
|
|
+ supplierPriceUpdateFlow.jump(flowVo);
|
|
|
+ return R.success();
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/delete")
|
|
|
public R delete(@RequestBody SupplierPriceVo supplierPriceVo) {
|
|
|
supplierPriceService.delete(supplierPriceVo);
|