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

[投放渠道][修改]:投放渠道开始结束时间数据清理

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
2aa062f02f
1 измененных файлов: 2 добавлений и 0 удалений
  1. +2
    -0
      mallinkAdmin/src/main/resources/db/migration/V201905091750__CHANGE_COUPON_CHANNEL.sql

+ 2
- 0
mallinkAdmin/src/main/resources/db/migration/V201905091750__CHANGE_COUPON_CHANNEL.sql Просмотреть файл

@@ -0,0 +1,2 @@
update wx_coupon_channel set begin_time = create_date where begin_time is null;
update wx_coupon_channel co, wx_coupon c set co.end_time = c.valid_end_date where co.target_ad != 2 and co.target_ad != 8 and co.coupon_id = c.id and c.valid_type = 1 and co.end_time is null;

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