|
|
@@ -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.sckw.goods.mapper.InventoryMapper">
|
|
|
|
|
|
- <select id="findList" resultType="InventoryFindListRes">
|
|
|
+ <select id="findList" resultType="com.sckw.goods.entity.res.InventoryFindListRes">
|
|
|
select id, `name` from kw_business_inventory
|
|
|
<where>
|
|
|
del_flag = 0
|
|
|
@@ -17,7 +17,7 @@
|
|
|
<id property="id" column="id" />
|
|
|
<result property="name" column="name" />
|
|
|
<!-- 一对多级联查询,ofType表示集合中的元素类型,将id传递给selectOrderById -->
|
|
|
- <collection property="inventoryDetail" column="id" select="selectListDetail" />
|
|
|
+ <collection property="InventoryPageListRes" column="id" select="selectListDetail" />
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
@@ -38,7 +38,7 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectListDetail" resultType="InventoryDetailRes">
|
|
|
+ <select id="selectListDetail" resultType="com.sckw.goods.entity.res.InventoryDetailRes">
|
|
|
select id, goods_id, goods_num, inventory_id from kw_business_inventory_detail where del_flag = 0 and inventory_id = #{id}
|
|
|
</select>
|
|
|
</mapper>
|