From 226370792b9d5ca433d46a343df204b50cc0db0f Mon Sep 17 00:00:00 2001 From: mi9688 Date: Tue, 22 Oct 2024 17:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=B3=E6=B5=81=E7=AB=99=E7=82=B9=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E4=BF=A1=E6=81=AF=E7=AE=A1=E7=90=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/gis/GRiverInfoController.java | 122 ++++++++++ .../com/fastbee/ggroup/domain/GRiverInfo.java | 196 +++++++++++++++ .../ggroup/mapper/GRiverInfoMapper.java | 61 +++++ .../ggroup/service/IGRiverInfoService.java | 61 +++++ .../service/impl/GRiverInfoServiceImpl.java | 96 ++++++++ .../mapper/ggroup/GRiverInfoMapper.xml | 228 ++++++++++++++++++ .../service/impl/ProjectServiceImpl.java | 2 +- 7 files changed, 765 insertions(+), 1 deletion(-) create mode 100644 fastbee-open-api/src/main/java/com/fastbee/data/controller/gis/GRiverInfoController.java create mode 100644 fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/domain/GRiverInfo.java create mode 100644 fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/mapper/GRiverInfoMapper.java create mode 100644 fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/IGRiverInfoService.java create mode 100644 fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/impl/GRiverInfoServiceImpl.java create mode 100644 fastbee-service/fastbee-ggroup-service/src/main/resources/mapper/ggroup/GRiverInfoMapper.xml diff --git a/fastbee-open-api/src/main/java/com/fastbee/data/controller/gis/GRiverInfoController.java b/fastbee-open-api/src/main/java/com/fastbee/data/controller/gis/GRiverInfoController.java new file mode 100644 index 0000000..7c56657 --- /dev/null +++ b/fastbee-open-api/src/main/java/com/fastbee/data/controller/gis/GRiverInfoController.java @@ -0,0 +1,122 @@ +package com.fastbee.data.controller.gis; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.fastbee.common.annotation.Log; +import com.fastbee.common.core.controller.BaseController; +import com.fastbee.common.core.domain.AjaxResult; +import com.fastbee.common.enums.BusinessType; +import com.fastbee.ggroup.domain.GRiverInfo; +import com.fastbee.ggroup.service.IGRiverInfoService; +import com.fastbee.common.utils.poi.ExcelUtil; +import com.fastbee.common.core.page.TableDataInfo; + +/** + * 河流基础信息Controller + * + * @author kerwincui + * @date 2024-10-22 + */ +@RestController +@RequestMapping("/gis/river/info") +@Api(tags = "河流基础信息") +public class GRiverInfoController extends BaseController +{ + @Autowired + private IGRiverInfoService gRiverInfoService; + + /** + * 查询河流基础信息列表 + */ + @PreAuthorize("@ss.hasPermi('ggroup:info:list')") + @GetMapping("/list") + @ApiOperation("查询河流基础信息列表") + public TableDataInfo list(GRiverInfo gRiverInfo) + { + startPage(); + List list = gRiverInfoService.selectGRiverInfoList(gRiverInfo); + return getDataTable(list); + } + /** + * 根据站点id获取河流基本信息 + */ + @PreAuthorize("@ss.hasPermi('ggroup:info:list')") + @GetMapping("/byStationId/{stationId}") + @ApiOperation("根据站点id获取河流基本信息") + public AjaxResult listByStationId(@PathVariable("stationId") Long stationId){ + GRiverInfo gRiverInfo = new GRiverInfo(); + gRiverInfo.setSiteId(stationId); + List list = gRiverInfoService.selectGRiverInfoList(gRiverInfo); + return success(!list.isEmpty()?list.get(0):null); + } + + /** + * 导出河流基础信息列表 + */ + @ApiOperation("导出河流基础信息列表") + @PreAuthorize("@ss.hasPermi('ggroup:info:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, GRiverInfo gRiverInfo) + { + List list = gRiverInfoService.selectGRiverInfoList(gRiverInfo); + ExcelUtil util = new ExcelUtil(GRiverInfo.class); + util.exportExcel(response, list, "河流基础信息数据"); + } + + /** + * 河流基础信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('ggroup:info:query')") + @GetMapping(value = "/{id}") + @ApiOperation("获取河流基础信息详细信息") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(gRiverInfoService.selectGRiverInfoById(id)); + } + + /** + * 新增河流基础信息 + */ + @PreAuthorize("@ss.hasPermi('ggroup:info:add')") + @PostMapping + @ApiOperation("新增河流基础信息") + public AjaxResult add(@RequestBody GRiverInfo gRiverInfo) + { + return toAjax(gRiverInfoService.insertGRiverInfo(gRiverInfo)); + } + + /** + * 修改河流基础信息 + */ + @PreAuthorize("@ss.hasPermi('ggroup:info:edit')") + @PutMapping + @ApiOperation("修改河流基础信息") + public AjaxResult edit(@RequestBody GRiverInfo gRiverInfo) + { + return toAjax(gRiverInfoService.updateGRiverInfo(gRiverInfo)); + } + + /** + * 删除河流基础信息 + */ + @PreAuthorize("@ss.hasPermi('ggroup:info:remove')") + @DeleteMapping("/{ids}") + @ApiOperation("删除河流基础信息") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(gRiverInfoService.deleteGRiverInfoByIds(ids)); + } +} diff --git a/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/domain/GRiverInfo.java b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/domain/GRiverInfo.java new file mode 100644 index 0000000..d090f1c --- /dev/null +++ b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/domain/GRiverInfo.java @@ -0,0 +1,196 @@ +package com.fastbee.ggroup.domain; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.fastbee.common.annotation.Excel; +import com.fastbee.common.core.domain.BaseEntity; + +/** + * 河流基础信息对象 g_river_info + * + * @author kerwincui + * @date 2024-10-22 + */ +@ApiModel(value = "GRiverInfo",description = "河流基础信息 g_river_info") +@Data +@EqualsAndHashCode(callSuper = true) +public class GRiverInfo extends BaseEntity + { +private static final long serialVersionUID = 1L; + + /** */ + private Long id; + + /** 河流名称 */ + @Excel(name = "河流名称") + @ApiModelProperty("河流名称") + private String name; + + /** 河流编码 */ + @Excel(name = "河流编码") + @ApiModelProperty("河流编码") + private String code; + + /** 河流长度(千米) */ + @Excel(name = "河流长度", readConverterExp = "千=米") + @ApiModelProperty("河流长度") + private Long length; + + /** 河流流域面积(平方千米) */ + @Excel(name = "河流流域面积", readConverterExp = "平=方千米") + @ApiModelProperty("河流流域面积") + private Long area; + + /** 流经镇/街道 */ + @Excel(name = "流经镇/街道") + @ApiModelProperty("流经镇/街道") + private String towns; + + /** 起点纬度 */ + @Excel(name = "起点纬度") + @ApiModelProperty("起点纬度") + private Long startLatitude; + + /** 起点经度 */ + @Excel(name = "起点经度") + @ApiModelProperty("起点经度") + private Long startLongitude; + + /** 起点地点 */ + @Excel(name = "起点地点") + @ApiModelProperty("起点地点") + private String startLocation; + + /** 终点纬度 */ + @Excel(name = "终点纬度") + @ApiModelProperty("终点纬度") + private Long endLatitude; + + /** 终点经度 */ + @Excel(name = "终点经度") + @ApiModelProperty("终点经度") + private Long endLongitude; + + /** 终点地点 */ + @Excel(name = "终点地点") + @ApiModelProperty("终点地点") + private String endLocation; + + /** 排污口数量 */ + @Excel(name = "排污口数量") + @ApiModelProperty("排污口数量") + private Long pollutionDrainageNumber; + + /** 涉水工程和设施数量 */ + @Excel(name = "涉水工程和设施数量") + @ApiModelProperty("涉水工程和设施数量") + private Long waterRelatedProjectsAndFacilitiesNumber; + + /** 跨河穿河临河建筑物数量 */ + @Excel(name = "跨河穿河临河建筑物数量") + @ApiModelProperty("跨河穿河临河建筑物数量") + private Long spannedCrossedNearbyBuildingsNumber; + + /** 设计标准[重现期] */ + @Excel(name = "设计标准[重现期]") + @ApiModelProperty("设计标准[重现期]") + private Long designStandardRecurrencePeriod; + + /** 河长姓名 */ + @Excel(name = "河长姓名") + @ApiModelProperty("河长姓名") + private String riverSupervisorName; + + /** 河长职务 */ + @Excel(name = "河长职务") + @ApiModelProperty("河长职务") + private String riverSupervisorPosition; + + /** 河长电话 */ + @Excel(name = "河长电话") + @ApiModelProperty("河长电话") + private String riverSupervisorPhone; + + /** 联系单位:区水利局 */ + @Excel(name = "联系单位:区水利局") + @ApiModelProperty("联系单位:区水利局") + private String contactUnit; + + /** 单位联系人姓名 */ + @Excel(name = "单位联系人姓名") + @ApiModelProperty("单位联系人姓名") + private String unitContactPersonName; + + /** 单位联系人电话 */ + @Excel(name = "单位联系人电话") + @ApiModelProperty("单位联系人电话") + private String unitContactPersonPhone; + + /** 联系人姓名 */ + @Excel(name = "联系人姓名") + @ApiModelProperty("联系人姓名") + private String contactPersonName; + + /** 联系人电话 */ + @Excel(name = "联系人电话") + @ApiModelProperty("联系人电话") + private String contactPersonPhone; + + /** 防汛物资 */ + @Excel(name = "防汛物资") + @ApiModelProperty("防汛物资") + private String floodPreventionMaterials; + + /** 行政责任人姓名 */ + @Excel(name = "行政责任人姓名") + @ApiModelProperty("行政责任人姓名") + private String adminPersonName; + + /** 行政责任人职位 */ + @Excel(name = "行政责任人职位") + @ApiModelProperty("行政责任人职位") + private String adminPersonPosition; + + /** 行政责任人电话 */ + @Excel(name = "行政责任人电话") + @ApiModelProperty("行政责任人电话") + private String adminPersonPhone; + + /** 技术责任人姓名 */ + @Excel(name = "技术责任人姓名") + @ApiModelProperty("技术责任人姓名") + private String techPersonName; + + /** 技术责任人职位 */ + @Excel(name = "技术责任人职位") + @ApiModelProperty("技术责任人职位") + private String techPersonPosition; + + /** 技术负责人电话 */ + @Excel(name = "技术负责人电话") + @ApiModelProperty("技术负责人电话") + private String techPersonPhone; + + /** 创建人 */ + @Excel(name = "创建人") + @ApiModelProperty("创建人") + private String createdBy; + + /** 更新人 */ + @Excel(name = "更新人") + @ApiModelProperty("更新人") + private String updatedBy; + + /** 删除标志0存在,2删除 */ + private Integer delFlag; + + /** 关联的站点id */ + @Excel(name = "关联的站点id") + @ApiModelProperty("关联的站点id") + private Long siteId; + +} diff --git a/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/mapper/GRiverInfoMapper.java b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/mapper/GRiverInfoMapper.java new file mode 100644 index 0000000..f91df24 --- /dev/null +++ b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/mapper/GRiverInfoMapper.java @@ -0,0 +1,61 @@ +package com.fastbee.ggroup.mapper; + +import java.util.List; +import com.fastbee.ggroup.domain.GRiverInfo; + +/** + * 河流基础信息Mapper接口 + * + * @author kerwincui + * @date 2024-10-22 + */ +public interface GRiverInfoMapper +{ + /** + * 查询河流基础信息 + * + * @param id 河流基础信息主键 + * @return 河流基础信息 + */ + public GRiverInfo selectGRiverInfoById(Long id); + + /** + * 查询河流基础信息列表 + * + * @param gRiverInfo 河流基础信息 + * @return 河流基础信息集合 + */ + public List selectGRiverInfoList(GRiverInfo gRiverInfo); + + /** + * 新增河流基础信息 + * + * @param gRiverInfo 河流基础信息 + * @return 结果 + */ + public int insertGRiverInfo(GRiverInfo gRiverInfo); + + /** + * 修改河流基础信息 + * + * @param gRiverInfo 河流基础信息 + * @return 结果 + */ + public int updateGRiverInfo(GRiverInfo gRiverInfo); + + /** + * 删除河流基础信息 + * + * @param id 河流基础信息主键 + * @return 结果 + */ + public int deleteGRiverInfoById(Long id); + + /** + * 批量删除河流基础信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteGRiverInfoByIds(Long[] ids); +} diff --git a/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/IGRiverInfoService.java b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/IGRiverInfoService.java new file mode 100644 index 0000000..f06ba3d --- /dev/null +++ b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/IGRiverInfoService.java @@ -0,0 +1,61 @@ +package com.fastbee.ggroup.service; + +import java.util.List; +import com.fastbee.ggroup.domain.GRiverInfo; + +/** + * 河流基础信息Service接口 + * + * @author kerwincui + * @date 2024-10-22 + */ +public interface IGRiverInfoService +{ + /** + * 查询河流基础信息 + * + * @param id 河流基础信息主键 + * @return 河流基础信息 + */ + public GRiverInfo selectGRiverInfoById(Long id); + + /** + * 查询河流基础信息列表 + * + * @param gRiverInfo 河流基础信息 + * @return 河流基础信息集合 + */ + public List selectGRiverInfoList(GRiverInfo gRiverInfo); + + /** + * 新增河流基础信息 + * + * @param gRiverInfo 河流基础信息 + * @return 结果 + */ + public int insertGRiverInfo(GRiverInfo gRiverInfo); + + /** + * 修改河流基础信息 + * + * @param gRiverInfo 河流基础信息 + * @return 结果 + */ + public int updateGRiverInfo(GRiverInfo gRiverInfo); + + /** + * 批量删除河流基础信息 + * + * @param ids 需要删除的河流基础信息主键集合 + * @return 结果 + */ + public int deleteGRiverInfoByIds(Long[] ids); + + /** + * 删除河流基础信息信息 + * + * @param id 河流基础信息主键 + * @return 结果 + */ + public int deleteGRiverInfoById(Long id); +} diff --git a/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/impl/GRiverInfoServiceImpl.java b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/impl/GRiverInfoServiceImpl.java new file mode 100644 index 0000000..e1289e3 --- /dev/null +++ b/fastbee-service/fastbee-ggroup-service/src/main/java/com/fastbee/ggroup/service/impl/GRiverInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.fastbee.ggroup.service.impl; + +import java.util.List; +import com.fastbee.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.fastbee.ggroup.mapper.GRiverInfoMapper; +import com.fastbee.ggroup.domain.GRiverInfo; +import com.fastbee.ggroup.service.IGRiverInfoService; + +/** + * 河流基础信息Service业务层处理 + * + * @author kerwincui + * @date 2024-10-22 + */ +@Service +public class GRiverInfoServiceImpl implements IGRiverInfoService +{ + @Autowired + private GRiverInfoMapper gRiverInfoMapper; + + /** + * 查询河流基础信息 + * + * @param id 河流基础信息主键 + * @return 河流基础信息 + */ + @Override + public GRiverInfo selectGRiverInfoById(Long id) + { + return gRiverInfoMapper.selectGRiverInfoById(id); + } + + /** + * 查询河流基础信息列表 + * + * @param gRiverInfo 河流基础信息 + * @return 河流基础信息 + */ + @Override + public List selectGRiverInfoList(GRiverInfo gRiverInfo) + { + return gRiverInfoMapper.selectGRiverInfoList(gRiverInfo); + } + + /** + * 新增河流基础信息 + * + * @param gRiverInfo 河流基础信息 + * @return 结果 + */ + @Override + public int insertGRiverInfo(GRiverInfo gRiverInfo) + { + gRiverInfo.setCreateTime(DateUtils.getNowDate()); + return gRiverInfoMapper.insertGRiverInfo(gRiverInfo); + } + + /** + * 修改河流基础信息 + * + * @param gRiverInfo 河流基础信息 + * @return 结果 + */ + @Override + public int updateGRiverInfo(GRiverInfo gRiverInfo) + { + gRiverInfo.setUpdateTime(DateUtils.getNowDate()); + return gRiverInfoMapper.updateGRiverInfo(gRiverInfo); + } + + /** + * 批量删除河流基础信息 + * + * @param ids 需要删除的河流基础信息主键 + * @return 结果 + */ + @Override + public int deleteGRiverInfoByIds(Long[] ids) + { + return gRiverInfoMapper.deleteGRiverInfoByIds(ids); + } + + /** + * 删除河流基础信息信息 + * + * @param id 河流基础信息主键 + * @return 结果 + */ + @Override + public int deleteGRiverInfoById(Long id) + { + return gRiverInfoMapper.deleteGRiverInfoById(id); + } +} diff --git a/fastbee-service/fastbee-ggroup-service/src/main/resources/mapper/ggroup/GRiverInfoMapper.xml b/fastbee-service/fastbee-ggroup-service/src/main/resources/mapper/ggroup/GRiverInfoMapper.xml new file mode 100644 index 0000000..bc9de9b --- /dev/null +++ b/fastbee-service/fastbee-ggroup-service/src/main/resources/mapper/ggroup/GRiverInfoMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, name, code, length, area, towns, start_latitude, start_longitude, start_location, end_latitude, end_longitude, end_location, pollution_drainage_number, water_related_projects_and_facilities_number, spanned_crossed_nearby_buildings_number, design_standard_recurrence_period, river_supervisor_name, river_supervisor_position, river_supervisor_phone, contact_unit, unit_contact_person_name, unit_contact_person_phone, contact_person_name, contact_person_phone, flood_prevention_materials, admin_person_name, admin_person_position, admin_person_phone, tech_person_name, tech_person_position, tech_person_phone, create_time, update_time, created_by, updated_by, del_flag, site_id from g_river_info + + + + + + + + insert into g_river_info + + name, + code, + length, + area, + towns, + start_latitude, + start_longitude, + start_location, + end_latitude, + end_longitude, + end_location, + pollution_drainage_number, + water_related_projects_and_facilities_number, + spanned_crossed_nearby_buildings_number, + design_standard_recurrence_period, + river_supervisor_name, + river_supervisor_position, + river_supervisor_phone, + contact_unit, + unit_contact_person_name, + unit_contact_person_phone, + contact_person_name, + contact_person_phone, + flood_prevention_materials, + admin_person_name, + admin_person_position, + admin_person_phone, + tech_person_name, + tech_person_position, + tech_person_phone, + create_time, + update_time, + created_by, + updated_by, + del_flag, + site_id, + + + #{name}, + #{code}, + #{length}, + #{area}, + #{towns}, + #{startLatitude}, + #{startLongitude}, + #{startLocation}, + #{endLatitude}, + #{endLongitude}, + #{endLocation}, + #{pollutionDrainageNumber}, + #{waterRelatedProjectsAndFacilitiesNumber}, + #{spannedCrossedNearbyBuildingsNumber}, + #{designStandardRecurrencePeriod}, + #{riverSupervisorName}, + #{riverSupervisorPosition}, + #{riverSupervisorPhone}, + #{contactUnit}, + #{unitContactPersonName}, + #{unitContactPersonPhone}, + #{contactPersonName}, + #{contactPersonPhone}, + #{floodPreventionMaterials}, + #{adminPersonName}, + #{adminPersonPosition}, + #{adminPersonPhone}, + #{techPersonName}, + #{techPersonPosition}, + #{techPersonPhone}, + #{createTime}, + #{updateTime}, + #{createdBy}, + #{updatedBy}, + #{delFlag}, + #{siteId}, + + + + + update g_river_info + + name = #{name}, + code = #{code}, + length = #{length}, + area = #{area}, + towns = #{towns}, + start_latitude = #{startLatitude}, + start_longitude = #{startLongitude}, + start_location = #{startLocation}, + end_latitude = #{endLatitude}, + end_longitude = #{endLongitude}, + end_location = #{endLocation}, + pollution_drainage_number = #{pollutionDrainageNumber}, + water_related_projects_and_facilities_number = #{waterRelatedProjectsAndFacilitiesNumber}, + spanned_crossed_nearby_buildings_number = #{spannedCrossedNearbyBuildingsNumber}, + design_standard_recurrence_period = #{designStandardRecurrencePeriod}, + river_supervisor_name = #{riverSupervisorName}, + river_supervisor_position = #{riverSupervisorPosition}, + river_supervisor_phone = #{riverSupervisorPhone}, + contact_unit = #{contactUnit}, + unit_contact_person_name = #{unitContactPersonName}, + unit_contact_person_phone = #{unitContactPersonPhone}, + contact_person_name = #{contactPersonName}, + contact_person_phone = #{contactPersonPhone}, + flood_prevention_materials = #{floodPreventionMaterials}, + admin_person_name = #{adminPersonName}, + admin_person_position = #{adminPersonPosition}, + admin_person_phone = #{adminPersonPhone}, + tech_person_name = #{techPersonName}, + tech_person_position = #{techPersonPosition}, + tech_person_phone = #{techPersonPhone}, + create_time = #{createTime}, + update_time = #{updateTime}, + created_by = #{createdBy}, + updated_by = #{updatedBy}, + del_flag = #{delFlag}, + site_id = #{siteId}, + + where id = #{id} + + + + delete from g_river_info where id = #{id} + + + + delete from g_river_info where id in + + #{id} + + + \ No newline at end of file diff --git a/fastbee-service/fastbee-project-service/src/main/java/com/fastbee/project/service/impl/ProjectServiceImpl.java b/fastbee-service/fastbee-project-service/src/main/java/com/fastbee/project/service/impl/ProjectServiceImpl.java index 49ba7a1..e115225 100644 --- a/fastbee-service/fastbee-project-service/src/main/java/com/fastbee/project/service/impl/ProjectServiceImpl.java +++ b/fastbee-service/fastbee-project-service/src/main/java/com/fastbee/project/service/impl/ProjectServiceImpl.java @@ -176,7 +176,7 @@ public class ProjectServiceImpl implements IProjectService //查询所有子一级项目列表 projectList = new LambdaQueryChainWrapper<>(projectMapper) .select(Project::getProjectId, Project::getProjectName) - .in(Project::getParentId, ProjectHolder.getProjectInfo().getProjectIdList()) + .in(!ProjectHolder.getProjectInfo().getProjectIdList().isEmpty(),Project::getParentId, ProjectHolder.getProjectInfo().getProjectIdList()) .list(); } return projectList;