From fd3819392c0c3fafc4f1d7d254b952207ddca3b5 Mon Sep 17 00:00:00 2001 From: liuxm <liuxm_a@163.com> Date: 星期四, 23 五月 2024 10:56:39 +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