...
|
...
|
@@ -6,7 +6,7 @@ |
|
|
</resultMap>
|
|
|
|
|
|
<sql id="queryColumns">
|
|
|
pool.id, pool.pool_name, pool.create_time, COUNT(pool_detail.product_id) AS productNum
|
|
|
pool.id, pool.pool_name, pool.create_time
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insertProductPool" parameterType="com.yoho.ufo.model.goodsmanage.ProductPool" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
...
|
...
|
@@ -41,8 +41,6 @@ |
|
|
|
|
|
<sql id="queryTable">
|
|
|
FROM product_pool pool
|
|
|
LEFT JOIN product_pool_detail pool_detail
|
|
|
ON pool.id = pool_detail.pool_id
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectProductPoolCount" resultType="integer">
|
...
|
...
|
@@ -55,7 +53,6 @@ |
|
|
select <include refid="queryColumns"/>
|
|
|
<include refid="queryTable"/>
|
|
|
<include refid="queryParam"/>
|
|
|
GROUP BY pool_detail.pool_id
|
|
|
ORDER BY pool.create_time DESC
|
|
|
limit #{page.startIndex}, #{page.pageSize}
|
|
|
</select>
|
...
|
...
|
|