From 55cb4daf506ad8f3c637f6e3d9bc7df41e538b2e Mon Sep 17 00:00:00 2001 From: liuxm <liuxm@fescotech.com> Date: 星期二, 21 五月 2024 09:14:38 +0800 Subject: [PATCH] 产品和工站导出;不合格原因报废原因添加排序和与产品的关联; --- pms-parent/pms-global/src/main/resources/mapper/PltProductQualityInspectionItemsMapper.xml | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/PltProductQualityInspectionItemsMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PltProductQualityInspectionItemsMapper.xml index 85197a9..e41e338 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/PltProductQualityInspectionItemsMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/PltProductQualityInspectionItemsMapper.xml @@ -70,15 +70,12 @@ <select id="selectSome" resultMap="BaseResultMap"> select - <include refid="part_Column_List" > - <property name="alias" value="t"/> - </include> + <include refid="Base_Column_List" /> from plt_product_quality_inspection_items t - inner join plt_product p on t.pro_id = p.id where t.deleted!=1 <trim prefix="and" suffixOverrides="and"> - <if test="proName != null and proName != ''"> - p.name like concat('%', #{proName}, '%') and + <if test="proId != null and proId != ''"> + t.pro_id=#{proId} and </if> <if test="item != null and item != ''"> t.item like concat('%', #{item}, '%') and @@ -95,11 +92,10 @@ <select id="selectSomeCount" resultType="java.lang.Long"> select count(1) from plt_product_quality_inspection_items t - inner join plt_product p on t.pro_id = p.id where t.deleted!=1 <trim prefix="and" suffixOverrides="and"> - <if test="proName != null and proName != ''"> - p.name like concat('%', #{proName}, '%') and + <if test="proId != null and proId != ''"> + t.pro_id=#{proId} and </if> <if test="item != null and item != ''"> t.item like concat('%', #{item}, '%') and -- Gitblit v1.8.0