|
|
@ -24,6 +24,8 @@ |
|
|
<result column="downlink_id" jdbcType="VARCHAR" property="downlinkId" /> |
|
|
<result column="downlink_id" jdbcType="VARCHAR" property="downlinkId" /> |
|
|
<result column="auth_user_id" jdbcType="VARCHAR" property="authUserId" /> |
|
|
<result column="auth_user_id" jdbcType="VARCHAR" property="authUserId" /> |
|
|
<result column="auth_pwd" jdbcType="VARCHAR" property="authPwd" /> |
|
|
<result column="auth_pwd" jdbcType="VARCHAR" property="authPwd" /> |
|
|
|
|
|
<result column="ip" jdbcType="VARCHAR" property="ip" /> |
|
|
|
|
|
<result column="port" jdbcType="INTEGER" property="port" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -98,7 +100,7 @@ |
|
|
--> |
|
|
--> |
|
|
ap_gateway_id, model, imei, mac, create_ts, update_ts, address, gps, latest_heartbeat_ts, |
|
|
ap_gateway_id, model, imei, mac, create_ts, update_ts, address, gps, latest_heartbeat_ts, |
|
|
online_status, battery, flag, company_id, offline_interval, ack_flag, downlink_id, |
|
|
online_status, battery, flag, company_id, offline_interval, ack_flag, downlink_id, |
|
|
auth_user_id, auth_pwd |
|
|
auth_user_id, auth_pwd, ip, port |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.ApGatewayExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.ApGatewayExample" resultMap="BaseResultMap"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -160,13 +162,15 @@ |
|
|
gps, latest_heartbeat_ts, online_status, |
|
|
gps, latest_heartbeat_ts, online_status, |
|
|
battery, flag, company_id, |
|
|
battery, flag, company_id, |
|
|
offline_interval, ack_flag, downlink_id, |
|
|
offline_interval, ack_flag, downlink_id, |
|
|
auth_user_id, auth_pwd) |
|
|
auth_user_id, auth_pwd, ip, |
|
|
|
|
|
port) |
|
|
values (#{model,jdbcType=VARCHAR}, #{imei,jdbcType=VARCHAR}, #{mac,jdbcType=VARCHAR}, |
|
|
values (#{model,jdbcType=VARCHAR}, #{imei,jdbcType=VARCHAR}, #{mac,jdbcType=VARCHAR}, |
|
|
#{createTs,jdbcType=BIGINT}, #{updateTs,jdbcType=BIGINT}, #{address,jdbcType=VARCHAR}, |
|
|
#{createTs,jdbcType=BIGINT}, #{updateTs,jdbcType=BIGINT}, #{address,jdbcType=VARCHAR}, |
|
|
#{gps,jdbcType=VARCHAR}, #{latestHeartbeatTs,jdbcType=BIGINT}, #{onlineStatus,jdbcType=INTEGER}, |
|
|
#{gps,jdbcType=VARCHAR}, #{latestHeartbeatTs,jdbcType=BIGINT}, #{onlineStatus,jdbcType=INTEGER}, |
|
|
#{battery,jdbcType=DECIMAL}, #{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, |
|
|
#{battery,jdbcType=DECIMAL}, #{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, |
|
|
#{offlineInterval,jdbcType=INTEGER}, #{ackFlag,jdbcType=INTEGER}, #{downlinkId,jdbcType=VARCHAR}, |
|
|
#{offlineInterval,jdbcType=INTEGER}, #{ackFlag,jdbcType=INTEGER}, #{downlinkId,jdbcType=VARCHAR}, |
|
|
#{authUserId,jdbcType=VARCHAR}, #{authPwd,jdbcType=VARCHAR}) |
|
|
#{authUserId,jdbcType=VARCHAR}, #{authPwd,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, |
|
|
|
|
|
#{port,jdbcType=INTEGER}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.ApGateway"> |
|
|
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.ApGateway"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -229,6 +233,12 @@ |
|
|
<if test="authPwd != null"> |
|
|
<if test="authPwd != null"> |
|
|
auth_pwd, |
|
|
auth_pwd, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="ip != null"> |
|
|
|
|
|
ip, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="port != null"> |
|
|
|
|
|
port, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="model != null"> |
|
|
<if test="model != null"> |
|
|
@ -282,6 +292,12 @@ |
|
|
<if test="authPwd != null"> |
|
|
<if test="authPwd != null"> |
|
|
#{authPwd,jdbcType=VARCHAR}, |
|
|
#{authPwd,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="ip != null"> |
|
|
|
|
|
#{ip,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="port != null"> |
|
|
|
|
|
#{port,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.techsor.datacenter.business.model.ApGatewayExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.techsor.datacenter.business.model.ApGatewayExample" resultType="java.lang.Long"> |
|
|
@ -355,6 +371,12 @@ |
|
|
<if test="record.authPwd != null"> |
|
|
<if test="record.authPwd != null"> |
|
|
auth_pwd = #{record.authPwd,jdbcType=VARCHAR}, |
|
|
auth_pwd = #{record.authPwd,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.ip != null"> |
|
|
|
|
|
ip = #{record.ip,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.port != null"> |
|
|
|
|
|
port = #{record.port,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -383,7 +405,9 @@ |
|
|
ack_flag = #{record.ackFlag,jdbcType=INTEGER}, |
|
|
ack_flag = #{record.ackFlag,jdbcType=INTEGER}, |
|
|
downlink_id = #{record.downlinkId,jdbcType=VARCHAR}, |
|
|
downlink_id = #{record.downlinkId,jdbcType=VARCHAR}, |
|
|
auth_user_id = #{record.authUserId,jdbcType=VARCHAR}, |
|
|
auth_user_id = #{record.authUserId,jdbcType=VARCHAR}, |
|
|
auth_pwd = #{record.authPwd,jdbcType=VARCHAR} |
|
|
auth_pwd = #{record.authPwd,jdbcType=VARCHAR}, |
|
|
|
|
|
ip = #{record.ip,jdbcType=VARCHAR}, |
|
|
|
|
|
port = #{record.port,jdbcType=INTEGER} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -446,6 +470,12 @@ |
|
|
<if test="authPwd != null"> |
|
|
<if test="authPwd != null"> |
|
|
auth_pwd = #{authPwd,jdbcType=VARCHAR}, |
|
|
auth_pwd = #{authPwd,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="ip != null"> |
|
|
|
|
|
ip = #{ip,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="port != null"> |
|
|
|
|
|
port = #{port,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where ap_gateway_id = #{apGatewayId,jdbcType=BIGINT} |
|
|
where ap_gateway_id = #{apGatewayId,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
@ -471,7 +501,9 @@ |
|
|
ack_flag = #{ackFlag,jdbcType=INTEGER}, |
|
|
ack_flag = #{ackFlag,jdbcType=INTEGER}, |
|
|
downlink_id = #{downlinkId,jdbcType=VARCHAR}, |
|
|
downlink_id = #{downlinkId,jdbcType=VARCHAR}, |
|
|
auth_user_id = #{authUserId,jdbcType=VARCHAR}, |
|
|
auth_user_id = #{authUserId,jdbcType=VARCHAR}, |
|
|
auth_pwd = #{authPwd,jdbcType=VARCHAR} |
|
|
auth_pwd = #{authPwd,jdbcType=VARCHAR}, |
|
|
|
|
|
ip = #{ip,jdbcType=VARCHAR}, |
|
|
|
|
|
port = #{port,jdbcType=INTEGER} |
|
|
where ap_gateway_id = #{apGatewayId,jdbcType=BIGINT} |
|
|
where ap_gateway_id = #{apGatewayId,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |