From 8910767f8855e1c5ae7f6058d0ef41e98a1650f4 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 14 Jul 2021 14:30:05 +0800 Subject: [PATCH] modify --- zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml index 5e75ca7..5200088 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml +++ b/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,19 @@ 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> + + <select id="selectByNameAndDesc" resultMap="ShoppingGoodsSimpleMap"> + select * from shopping_goods + where name=#{name} and wei_description=#{description} + </select> </mapper> -- Gitblit v1.9.1