You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

<?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.yingji.mapper.FireMapper">
<insert id="saveAll">
INSERT IGNORE INTO `fire`(
id, xzqh, ajbh, ajms, gdsj, jjyxm, sjc, wd, jd, bcxx, jssj, afdz, cdsj, lafsdm, topic, xdsj, lasj, xzqhmc,
ddxcsj, create_time
) VALUES
<foreach collection="list" item="item" index="index" separator=",">
(#{item.id}, #{item.xzqh}, #{item.ajbh}, #{item.ajms}, #{item.gdsj}, #{item.jjyxm}, #{item.sjc}, #{item.wd},
#{item.jd}, #{item.bcxx}, #{item.jssj}, #{item.afdz},
#{item.cdsj}, #{item.lafsdm}, #{item.topic}, #{item.xdsj}, #{item.lasj}, #{item.xzqhmc}, #{item.ddxcsj},
#{item.createTime})
</foreach>
</insert>
<select id="findNewTime" resultType="java.time.LocalDateTime">
select create_time
from fire
order by create_time desc
limit 1
</select>
</mapper>