Browse Source

2025-11-12

客户的项目信息查询加site
master
fengyuan_yang 2 months ago
parent
commit
2f845f41d7
  1. 2
      src/main/java/com/spring/modules/customer/mapper/ProjectInformationMapper.java
  2. 2
      src/main/java/com/spring/modules/customer/service/impl/ProjectInformationServiceImpl.java
  3. 32
      src/main/resources/mapper/customer/ProjectInformationMapper.xml

2
src/main/java/com/spring/modules/customer/mapper/ProjectInformationMapper.java

@ -9,4 +9,6 @@ import java.util.List;
public interface ProjectInformationMapper {
List<PlmProjectInfoData> projectInformationSearch(PlmProjectInfoData data);
List<PlmProjectInfoData> projectInformationSearchAll(PlmProjectInfoData data);
}

2
src/main/java/com/spring/modules/customer/service/impl/ProjectInformationServiceImpl.java

@ -33,7 +33,7 @@ public class ProjectInformationServiceImpl implements ProjectInformationService
public List<PlmProjectInfoData> projectInformationSearchByCustomers(PlmProjectInfoData data) {
List<PlmProjectInfoData> list = new ArrayList<>();
for (PlmProjectInfoData plmProjectInfoData : data.getProjectList()) {
list.addAll(projectInformationMapper.projectInformationSearch(plmProjectInfoData));
list.addAll(projectInformationMapper.projectInformationSearchAll(plmProjectInfoData));
}
return list;
}

32
src/main/resources/mapper/customer/ProjectInformationMapper.xml

@ -4,6 +4,38 @@
<!-- 客户项目信息列表 -->
<select id="projectInformationSearch" parameterType="PlmProjectInfoData" resultType="PlmProjectInfoData">
SELECT
id,
site,
project_id,
ori_project_id,
project_type_db,
project_name,
status,
project_source,
customer_id,
create_by,
create_date,
update_by,
update_date,
priority,
project_desc,
customer_remark,
remark,
need_date,
dbo.get_projectTeamName(site,project_id,'owner') projectOwnerName,
dbo.get_projectTeamName(site,project_id,'manager') ProjectManagerName,
dbo.plm_get_dictDataLabel('project_info_type_db',project_type_db,site) projectType,
dbo.plm_get_projectBaseDesc(status,'project_status') projectStatusDesc,
dbo.plm_get_dictDataLabel('project_info_source',project_source,site) projectSourceDesc,
dbo.plm_get_customer_desc(site,customer_id) customerName,
dbo.plm_get_dictDataLabel('project_info_priority',priority,site) priorityDesc,
dbo.get_projectUserRoleName(site,project_id) userRoleName
FROM plm_project_info
WHERE site = #{site} and customer_id = #{customerId}
</select>
<select id="projectInformationSearchAll" parameterType="PlmProjectInfoData" resultType="PlmProjectInfoData">
SELECT
id,
site,

Loading…
Cancel
Save