fix:密品设备维修提交

pg_adapter
wangxy 8 months ago
parent 3892cd1645
commit 407e6597d8

@ -5,8 +5,10 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.utils.uuid.Seq;
import com.ruoyi.system.domain.TdPropertyEment;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.web.controller.manager.TdPropertyEmentManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
@ -50,6 +52,20 @@ public class TdPropertyEmentController extends BaseController {
return getDataTable(tdPropertyEments);
}
/**
*
*/
@RequiresPermissions("system:property:export")
@Log(title = "涉密设备", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdPropertyEment tdPropertyEment) {
List<TdPropertyEment> tdPropertyEments = tdPropertyEmentManager.selectEmentList(tdPropertyEment);
ExcelUtil<TdPropertyEment> util = new ExcelUtil<>(TdPropertyEment.class);
return util.exportExcel(tdPropertyEments, "涉密设备数据");
}
/**
*
*/
@ -95,8 +111,8 @@ public class TdPropertyEmentController extends BaseController {
}
/**
*
*
*
* @return com.ruoyi.common.core.domain.AjaxResult
*/
@PostMapping("/getList")

@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@ -30,16 +32,19 @@ public class TdPropertyEment implements Serializable {
/**
*
*/
@Excel(name = "名称")
private String name;
/**
*
*/
@Excel(name = "用途")
private String purposes;
/**
*
*/
@Excel(name = "备注")
private String remark;
/**

Loading…
Cancel
Save