fix
Helius
2021-07-12 e47e795b062e68b55aa28c955a2c8407c6ed9cb5
zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml
@@ -855,7 +855,7 @@
   <select id="selectById" resultMap="ShoppingGoodsMap">
      select
      *,
      (select TYPE_NAME from sys_goods_type b where b.id=goods_sort_id) goodsSortName,
      -- (select TYPE_NAME from sys_goods_type b where b.id=a.goods_sort_id) goodsSortName,
      (select NAME from shopping_goods_category t where
      t.id=cate_id)
      cate_name
@@ -1296,4 +1296,14 @@
         and a.good_type=#{record.goodType}
      </if>
   </select>
   <select id="selectByIds" resultMap="ShoppingGoodsSimpleMap">
      select
      *
      from shopping_goods
      where id in
      <foreach collection="ids" item="item" separator="," open="(" close=")">
         #{item}
      </foreach>
   </select>
</mapper>