zhangfeng
2023-07-26 dd59c95e87ba585c4e3e2f059e218853784402e5
src/main/java/com/gk/hotwork/Mapper/mybatis/SafetySelfInspectionMapper.xml
@@ -27,7 +27,7 @@
    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 != ''">
@@ -36,6 +36,9 @@
    <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>