From 47a6aacc659162a1bc01fa9ae6e076471027bd43 Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Wed, 13 Dec 2023 14:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E4=BC=81=E4=B8=9A=E5=92=8C?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E8=A1=A8=E5=AD=97=E6=AE=B5=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BKeyEnterpriseController.java | 24 +++--- .../entity/BKeyEnterprise.java | 6 -- .../entity/BPlanEnterprise.java | 65 +++++++++++++++- .../mapper/BKeyEnterpriseMapper.java | 16 ++-- .../service/BKeyEnterpriseService.java | 18 ++--- .../impl/BKeyEnterpriseServiceImpl.java | 15 ++-- .../mapper/yingji/BKeyEnterpriseMapper.xml | 4 +- .../mapper/yingji/BPlanEnterpriseMapper.xml | 75 ++++++++----------- 8 files changed, 131 insertions(+), 92 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BKeyEnterpriseController.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BKeyEnterpriseController.java index efc087c..46424c8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BKeyEnterpriseController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BKeyEnterpriseController.java @@ -109,17 +109,17 @@ public class BKeyEnterpriseController extends BaseController { return AjaxResult.success(); } - - /** - * 根据行政区划代码查询重点企业数量 - * - * @param district 行政区划代码 - * @return 结果集合 - */ - @GetMapping("/getBydistrict") - @ApiOperation(value = "根据行政区划代码查询重点企业数量") - public AjaxResult getBydistrict(@RequestParam("district") String district) { - return success(bKeyEnterpriseService.getBydistrict(district)); - } +// +// /** +// * 根据行政区划代码查询重点企业数量 +// * +// * @param district 行政区划代码 +// * @return 结果集合 +// */ +// @GetMapping("/getBydistrict") +// @ApiOperation(value = "根据行政区划代码查询重点企业数量") +// public AjaxResult getBydistrict(@RequestParam("district") String district) { +// return success(bKeyEnterpriseService.getBydistrict(district)); +// } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BKeyEnterprise.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BKeyEnterprise.java index 5c28ff0..1c3e5b8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BKeyEnterprise.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/entity/BKeyEnterprise.java @@ -110,12 +110,6 @@ public class BKeyEnterprise implements Serializable { @Excel(name = "企业名称") private String enterpriseName; - /** - * 行政区划 - */ - @ApiModelProperty(value = "行政区划") - @Excel(name = "行政区划") - private String district; } 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 31232bc..f33100d 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 @@ -135,7 +135,7 @@ public class BPlanEnterprise implements Serializable { private Integer isPoint; /** - *企业主表名称 + * 企业主表名称 */ @TableField(exist = false) @ApiModelProperty(value = "企业主表名称") @@ -149,5 +149,68 @@ public class BPlanEnterprise implements Serializable { @ApiModelProperty(value = "企业名称") private String enterpriseName; + + /** + * 执法排序 + */ + @ApiModelProperty(value = "执法排序") + private Long lawSort; + + + /** + * 执法地区 + */ + @ApiModelProperty(value = "执法地区") + private String lawAreas; + + + /** + * 执法级别 + */ + @ApiModelProperty(value = "执法级别") + private String lawLevel; + + + /** + * 执法层级 + */ + @ApiModelProperty(value = "执法层级") + private String lawHierarchy; + + + /** + * 计划月份 + */ + @ApiModelProperty(value = "计划月份") + private String plannedMonth; + + + /** + * 0:草稿 1:正式 + */ + @ApiModelProperty(value = "0:草稿 1:正式") + private Integer status; + + + /** + * 0:未检查 1:已检查 + */ + @ApiModelProperty(value = "0:未检查 1:已检查") + private Integer checkStatus; + + + /** + * 检查id + */ + @ApiModelProperty(value = "检查id") + private Integer checkId; + + + /** + * 1当月 2提前 3滞后 + */ + @ApiModelProperty(value = "1当月 2提前 3滞后") + private Integer checkAgeing; + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BKeyEnterpriseMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BKeyEnterpriseMapper.java index 3db3c4d..b238a1c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BKeyEnterpriseMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BKeyEnterpriseMapper.java @@ -46,14 +46,14 @@ public interface BKeyEnterpriseMapper extends BaseMapper { - /** - * 根据行政区划代码查询重点企业数量 - * - * @param district 行政区划代码 - * @return 结果集合 - */ - - Integer getBydistrict(String district); +// /** +// * 根据行政区划代码查询重点企业数量 +// * +// * @param district 行政区划代码 +// * @return 结果集合 +// */ +// +// Integer getBydistrict(String district); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BKeyEnterpriseService.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BKeyEnterpriseService.java index dba1517..4e3932d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BKeyEnterpriseService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BKeyEnterpriseService.java @@ -38,14 +38,14 @@ public interface BKeyEnterpriseService extends IService { BKeyEnterprise getByentCode(String entCode); - - /** - * 根据行政区划代码查询重点企业数量 - * - * @param district 行政区划代码 - * @return 结果集合 - */ - - Integer getBydistrict(String district); +// +// /** +// * 根据行政区划代码查询重点企业数量 +// * +// * @param district 行政区划代码 +// * @return 结果集合 +// */ +// +// Integer getBydistrict(String district); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BKeyEnterpriseServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BKeyEnterpriseServiceImpl.java index d591751..c0aa946 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BKeyEnterpriseServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BKeyEnterpriseServiceImpl.java @@ -34,11 +34,6 @@ public class BKeyEnterpriseServiceImpl extends ServiceImplent_code, year, enterprise_name, - district, + #{entCode}, #{year}, #{enterpriseName}, - #{district}, + diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index 083838a..80f12ea 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -4,25 +4,25 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + select id, enterprise_id, @@ -40,11 +40,20 @@ plan_name, plan_content, is_point, - enterprise_name + enterprise_name, + law_sort, + law_areas, + law_level, + law_hierarchy, + planned_month, + status, + check_status, + check_id, + check_ageing from b_plan_enterprise - and enterprise_id = #{enterpriseId} @@ -68,29 +77,7 @@