Files
biz-api-cloud-zax/pjcloud-hardware/pjcloud-hardware-biz/src/main/resources/mapper/manager/HardTerminalStatusMapper.xml
T
2026-07-30 17:06:48 +08:00

61 lines
2.3 KiB
XML

<?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.bsd.pjcloud.hard.mapper.manager.HardTerminalStatusMapper">
<insert id="upsert">
INSERT INTO hard_terminal_status (
hard_id,
last_online_time,
heartbeat_scene,
disconnect_reason,
apk_version_name,
apk_version_code,
system_uptime_seconds,
app_uptime_seconds,
network_type,
available_storage_bytes,
root_status,
device_owner,
kiosk_active,
device_status_json,
create_time,
update_time,
tenant_id
) VALUES (
#{status.hardId},
#{status.lastOnlineTime},
#{status.heartbeatScene},
#{status.disconnectReason},
#{status.apkVersionName},
#{status.apkVersionCode},
#{status.systemUptimeSeconds},
#{status.appUptimeSeconds},
#{status.networkType},
#{status.availableStorageBytes},
#{status.rootStatus},
#{status.deviceOwner},
#{status.kioskActive},
#{status.deviceStatusJson},
#{status.createTime},
#{status.updateTime},
#{status.tenantId}
)
ON DUPLICATE KEY UPDATE
last_online_time = VALUES(last_online_time),
heartbeat_scene = VALUES(heartbeat_scene),
disconnect_reason = VALUES(disconnect_reason),
apk_version_name = VALUES(apk_version_name),
apk_version_code = VALUES(apk_version_code),
system_uptime_seconds = VALUES(system_uptime_seconds),
app_uptime_seconds = VALUES(app_uptime_seconds),
network_type = VALUES(network_type),
available_storage_bytes = VALUES(available_storage_bytes),
root_status = VALUES(root_status),
device_owner = VALUES(device_owner),
kiosk_active = VALUES(kiosk_active),
device_status_json = VALUES(device_status_json),
update_time = VALUES(update_time),
tenant_id = VALUES(tenant_id)
</insert>
</mapper>