Authored by mali

商品池列表去掉个数展示

@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 </resultMap> 6 </resultMap>
7 7
8 <sql id="queryColumns"> 8 <sql id="queryColumns">
9 - pool.id, pool.pool_name, pool.create_time, COUNT(pool_detail.product_id) AS productNum 9 + pool.id, pool.pool_name, pool.create_time
10 </sql> 10 </sql>
11 11
12 <insert id="insertProductPool" parameterType="com.yoho.ufo.model.goodsmanage.ProductPool" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> 12 <insert id="insertProductPool" parameterType="com.yoho.ufo.model.goodsmanage.ProductPool" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
@@ -41,8 +41,6 @@ @@ -41,8 +41,6 @@
41 41
42 <sql id="queryTable"> 42 <sql id="queryTable">
43 FROM product_pool pool 43 FROM product_pool pool
44 - LEFT JOIN product_pool_detail pool_detail  
45 - ON pool.id = pool_detail.pool_id  
46 </sql> 44 </sql>
47 45
48 <select id="selectProductPoolCount" resultType="integer"> 46 <select id="selectProductPoolCount" resultType="integer">
@@ -55,7 +53,6 @@ @@ -55,7 +53,6 @@
55 select <include refid="queryColumns"/> 53 select <include refid="queryColumns"/>
56 <include refid="queryTable"/> 54 <include refid="queryTable"/>
57 <include refid="queryParam"/> 55 <include refid="queryParam"/>
58 - GROUP BY pool_detail.pool_id  
59 ORDER BY pool.create_time DESC 56 ORDER BY pool.create_time DESC
60 limit #{page.startIndex}, #{page.pageSize} 57 limit #{page.startIndex}, #{page.pageSize}
61 </select> 58 </select>
@@ -85,11 +85,6 @@ @@ -85,11 +85,6 @@
85 width: 80, 85 width: 80,
86 align: "center" 86 align: "center"
87 }, { 87 }, {
88 - title: "商品个数",  
89 - field: "productNum",  
90 - width: 100,  
91 - align: "center"  
92 - }, {  
93 title: "创建时间", 88 title: "创建时间",
94 field: "createTime", 89 field: "createTime",
95 width: 170, 90 width: 170,