mapInfo批量插入添加version字段
This commit is contained in:
parent
d266d3a6bc
commit
8fccb0b712
@ -17,12 +17,13 @@ public interface MapInfoDAO extends MyBatisBaseDao<MapInfo, Long, MapInfoExample
|
||||
@Insert(value = "<script>" +
|
||||
" insert into map_info (id, `name`, line_code, city_code, \n" +
|
||||
" `status`, project, project_code, \n" +
|
||||
" draw_way, order_number)\n" +
|
||||
" draw_way, order_number, version)\n" +
|
||||
" values " +
|
||||
" <foreach collection=\"list\" item=\"entity\" separator=\",\"> " +
|
||||
" (#{entity.id,jdbcType=BIGINT}, #{entity.name,jdbcType=VARCHAR}, #{entity.lineCode,jdbcType=VARCHAR}," +
|
||||
" #{entity.cityCode,jdbcType=VARCHAR}, #{entity.status,jdbcType=VARCHAR}, #{entity.project,jdbcType=BIT}," +
|
||||
" #{entity.projectCode,jdbcType=VARCHAR}, #{entity.drawWay,jdbcType=BIT}, #{entity.orderNumber,jdbcType=INTEGER})" +
|
||||
" #{entity.projectCode,jdbcType=VARCHAR}, #{entity.drawWay,jdbcType=BIT}, #{entity.orderNumber,jdbcType=INTEGER}," +
|
||||
" #{entity.version,jdbcType=VARCHAR})" +
|
||||
" </foreach>" +
|
||||
"</script>")
|
||||
int batchInsertWithId(@Param("list") List<MapInfo> mapInfoList);
|
||||
|
Loading…
Reference in New Issue
Block a user