From 4243b6500bbc58ea17b452cd7800e8fd94765f76 Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期五, 04 八月 2023 11:34:13 +0800 Subject: [PATCH] LIMS管理系统框架-开发8-4 --- standard-server/src/main/resources/mapper/ProductMapper.xml | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/standard-server/src/main/resources/mapper/ProductMapper.xml b/standard-server/src/main/resources/mapper/ProductMapper.xml index 7596baa..62d9615 100644 --- a/standard-server/src/main/resources/mapper/ProductMapper.xml +++ b/standard-server/src/main/resources/mapper/ProductMapper.xml @@ -5,14 +5,15 @@ <select id="pageProductInformation" resultType="map"> SELECT COUNT(1) num, p.`father` FROM product p + WHERE p.`specifications_id` = #{specificationsId} <if test="productCodeOrName != null and productCodeOrName != ''"> - WHERE p.`father` = #{productCodeOrName} + AND p.`father` = #{productCodeOrName} </if> GROUP BY p.`father` </select> <select id="selectOneChildren" resultType="map"> - SELECT p.`id`, p.`unit`, p.`required`, p.`internal` + SELECT p.`id`, p.`name`, p.`unit`, p.`required`, p.`internal` FROM product p WHERE p.`father` = #{father} </select> -- Gitblit v1.9.3