|
|
|
@ -2,6 +2,8 @@ package com.op.wms.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
import com.op.common.security.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
@ -36,7 +38,7 @@ public class BpProcureOrderController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 查询白坯原材料采购单列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:bpprocure:list')")
|
|
|
|
|
@RequiresPermissions("wms:bpprocure:list")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(BpProcureOrder bpProcureOrder)
|
|
|
|
|
{
|
|
|
|
@ -48,7 +50,7 @@ public class BpProcureOrderController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 导出白坯原材料采购单列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:bpprocure:export')")
|
|
|
|
|
@RequiresPermissions("wms:bpprocure:export")
|
|
|
|
|
@Log(title = "白坯原材料采购单", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, BpProcureOrder bpProcureOrder)
|
|
|
|
@ -61,7 +63,7 @@ public class BpProcureOrderController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 获取白坯原材料采购单详细信息
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:bpprocure:query')")
|
|
|
|
|
@RequiresPermissions("wms:bpprocure:query")
|
|
|
|
|
@GetMapping(value = "/{ID}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("ID") String ID)
|
|
|
|
|
{
|
|
|
|
@ -71,7 +73,7 @@ public class BpProcureOrderController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 新增白坯原材料采购单
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:bpprocure:add')")
|
|
|
|
|
@RequiresPermissions("wms:bpprocure:add")
|
|
|
|
|
@Log(title = "白坯原材料采购单", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody BpProcureOrder bpProcureOrder)
|
|
|
|
@ -82,7 +84,7 @@ public class BpProcureOrderController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 修改白坯原材料采购单
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:bpprocure:edit')")
|
|
|
|
|
@RequiresPermissions("wms:bpprocure:edit")
|
|
|
|
|
@Log(title = "白坯原材料采购单", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody BpProcureOrder bpProcureOrder)
|
|
|
|
@ -93,7 +95,7 @@ public class BpProcureOrderController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 删除白坯原材料采购单
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:bpprocure:remove')")
|
|
|
|
|
@RequiresPermissions("wms:bpprocure:remove")
|
|
|
|
|
@Log(title = "白坯原材料采购单", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{IDs}")
|
|
|
|
|
public AjaxResult remove(@PathVariable String[] IDs)
|
|
|
|
|