gt %!s(int64=2) %!d(string=hai) anos
pai
achega
1d1ec17d90
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      chuanyi_server/src/main/resources/mapper/ItemGroupDao.xml

+ 2 - 1
chuanyi_server/src/main/resources/mapper/ItemGroupDao.xml

@@ -122,7 +122,8 @@
     <select id="getPublicItemList" resultType="com.judong.chuanyiserver.entity.Item">
         select id, item_group_id, item_name
         from t_item
-        where item_name in
+        where item_group_id=#{itemGroupId} and
+        item_name in
         <foreach collection="itemList" item="item" index="index" open="(" close=")" separator=",">
             #{item.itemName}
         </foreach>