| | |
| | | |
| | | <result column="inspection_name" property="inspectionName" jdbcType="BIGINT" /> |
| | | <result column="inspection_time" property="inspectionTime" jdbcType="BIGINT" /> |
| | | <result column="inspector" property="inspector" jdbcType="VARCHAR" /> |
| | | <result column="inspector" property="inspector" jdbcType="BIGINT" /> |
| | | <result column="status" property="status" jdbcType="VARCHAR" /> |
| | | <result column="inspector_name" property="inspectorName" jdbcType="VARCHAR" /> |
| | | |
| | |
| | | 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 != '' "> |
| | | and a.flag = #{params.flag} |
| | | </if> |
| | | <if test="params.inspectionName != null and params.inspectionName != ''"> |
| | | and a.inspection_name like concat("%",#{params.inspectionName},"%") |
| | | </if> |
| | | <if test="params.companyid != null and params.companyid != ''"> |
| | | and b.companyid = #{params.companyid} |
| | | </if> |
| | | <if test="params.checkedCompanyId != null"> |
| | | and b.checkedCompanyId = #{params.checkedCompanyId} |
| | | and a.checked_company_id = #{params.checkedCompanyId} |
| | | </if> |
| | | <if test="params.roleid != null "> |
| | | and c.roleid = #{params.roleid} |