|
|
@@ -47,7 +47,7 @@ public class IsMaterialsController extends BaseController
|
|
|
@Parameter(name = "page", description = "Page"),
|
|
|
@Parameter(name = "dto", description = "实体参数")
|
|
|
})
|
|
|
- // @PreAuthorize("@ss.hasPermi('iscs:materials:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:materials:list')")
|
|
|
@GetMapping("/getIsMaterialsPage")
|
|
|
public CommonResult<Page<MaterialsPageVO>> getIsMaterialsPage(Page<IsMaterials> page, MaterialsPageDTO dto)
|
|
|
{
|
|
|
@@ -60,7 +60,7 @@ public class IsMaterialsController extends BaseController
|
|
|
*/
|
|
|
@ApiOperation("导出物资列表")
|
|
|
@Parameter(name = "isMaterials", description = "实体参数")
|
|
|
- // @PreAuthorize("@ss.hasPermi('iscs:materials:export')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:materials:export')")
|
|
|
@Log(title = "物资", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/exportIsMaterials")
|
|
|
public void exportIsMaterials(HttpServletResponse response, IsMaterials isMaterials)
|
|
|
@@ -75,7 +75,7 @@ public class IsMaterialsController extends BaseController
|
|
|
*/
|
|
|
@ApiOperation("获取物资详细信息")
|
|
|
@Parameter(name = "materialsId", description = "materialsId")
|
|
|
- // @PreAuthorize("@ss.hasPermi('iscs:materials:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:materials:query')")
|
|
|
@GetMapping(value = "/selectIsMaterialsById")
|
|
|
public CommonResult<IsMaterials> selectIsMaterialsById(Long materialsId)
|
|
|
{
|
|
|
@@ -86,7 +86,7 @@ public class IsMaterialsController extends BaseController
|
|
|
* 新增物资
|
|
|
*/
|
|
|
@ApiOperation("新增物资")
|
|
|
- // @PreAuthorize("@ss.hasPermi('iscs:materials:add')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:materials:add')")
|
|
|
@Log(title = "物资", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/insertIsMaterials")
|
|
|
public CommonResult<Boolean> insertIsMaterials(@RequestBody @Parameter(name = "isMaterials", description = "新增数据类,放到body") IsMaterials isMaterials)
|
|
|
@@ -98,7 +98,7 @@ public class IsMaterialsController extends BaseController
|
|
|
* 修改物资
|
|
|
*/
|
|
|
@ApiOperation("修改物资")
|
|
|
- // @PreAuthorize("@ss.hasPermi('iscs:materials:edit')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:materials:edit')")
|
|
|
@Log(title = "物资", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/updateIsMaterials")
|
|
|
public CommonResult<Boolean> updateIsMaterials(@RequestBody @Parameter(name = "isMaterials", description = "修改数据类,放到body") IsMaterials isMaterials)
|
|
|
@@ -107,7 +107,7 @@ public class IsMaterialsController extends BaseController
|
|
|
}
|
|
|
|
|
|
@ApiOperation("借出/归还物资")
|
|
|
- // @PreAuthorize("@ss.hasPermi('iscs:materials:loan')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:materials:loan')")
|
|
|
@Log(title = "借出/归还物资", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/updateIsMaterialById")
|
|
|
public CommonResult<Boolean> updateIsMaterialById(@RequestBody @Parameter(name = "isMaterials", description = "修改数据类,放到body") LoanMaterialDTO dto)
|
|
|
@@ -119,7 +119,7 @@ public class IsMaterialsController extends BaseController
|
|
|
* 删除物资
|
|
|
*/
|
|
|
@ApiOperation("删除物资")
|
|
|
- // @PreAuthorize("@ss.hasPermi('iscs:materials:remove')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('iscs:materials:remove')")
|
|
|
@Log(title = "物资", businessType = BusinessType.DELETE)
|
|
|
@PostMapping("/deleteIsMaterialsByMaterialsIds")
|
|
|
public CommonResult<Boolean> deleteIsMaterialsByMaterialsIds(String materialsIds)
|