|
@@ -2,7 +2,8 @@ package com.fjhx.controller.material;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fjhx.entity.material.Material;
|
|
|
-import com.fjhx.params.material.MaterialVo;
|
|
|
+import com.fjhx.params.FlowVo;
|
|
|
+import com.fjhx.service.flow.MaterialUpdateFlowService;
|
|
|
import com.fjhx.service.material.MaterialService;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -28,15 +29,30 @@ public class MaterialController {
|
|
|
@Autowired
|
|
|
private MaterialService materialService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MaterialUpdateFlowService materialUpdateFlowService;
|
|
|
+
|
|
|
@PostMapping("/page")
|
|
|
public R page(@RequestBody Map<String, String> condition) {
|
|
|
Page<Material> result = materialService.getPage(condition);
|
|
|
return R.success(result);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/edit")
|
|
|
- public R edit(@RequestBody MaterialVo materialVo) {
|
|
|
- materialService.edit(materialVo);
|
|
|
+
|
|
|
+ * 物料修改创建流程
|
|
|
+ */
|
|
|
+ @PostMapping("/editFlowCreate")
|
|
|
+ public R editFlowCreate(@RequestBody Material material) {
|
|
|
+ materialUpdateFlowService.create(material);
|
|
|
+ return R.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * 物料修改流程跳转
|
|
|
+ */
|
|
|
+ @PostMapping("/editFlowJump")
|
|
|
+ public R editFlowJump(@RequestBody FlowVo flowVo) {
|
|
|
+ materialUpdateFlowService.jump(flowVo);
|
|
|
return R.success();
|
|
|
}
|
|
|
|