xml 配置
<insert id="insertGuild" parameterType="com.dayang.dubbo.DTO.GuildDTO">
insert into PieceWages.dbo.guild (employee_code,guildName,guildYear,guildMonth,guildGuild,empCodes,fd_id,isTure)
VALUES
<foreach item="item" index="index" collection="list" separator=",">
(#{
item.employee_code},#{
item.guildName},#{
item.guildYear},#{
item.guildMonth},#{
item.guildGuild},#{
item.empCodes},#{
item.fd_id},#{
item.isTure})
</foreach>
</insert>
mapper 配置