添加
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package com.ruoyi.web.controller.productionManager;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.productionManager.domain.StandardInfo;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@ -15,13 +17,12 @@ import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.productionManager.domain.StandardInfo;
|
||||
import com.ruoyi.productionManager.service.IStandardInfoService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 标准信息Controller
|
||||
* 试验标准管理Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-10-13
|
||||
@ -34,7 +35,7 @@ public class StandardInfoController extends BaseController
|
||||
private IStandardInfoService standardInfoService;
|
||||
|
||||
/**
|
||||
* 查询标准信息列表
|
||||
* 查询试验标准管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('productionManager:standard:list')")
|
||||
@GetMapping("/list")
|
||||
@ -46,20 +47,20 @@ public class StandardInfoController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出标准信息列表
|
||||
* 导出试验标准管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('productionManager:standard:export')")
|
||||
@Log(title = "标准信息", businessType = BusinessType.EXPORT)
|
||||
@Log(title = "试验标准管理", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(StandardInfo standardInfo)
|
||||
{
|
||||
List<StandardInfo> list = standardInfoService.selectStandardInfoList(standardInfo);
|
||||
ExcelUtil<StandardInfo> util = new ExcelUtil<StandardInfo>(StandardInfo.class);
|
||||
return util.exportExcel(list, "标准信息数据");
|
||||
return util.exportExcel(list, "试验标准管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取标准信息详细信息
|
||||
* 获取试验标准管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('productionManager:standard:query')")
|
||||
@GetMapping(value = "/{standardId}")
|
||||
@ -69,10 +70,10 @@ public class StandardInfoController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增标准信息
|
||||
* 新增试验标准管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('productionManager:standard:add')")
|
||||
@Log(title = "标准信息", businessType = BusinessType.INSERT)
|
||||
@Log(title = "试验标准管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody StandardInfo standardInfo)
|
||||
{
|
||||
@ -80,10 +81,10 @@ public class StandardInfoController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改标准信息
|
||||
* 修改试验标准管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('productionManager:standard:edit')")
|
||||
@Log(title = "标准信息", businessType = BusinessType.UPDATE)
|
||||
@Log(title = "试验标准管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody StandardInfo standardInfo)
|
||||
{
|
||||
@ -91,10 +92,10 @@ public class StandardInfoController extends BaseController
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除标准信息
|
||||
* 删除试验标准管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('productionManager:standard:remove')")
|
||||
@Log(title = "标准信息", businessType = BusinessType.DELETE)
|
||||
@Log(title = "试验标准管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{standardIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] standardIds)
|
||||
{
|
||||
|
Reference in New Issue
Block a user