Merge remote-tracking branch 'origin/huacheng_test' into huacheng_test
| | |
| | | return comSanShuoExpertService.expertPage(keyWord,page,size,loginUserInfo,level); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | * */ |
| | |
| | | } |
| | | } |
| | | } |
| | | if (loginUserInfo.getAccount().equals("admin") || loginUserInfo.getAccount().equals("xiqu")){ |
| | | if (loginUserInfo.getAccount().equals("admin") && isNull(level)){ |
| | | id=null; |
| | | range=null; |
| | | range=1; |
| | | } |
| | | IPage<ComSanshuoExpertVO> comSanshuoExpertVOIPage = comSanshuoExpertDao.expertPage(new Page(page, size), keyWord, range, id, level); |
| | | for (ComSanshuoExpertVO record : comSanshuoExpertVOIPage.getRecords()) { |
| | |
| | | OR name like concat('%',#{keyWord},'%') |
| | | OR phone like concat('%',#{keyWord},'%') |
| | | </if> |
| | | <if test="level != null "> |
| | | AND level=#{level} |
| | | </if> |
| | | <if test="range != null and range != ''"> |
| | | <if test="range == 3"> |
| | | AND street_id=#{id} |
| | |
| | | <if test="range == 2"> |
| | | AND industry_center_id=#{id} |
| | | </if> |
| | | <if test="range == 1"> |
| | | AND level=1 |
| | | </if> |
| | | </if> |
| | | <if test="level != null "> |
| | | AND level=#{level} |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="selectExpertIndustry" resultType="com.panzhihua.common.model.vos.sanshuo.ExpertShowVO"> |
| | | select count(t.id) as 'count',t1.name,t1.id from com_sanshuo_expert t |