(1)ip管控提交
(2)delRow.tag修改,删除的时候将编译ID也传过去 (3)配置取消修改,请求应当是put请求
This commit is contained in:
@@ -126,13 +126,13 @@ public abstract class CrudService<D extends CrudDao<T>, T extends BaseEntity<T>>
|
||||
* @exception
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public void saveIpBatch(List<BaseIpCfg> areaIpCfgs) {
|
||||
public void saveIpBatch(List<AreaIpCfg> areaIpCfgs) {
|
||||
SqlSessionFactory sqlSessionFactory=SpringContextHolder.getBean(SqlSessionFactory.class);
|
||||
SqlSession batchSqlSession = null;
|
||||
try{
|
||||
batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false);
|
||||
for(int index = 0; index < areaIpCfgs.size();index++){
|
||||
BaseIpCfg t = areaIpCfgs.get(index);
|
||||
AreaIpCfg t = areaIpCfgs.get(index);
|
||||
((CrudDao<BaseIpCfg>) batchSqlSession.getMapper(IpCfgDao.class)).insert(t);
|
||||
}
|
||||
batchSqlSession.commit();
|
||||
|
||||
Reference in New Issue
Block a user