From 4e524a812850c29e272cca3d003ce13001c9b38b Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 7 May 2026 14:36:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9sql=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../camera/mapper/xml/CameraInfoMapper.xml | 37 +++++-------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/nursing-unit-iot/nu-iot-biz/src/main/java/com/nu/modules/tplink/camera/mapper/xml/CameraInfoMapper.xml b/nursing-unit-iot/nu-iot-biz/src/main/java/com/nu/modules/tplink/camera/mapper/xml/CameraInfoMapper.xml index 3754c2b9..a633c27b 100644 --- a/nursing-unit-iot/nu-iot-biz/src/main/java/com/nu/modules/tplink/camera/mapper/xml/CameraInfoMapper.xml +++ b/nursing-unit-iot/nu-iot-biz/src/main/java/com/nu/modules/tplink/camera/mapper/xml/CameraInfoMapper.xml @@ -133,34 +133,15 @@ -- nu_id as nuId, -- a.channel -- from nu_iot_tplink_camera a - select a.id, - a.device_index as deviceIndex, - b.device_name as deviceName, - b.device_type as deviceType, - a.device_status as deviceStatus, - b.device_model as deviceModel, - a.ip as ip, - a.mac as mac, - a.region_id as regionId, - a.region_name as regionName, - a.parent_id as parentId, - a.parent_device_name as parentDeviceName, - a.project_id as projectId, - a.project_name as projectName, - a.firmware_ver as firmwareVer, - a.hardware_ver as hardwareVer, - a.manager_auth_type as managerAuthType, - a.msg_auth_type as msgAuthType, - a.sip_code as sipCode, - a.location_name as locationName, - a.system_type as systemType, - a.protocol as protocol, - a.record_plan_id as recordPlanId, - b.nu_id as nuId, - a.channel - from nu_iot_tplink_camera a - inner join nu_iot_device_preview b on a.mac = b.sn - where b.device_status != '损坏' + select a.*, + b.device_name as deviceName, + b.device_type as deviceType, + a.device_status as deviceStatus, + b.device_model as deviceModel, + b.nu_id as nuId + from nu_iot_tplink_camera a + inner join nu_iot_device_preview b on a.mac = b.sn + where b.device_status != '损坏' - select id, - name, - sex, - national, - head_path, - id_card, - tel, - entry_time, - post_level, - date_of_birth, - married_or_not, - wages, - CONCAT(height, '') as height, - CONCAT(weight, '') as weight, - address, - is_smoking, - health_status, - house_address, - political_appearance, - emergency_contact, - emergency_tel, - emergency_relationship, - hukou_nature, - content, - id_card_positive, - id_card_negative, - contract_positive, - contract_negative, - health_certificate_positive, - health_certificate_negative, - bank_positive, - bank_negative, - qualification, - no_crime_certificate, - regional, - service_tag, - del_flag, - create_by, - create_time, - update_by, - update_time, - sys_org_code, - open_id, - iz_online, - iz_freeze, - opening_bank, - bank_card, - iz_invited, - modify_status, - start_time, - end_time, - current_address, - order_cap + select * from nu_biz_employees_info where id = #{id}