|
@@ -0,0 +1,34 @@
|
|
|
+package org.dromara.commodityManagement.controller;
|
|
|
+
|
|
|
+import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.dromara.commodityManagement.domain.bo.ShaoHuaBo;
|
|
|
+import org.dromara.commodityManagement.service.ShaoHuaService;
|
|
|
+import org.dromara.common.core.domain.R;
|
|
|
+import org.dromara.common.web.core.BaseController;
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 烧花单价管理接口
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequiredArgsConstructor
|
|
|
+@RequestMapping("/commodityManagement/shaohua")
|
|
|
+public class ShaoHuaController extends BaseController {
|
|
|
+ private final ShaoHuaService shaoHuaService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改烧花单价
|
|
|
+ *
|
|
|
+ * @param shaoHua 烧花BO对象
|
|
|
+ * @return 烧花单价
|
|
|
+ */
|
|
|
+ @PutMapping()
|
|
|
+ public R<Void> updateShaoHua(@RequestBody ShaoHuaBo shaoHua) {
|
|
|
+ return toAjax(shaoHuaService.updateShaoHua(shaoHua));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|