diff --git a/mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java b/mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java index ec1641cb9..129fd9548 100644 --- a/mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java +++ b/mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java @@ -12,7 +12,6 @@ public interface WxCouponMapper extends CommonMapper { List findList(WxCoupon wxCoupon); WxCouponCVo selectDetailForCUser(WxCouponChannel wxCouponChannel); - WxCouponCVo selectDetailForCUserC(WxCoupon wxCoupon); void reduceInventory(@Param("id")Long id,@Param("number")Integer number); diff --git a/mallinkService/src/main/java/com/iformall/service/WxCouponService.java b/mallinkService/src/main/java/com/iformall/service/WxCouponService.java index ed0bf719e..99cd5a2f0 100644 --- a/mallinkService/src/main/java/com/iformall/service/WxCouponService.java +++ b/mallinkService/src/main/java/com/iformall/service/WxCouponService.java @@ -50,7 +50,7 @@ public interface WxCouponService { void deleteById(Long id); WxCouponCVo selectDetailForCUser(WxCouponChannel record); - WxCouponCVo selectDetailForCUser(WxCoupon record); + ResultData updateCoupon(WxCoupon wxCoupon); void reduceInventory(Long id,Integer number); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java index 2615bf876..2de402544 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java @@ -72,10 +72,6 @@ public class WxCouponServiceImpl implements WxCouponService { public WxCouponCVo selectDetailForCUser(WxCouponChannel record) { return wxCouponMapper.selectDetailForCUser(record); } - @Override - public WxCouponCVo selectDetailForCUser(WxCoupon record) { - return wxCouponMapper.selectDetailForCUserC(record); - } @Override @Transactional diff --git a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml index 8ec0c566f..ef1cf4705 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml @@ -213,7 +213,7 @@ m.img_url,m.name,m.link_phone,m.status, s.addr,s.shop_number,s.baidu_poi, mb.building_name,mf.floor_name, - cc.id,cc.coupon_id,cc.begin_time,cc.end_time + cc.id,cc.coupon_id,cc.target_ad,cc.begin_time,cc.end_time @@ -243,31 +243,6 @@ - - c.tenant_id,c.merchant_id,c.type,c.cover_img,c.title,c.sub_title,c.sale_price,c.use_price,c.use_limit_quantity,c.target_ad,c.send_type,c.valid_type,c.valid_start_date,c.valid_end_date,c.valid_days,c.detail,c.price,c.unit,c.remain_inventory,c.inventory,c.remark,c.status,c.create_date,c.update_date,c.business, - m.img_url,m.name,m.link_phone,m.status, - s.addr,s.shop_number,s.baidu_poi, - mb.building_name,mf.floor_name - - - update wx_coupon SET remain_inventory = remain_inventory - #{number} where id = #{id} and remain_inventory>= #{number}