From 15e7d7914452cb21646034e428d0bbf734d35edb Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期二, 29 八月 2023 11:47:37 +0800 Subject: [PATCH] 修改 --- standard-server/src/main/resources/mapper/ProductModelMapper.xml | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/standard-server/src/main/resources/mapper/ProductModelMapper.xml b/standard-server/src/main/resources/mapper/ProductModelMapper.xml index 74f5a68..aaa8c13 100644 --- a/standard-server/src/main/resources/mapper/ProductModelMapper.xml +++ b/standard-server/src/main/resources/mapper/ProductModelMapper.xml @@ -2,7 +2,7 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > <mapper namespace="com.yuanchu.limslaboratory.mapper.ProductModelMapper"> <resultMap id="selectproductModelMap" type="map"> - <id property="father" column="father"/> + <id property="name" column="father"/> <collection property="children" resultMap="selectproductModelTowMap" javaType="List"/> </resultMap> @@ -35,9 +35,9 @@ </update> <!--娣诲姞鏍囧噯閫夋嫨椤圭洰鍒嗙粍--> <select id="selectfather" resultType="java.lang.String"> - select distinct father - from lims_laboratory.product_model - where state = 1 + SELECT DISTINCT father + FROM lims_laboratory.product_model + WHERE state = 1 </select> <!--鏌ヨ椤圭洰妯$増鏍规嵁鏍峰搧鍚�--> @@ -52,8 +52,8 @@ <!--娣诲姞鏍囧噯閫夋嫨鏍峰搧鍚嶇О--> <select id="selectmater" resultType="java.lang.String"> - select material + select DISTINCT material from lims_laboratory.product_model where state = 1 </select> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3