|
@@ -64,7 +64,7 @@ public class SbUnusedController {
|
|
|
|
|
|
@SysLog("闲置设备审核")
|
|
@SysLog("闲置设备审核")
|
|
@PostMapping("/{id}")
|
|
@PostMapping("/{id}")
|
|
- @PreAuthorize("@pms.hasPermission('sbUnused-unused-add')")
|
|
|
|
|
|
+// @PreAuthorize("@pms.hasPermission('sbUnused-unused-verifty')")
|
|
public R unusedVerify(@PathVariable String id,@RequestBody SbUnusedDTO dto) {
|
|
public R unusedVerify(@PathVariable String id,@RequestBody SbUnusedDTO dto) {
|
|
sbUnusedService.unusedVerify(id,dto);
|
|
sbUnusedService.unusedVerify(id,dto);
|
|
return new R<>();
|
|
return new R<>();
|
|
@@ -78,7 +78,7 @@ public class SbUnusedController {
|
|
*/
|
|
*/
|
|
@SysLog("修改设备闲置表")
|
|
@SysLog("修改设备闲置表")
|
|
@PutMapping("/{id}")
|
|
@PutMapping("/{id}")
|
|
- @PreAuthorize("@pms.hasPermission('sbUnused-unused-edit')")
|
|
|
|
|
|
+// @PreAuthorize("@pms.hasPermission('sbUnused-unused-edit')")
|
|
public R update(@PathVariable("id") String id, @Validated({UpdateGroup.class}) @RequestBody SbUnusedDTO sbUnusedDTO) {
|
|
public R update(@PathVariable("id") String id, @Validated({UpdateGroup.class}) @RequestBody SbUnusedDTO sbUnusedDTO) {
|
|
sbUnusedService.modModelByDTO(sbUnusedDTO);
|
|
sbUnusedService.modModelByDTO(sbUnusedDTO);
|
|
return new R<>();
|
|
return new R<>();
|
|
@@ -94,7 +94,7 @@ public class SbUnusedController {
|
|
*/
|
|
*/
|
|
@SysLog("删除设备闲置表")
|
|
@SysLog("删除设备闲置表")
|
|
@DeleteMapping("/{id}")
|
|
@DeleteMapping("/{id}")
|
|
- @PreAuthorize("@pms.hasPermission('sbUnused-unused-del')")
|
|
|
|
|
|
+// @PreAuthorize("@pms.hasPermission('sbUnused-unused-del')")
|
|
public R removeById(@PathVariable String id){
|
|
public R removeById(@PathVariable String id){
|
|
sbUnusedService.deleteByPrimaryKey(id);
|
|
sbUnusedService.deleteByPrimaryKey(id);
|
|
return new R<>();
|
|
return new R<>();
|
|
@@ -108,7 +108,7 @@ public class SbUnusedController {
|
|
*/
|
|
*/
|
|
@SysLog("批量删除设备闲置表")
|
|
@SysLog("批量删除设备闲置表")
|
|
@DeleteMapping("")
|
|
@DeleteMapping("")
|
|
- @PreAuthorize("@pms.hasPermission('sbUnused-unused-del')")
|
|
|
|
|
|
+// @PreAuthorize("@pms.hasPermission('sbUnused-unused-del')")
|
|
public R removeIds(@RequestBody List<String> ids){
|
|
public R removeIds(@RequestBody List<String> ids){
|
|
sbUnusedService.batchDelete(ids);
|
|
sbUnusedService.batchDelete(ids);
|
|
return new R<>();
|
|
return new R<>();
|
|
@@ -146,7 +146,7 @@ public class SbUnusedController {
|
|
*/
|
|
*/
|
|
@GetMapping("/export")
|
|
@GetMapping("/export")
|
|
@SysLog("设备闲置表导出")
|
|
@SysLog("设备闲置表导出")
|
|
- @PreAuthorize("@pms.hasPermission('sbUnused-unused-export')")
|
|
|
|
|
|
+// @PreAuthorize("@pms.hasPermission('sbUnused-unused-export')")
|
|
public void export(HttpServletResponse response, SbUnusedDTO sbUnusedDTO) {
|
|
public void export(HttpServletResponse response, SbUnusedDTO sbUnusedDTO) {
|
|
List<SbUnused> list = sbUnusedService.getModelListByDTO(sbUnusedDTO);
|
|
List<SbUnused> list = sbUnusedService.getModelListByDTO(sbUnusedDTO);
|
|
ExcelUtil.exportResponseDict(response, ExportSbUnusedVO.class, BeanConverterUtil.copyListProperties(list, ExportSbUnusedVO.class), "设备闲置表");
|
|
ExcelUtil.exportResponseDict(response, ExportSbUnusedVO.class, BeanConverterUtil.copyListProperties(list, ExportSbUnusedVO.class), "设备闲置表");
|