From f12f51ef15b5dc924619f62c4a7a8f845af12627 Mon Sep 17 00:00:00 2001 From: guoshengxiong <1923636941@qq.com> Date: Wed, 29 May 2024 21:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectEnterpriseController.java | 1 + .../mapper/xml/ProjectEnterpriseMapper.xml | 67 ++++++++++++++++++- .../impl/EnterpriseInfoServiceImpl.java | 39 +++++++++-- 3 files changed, 98 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/zhgd/xmgl/modules/project/controller/ProjectEnterpriseController.java b/src/main/java/com/zhgd/xmgl/modules/project/controller/ProjectEnterpriseController.java index 71696afc2..c4c96d993 100644 --- a/src/main/java/com/zhgd/xmgl/modules/project/controller/ProjectEnterpriseController.java +++ b/src/main/java/com/zhgd/xmgl/modules/project/controller/ProjectEnterpriseController.java @@ -59,6 +59,7 @@ public class ProjectEnterpriseController { @ApiImplicitParam(name = "projectSn", value = "项目sn或企业sn", paramType = "body", required = true, dataType = "String"), @ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "body", required = true, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "body", required = true, dataType = "Integer"), + @ApiImplicitParam(name = "cbsProjectType", value = "项目类型(字典)", paramType = "body", required = true, dataType = "Integer"), }) @PostMapping(value = "/list") public Result> queryPageList(@RequestBody Map map) { diff --git a/src/main/java/com/zhgd/xmgl/modules/project/mapper/xml/ProjectEnterpriseMapper.xml b/src/main/java/com/zhgd/xmgl/modules/project/mapper/xml/ProjectEnterpriseMapper.xml index 6d864c365..487cee6c7 100644 --- a/src/main/java/com/zhgd/xmgl/modules/project/mapper/xml/ProjectEnterpriseMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/project/mapper/xml/ProjectEnterpriseMapper.xml @@ -1,7 +1,32 @@ - SELECT a.*, b.id project_enterprise_id, @@ -11,11 +36,48 @@ b.project_director_phone, b.parent_enterprise_id, b.sort_num, - b.department_type + b.department_type, + b.id as pe_id, + b.project_sn as pe_project_sn, + b.enterprise_id as pe_enterprise_id, + b.enterprise_type_id as pe_enterprise_type_id, + b.parent_enterprise_id as pe_parent_enterprise_id, + b.type as pe_type, + b.project_director_name as pe_project_director_name, + b.project_director_phone as pe_project_director_phone, + b.sort_num as pe_sort_num, + b.department_type as pe_department_type, + b.ancestors as pe_ancestors, + b.parent_project_enterprise_id as pe_parent_project_enterprise_id, + b.project_manage as pe_project_manage, + b.longitude as pe_longitude, + b.latitude as pe_latitude, + b.project_number as pe_project_number, + b.project_acreage as pe_project_acreage, + b.start_work_date as pe_start_work_date, + b.project_tel as pe_project_tel, + b.project_type as pe_project_type, + b.structure_type as pe_structure_type, + b.bulid_status as pe_bulid_status, + b.construction_stage as pe_construction_stage, + b.layout_image as pe_layout_image, + b.construction_map_url as pe_construction_map_url, + b.cbs_name as pe_cbs_name, + b.project_build_area as pe_project_build_area, + b.completion_date as pe_completion_date, + b.cbs_project_type as pe_cbs_project_type, + t1.name as pe_cbs_project_type_name FROM enterprise_info a LEFT JOIN project_enterprise b ON a.id = b.enterprise_id LEFT JOIN enterprise_type c ON b.enterprise_type_id = c.id + left join ( + + + ) t1 on t1.data = b.cbs_project_type WHERE b.project_sn = #{param.projectSn} + + and b.cbs_project_type = #{param.cbsProjectType} + and b.enterprise_type_id = #{param.enterpriseTypeId} @@ -30,6 +92,7 @@ order by b.sort_num +