| | |
| | | param1,unit from com_sanshuo_expert |
| | | </sql> |
| | | <select id="expertShow" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO"> |
| | | select count(id) as 'count',level from com_sanshuo_expert group by level |
| | | select count(id) as 'count',level from com_sanshuo_expert where status=1 and del_flag=1 group by level |
| | | </select> |
| | | <select id="expertPage" resultType="com.panzhihua.common.model.vos.sanshuo.ComSanshuoExpertVO"> |
| | | select id,level,community_id, |
| | |
| | | create_time,create_by,update_time, |
| | | introduction,street_id,industry_center_id, |
| | | param1,unit from com_sanshuo_expert |
| | | where del_flag=0 |
| | | where del_flag=1 |
| | | <if test="keyWord != null and keyWord != ''"> |
| | | AND unit like concat('%',#{keyWord},'%') |
| | | OR name like concat('%',#{keyWord},'%') |
| | |
| | | <select id="selectExpertIndustry" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO"> |
| | | select count(t.id) as 'count',t1.name from com_sanshuo_expert t |
| | | left join com_sanshuo_industry_center t1 on t.industry_center_id=t1.id |
| | | where t.level=2 |
| | | where t.level=2 and t.status=1 and t.del_flag=1 |
| | | group by t1.name |
| | | </select> |
| | | <select id="selectExpertStreet" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO"> |
| | | select count(t.id) as 'count',t1.name from com_sanshuo_expert t |
| | | left join com_street t1 on t.street_id=t1.street_id |
| | | where t.level=3 |
| | | where t.level=3 and t.status=1 and t.del_flag=1 |
| | | group by t1.name |
| | | </select> |
| | | <select id="selectExpertCommunity" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO"> |
| | | select count(t.id) as 'count',t1.name from com_sanshuo_expert t |
| | | left join com_act t1 on t.community_id=t1.community_id |
| | | where t.level=4 |
| | | where t.level=4 and t.status=1 and t.del_flag=1 |
| | | group by t1.name |
| | | </select> |
| | | </mapper> |