| | |
| | | LEFT JOIN userroles as c on b.id = c.userid |
| | | left join company as co on a.checked_company_id = co.id |
| | | where a.valid_flag = 1 |
| | | <if test="params.flag != null and params.flag != '' "> |
| | | <if test="params.flag != null and params.flag != '' "> |
| | | and a.flag = #{params.flag} |
| | | </if> |
| | | <if test="params.inspectionName != null and params.inspectionName != ''"> |
| | |
| | | <if test="params.checkedCompanyId != null"> |
| | | and a.checked_company_id = #{params.checkedCompanyId} |
| | | </if> |
| | | <if test="params.checkedCompanyName != null and params.checkedCompanyName != ''"> |
| | | and a.checked_company_name like concat("%",#{params.checkedCompanyName},"%") |
| | | </if> |
| | | <if test="params.roleid != null "> |
| | | and c.roleid = #{params.roleid} |
| | | </if> |