From 82bd5630ad5d9dbb01dd20930289eb7364b0e59c Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Fri, 22 Dec 2023 09:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quartz/EnterpristQuartz.java | 68 ------------------- .../mapper/yingji/BPlanEnterpriseMapper.xml | 4 +- 2 files changed, 2 insertions(+), 70 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/quartz/EnterpristQuartz.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/quartz/EnterpristQuartz.java index 9bc89b2..702e283 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/quartz/EnterpristQuartz.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/quartz/EnterpristQuartz.java @@ -50,75 +50,7 @@ public class EnterpristQuartz { @GetMapping("/getList") @ApiOperation(value = "定时任务") public AjaxResult updateInformationData() { - // 查询szs_enterprise_informa tion表中的数据 -// List enterpriseInformationList = szsEnterpriseInformationMapper.selectSzsEnterpriseInformationList(null); -// // 遍历数据并更新到b_enterprise_new表中 -// List szsList = new ArrayList<>(); -// for (SzsEnterpriseInformation enterpriseInformation : enterpriseInformationList) { -// BEnterpriseNew enterpriseNew = new BEnterpriseNew(); -// enterpriseNew.setEnterpriseId(enterpriseInformation.getUuitNo()); -// enterpriseNew.setEnterpriseName(enterpriseInformation.getEnterpriseName()); -// enterpriseNew.setDistrict(enterpriseInformation.getSubdistrict()); -// enterpriseNew.setSupervisionLarge(enterpriseInformation.getSupervisionLarge()); -// // 根据enterpriseId判断数据是否已存在 -// QueryWrapper queryWrapper = new QueryWrapper<>(); -// queryWrapper.eq("enterprise_id", enterpriseInformation.getUuitNo()); -// //获取enterpriseName -// szsList.add(enterpriseNew.getEnterpriseName()); -// Long count = bEnterpriseNewMapper.selectCount(queryWrapper); -// if (count > 0) { -// // 更新数据 -// bEnterpriseNewMapper.updateBEnterpriseNew(enterpriseNew); -// } else { -// // 插入数据 -// bEnterpriseNewMapper.insertBEnterpriseNew(enterpriseNew); -// } -// } -// // 查询b_enterprise_new表中的所有企业名称 -// List enterpriseList = bEnterpriseNewMapper.selectBEnterpriseNewList(null); -// // 查询b_standardization表中的所有企业名称 -// List standardizationList = bStandardizationMapper.selectBStandardizationList(null); -// //更新b_enterprise_new表中匹配的企业的STAND_LEVEL字段 -// for (BEnterpriseNew enterprise : enterpriseList) { -// for (BStandardization standardization : standardizationList) { -// if (enterprise.getEnterpriseName().equals(standardization.getEnterpriseName())) { -// // 执行更新操作,例如: -// enterprise.setStandLevel(standardization.getStandardizedGrade()); -// bEnterpriseNewMapper.updateBEnterpriseNew(enterprise); -// } else { -// enterprise.setStandLevel("/"); -// bEnterpriseNewMapper.updateBEnterpriseNew(enterprise); -// } -// } -// } -// // 找出在b_standardization表中存在但在b_enterprise_new表中不存在的企业名称 -// List notInEnterpriseNew = new ArrayList<>(); -// for (BStandardization standardization : standardizationList) { -// boolean found = false; -// for (BEnterpriseNew enterprise : enterpriseList) { -// if (enterprise.getEnterpriseName().equals(standardization.getEnterpriseName())) { -// found = true; -// break; -// } -// } -// if (!found) { -// BStandardization b = new BStandardization(); -// b.setStandardizedGrade(standardization.getStandardizedGrade()); -// b.setEnterpriseName(standardization.getEnterpriseName()); -// notInEnterpriseNew.add(b); -// } - // } -// // 查询b_enterprise_new表中的所有企业名称 更新检查时间 -// for (BEnterpriseNew a : enterpriseList) { -// BEnterpriseNew bEnterpriseNew = new BEnterpriseNew(); -// List szEnforExamineList = szEnforExamineService.getByEnterPriseCode(a.getEnterpriseId()); -// for (SzEnforExamine b:szEnforExamineList) { -// bEnterpriseNew.setId(a.getId()); -// bEnterpriseNew.setExamineEndTime(b.getExamineEndTime()); -// bEnterpriseNewMapper.updateBEnterpriseNew(bEnterpriseNew); -// } -// } return AjaxResult.success(null); } diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index bc031e4..69c04cb 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -331,10 +331,10 @@ enterprise_id=#{enterpriseId}, district=#{district}, - planned_year={plannedYear}, + planned_year=#{plannedYear}, is_point=#{isPoint}, enterprise_name=#{enterpriseName}, - law_sort=#{law_sort}, + law_sort=#{lawSort}, law_areas=#{lawAreas}, law_level=#{lawLevel}, law_hierarchy=#{lawHierarchy},