|
@@ -1,24 +1,17 @@
|
|
package com.ruoyi.project.production.controller;
|
|
package com.ruoyi.project.production.controller;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
|
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
|
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
|
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
|
-import com.ruoyi.project.production.domain.TFivesRecordDetails;
|
|
|
|
-import com.ruoyi.project.production.service.ITFivesRecordDetailsService;
|
|
|
|
import com.ruoyi.framework.web.controller.BaseController;
|
|
import com.ruoyi.framework.web.controller.BaseController;
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
|
-import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import com.ruoyi.framework.web.page.TableDataInfo;
|
|
import com.ruoyi.framework.web.page.TableDataInfo;
|
|
|
|
+import com.ruoyi.project.production.domain.TFivesRecordDetails;
|
|
|
|
+import com.ruoyi.project.production.service.ITFivesRecordDetailsService;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 整改记录详情Controller
|
|
* 整改记录详情Controller
|
|
@@ -36,7 +29,7 @@ public class TFivesRecordDetailsController extends BaseController
|
|
/**
|
|
/**
|
|
* 查询整改记录详情列表
|
|
* 查询整改记录详情列表
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('production:details:list')")
|
|
|
|
|
|
+ //@PreAuthorize("@ss.hasPermi('production:details:list')")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
public TableDataInfo list(TFivesRecordDetails tFivesRecordDetails)
|
|
public TableDataInfo list(TFivesRecordDetails tFivesRecordDetails)
|
|
{
|
|
{
|
|
@@ -48,7 +41,7 @@ public class TFivesRecordDetailsController extends BaseController
|
|
/**
|
|
/**
|
|
* 导出整改记录详情列表
|
|
* 导出整改记录详情列表
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('production:details:export')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('production:details:export')")
|
|
@Log(title = "整改记录详情", businessType = BusinessType.EXPORT)
|
|
@Log(title = "整改记录详情", businessType = BusinessType.EXPORT)
|
|
@GetMapping("/export")
|
|
@GetMapping("/export")
|
|
public AjaxResult export(TFivesRecordDetails tFivesRecordDetails)
|
|
public AjaxResult export(TFivesRecordDetails tFivesRecordDetails)
|
|
@@ -61,7 +54,7 @@ public class TFivesRecordDetailsController extends BaseController
|
|
/**
|
|
/**
|
|
* 获取整改记录详情详细信息
|
|
* 获取整改记录详情详细信息
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('production:details:query')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('production:details:query')")
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
{
|
|
{
|
|
@@ -71,7 +64,7 @@ public class TFivesRecordDetailsController extends BaseController
|
|
/**
|
|
/**
|
|
* 新增整改记录详情
|
|
* 新增整改记录详情
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('production:details:add')")
|
|
|
|
|
|
+ //@PreAuthorize("@ss.hasPermi('production:details:add')")
|
|
@Log(title = "整改记录详情", businessType = BusinessType.INSERT)
|
|
@Log(title = "整改记录详情", businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
public AjaxResult add(@RequestBody TFivesRecordDetails tFivesRecordDetails)
|
|
public AjaxResult add(@RequestBody TFivesRecordDetails tFivesRecordDetails)
|
|
@@ -82,7 +75,7 @@ public class TFivesRecordDetailsController extends BaseController
|
|
/**
|
|
/**
|
|
* 修改整改记录详情
|
|
* 修改整改记录详情
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('production:details:edit')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('production:details:edit')")
|
|
@Log(title = "整改记录详情", businessType = BusinessType.UPDATE)
|
|
@Log(title = "整改记录详情", businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
public AjaxResult edit(@RequestBody TFivesRecordDetails tFivesRecordDetails)
|
|
public AjaxResult edit(@RequestBody TFivesRecordDetails tFivesRecordDetails)
|
|
@@ -93,7 +86,7 @@ public class TFivesRecordDetailsController extends BaseController
|
|
/**
|
|
/**
|
|
* 删除整改记录详情
|
|
* 删除整改记录详情
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('production:details:remove')")
|
|
|
|
|
|
+ // @PreAuthorize("@ss.hasPermi('production:details:remove')")
|
|
@Log(title = "整改记录详情", businessType = BusinessType.DELETE)
|
|
@Log(title = "整改记录详情", businessType = BusinessType.DELETE)
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|