...
|
...
|
@@ -97,9 +97,9 @@ |
|
|
</sql>
|
|
|
|
|
|
<update id="cancelSaleSkup" parameterType="java.lang.Integer">
|
|
|
update storage_price set status = 1,
|
|
|
update_time = unix_timestamp(),
|
|
|
where skup = #{skup,jdbcType=INTEGER} and status = 2
|
|
|
update storage_price set status = 5,
|
|
|
update_time = unix_timestamp()
|
|
|
where skup = #{skup,jdbcType=INTEGER} and status = 1
|
|
|
</update>
|
|
|
<select id="selectBySkup" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select id, skup, product_id, goods_id, storage_id, depot_num, seller_uid, price, status,
|
...
|
...
|
@@ -108,18 +108,18 @@ |
|
|
where skup = #{skup,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectStoragePriceCount" resultMap="java.lang.Integer">
|
|
|
select count(*) from from storage_price where <include refid="skupPageCondition" />
|
|
|
<select id="selectStoragePriceCount" resultType="java.lang.Integer">
|
|
|
select count(*) from from storage_price where <include refid="skupPageCondition2" />
|
|
|
</select>
|
|
|
|
|
|
<select id="selectStoragePriceList" resultMap="BaseResultMap">
|
|
|
select id, skup, product_id, goods_id, storage_id, depot_num, seller_uid, price, status,
|
|
|
update_time, create_time
|
|
|
from storage_price
|
|
|
where <include refid="skupPageCondition" /> limit #{start},#{rows}
|
|
|
where <include refid="skupPageCondition2" /> limit #{start},#{rows}
|
|
|
</select>
|
|
|
|
|
|
<sql id="skupPageCondition" >
|
|
|
<sql id="skupPageCondition2" >
|
|
|
<if test="storagePrice.status != null and storagePrice.status > -1">
|
|
|
and status = #{storagePrice.status}
|
|
|
</if>
|
...
|
...
|
|