hexiao 2 лет назад
Родитель
Сommit
d2307fcc34

+ 6 - 1
purchase-system/src/main/resources/mapper/base/BaseExpertMapper.xml

@@ -163,6 +163,11 @@
     </select>
 
     <select id="getExpertNameList" resultType="java.util.Map" parameterType="java.util.List">
-        select GROUP_CONCAT(variety_purchase) varietyPurchase, GROUP_CONCAT(expert_name) expertName from base_expert where id in #{expertList}
+        select GROUP_CONCAT(variety_purchase) varietyPurchase, GROUP_CONCAT(expert_name) expertName from base_expert
+        where id in
+        <foreach collection="expertList" item="id" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+
     </select>
 </mapper>