|
@@ -8,9 +8,9 @@
|
|
|
<!-- 保存物品次数信息 add by wuxw 2018-07-03 -->
|
|
<!-- 保存物品次数信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveResourceStoreTimesInfo" parameterType="Map">
|
|
<insert id="saveResourceStoreTimesInfo" parameterType="Map">
|
|
|
insert into resource_store_times(
|
|
insert into resource_store_times(
|
|
|
- price,apply_order_id,store_id,stock,res_id,times_id
|
|
|
|
|
|
|
+ price,apply_order_id,store_id,stock,res_code,times_id
|
|
|
) values (
|
|
) values (
|
|
|
- #{price},#{applyOrderId},#{storeId},#{stock},#{resId},#{timesId}
|
|
|
|
|
|
|
+ #{price},#{applyOrderId},#{storeId},#{stock},#{resCode},#{timesId}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -18,7 +18,7 @@
|
|
|
<!-- 查询物品次数信息 add by wuxw 2018-07-03 -->
|
|
<!-- 查询物品次数信息 add by wuxw 2018-07-03 -->
|
|
|
<select id="getResourceStoreTimesInfo" parameterType="Map" resultType="Map">
|
|
<select id="getResourceStoreTimesInfo" parameterType="Map" resultType="Map">
|
|
|
select t.price,t.apply_order_id,t.apply_order_id applyOrderId,t.status_cd,t.status_cd
|
|
select t.price,t.apply_order_id,t.apply_order_id applyOrderId,t.status_cd,t.status_cd
|
|
|
- statusCd,t.store_id,t.store_id storeId,t.stock,t.res_id,t.res_id resId,t.times_id,t.times_id timesId
|
|
|
|
|
|
|
+ statusCd,t.store_id,t.store_id storeId,t.stock,t.res_code,t.res_code resCode,t.times_id,t.times_id timesId
|
|
|
from resource_store_times t
|
|
from resource_store_times t
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="price !=null and price != ''">
|
|
<if test="price !=null and price != ''">
|
|
@@ -39,8 +39,8 @@
|
|
|
<if test="hasStock !=null and hasStock != ''">
|
|
<if test="hasStock !=null and hasStock != ''">
|
|
|
and t.stock > 0
|
|
and t.stock > 0
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="resId !=null and resId != ''">
|
|
|
|
|
- and t.res_id= #{resId}
|
|
|
|
|
|
|
+ <if test="resCode !=null and resCode != ''">
|
|
|
|
|
+ and t.res_code= #{resCode}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="timesId !=null and timesId != ''">
|
|
<if test="timesId !=null and timesId != ''">
|
|
|
and t.times_id= #{timesId}
|
|
and t.times_id= #{timesId}
|
|
@@ -71,8 +71,8 @@
|
|
|
<if test="stock !=null and stock != ''">
|
|
<if test="stock !=null and stock != ''">
|
|
|
, t.stock= #{stock}
|
|
, t.stock= #{stock}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="resId !=null and resId != ''">
|
|
|
|
|
- , t.res_id= #{resId}
|
|
|
|
|
|
|
+ <if test="resCode !=null and resCode != ''">
|
|
|
|
|
+ , t.res_code= #{resCode}
|
|
|
</if>
|
|
</if>
|
|
|
where 1=1
|
|
where 1=1
|
|
|
<if test="timesId !=null and timesId != ''">
|
|
<if test="timesId !=null and timesId != ''">
|
|
@@ -104,8 +104,8 @@
|
|
|
<if test="hasStock !=null and hasStock != ''">
|
|
<if test="hasStock !=null and hasStock != ''">
|
|
|
and t.stock > 0
|
|
and t.stock > 0
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="resId !=null and resId != ''">
|
|
|
|
|
- and t.res_id= #{resId}
|
|
|
|
|
|
|
+ <if test="resCode !=null and resCode != ''">
|
|
|
|
|
+ and t.res_code= #{resCode}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="timesId !=null and timesId != ''">
|
|
<if test="timesId !=null and timesId != ''">
|
|
|
and t.times_id= #{timesId}
|
|
and t.times_id= #{timesId}
|