|
@@ -54,7 +54,7 @@ public class SbStatusLogController {
|
|
|
*/
|
|
|
@SysLog("新增设备状态变更记录")
|
|
|
@PostMapping
|
|
|
- @PreAuthorize("@pms.hasPermission('sb-status-logs-add')")
|
|
|
+ //@PreAuthorize("@pms.hasPermission('sb-status-logs-add')")
|
|
|
public R save(@Validated({AddGroup.class}) @RequestBody SbStatusLogDTO sbStatusLogDTO) {
|
|
|
if(StringUtils.isBlank(sbStatusLogDTO.getActualUser())){
|
|
|
sbStatusLogDTO.setActualUser(SecurityUtils.getUserInfo().getRealName());
|
|
@@ -70,7 +70,7 @@ public class SbStatusLogController {
|
|
|
*/
|
|
|
@SysLog("修改设备状态变更记录")
|
|
|
@PutMapping("/{id}")
|
|
|
- @PreAuthorize("@pms.hasPermission('sb-status-logs-edit')")
|
|
|
+ //@PreAuthorize("@pms.hasPermission('sb-status-logs-edit')")
|
|
|
public R update(@PathVariable("id") String id, @Validated({UpdateGroup.class}) @RequestBody SbStatusLogDTO sbStatusLogDTO) {
|
|
|
sbStatusLogDTO.setId(id);
|
|
|
sbStatusLogService.modModelByDTO(sbStatusLogDTO);
|
|
@@ -85,7 +85,7 @@ public class SbStatusLogController {
|
|
|
*/
|
|
|
@SysLog("删除设备状态变更记录")
|
|
|
@DeleteMapping("/{id}")
|
|
|
- @PreAuthorize("@pms.hasPermission('sb-status-logs-del')")
|
|
|
+ //@PreAuthorize("@pms.hasPermission('sb-status-logs-del')")
|
|
|
public R removeById(@PathVariable String id){
|
|
|
sbStatusLogService.deleteByPrimaryKey(id);
|
|
|
return new R<>();
|
|
@@ -99,7 +99,7 @@ public class SbStatusLogController {
|
|
|
*/
|
|
|
@SysLog("批量删除设备状态变更记录")
|
|
|
@DeleteMapping("")
|
|
|
- @PreAuthorize("@pms.hasPermission('sb-status-logs-del')")
|
|
|
+ //@PreAuthorize("@pms.hasPermission('sb-status-logs-del')")
|
|
|
public R removeIds(@RequestBody List<String> ids){
|
|
|
sbStatusLogService.batchDelete(ids);
|
|
|
return new R<>();
|
|
@@ -136,7 +136,7 @@ public class SbStatusLogController {
|
|
|
*/
|
|
|
@GetMapping("/export")
|
|
|
@SysLog("设备状态变更记录导出")
|
|
|
- @PreAuthorize("@pms.hasPermission('sb-status-logs-export')")
|
|
|
+ //@PreAuthorize("@pms.hasPermission('sb-status-logs-export')")
|
|
|
public void export(HttpServletResponse response, SbStatusLogDTO sbStatusLogDTO) {
|
|
|
List<SbStatusLog> list = sbStatusLogService.getModelListByDTO(sbStatusLogDTO);
|
|
|
ExcelUtil.exportResponseDict(response, ExportSbStatusLogVO.class, BeanConverterUtil.copyListProperties(list, ExportSbStatusLogVO.class), "设备状态变更记录");
|