jdbc加入批量插入转换参数rewriteBatchedStatements=true
取消修改基础service中没必要调用的代码
This commit is contained in:
@@ -45,6 +45,12 @@ public interface CrudDao<T> {
|
||||
* @return
|
||||
*/
|
||||
public int insert(T entity);
|
||||
/**
|
||||
* 批量插入数据专用,不返回id
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
public int insertForBatch(T entity);
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
|
||||
@@ -572,6 +572,13 @@
|
||||
<include refid="BaseIpCfg_Value_List" />
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertForBatch" parameterType="com.nis.domain.configuration.BaseIpCfg" >
|
||||
insert into ${tableName} (
|
||||
<include refid="BaseIpCfg_Column_List" />
|
||||
)values (
|
||||
<include refid="BaseIpCfg_Value_List" />
|
||||
)
|
||||
</insert>
|
||||
<update id="update" parameterType="com.nis.domain.configuration.BaseIpCfg" >
|
||||
update ${tableName}
|
||||
<set >
|
||||
|
||||
Reference in New Issue
Block a user