Просмотр исходного кода

[C端][修改]:券详情返回频道号

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
31040128c4
4 измененных файлов: 2 добавлений и 32 удалений
  1. +0
    -1
      mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCouponService.java
  3. +0
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java
  4. +1
    -26
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 0
- 1
mallinkService/src/main/java/com/iformall/mapper/WxCouponMapper.java Просмотреть файл

@@ -12,7 +12,6 @@ public interface WxCouponMapper extends CommonMapper<WxCoupon, Long> {
List<WxCoupon> findList(WxCoupon wxCoupon);

WxCouponCVo selectDetailForCUser(WxCouponChannel wxCouponChannel);
WxCouponCVo selectDetailForCUserC(WxCoupon wxCoupon);

void reduceInventory(@Param("id")Long id,@Param("number")Integer number);


+ 1
- 1
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);


+ 0
- 4
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


+ 1
- 26
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
</sql>


@@ -243,31 +243,6 @@
</select>


<sql id="allCUserColumns2">
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
</sql>
<select id="selectDetailForCUserC" parameterType="com.iformall.domain.po.WxCoupon" resultMap="CUserResultMap">
select
<include refid="allCUserColumns2"/>
from
wx_coupon c,wx_merchant m
left join wx_merchant_shop ms on ms.merchant_id = m.id and ms.is_del = 0
left join wx_shop s on ms.shop_id = s.id
left join wx_mall_building mb on s.building = mb.id
left join wx_mall_floor mf on s.floor = mf.id
where c.merchant_id = m.id
<if test=" null != id ">
and c.id = #{id}
</if>
<if test=" null != tenantId ">
and c.tenant_id = #{tenantId}
</if>

</select>

<update id="reduceInventory">
update wx_coupon SET remain_inventory = remain_inventory - #{number} where id = #{id} and remain_inventory>= #{number}
</update>


Загрузка…
Отмена
Сохранить