From d5d0947e300f8851d5ea31e58cf610e29bee9743 Mon Sep 17 00:00:00 2001 From: lvys Date: Fri, 28 Feb 2025 19:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=82=B9=E4=BD=8D=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../large/DklSecurityEquipmentMapper.xml | 152 ++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 Dkl-Vue-master/dkl-large/src/main/resources/mapper/large/DklSecurityEquipmentMapper.xml diff --git a/Dkl-Vue-master/dkl-large/src/main/resources/mapper/large/DklSecurityEquipmentMapper.xml b/Dkl-Vue-master/dkl-large/src/main/resources/mapper/large/DklSecurityEquipmentMapper.xml new file mode 100644 index 0000000..8536855 --- /dev/null +++ b/Dkl-Vue-master/dkl-large/src/main/resources/mapper/large/DklSecurityEquipmentMapper.xml @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select dsp.id, dsp.device_name, dsp.model, dsp.installation_position, dsp.buy_time, dsp.price, dsp.maintenance_cycle, dsp.last_maintenance_time, dsp.maintenance_situation, dsp.maintenance_personnel, dsp.state, dsp.remark, + dsp.monitoring_points_id, dsp.create_by, dsp.create_time, dsp.update_by, dsp.update_time, dsp.del_flag, dsp.dept_id,dsp.sigen_code, + dmp.lng, dmp.lat, dmp.point_name AS pointName, dmp.point_address + from dkl_security_equipment dsp + Left join sys_dept d on dsp.dept_id = d.dept_id + Left Join dkl_monitoring_points dmp on dmp.id = dsp.monitoring_points_id + + + + + + + + insert into dkl_security_equipment + + id, + device_name, + model, + installation_position, + buy_time, + price, + maintenance_cycle, + last_maintenance_time, + maintenance_situation, + maintenance_personnel, + state, + remark, + monitoring_points_id, + create_by, + create_time, + update_by, + update_time, + del_flag, + dept_id, + sigen_code, + + + #{id}, + #{deviceName}, + #{model}, + #{installationPosition}, + #{buyTime}, + #{price}, + #{maintenanceCycle}, + #{lastMaintenanceTime}, + #{maintenanceSituation}, + #{maintenancePersonnel}, + #{state}, + #{remark}, + #{monitoringPointsId}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + #{deptId}, + #{sigenCode}, + + + + + update dkl_security_equipment + + device_name = #{deviceName}, + model = #{model}, + installation_position = #{installationPosition}, + buy_time = #{buyTime}, + price = #{price}, + maintenance_cycle = #{maintenanceCycle}, + last_maintenance_time = #{lastMaintenanceTime}, + maintenance_situation = #{maintenanceSituation}, + maintenance_personnel = #{maintenancePersonnel}, + state = #{state}, + remark = #{remark}, + monitoring_points_id = #{monitoringPointsId}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + dept_id = #{deptId}, + sigen_code = #{sigenCode}, + + where id = #{id} + + + + delete from dkl_security_equipment where id = #{id} + + + + delete from dkl_security_equipment where id in + + #{id} + + +