| @@ -101,7 +101,7 @@ public class WxCouponBatchController extends BaseController { | |||||
| return new ResultData(order); | return new ResultData(order); | ||||
| } | } | ||||
| @ApiOperation("砍价券接口") | |||||
| @ApiOperation("券接口") | |||||
| @GetMapping("itemList") | @GetMapping("itemList") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true), | @ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true), | ||||
| @@ -9,15 +9,15 @@ public interface WxCouponBatchItemMapper extends CommonMapper<WxCouponBatchItem, | |||||
| List<WxCouponBatchItem> findList(WxCouponBatchItem record); | List<WxCouponBatchItem> findList(WxCouponBatchItem record); | ||||
| List<Long> getBatchIdList(@Param("couponIds")List<Long> couponIds,@Param("tenantId")String tenantId,@Param("pressBatchStatus")Integer pressBatchStatus); | |||||
| List<Long> getBatchIdList(@Param("couponIds")List<Long> couponIds,@Param("tenantId")String tenantId,@Param("couponBatchStatus")Integer couponBatchStatus); | |||||
| WxCouponBatchItem getById(@Param("id")Long id,@Param("tenantId")String tenantId); | WxCouponBatchItem getById(@Param("id")Long id,@Param("tenantId")String tenantId); | ||||
| void updateWxPressBatchStatus(WxCouponBatchItem record); | |||||
| void updateWxCouponBatchItemStatus(WxCouponBatchItem record); | |||||
| void deleteItem(WxCouponBatchItem record); | void deleteItem(WxCouponBatchItem record); | ||||
| void deleteAllItem(WxCouponBatchItem record); | void deleteAllItem(WxCouponBatchItem record); | ||||
| List<Long> getCouponIds(@Param("pressBatchId")Long pressBatchId,@Param("tenantId")String tenantId,@Param("pressBatchStatus")Integer pressBatchStatus); | |||||
| List<Long> getCouponIds(@Param("couponBatchId")Long pressBatchId,@Param("tenantId")String tenantId,@Param("couponBatchStatus")Integer pressBatchStatus); | |||||
| } | } | ||||
| @@ -164,7 +164,7 @@ public class WxCouponBatchServiceImpl implements WxCouponBatchService { | |||||
| item.updateTenantInfo(pressBatch); | item.updateTenantInfo(pressBatch); | ||||
| item.setCouponBatchId(pressBatch.getId()); | item.setCouponBatchId(pressBatch.getId()); | ||||
| item.setCouponBatchStatus(pressBatch.getStatus()); | item.setCouponBatchStatus(pressBatch.getStatus()); | ||||
| wxCouponBatchItemMapper.updateWxPressBatchStatus(item); | |||||
| wxCouponBatchItemMapper.updateWxCouponBatchItemStatus(item); | |||||
| } | } | ||||
| @Override | @Override | ||||
| @@ -28,16 +28,16 @@ | |||||
| and `parent_tenant_id` = #{parentTenantId} | and `parent_tenant_id` = #{parentTenantId} | ||||
| </if> | </if> | ||||
| <if test=" null != pressBatchId"> | |||||
| and `press_batch_id` = #{pressBatchId} | |||||
| <if test=" null != couponBatchId"> | |||||
| and `coupon_batch_id` = #{couponBatchId} | |||||
| </if> | </if> | ||||
| <if test=" null != couponId"> | <if test=" null != couponId"> | ||||
| and `coupon_id` = #{couponId} | and `coupon_id` = #{couponId} | ||||
| </if> | </if> | ||||
| <if test=" null != pressBatchStatus"> | |||||
| and `press_batch_status` = #{pressBatchStatus} | |||||
| <if test=" null != couponBatchStatus"> | |||||
| and `coupon_batch_status` = #{couponBatchStatus} | |||||
| </if> | </if> | ||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| @@ -59,7 +59,7 @@ | |||||
| <select id="getBatchIdList" parameterType="java.util.HashMap" resultType="Long"> | <select id="getBatchIdList" parameterType="java.util.HashMap" resultType="Long"> | ||||
| select distinct coupon_batch_id from wx_coupon_batch_item where `tenant_id` = #{tenantId} | 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} | and `coupon_batch_status` = #{couponBatchStatus} | ||||
| </if> | </if> | ||||
| <if test=" null != couponIds "> | <if test=" null != couponIds "> | ||||
| @@ -78,7 +78,7 @@ | |||||
| and tenant_id=#{tenantId} | and tenant_id=#{tenantId} | ||||
| </select> | </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 wx_coupon_batch_item set coupon_batch_status = #{couponBatchStatus} where `coupon_batch_id` = #{couponBatchId} and tenant_id=#{tenantId} | ||||
| </update> | </update> | ||||