<iftest="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
<iftest="beyondEnterpriseName != null and beyondEnterpriseName != ''"> and beyond_enterprise_name like concat('%', #{beyondEnterpriseName}, '%')</if>
<iftest="beyondEnterpriseId != null and beyondEnterpriseId != '' and beyondEnterpriseId != '-2'"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<iftest="userType != null and userType != ''"> and user_type = #{userType}</if>
<iftest="gasType != null and gasType != ''"> and gas_type = #{gasType}</if>
<iftest="villageName != null and villageName != ''"> and village_name like concat('%', #{villageName}, '%')</if>
<iftest="address != null and address != ''"> and address = #{address}</if>
<iftest="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
<iftest="phone != null and phone != ''"> and phone = #{phone}</if>
<iftest="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
<iftest="errorMsg != null and errorMsg != ''"> and error_msg = #{errorMsg}</if>
@@ -55,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.enterprise_name,a.f_village_id,v.f_village_name
from t_detector_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
left join t_user_manage_village v on a.f_village_id=v.f_village_id
<where> a.is_del = '0'
<where> a.is_del = '0' and a.error_msg is null
<iftest="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<iftest="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<iftest="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
...
...
@@ -85,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.enterprise_name,a.f_village_id,v.f_village_name
from t_detector_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
left join t_user_manage_village v on a.f_village_id=v.f_village_id
<where> a.is_del = '0'
<where> a.is_del = '0' and a.error_msg is null
<iftest="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<iftest="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<iftest="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
...
...
@@ -117,7 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE task_id = #{taskId} GROUP BY receive_id) t1
LEFT JOIN t_work_task_inspect t ON t1.inId = t.inspect_id
) inspect ON inspect.receive_id = a.user_id
<where> a.is_del = '0'
<where> a.is_del = '0' and a.error_msg is null
<iftest="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<iftest="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<iftest="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
...
...
@@ -131,7 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"