|
|
@@ -132,12 +132,13 @@
|
|
|
select *
|
|
|
from (select a.id,b.nickname name,c.bname projectName,a.`type` ,ad.name userAdmin,ad2.name adminName,a.lock_time lockTime,
|
|
|
a.last_follow_time lastFollowTime,a.uid, b.society_tag societyTag,dg1.name as province, dg2.name as city,
|
|
|
- dg3.name as area,d.intended_project intendedProject, d.business_scope businessScope,a.pid,
|
|
|
+ dg3.name as area,d.intended_project intendedProject, d.business_scope businessScope,a.pid,ic.name industry,
|
|
|
(if(a.type=1,30,270) -DATEDIFF(now(),if(a.last_follow_time>a.lock_time,a.last_follow_time,a.lock_time)))days
|
|
|
from restrict_project a
|
|
|
left join user b on a.uid =b.id left join business_project c on a.pid =c.id
|
|
|
left join admin ad on b.aid =ad.id left join admin ad2 on a.aid =ad2.id
|
|
|
left join organization_identity d on b.id = d.uid
|
|
|
+ left join industry_category ic on d.industry=ic.id
|
|
|
left join district_glossory dg1 on d.location_province = dg1.id
|
|
|
left join district_glossory dg2 on d.location_city = dg2.id
|
|
|
left join district_glossory dg3 on d.location_area = dg3.id
|