From a8253e4520e86ae79443269c3c6a22cca5148323 Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Wed, 20 Dec 2023 16:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E6=B3=95=E7=BB=93=E6=9E=9C=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BPlanEnterpriseZhifaResponse.java | 36 +++++++++++++++- .../impl/BPlanEnterpriseServiceImpl.java | 5 --- .../mapper/yingji/BPlanEnterpriseMapper.xml | 41 ++++++++++++++++--- 3 files changed, 71 insertions(+), 11 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java index b5254e9..6f76d7d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/response/BPlanEnterpriseZhifaResponse.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; @@ -14,6 +15,7 @@ import java.util.Date; /** * 执法结果响应类 */ +@ApiModel("执法结果响应类") @Data public class BPlanEnterpriseZhifaResponse { /** @@ -167,7 +169,7 @@ public class BPlanEnterpriseZhifaResponse { * 0:草稿 1:正式 */ @ApiModelProperty(value = "0:草稿 1:正式") - private Integer status =0; + private Integer status ; /** @@ -189,4 +191,36 @@ public class BPlanEnterpriseZhifaResponse { */ @ApiModelProperty(value = "1当月 2提前 3滞后") 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-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java index 376971a..06a42b4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java @@ -45,11 +45,6 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl getZhifa(checkResultRequest req) { - -// if(req.getDistrict()!=null && req.getDistrict().contains("000000000")){ -// String result = req.getDistrict().replaceAll("0+$", ""); -// req.setDistrict(result); -// } return bPlanEnterpriseMapper.getZhifa(req); } diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index 9be1ca4..de68572 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -66,7 +66,7 @@ CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint FROM b_plan_enterprise a LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code - LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id COLLATE utf8mb4_unicode_ci; + LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id COLLATE utf8mb4_unicode_ci and a.enterprise_id = #{enterpriseId} and a.create_id = #{createId} @@ -91,16 +91,47 @@