|
|
@ -4,6 +4,7 @@ import java.util.List;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
|
|
import com.microsoft.windowsazure.exception.ServiceException;
|
|
|
|
import com.microsoft.windowsazure.exception.ServiceException;
|
|
|
|
|
|
|
|
import com.op.common.security.annotation.RequiresPermissions;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@ -39,7 +40,7 @@ public class BpRawMaterialInDetailController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询白坯原材料入库明细列表
|
|
|
|
* 查询白坯原材料入库明细列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:detail:list')")
|
|
|
|
@RequiresPermissions("wms:detail:list")
|
|
|
|
@GetMapping("/list")
|
|
|
|
@GetMapping("/list")
|
|
|
|
public TableDataInfo list(BpRawMaterialInDetail bpRawMaterialInDetail)
|
|
|
|
public TableDataInfo list(BpRawMaterialInDetail bpRawMaterialInDetail)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -51,7 +52,7 @@ public class BpRawMaterialInDetailController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 导出白坯原材料入库明细列表
|
|
|
|
* 导出白坯原材料入库明细列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:detail:export')")
|
|
|
|
@RequiresPermissions("wms:detail:export")
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/export")
|
|
|
|
@PostMapping("/export")
|
|
|
|
public void export(HttpServletResponse response, BpRawMaterialInDetail bpRawMaterialInDetail)
|
|
|
|
public void export(HttpServletResponse response, BpRawMaterialInDetail bpRawMaterialInDetail)
|
|
|
@ -64,7 +65,7 @@ public class BpRawMaterialInDetailController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取白坯原材料入库明细详细信息
|
|
|
|
* 获取白坯原材料入库明细详细信息
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:detail:query')")
|
|
|
|
@RequiresPermissions("wms:detail:query")
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -74,7 +75,7 @@ public class BpRawMaterialInDetailController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新增白坯原材料入库明细
|
|
|
|
* 新增白坯原材料入库明细
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:detail:add')")
|
|
|
|
@RequiresPermissions("wms:detail:add")
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.INSERT)
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.INSERT)
|
|
|
|
@PostMapping
|
|
|
|
@PostMapping
|
|
|
|
public AjaxResult add(@RequestBody BpRawMaterialInDetail bpRawMaterialInDetail) throws ServiceException {
|
|
|
|
public AjaxResult add(@RequestBody BpRawMaterialInDetail bpRawMaterialInDetail) throws ServiceException {
|
|
|
@ -84,7 +85,7 @@ public class BpRawMaterialInDetailController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 修改白坯原材料入库明细
|
|
|
|
* 修改白坯原材料入库明细
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:detail:edit')")
|
|
|
|
@RequiresPermissions("wms:detail:edit")
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.UPDATE)
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.UPDATE)
|
|
|
|
@PutMapping
|
|
|
|
@PutMapping
|
|
|
|
public AjaxResult edit(@RequestBody BpRawMaterialInDetail bpRawMaterialInDetail)
|
|
|
|
public AjaxResult edit(@RequestBody BpRawMaterialInDetail bpRawMaterialInDetail)
|
|
|
@ -95,11 +96,12 @@ public class BpRawMaterialInDetailController extends BaseController
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 删除白坯原材料入库明细
|
|
|
|
* 删除白坯原材料入库明细
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PreAuthorize("@ss.hasPermi('wms:detail:remove')")
|
|
|
|
@RequiresPermissions("wms:detail:remove")
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.DELETE)
|
|
|
|
@Log(title = "白坯原材料入库明细", businessType = BusinessType.DELETE)
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
public AjaxResult remove(@PathVariable String[] ids)
|
|
|
|
public AjaxResult remove(@PathVariable String[] ids)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return toAjax(bpRawMaterialInDetailService.deleteBpRawMaterialInDetailByIds(ids));
|
|
|
|
AjaxResult result= bpRawMaterialInDetailService.deleteBpRawMaterialInDetailByIds(ids);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|