Changes between Version 3 and Version 4 of Ticket #101
- Timestamp:
- 04/23/2012 11:10:25 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #101 – Description
v3 v4 23 23 ent_company.TYPE<>Company.TYPE_STORE(<>3,非网店) AND ent_company.VIP_RANK> Company.VIP_RANK_FREE(>0,非免费商家) AND ent_company.STATUS>=Company.STATUS_NO_AUDIT(>=0,非禁用或者删除商家)'; 24 24 }}} 25 26 定时任务: 27 {{{ 28 update ent_company_business_status a 29 set recommend_status = case when (b.TYPE<>3 AND b.VIP_RANK> 0 AND b.STATUS>=0) then 1 else 0 end 30 from ent_company b 31 where a.company_id = b.id 32 33 insert into ent_company_business_status 34 select a.id, case when (a.TYPE<>3 AND a.VIP_RANK> 0 AND a.STATUS>=0) then 1 else 0 end 35 from ent_company a 36 where not exists (select s.company_id from ent_company_business_status s where s.company_id = a.id) 37 38 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/global/2008/images/jss/m_logo091125.jpg)