| | |
| | | <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> |