You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
43 lines
1.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.techsor.datacenter.business.dao.ex.ApGatewayMapperExt">
|
|
|
|
|
|
<select id="getListPage" resultType="com.techsor.datacenter.business.model.ApGateway">
|
|
select
|
|
ap_gateway_id as apGatewayId,
|
|
imei as imei,
|
|
mac as mac,
|
|
create_ts as createTs,
|
|
update_ts as updateTs,
|
|
address as address,
|
|
gps as gps,
|
|
latest_heartbeat_ts as latestHeartbeatTs,
|
|
online_status as onlineStatus,
|
|
battery as battery,
|
|
offline_interval as offlineInterval,
|
|
model as model,
|
|
ack_flag as ackFlag,
|
|
flag as flag,
|
|
auth_user_id,
|
|
auth_pwd,
|
|
ip,
|
|
port
|
|
from
|
|
ap_gateway
|
|
<where>
|
|
<if test="param.imei != null and param.imei != ''">
|
|
and ap_gateway.imei like CONCAT('%',#{param.imei},'%')
|
|
</if>
|
|
<if test="param.mac != null and param.mac != ''">
|
|
and ap_gateway.mac like CONCAT('%',#{param.mac},'%')
|
|
</if>
|
|
<if test="param.onlineStstus != null">
|
|
and ap_gateway.online_status = #{param.onlineStstus}
|
|
</if>
|
|
and ap_gateway.flag = 0 and ap_gateway.company_id = #{companyId}
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</mapper>
|