Browse Source

2025-07-08

1、技术参数卡的当前节点的筛选有问题 - 优先处理
2、筛选条件优化(优先处理刀具和测试)
3、如果数据有多页,点了查询之后要默认第一页的数据
master
fengyuan_yang 11 months ago
parent
commit
6dc298a224
  1. 4
      src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java
  2. 7
      src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml
  3. 6
      src/main/resources/mapper/change/ChangeManagementMapper.xml
  4. 15
      src/main/resources/mapper/proofing/ProofingInformationMapper.xml
  5. 15
      src/main/resources/mapper/quotation/QuotationInformationMapper.xml
  6. 19
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml
  7. 20
      src/main/resources/mapper/test/TestInformationMapper.xml

4
src/main/java/com/spring/modules/part/service/impl/RecipeManagementServiceImpl.java

@ -149,7 +149,7 @@ public class RecipeManagementServiceImpl extends ServiceImpl<RecipeManagementMap
recipeIfsHeader.setNoteText(data.getNoteText());
Map<String, String> updateRecipeHeaderResponse = recipeServiceBean.modifyRecipeHeader(srv, recipeIfsHeader);
if (!"200".equals(updateRecipeHeaderResponse.get("resultCode"))) {
throw new RuntimeException("ifs RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg"));
throw new RuntimeException("IFS RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg"));
}
}
}
@ -184,7 +184,7 @@ public class RecipeManagementServiceImpl extends ServiceImpl<RecipeManagementMap
recipeIfsHeader.setNoteText(data.getNoteText());
Map<String, String> updateRecipeHeaderResponse = recipeServiceBean.modifyRecipeHeader(srv, recipeIfsHeader);
if (!"200".equals(updateRecipeHeaderResponse.get("resultCode"))) {
throw new RuntimeException("ifs RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg"));
throw new RuntimeException("IFS RecipeHeader修改异常:" + updateRecipeHeaderResponse.get("resultMsg"));
}
}
}

7
src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml

@ -273,7 +273,12 @@
<if test="query.endDate != null ">
AND #{query.endDate} >= a.apply_date
</if>
<if test="query.nodeId != null and query.nodeId != ''">
AND d.node_id = #{query.nodeId}
</if>
<if test="query.sp != null and query.sp != ''">
AND dbo.get_plm_Approval_username (a.site, prh.workflow_id,d.node_id,a.apply_no) like #{query.sp}
</if>
<!-- <if test="query.projectOwnerName != null and query.projectOwnerName != ''">-->
<!-- AND dbo.get_projectTeamName(site,project_id,'ProjectOwner') like '%' + #{query.projectOwnerName} +'%'-->
<!-- </if>-->

6
src/main/resources/mapper/change/ChangeManagementMapper.xml

@ -229,6 +229,12 @@
<if test = "query.changeStatus != null and query.changeStatus != ''">
AND a.change_status = #{query.changeStatus}
</if>
<if test="query.nodeId != null and query.nodeId != ''">
AND d.node_id = #{query.nodeId}
</if>
<if test="query.createBy2 != null and query.createBy2 != ''">
AND dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.change_no) like #{query.createBy2}
</if>
</where>
order by a.change_no desc
</select>

15
src/main/resources/mapper/proofing/ProofingInformationMapper.xml

@ -63,13 +63,10 @@
dbo.GET_BM_stage(a.site,a.test_part_no) as stage
FROM plm_proofing_information as a
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = #{query.menuId}
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and
prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join view_Project_Part vpp
on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join view_Project_Part vpp on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id
left join BU b on vpp.bu_no = b.bu_no and a.site = b.site
left join plm_customer_part_info pcpi
on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no
left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no
<where>
a.site = #{query.site}
<if test="query.createBy != null and query.createBy != ''">
@ -129,6 +126,12 @@
<if test="query.customerPartNo != null and query.customerPartNo != ''">
AND pcpi.customer_part_no like #{query.customerPartNo}
</if>
<if test="query.nodeId != null and query.nodeId != ''">
AND d.node_id = #{query.nodeId}
</if>
<if test="query.approvalUsername != null and query.approvalUsername != ''">
AND dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.proofing_no) like #{query.approvalUsername}
</if>
</where>
order by a.proofing_no desc
</select>

15
src/main/resources/mapper/quotation/QuotationInformationMapper.xml

