(1)ip管控提交

(2)delRow.tag修改,删除的时候将编译ID也传过去
(3)配置取消修改,请求应当是put请求
This commit is contained in:
wangxin
2018-06-02 17:40:14 +08:00
parent e80f2e2967
commit 5913fc6e4f
14 changed files with 731 additions and 42 deletions

View File

@@ -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();