| File was renamed from src/main/java/org/springblade/modules/netty/business/mapper/PoliceCarEquipmentMapper.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="org.springblade.modules.netty.business.mapper.PoliceCarEquipmentMapper"> |
| | | <mapper namespace="org.springblade.modules.netty.business.mapper.TalkBackEquipmentMapper"> |
| | | |
| | | <!--新增对讲设备信息--> |
| | | <insert id="saveTalkBackEquipment" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into sys_police_car_equipment |
| | | insert into sys_talk_back_equipment |
| | | ( |
| | | name,code,status,terminal_number,longitude,latitude, |
| | | speed,direction,elevation,precisions,receive_time,create_time,update_time |
| | |
| | | |
| | | <!--新增对接设备历史记录信息--> |
| | | <insert id="saveTalkBackEquipmentRecord"> |
| | | insert into sys_police_car_equipment_record |
| | | insert into sys_talk_back_equipment_record |
| | | ( |
| | | police_car_equipment_id,status,terminal_number, |
| | | talk_back_equipment_id,status,terminal_number, |
| | | longitude,latitude,speed,direction,elevation,precisions,receive_time,create_time |
| | | ) |
| | | values |
| | | ( |
| | | #{policeCarEquipmentId},#{status},#{terminalNumber}, |
| | | #{talkBackEquipmentId},#{status},#{terminalNumber}, |
| | | #{longitude},#{latitude},#{speed},#{direction},#{elevation},#{precisions},#{receiveTime},#{createTime} |
| | | ) |
| | | </insert> |
| | | |
| | | <!--查询设备信息--> |
| | | <select id="getTalkBackEquipment" resultType="org.springblade.modules.netty.business.entity.PoliceCarEquipment"> |
| | | select * from sys_police_car_equipment where terminal_number = #{code} |
| | | </select> |
| | | |
| | | <!--修改对讲设备信息--> |
| | | <update id="updateTalkBackEquipment"> |
| | | update sys_police_car_equipment |
| | | update sys_talk_back_equipment |
| | | set |
| | | code = #{code}, |
| | | name = #{name}, |