唐耀东
2022-07-16 e667b280a7fd77dd7fad81c66dba2cef9936d422
ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/SgIpcController.java
@@ -53,7 +53,7 @@
     */
    @DataDictClass
    @ApiOperation("查询ipc设备列表")
    @PreAuthorize("@ss.hasPermi('oa:ipc:list')")
//    @PreAuthorize("@ss.hasPermi('oa:ipc:list')")
    @GetMapping("/list")
    public TableDataInfo<SgIpcVo> list(@Validated(QueryGroup.class) SgIpcBo bo) {
        return iSgIpcService.queryPageList(bo);
@@ -75,7 +75,7 @@
     * 获取ipc设备详细信息
     */
    @ApiOperation("获取ipc设备详细信息")
    @PreAuthorize("@ss.hasPermi('oa:ipc:query')")
//    @PreAuthorize("@ss.hasPermi('oa:ipc:query')")
    @GetMapping("/{id}")
    public AjaxResult<SgIpcVo> getInfo(@ApiParam("主键")
                                                  @NotNull(message = "主键不能为空")
@@ -84,12 +84,12 @@
    }
    /**
     * 获取ipc设备详细信息
     * 获取上一条信息
     */
    @ApiOperation("获取ipc设备详细信息")
    @ApiOperation("获取上一条信息")
    @GetMapping("/copy")
    public AjaxResult copy() {
        List<SgIpc> list = iSgIpcService.list(new LambdaQueryWrapper<SgIpc>().orderByDesc(SgIpc::getUpdateTime));
        List<SgIpc> list = iSgIpcService.list(new LambdaQueryWrapper<SgIpc>().orderByDesc(SgIpc::getCreateTime));
        if (list.size() == 0) {
            throw new ServiceException("暂无数据", HttpStatus.HTTP_PARTIAL);
        }
@@ -100,7 +100,7 @@
     * 新增ipc设备
     */
    @ApiOperation("新增ipc设备")
    @PreAuthorize("@ss.hasPermi('oa:ipc:add')")
//    @PreAuthorize("@ss.hasPermi('oa:ipc:add')")
    @Log(title = "ipc设备", businessType = BusinessType.INSERT)
    @RepeatSubmit()
    @PostMapping()
@@ -112,7 +112,7 @@
     * 修改ipc设备
     */
    @ApiOperation("修改ipc设备")
    @PreAuthorize("@ss.hasPermi('oa:ipc:edit')")
//    @PreAuthorize("@ss.hasPermi('oa:ipc:edit')")
    @Log(title = "ipc设备", businessType = BusinessType.UPDATE)
    @RepeatSubmit()
    @PutMapping()
@@ -124,7 +124,7 @@
     * 删除ipc设备
     */
    @ApiOperation("删除ipc设备")
    @PreAuthorize("@ss.hasPermi('oa:ipc:remove')")
//    @PreAuthorize("@ss.hasPermi('oa:ipc:remove')")
    @Log(title = "ipc设备" , businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult<Void> remove(@ApiParam("主键串")