From 050d9acc4f5f991df5743d5f6ef3d9f70253b89c Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Wed, 20 Dec 2023 16:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A1=E5=88=92=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=88=97=E8=A1=A8list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BPlanEnterpriseController.java | 14 ++------ .../entity/BPlanEnterprise.java | 33 +++++++++++++++++++ .../mapper/yingji/BPlanEnterpriseMapper.xml | 33 ++++++++++--------- 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java index 8f9243a..5223b2e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java @@ -61,21 +61,11 @@ public class BPlanEnterpriseController extends BaseController { /** * 查询计划企业列表 */ - @ApiOperation(value = "查询计划企业列表") + @ApiOperation(value = "查询计划企业列表",response = BPlanEnterprise.class) @GetMapping("/list") public AjaxResult list(BPlanEnterprise bPlanEnterprise) { List list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise); -// for (BPlanEnterprise a : list) { -// String enterPriseId = String.valueOf(a.getEnterpriseId()); -// BKeyEnterprise count = bKeyEnterpriseService.getByentCode(enterPriseId); -// if (count != null) { -// a.setIsPoint(1); -// } else { -// a.setIsPoint(2); -// } -// -// bPlanEnterpriseService.updateById(a); -// } + return AjaxResult.success(list); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java index ee73afe..750c164 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BPlanEnterprise.java @@ -10,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; +import javax.validation.Valid; import java.io.Serializable; import java.util.Date; @@ -200,5 +201,37 @@ public class BPlanEnterprise implements Serializable { private Integer checkAgeing; + /** + * 1当月 2提前 3滞后 + */ + @ApiModelProperty(value = "1当月 2提前 3滞后") + private Integer RISK_LEVEL; + + + + /** + * 安全风险等级 + */ + @ApiModelProperty(value = "安全风险等级") + private String riskLevel; + + + /** + * 标准化等级 + */ + @ApiModelProperty(value = "标准化等级") + private String standLevel; + + + + /** + * 上次检查时间 + */ + @ApiModelProperty(value = "上次检查时间") + private Date examineEndTime; + + + + } diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index d26a7c6..9be1ca4 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -35,35 +35,38 @@