|
|
|
@ -2,47 +2,22 @@ package com.ruoyi.tc.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.exception.ServiceException;
|
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.tc.entity.AssetBasicNetwork;
|
|
|
|
|
import com.ruoyi.tc.entity.AssetCurrent;
|
|
|
|
|
import com.ruoyi.tc.entity.AssetExport;
|
|
|
|
|
import com.ruoyi.tc.entity.AssetSupplyChain;
|
|
|
|
|
import com.ruoyi.tc.entity.AssetTask;
|
|
|
|
|
import com.ruoyi.tc.entity.UnitOtherConcat;
|
|
|
|
|
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
|
|
|
|
|
import com.ruoyi.tc.entity.po.AssetCurrentCpPo;
|
|
|
|
|
import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo;
|
|
|
|
|
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
|
|
|
|
|
import com.ruoyi.tc.entity.*;
|
|
|
|
|
import com.ruoyi.tc.entity.po.*;
|
|
|
|
|
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
|
|
|
|
|
import com.ruoyi.tc.service.AssetBasicNetworkCpService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetBasicNetworkService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetBusinessFormCpService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetBusinessFormService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetCurrentCpService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetCurrentService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetSupplyChainCpService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetSupplyChainService;
|
|
|
|
|
import com.ruoyi.tc.service.AssetTaskService;
|
|
|
|
|
import com.ruoyi.tc.service.UnitOtherConcatCpService;
|
|
|
|
|
import com.ruoyi.tc.service.UnitOtherConcatService;
|
|
|
|
|
import com.ruoyi.tc.service.*;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestPart;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -99,6 +74,8 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
@Resource
|
|
|
|
|
private UnitOtherConcatCpService unitOtherConcatCpService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private UnitService unitService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 分页查询所有数据
|
|
|
|
@ -191,46 +168,43 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
// 单位有进行中的任务时,管理端新增该单位下的资产则需同步至当前进行中的任务中。
|
|
|
|
|
//获取新增资产id
|
|
|
|
|
Long id = assetCurrent.getId();
|
|
|
|
|
List<AssetTask> assetTasks = assetTaskService.taskList(assetCurrent.getDwmc());
|
|
|
|
|
if (assetTasks != null) {
|
|
|
|
|
for (AssetTask assetTask : assetTasks) {
|
|
|
|
|
//新增资产复制主表
|
|
|
|
|
AssetCurrentCpPo assetCurrentCpPo = new AssetCurrentCpPo();
|
|
|
|
|
BeanUtil.copyProperties(assetCurrent, assetCurrentCpPo);
|
|
|
|
|
assetCurrentCpPo.setTaskId(assetTask.getId());
|
|
|
|
|
assetCurrentCpService.save(assetCurrentCpPo);
|
|
|
|
|
//新增新监管业务形态
|
|
|
|
|
//根据资产id查询新监管业务形态主表id
|
|
|
|
|
if (assetCurrent.getXjgywxt() != null) {
|
|
|
|
|
assetCurrentCpPo.getXjgywxt().setAssetId(id);
|
|
|
|
|
assetCurrentCpPo.getXjgywxt().setTaskId(assetTask.getId());
|
|
|
|
|
assetBusinessFormCpService.save(assetCurrentCpPo.getXjgywxt());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getGylxxList() != null) {
|
|
|
|
|
for (AssetSupplyChainCpPo items : assetCurrentCpPo.getGylxxList()) {
|
|
|
|
|
items.setAssetId(id);
|
|
|
|
|
items.setTaskId(assetTask.getId());
|
|
|
|
|
}
|
|
|
|
|
//新增供应链
|
|
|
|
|
assetSupplyChainCpService.saveBatch(assetCurrentCpPo.getGylxxList());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getJcwlList() != null) {
|
|
|
|
|
for (AssetBasicNetworkCpPo items : assetCurrentCpPo.getJcwlList()) {
|
|
|
|
|
items.setAssetId(assetCurrent.getId());
|
|
|
|
|
items.setTaskId(assetTask.getId());
|
|
|
|
|
}
|
|
|
|
|
//新增基础网络
|
|
|
|
|
assetBasicNetworkCpService.saveBatch(assetCurrentCpPo.getJcwlList());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getOtherConcat() != null) {
|
|
|
|
|
for (UnitOtherConcatCpPo items : assetCurrentCpPo.getOtherConcat()) {
|
|
|
|
|
items.setAssetId(assetCurrent.getId());
|
|
|
|
|
items.setTaskId(assetTask.getId());
|
|
|
|
|
}
|
|
|
|
|
//新增其他联系人
|
|
|
|
|
unitOtherConcatCpService.saveBatch(assetCurrentCpPo.getOtherConcat());
|
|
|
|
|
}
|
|
|
|
|
Integer i = unitService.selectTaskId(assetCurrent.getDwmc(), "0");
|
|
|
|
|
|
|
|
|
|
//新增资产复制主表
|
|
|
|
|
AssetCurrentCpPo assetCurrentCpPo = new AssetCurrentCpPo();
|
|
|
|
|
BeanUtil.copyProperties(assetCurrent, assetCurrentCpPo);
|
|
|
|
|
assetCurrentCpPo.setTaskId(i);
|
|
|
|
|
assetCurrentCpService.save(assetCurrentCpPo);
|
|
|
|
|
//新增新监管业务形态
|
|
|
|
|
//根据资产id查询新监管业务形态主表id
|
|
|
|
|
if (assetCurrent.getXjgywxt() != null) {
|
|
|
|
|
assetCurrentCpPo.getXjgywxt().setAssetId(id);
|
|
|
|
|
assetCurrentCpPo.getXjgywxt().setTaskId(i);
|
|
|
|
|
assetBusinessFormCpService.save(assetCurrentCpPo.getXjgywxt());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getGylxxList() != null) {
|
|
|
|
|
for (AssetSupplyChainCpPo items : assetCurrentCpPo.getGylxxList()) {
|
|
|
|
|
items.setAssetId(id);
|
|
|
|
|
items.setTaskId(i);
|
|
|
|
|
}
|
|
|
|
|
//新增供应链
|
|
|
|
|
assetSupplyChainCpService.saveBatch(assetCurrentCpPo.getGylxxList());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getJcwlList() != null) {
|
|
|
|
|
for (AssetBasicNetworkCpPo items : assetCurrentCpPo.getJcwlList()) {
|
|
|
|
|
items.setAssetId(assetCurrent.getId());
|
|
|
|
|
items.setTaskId(i);
|
|
|
|
|
}
|
|
|
|
|
//新增基础网络
|
|
|
|
|
assetBasicNetworkCpService.saveBatch(assetCurrentCpPo.getJcwlList());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getOtherConcat() != null) {
|
|
|
|
|
for (UnitOtherConcatCpPo items : assetCurrentCpPo.getOtherConcat()) {
|
|
|
|
|
items.setAssetId(assetCurrent.getId());
|
|
|
|
|
items.setTaskId(i);
|
|
|
|
|
}
|
|
|
|
|
//新增其他联系人
|
|
|
|
|
unitOtherConcatCpService.saveBatch(assetCurrentCpPo.getOtherConcat());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return success();
|
|
|
|
@ -296,6 +270,62 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
//新增其他联系人
|
|
|
|
|
unitOtherConcatService.saveBatch(assetCurrent.getOtherConcat());
|
|
|
|
|
}
|
|
|
|
|
//================================
|
|
|
|
|
|
|
|
|
|
QueryWrapper<AssetCurrentCpPo> queryWrapper1 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper1.eq("id", assetCurrent.getId());
|
|
|
|
|
assetCurrentCpService.remove(queryWrapper1);
|
|
|
|
|
|
|
|
|
|
Integer i = unitService.selectTaskId(assetCurrent.getDwmc(), "0");
|
|
|
|
|
AssetCurrentCpPo assetCurrentCpPo = new AssetCurrentCpPo();
|
|
|
|
|
BeanUtil.copyProperties(assetCurrent, assetCurrentCpPo);
|
|
|
|
|
assetCurrentCpPo.setTaskId(i);
|
|
|
|
|
assetCurrentCpService.save(assetCurrentCpPo);
|
|
|
|
|
|
|
|
|
|
QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper2.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
assetSupplyChainCpService.remove(queryWrapper2);
|
|
|
|
|
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper3.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
assetBasicNetworkCpService.remove(queryWrapper3);
|
|
|
|
|
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper4.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
assetBusinessFormCpService.remove(queryWrapper4);
|
|
|
|
|
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper5.eq("asset_id", assetCurrent.getId());
|
|
|
|
|
unitOtherConcatCpService.remove(queryWrapper5);
|
|
|
|
|
|
|
|
|
|
if (assetCurrent.getXjgywxt() != null) {
|
|
|
|
|
assetCurrentCpPo.getXjgywxt().setAssetId(assetCurrent.getId());
|
|
|
|
|
assetCurrentCpPo.getXjgywxt().setTaskId(i);
|
|
|
|
|
assetBusinessFormCpService.save(assetCurrentCpPo.getXjgywxt());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getGylxxList() != null) {
|
|
|
|
|
for (AssetSupplyChainCpPo items : assetCurrentCpPo.getGylxxList()) {
|
|
|
|
|
items.setAssetId(assetCurrent.getId());
|
|
|
|
|
items.setTaskId(i);
|
|
|
|
|
}
|
|
|
|
|
//新增供应链
|
|
|
|
|
assetSupplyChainCpService.saveBatch(assetCurrentCpPo.getGylxxList());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getJcwlList() != null) {
|
|
|
|
|
for (AssetBasicNetworkCpPo items : assetCurrentCpPo.getJcwlList()) {
|
|
|
|
|
items.setAssetId(assetCurrent.getId());
|
|
|
|
|
items.setTaskId(i);
|
|
|
|
|
}
|
|
|
|
|
//新增基础网络
|
|
|
|
|
assetBasicNetworkCpService.saveBatch(assetCurrentCpPo.getJcwlList());
|
|
|
|
|
}
|
|
|
|
|
if (assetCurrent.getOtherConcat() != null) {
|
|
|
|
|
for (UnitOtherConcatCpPo items : assetCurrentCpPo.getOtherConcat()) {
|
|
|
|
|
items.setAssetId(assetCurrent.getId());
|
|
|
|
|
items.setTaskId(i);
|
|
|
|
|
}
|
|
|
|
|
//新增其他联系人
|
|
|
|
|
unitOtherConcatCpService.saveBatch(assetCurrentCpPo.getOtherConcat());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -314,6 +344,24 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
assetBusinessFormService.deleteByAssetIds(id);
|
|
|
|
|
unitOtherConcatService.deleteByAssetIds(id);
|
|
|
|
|
assetCurrentService.deleteByUnitIds(id);
|
|
|
|
|
|
|
|
|
|
QueryWrapper<AssetCurrentCpPo> queryWrapper1 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper1.eq("id", id);
|
|
|
|
|
assetCurrentCpService.remove(queryWrapper1);
|
|
|
|
|
QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper2.eq("asset_id", id);
|
|
|
|
|
assetSupplyChainCpService.remove(queryWrapper2);
|
|
|
|
|
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper3.eq("asset_id", id);
|
|
|
|
|
assetBasicNetworkCpService.remove(queryWrapper3);
|
|
|
|
|
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper4.eq("asset_id", id);
|
|
|
|
|
assetBusinessFormCpService.remove(queryWrapper4);
|
|
|
|
|
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
|
|
|
|
|
queryWrapper5.eq("asset_id", id);
|
|
|
|
|
unitOtherConcatCpService.remove(queryWrapper5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -421,77 +469,75 @@ public class AssetCurrentController extends BaseController {
|
|
|
|
|
|
|
|
|
|
//=============
|
|
|
|
|
Long id = as.getId();
|
|
|
|
|
List<AssetTask> assetTasks = assetTaskService.taskList(as.getDwmc());
|
|
|
|
|
if (assetTasks != null) {
|
|
|
|
|
for (AssetTask assetTask : assetTasks) {
|
|
|
|
|
//新增资产复制主表
|
|
|
|
|
AssetCurrentCpPo assetCurrentCpPo = new AssetCurrentCpPo();
|
|
|
|
|
BeanUtil.copyProperties(as, assetCurrentCpPo);
|
|
|
|
|
assetCurrentCpPo.setTaskId(assetTask.getId());
|
|
|
|
|
AssetCurrentCpPo two = assetCurrentCpService.lambdaQuery().eq(AssetCurrentCpPo::getXtmc, as.getXtmc())
|
|
|
|
|
.eq(AssetCurrentCpPo::getDwmc, as.getDwmc()).one();
|
|
|
|
|
if (two != null) {
|
|
|
|
|
assetCurrentCpPo.setId(two.getId());
|
|
|
|
|
assetCurrentCpService.updateById(assetCurrentCpPo);
|
|
|
|
|
assetSupplyChainCpService.deletByAssetIdandTaskId(id,assetTask.getId());
|
|
|
|
|
assetBasicNetworkCpService.deletByAssetIdandTaskId(id,assetTask.getId());
|
|
|
|
|
} else {
|
|
|
|
|
assetCurrentCpService.save(assetCurrentCpPo);
|
|
|
|
|
}
|
|
|
|
|
//新增系统建设单位
|
|
|
|
|
AssetSupplyChainCpPo co1 = new AssetSupplyChainCpPo();
|
|
|
|
|
BeanUtil.copyProperties(items, co1);
|
|
|
|
|
co1.setType(5);
|
|
|
|
|
co1.setAssetId(id);
|
|
|
|
|
co1.setTaskId(assetTask.getId());
|
|
|
|
|
assetSupplyChainCpService.save(co1);
|
|
|
|
|
|
|
|
|
|
//新增系统运营单位
|
|
|
|
|
AssetSupplyChainCpPo co2 = new AssetSupplyChainCpPo();
|
|
|
|
|
co2.setGyszcdz(items.getGyszcdz1());
|
|
|
|
|
co2.setLxr(items.getLxr1());
|
|
|
|
|
co2.setLxdh(items.getLxdh1());
|
|
|
|
|
co2.setSfwtc(items.getSfwtc1());
|
|
|
|
|
co2.setName(items.getName1());
|
|
|
|
|
co2.setTyshxydm(items.getTyshxydm1());
|
|
|
|
|
co2.setType(7);
|
|
|
|
|
co2.setAssetId(as.getId());
|
|
|
|
|
co2.setTaskId(assetTask.getId());
|
|
|
|
|
assetSupplyChainCpService.save(co2);
|
|
|
|
|
|
|
|
|
|
//新增服务器信息
|
|
|
|
|
AssetBasicNetworkCpPo co3 = new AssetBasicNetworkCpPo();
|
|
|
|
|
BeanUtil.copyProperties(items, co3);
|
|
|
|
|
co3.setType(1);
|
|
|
|
|
co3.setAssetId(id);
|
|
|
|
|
co3.setTaskId(assetTask.getId());
|
|
|
|
|
assetBasicNetworkCpService.save(co3);
|
|
|
|
|
|
|
|
|
|
//新增网络设备
|
|
|
|
|
AssetBasicNetworkCpPo co4 = new AssetBasicNetworkCpPo();
|
|
|
|
|
co4.setSblx(items.getWlsblx());
|
|
|
|
|
co4.setPp(items.getWlpp());
|
|
|
|
|
co4.setSbIp(items.getWlsbIp());
|
|
|
|
|
co4.setYjxh(items.getWlyjxh());
|
|
|
|
|
co4.setYjxlh(items.getWlyjxlh());
|
|
|
|
|
co4.setYjbbxx(items.getWlyjbbxx());
|
|
|
|
|
co4.setYjyt(items.getWlyjyt());
|
|
|
|
|
co4.setYjbsxx(items.getWlyjbsxx());
|
|
|
|
|
co4.setType(2);
|
|
|
|
|
co4.setAssetId(id);
|
|
|
|
|
co4.setTaskId(assetTask.getId());
|
|
|
|
|
assetBasicNetworkCpService.save(co4);
|
|
|
|
|
//新增安全设备
|
|
|
|
|
AssetBasicNetworkCpPo co5 = new AssetBasicNetworkCpPo();
|
|
|
|
|
co5.setSblx(items.getAqwlsblx());
|
|
|
|
|
co5.setPp(items.getAqwlpp());
|
|
|
|
|
co5.setSbIp(items.getAqwlsbIp());
|
|
|
|
|
co5.setType(3);
|
|
|
|
|
co5.setAssetId(id);
|
|
|
|
|
co5.setTaskId(assetTask.getId());
|
|
|
|
|
assetBasicNetworkCpService.save(co5);
|
|
|
|
|
|
|
|
|
|
Integer i = unitService.selectTaskId(as.getDwmc(), "0");
|
|
|
|
|
if (i != null) {
|
|
|
|
|
//新增资产复制主表
|
|
|
|
|
AssetCurrentCpPo assetCurrentCpPo = new AssetCurrentCpPo();
|
|
|
|
|
BeanUtil.copyProperties(as, assetCurrentCpPo);
|
|
|
|
|
assetCurrentCpPo.setTaskId(i);
|
|
|
|
|
AssetCurrentCpPo two = assetCurrentCpService.lambdaQuery().eq(AssetCurrentCpPo::getXtmc, as.getXtmc())
|
|
|
|
|
.eq(AssetCurrentCpPo::getDwmc, as.getDwmc()).one();
|
|
|
|
|
if (two != null) {
|
|
|
|
|
assetCurrentCpPo.setId(two.getId());
|
|
|
|
|
assetCurrentCpService.updateById(assetCurrentCpPo);
|
|
|
|
|
assetSupplyChainCpService.deletByAssetIdandTaskId(id, i);
|
|
|
|
|
assetBasicNetworkCpService.deletByAssetIdandTaskId(id, i);
|
|
|
|
|
} else {
|
|
|
|
|
assetCurrentCpService.save(assetCurrentCpPo);
|
|
|
|
|
}
|
|
|
|
|
//新增系统建设单位
|
|
|
|
|
AssetSupplyChainCpPo co1 = new AssetSupplyChainCpPo();
|
|
|
|
|
BeanUtil.copyProperties(items, co1);
|
|
|
|
|
co1.setType(5);
|
|
|
|
|
co1.setAssetId(id);
|
|
|
|
|
co1.setTaskId(i);
|
|
|
|
|
assetSupplyChainCpService.save(co1);
|
|
|
|
|
|
|
|
|
|
//新增系统运营单位
|
|
|
|
|
AssetSupplyChainCpPo co2 = new AssetSupplyChainCpPo();
|
|
|
|
|
co2.setGyszcdz(items.getGyszcdz1());
|
|
|
|
|
co2.setLxr(items.getLxr1());
|
|
|
|
|
co2.setLxdh(items.getLxdh1());
|
|
|
|
|
co2.setSfwtc(items.getSfwtc1());
|
|
|
|
|
co2.setName(items.getName1());
|
|
|
|
|
co2.setTyshxydm(items.getTyshxydm1());
|
|
|
|
|
co2.setType(7);
|
|
|
|
|
co2.setAssetId(as.getId());
|
|
|
|
|
co2.setTaskId(i);
|
|
|
|
|
assetSupplyChainCpService.save(co2);
|
|
|
|
|
|
|
|
|
|
//新增服务器信息
|
|
|
|
|
AssetBasicNetworkCpPo co3 = new AssetBasicNetworkCpPo();
|
|
|
|
|
BeanUtil.copyProperties(items, co3);
|
|
|
|
|
co3.setType(1);
|
|
|
|
|
co3.setAssetId(id);
|
|
|
|
|
co3.setTaskId(i);
|
|
|
|
|
assetBasicNetworkCpService.save(co3);
|
|
|
|
|
|
|
|
|
|
//新增网络设备
|
|
|
|
|
AssetBasicNetworkCpPo co4 = new AssetBasicNetworkCpPo();
|
|
|
|
|
co4.setSblx(items.getWlsblx());
|
|
|
|
|
co4.setPp(items.getWlpp());
|
|
|
|
|
co4.setSbIp(items.getWlsbIp());
|
|
|
|
|
co4.setYjxh(items.getWlyjxh());
|
|
|
|
|
co4.setYjxlh(items.getWlyjxlh());
|
|
|
|
|
co4.setYjbbxx(items.getWlyjbbxx());
|
|
|
|
|
co4.setYjyt(items.getWlyjyt());
|
|
|
|
|
co4.setYjbsxx(items.getWlyjbsxx());
|
|
|
|
|
co4.setType(2);
|
|
|
|
|
co4.setAssetId(id);
|
|
|
|
|
co4.setTaskId(i);
|
|
|
|
|
assetBasicNetworkCpService.save(co4);
|
|
|
|
|
//新增安全设备
|
|
|
|
|
AssetBasicNetworkCpPo co5 = new AssetBasicNetworkCpPo();
|
|
|
|
|
co5.setSblx(items.getAqwlsblx());
|
|
|
|
|
co5.setPp(items.getAqwlpp());
|
|
|
|
|
co5.setSbIp(items.getAqwlsbIp());
|
|
|
|
|
co5.setType(3);
|
|
|
|
|
co5.setAssetId(id);
|
|
|
|
|
co5.setTaskId(i);
|
|
|
|
|
assetBasicNetworkCpService.save(co5);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
|