123456789101112131415161718192021222324252627282930313233343536 |
- <?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.huimv.management.dao.TransferPeriodLogDao">
- <!-- 可根据自己的需求,是否要使用 -->
- <resultMap type="com.huimv.management.entity.TransferPeriodLogEntity" id="transferPeriodLogMap">
- <result property="id" column="id"/>
- <result property="earTag" column="ear_tag"/>
- <result property="oldPeriod" column="old_period"/>
- <result property="newPeriod" column="new_period"/>
- <result property="oldUnit" column="old_unit"/>
- <result property="newUnit" column="new_unit"/>
- <result property="gmtCreate" column="gmt_create"/>
- <result property="gmtModified" column="gmt_modified"/>
- <result property="operatorUsername" column="operator_username"/>
- </resultMap>
- <insert id="batchInsert">
- INSERT INTO mgt_transfer_period_log(ear_tag, old_period, new_period, old_unit, new_unit, gmt_create, gmt_modified, operator_username) VALUES
- <foreach collection="list" item="item" separator=",">
- (
- #{item.earTag},
- #{item.oldPeriod},
- #{item.newPeriod},
- #{item.oldUnit},
- #{item.newUnit},
- now(),
- now(),
- #{item.operatorUsername}
- )
- </foreach>
- </insert>
- </mapper>
|