@ -131,14 +131,11 @@
FROM plm_quotation_information as a
<if test="query.menuId != null and query.menuId != ''">
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = #{query.menuId}
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and
prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
</if>
left join view_Project_Part vpp
on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id
left join view_Project_Part vpp on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id
left join BU b on vpp.bu_no = b.bu_no and a.site = b.site
left join plm_customer_part_info pcpi
on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no
left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and a.customer_no = pcpi.customer_no
<where>
a.site = #{query.site}
<if test="query.createBy != null and query.createBy != ''">
@ -201,6 +198,12 @@
<if test="query.customerPartNo != null and query.customerPartNo != ''">
and pcpi.customer_part_no like #{query.customerPartNo}
</if>
<if test="query.nodeId != null and query.nodeId != ''">
AND d.node_id = #{query.nodeId}
</if>
<if test="query.approvalUsername != null and query.approvalUsername != ''">
AND dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.quotation_batch_no) like #{query.approvalUsername}
</if>
order by a.quotation_batch_no desc, a.quotation_item_no
</where>
</select>

19
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -2532,7 +2532,7 @@
AND b.bu_no like #{buNo}
</if>
<if test="nodeId != null and nodeId != ''">
AND d.node_id like #{nodeId}
AND d.node_id = #{nodeId}
</if>
<if test="sp != null and sp != ''">
AND dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) like #{sp}
@ -2547,14 +2547,11 @@
<select id="queryTechnicalSpecificationCount" resultType="long">
SELECT count(1)
FROM plm_technical_specification_sheet a
left join view_Project_final_Part b
on a.site = b.site and a.project_id = b.project_id and a.test_part_no = b.test_part_no
left join view_Project_final_Part b on a.site = b.site and a.project_id = b.project_id and a.test_part_no = b.test_part_no
left join plm_project_info c on a.site = c.site and a.project_id = c.project_id
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = '103002'
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and
prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join plm_customer_part_info pcpi
on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join plm_customer_part_info pcpi on a.site = pcpi.site and a.test_part_no = pcpi.part_no and c.customer_id = pcpi.customer_no
<if test="cutterNumber != null and cutterNumber != ''">
inner join plm_bm_prepress pbp on pbp.Site = a.site and pbp.code_no = a.code_no and
(plateNo like #{cutterNumber} or
@ -2605,6 +2602,12 @@
<if test="buNo != null and buNo != ''">
AND b.bu_no like #{buNo}
</if>
<if test="nodeId != null and nodeId != ''">
AND d.node_id = #{nodeId}
</if>
<if test="sp != null and sp != ''">
AND dbo.get_plm_Approval_username(a.site, prh.workflow_id, d.node_id, a.code_no) like #{sp}
</if>
<if test="documentSource != null and documentSource != ''">
AND a.document_source = #{documentSource}
</if>
@ -2762,7 +2765,7 @@
FROM
plm_request_header AS prh
LEFT JOIN plm_request_node AS d ON prh.site = d.site and prh.classification_no = d.classification_no
AND prh.workflow_id = d.workflow_id AND prh.menu_id = '103002'
AND prh.workflow_id = d.workflow_id AND prh.menu_id = #{menuId}
WHERE
d.site = #{site}
order by seq_no

20
src/main/resources/mapper/test/TestInformationMapper.xml

@ -63,17 +63,13 @@
cp.customer_part_no,
dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.test_no) as approvalUsername
FROM plm_test_information as a
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = #{query.menuId}
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and
prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join view_Project_Part vpp
on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id
left join BU b on vpp.bu_no = b.bu_no and a.site = b.site
left join plm_customer_part_info cp
on a.site = cp.site and a.customer_no = cp.customer_no and a.test_part_no = cp.part_no
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = #{query.menuId}
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join view_Project_Part vpp on vpp.site = a.site and vpp.test_part_no = a.test_part_no and vpp.project_id = a.project_id
left join BU b on vpp.bu_no = b.bu_no and a.site = b.site
left join plm_customer_part_info cp on a.site = cp.site and a.customer_no = cp.customer_no and a.test_part_no = cp.part_no
<where>
a.site = #{query.site}
<if test="query.createBy != null and query.createBy != ''">
and vpp.bu_no in (select bu_No from dbo.Get_Now_BU_chooseAble(a.site, #{query.createBy}))
</if>
@ -128,6 +124,12 @@
<if test="query.customerPartNo != null and query.customerPartNo != ''">
and cp.customer_part_no like #{query.customerPartNo}
</if>
<if test="query.nodeId != null and query.nodeId != ''">
AND d.node_id = #{query.nodeId}
</if>
<if test="query.approvalUsername != null and query.approvalUsername != ''">
AND dbo.get_plm_Approval_username(a.site, d.workflow_id, d.node_id, a.test_no) like #{query.approvalUsername}
</if>
</where>
order by a.test_no desc
</select>

Loading…
Cancel
Save