Changes between Version 4 and Version 5 of Ticket #101
- Timestamp:
- 04/23/2012 11:42:41 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #101 – Description
v4 v5 10 10 company_id bigint NOT NULL, 11 11 recommend_status integer DEFAULT 0, -- 首页的推荐商家状态... 12 last_update_date timestamp without time zone, -- 最后更新时间 12 13 CONSTRAINT ent_company_business_status_pkey PRIMARY KEY (company_id ) 13 14 ) … … 27 28 {{{ 28 29 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 set recommend_status = case when (b.TYPE<>3 AND b.VIP_RANK> 0 AND b.STATUS>=0) then 1 else 0 end, 31 last_update_date = now() 30 32 from ent_company b 31 33 where a.company_id = b.id 32 34 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 insert into ent_company_business_status(company_id, recommend_status, last_update_date) 36 select a.id, case when (a.TYPE<>3 AND a.VIP_RANK> 0 AND a.STATUS>=0) then 1 else 0 end,now() 35 37 from ent_company a 36 38 where not exists (select s.company_id from ent_company_business_status s where s.company_id = a.id)
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/global/2008/images/jss/m_logo091125.jpg)