Authored by Lixiaodi

闪购

... ... @@ -273,7 +273,7 @@
set order_status = 0 ,update_time = unix_timestamp(now())
where owner_uid=#{uid} and new_skup = #{newSkup} and status=1 and order_status = 1
</update>
<select id="queryUserDepositProductCount" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
<select id="queryUserDepositProductCount" resultType="java.lang.Integer" parameterType="java.lang.Integer" >
select count(distinct product_id) from storage_deposit
where owner_uid = #{uid} and status=1 and del_status=0
</select>
... ... @@ -291,7 +291,7 @@
</foreach>
group by product_id
</select>
<select id="queryUserDopositBackCount" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
<select id="queryUserDopositBackCount" resultType="java.lang.Integer" parameterType="java.lang.Integer" >
select count(*) from storage_deposit
where owner_uid = #{uid} and status in(2,3,4) and out_type in(1) and del_status=0
</select>
... ... @@ -301,7 +301,7 @@
limit #{start}, #{count}
</select>
<select id="queryUserProductDopositingCount" resultMap="BaseResultMap">
<select id="queryUserProductDopositingCount" resultType="java.lang.Integer">
select count(*) from storage_deposit
where owner_uid = #{uid} and status in(1) and product_id =#{productId} and del_status=0
</select>
... ...