|
|
|
|
@ -1,26 +1,26 @@
|
|
|
|
|
package org.dromara.dms.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
import jakarta.validation.constraints.*;
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
|
|
import org.dromara.common.core.validate.AddGroup;
|
|
|
|
|
import org.dromara.common.core.validate.EditGroup;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
|
|
import org.dromara.dms.domain.vo.DmsReportDeviceEfficiencyVo;
|
|
|
|
|
import org.dromara.dms.domain.bo.DmsReportDeviceEfficiencyBo;
|
|
|
|
|
import org.dromara.dms.service.IDmsReportDeviceEfficiencyService;
|
|
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
import org.dromara.dms.domain.bo.DmsReportDeviceEfficiencyBo;
|
|
|
|
|
import org.dromara.dms.domain.vo.DmsReportDeviceEfficiencyVo;
|
|
|
|
|
import org.dromara.dms.service.IDmsReportDeviceEfficiencyService;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设备效率报
|
|
|
|
|
@ -40,7 +40,7 @@ public class DmsReportDeviceEfficiencyController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 查询设备效率报列表
|
|
|
|
|
*/
|
|
|
|
|
@SaCheckPermission("dms:dmsReportDeviceEfficiency:list")
|
|
|
|
|
// @SaCheckPermission("dms:dmsReportDeviceEfficiency:list")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo<DmsReportDeviceEfficiencyVo> list(DmsReportDeviceEfficiencyBo bo, PageQuery pageQuery) {
|
|
|
|
|
return dmsReportDeviceEfficiencyService.queryPageList(bo, pageQuery);
|
|
|
|
|
@ -49,7 +49,7 @@ public class DmsReportDeviceEfficiencyController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 导出设备效率报列表
|
|
|
|
|
*/
|
|
|
|
|
@SaCheckPermission("dms:dmsReportDeviceEfficiency:export")
|
|
|
|
|
// @SaCheckPermission("dms:dmsReportDeviceEfficiency:export")
|
|
|
|
|
@Log(title = "设备效率报", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(DmsReportDeviceEfficiencyBo bo, HttpServletResponse response) {
|
|
|
|
|
@ -62,7 +62,7 @@ public class DmsReportDeviceEfficiencyController extends BaseController {
|
|
|
|
|
*
|
|
|
|
|
* @param reportId 主键
|
|
|
|
|
*/
|
|
|
|
|
@SaCheckPermission("dms:dmsReportDeviceEfficiency:query")
|
|
|
|
|
// @SaCheckPermission("dms:dmsReportDeviceEfficiency:query")
|
|
|
|
|
@GetMapping("/{reportId}")
|
|
|
|
|
public R<DmsReportDeviceEfficiencyVo> getInfo(@NotNull(message = "主键不能为空")
|
|
|
|
|
@PathVariable Long reportId) {
|
|
|
|
|
@ -72,7 +72,7 @@ public class DmsReportDeviceEfficiencyController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 新增设备效率报
|
|
|
|
|
*/
|
|
|
|
|
@SaCheckPermission("dms:dmsReportDeviceEfficiency:add")
|
|
|
|
|
// @SaCheckPermission("dms:dmsReportDeviceEfficiency:add")
|
|
|
|
|
@Log(title = "设备效率报", businessType = BusinessType.INSERT)
|
|
|
|
|
@RepeatSubmit()
|
|
|
|
|
@PostMapping()
|
|
|
|
|
@ -83,7 +83,7 @@ public class DmsReportDeviceEfficiencyController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 修改设备效率报
|
|
|
|
|
*/
|
|
|
|
|
@SaCheckPermission("dms:dmsReportDeviceEfficiency:edit")
|
|
|
|
|
// @SaCheckPermission("dms:dmsReportDeviceEfficiency:edit")
|
|
|
|
|
@Log(title = "设备效率报", businessType = BusinessType.UPDATE)
|
|
|
|
|
@RepeatSubmit()
|
|
|
|
|
@PutMapping()
|
|
|
|
|
@ -96,7 +96,7 @@ public class DmsReportDeviceEfficiencyController extends BaseController {
|
|
|
|
|
*
|
|
|
|
|
* @param reportIds 主键串
|
|
|
|
|
*/
|
|
|
|
|
@SaCheckPermission("dms:dmsReportDeviceEfficiency:remove")
|
|
|
|
|
// @SaCheckPermission("dms:dmsReportDeviceEfficiency:remove")
|
|
|
|
|
@Log(title = "设备效率报", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{reportIds}")
|
|
|
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
|
|
|
|
|