| | |
| | | cf.child_sector_id as childSectorId, |
| | | cf.region_id as regionId, |
| | | cf.status_id as statusId, |
| | | cf.status_name as statusName |
| | | cf.status_name as statusName, |
| | | sf.name AS ispName, |
| | | hf.name AS hostingName |
| | | FROM |
| | | company_field cf |
| | | LEFT OUTER JOIN isp_field sf ON cf.isp_id = sf.id |
| | | LEFT OUTER JOIN hosting_field hf ON cf.hosting_id = hf.id |
| | | WHERE 1=1 |
| | | <if test="name != '' and name != null"> |
| | | AND cf.name like CONCAT('%',#{name},'%') |
| | |
| | | <if test="url != '' and id != url"> |
| | | AND cf.url like CONCAT('%',#{url},'%') |
| | | </if> |
| | | ORDER BY cf.id DESC |
| | | ORDER BY cf.register_date DESC |
| | | <if test="pageSize != '' and pageSize != null"> |
| | | limit #{pageSize} offset #{page}; |
| | | </if> |