@@ -132,7 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -132,7 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join t_user_manage_village v on a.f_village_id=v.f_village_id
left join t_user_manage_village v on a.f_village_id=v.f_village_id
left join t_gasuser_safety_device_info deviceInfo on a.user_id = deviceInfo.f_relation_gasUser_id
left join t_gasuser_safety_device_info deviceInfo on a.user_id = deviceInfo.f_relation_gasUser_id
<where> a.is_del = '0' and a.error_msg is null
<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="beyondEnterpriseId != null and beyondEnterpriseId != '-2'"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<iftest="gasType != null and gasType == 1"> and a.gas_type =#{gasType}</if>
<iftest="gasType != null and gasType == 1"> and a.gas_type =#{gasType}</if>
<iftest="gasType != null and gasType == 0"> and (a.gas_type =#{gasType} or a.gas_type is null)</if>
<iftest="gasType != null and gasType == 0"> and (a.gas_type =#{gasType} or a.gas_type is null)</if>
<iftest="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<iftest="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
...
@@ -164,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -164,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from t_detector_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
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
left join t_user_manage_village v on a.f_village_id=v.f_village_id
<where> a.is_del = '0' and a.error_msg is null
<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="beyondEnterpriseId != null and beyondEnterpriseId != '-2'"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<iftest="gasType != null and gasType == 1"> and a.gas_type =#{gasType}</if>
<iftest="gasType != null and gasType == 1"> and a.gas_type =#{gasType}</if>
<iftest="gasType != null and gasType == 0"> and (a.gas_type =#{gasType} or a.gas_type is null)</if>
<iftest="gasType != null and gasType == 0"> and (a.gas_type =#{gasType} or a.gas_type is null)</if>
<iftest="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<iftest="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
...
@@ -196,7 +196,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -196,7 +196,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from t_detector_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
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
left join t_user_manage_village v on a.f_village_id=v.f_village_id
<where> a.is_del = '0' and a.error_msg is null
<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="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="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>
<iftest="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
<iftest="isInspect != null and isInspect == 0">
<iftest="isInspect != null and isInspect == 0">
...
@@ -228,7 +228,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -228,7 +228,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN t_work_task_inspect t ON t1.inId = t.inspect_id
LEFT JOIN t_work_task_inspect t ON t1.inId = t.inspect_id
) inspect ON inspect.receive_id = a.user_id
) inspect ON inspect.receive_id = a.user_id
<where> a.is_del = '0' and a.error_msg is null
<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="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="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>
<iftest="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
</where>
</where>
...
@@ -653,7 +653,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -653,7 +653,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
)recent ON a.user_id = recent.receive_id
)recent ON a.user_id = recent.receive_id
LEFT JOIN t_line_patrol_person person ON person.person_id = recent.member_id
LEFT JOIN t_line_patrol_person person ON person.person_id = recent.member_id
<where> a.is_del = '0' and a.error_msg is null
<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="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="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<iftest="nickName != null and nickName != ''"> and a.nick_name like concat('%', #{nickName}, '%')</if>
<iftest="nickName != null and nickName != ''"> and a.nick_name like concat('%', #{nickName}, '%')</if>
<iftest="linkman != null and linkman != ''"> and a.linkman = #{linkman}</if>
<iftest="linkman != null and linkman != ''"> and a.linkman = #{linkman}</if>
@@ -95,7 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -95,7 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from t_yehuaqi_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
from t_yehuaqi_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
left join t_user_manage_village v on a.f_village_id=v.f_village_id
<where> a.is_del = '0' and a.error_msg is null
<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="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="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>
<iftest="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
</where>
</where>
...
@@ -169,7 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -169,7 +169,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join t_user_manage_village v on a.f_village_id=v.f_village_id
left join t_user_manage_village v on a.f_village_id=v.f_village_id
left join t_yehuaqiuser_safety_device_info deviceInfo on a.user_id = deviceInfo.f_relation_user_id
left join t_yehuaqiuser_safety_device_info deviceInfo on a.user_id = deviceInfo.f_relation_user_id
<where> a.is_del = '0' and a.error_msg is null
<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="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="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>
<iftest="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>