|
|
|
@@ -28,16 +28,16 @@ |
|
|
|
and `parent_tenant_id` = #{parentTenantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != pressBatchId"> |
|
|
|
and `press_batch_id` = #{pressBatchId} |
|
|
|
<if test=" null != couponBatchId"> |
|
|
|
and `coupon_batch_id` = #{couponBatchId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != couponId"> |
|
|
|
and `coupon_id` = #{couponId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != pressBatchStatus"> |
|
|
|
and `press_batch_status` = #{pressBatchStatus} |
|
|
|
<if test=" null != couponBatchStatus"> |
|
|
|
and `coupon_batch_status` = #{couponBatchStatus} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
@@ -59,7 +59,7 @@ |
|
|
|
|
|
|
|
<select id="getBatchIdList" parameterType="java.util.HashMap" resultType="Long"> |
|
|
|
select distinct coupon_batch_id from wx_coupon_batch_item where `tenant_id` = #{tenantId} |
|
|
|
<if test=" null != pressBatchStatus"> |
|
|
|
<if test=" null != couponBatchStatus"> |
|
|
|
and `coupon_batch_status` = #{couponBatchStatus} |
|
|
|
</if> |
|
|
|
<if test=" null != couponIds "> |
|
|
|
@@ -78,7 +78,7 @@ |
|
|
|
and tenant_id=#{tenantId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateWxPressBatchStatus" parameterType="com.iformall.domain.po.WxCouponBatchItem" > |
|
|
|
<update id="updateWxCouponBatchItemStatus" parameterType="com.iformall.domain.po.WxCouponBatchItem" > |
|
|
|
update wx_coupon_batch_item set coupon_batch_status = #{couponBatchStatus} where `coupon_batch_id` = #{couponBatchId} and tenant_id=#{tenantId} |
|
|
|
</update> |
|
|
|
|
|
|
|
|