...
|
...
|
@@ -19,10 +19,11 @@ |
|
|
<result column="batch_no" jdbcType="BIGINT" property="batchNo" />
|
|
|
<result column="storage_num" jdbcType="INTEGER" property="storageNum" />
|
|
|
<result column="size_num" jdbcType="INTEGER" property="sizeNum" />
|
|
|
<result column="attributes" jdbcType="INTEGER" property="attributes" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, product_id, product_name, storage_id, depot_no, size_id, size_name,
|
|
|
color_id, color_name, goods_price, status, image_url, is_del, batch_no
|
|
|
color_id, color_name, goods_price, status, image_url, is_del, batch_no,attributes
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectEntryCntByUidStatusGBSkc" resultType="java.lang.Integer">
|
...
|
...
|
@@ -40,7 +41,8 @@ |
|
|
|
|
|
<sql id="Base_Column_List_with_table_name">
|
|
|
sog.id as id, sog.uid as uid, product_id, product_name,storage_id,depot_no,size_id,size_name,
|
|
|
color_id, color_name, goods_price, sog.status as status, image_url, sog.is_del as is_del, batch_no
|
|
|
color_id, color_name, goods_price, sog.status as status, image_url, sog.is_del as is_del, batch_no,
|
|
|
sog.attributes as attributes
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectEntryListByUidStatusGBSkc" resultMap="BaseResultMap">
|
...
|
...
|
@@ -105,7 +107,7 @@ |
|
|
FROM seller_order_goods sog,seller_order so WHERE sog.id = so.skup
|
|
|
AND sog.uid = #{condition.uid,jdbcType=INTEGER} AND so.payment = 11
|
|
|
AND sog.status = #{condition.status, jdbcType=TINYINT} AND product_id = #{condition.productId,jdbcType=INTEGER}
|
|
|
GROUP BY size_id,`goods_price`
|
|
|
GROUP BY sog.attributes,size_id,`goods_price`
|
|
|
order by size_id,goods_price
|
|
|
limit #{offset, jdbcType=INTEGER}, #{limit, jdbcType=INTEGER}
|
|
|
</select>
|
...
|
...
|
@@ -117,7 +119,7 @@ |
|
|
FROM seller_order_goods sog,seller_order so WHERE sog.id = so.skup
|
|
|
AND sog.uid = #{uid,jdbcType=INTEGER} AND so.payment = 11
|
|
|
AND sog.status = #{status, jdbcType=TINYINT} AND product_id = #{productId,jdbcType=INTEGER}
|
|
|
GROUP BY size_id,`goods_price`
|
|
|
GROUP BY sog.attributes,size_id,`goods_price`
|
|
|
) t
|
|
|
</select>
|
|
|
|
...
|
...
|
|