asn ip导入逻辑开发
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@@ -82,7 +83,12 @@ public class AsnIpCfgService extends CrudService<CrudDao<AsnIpCfg>, AsnIpCfg> {
|
|||||||
if(groupInfo.getIsIssued()==1) {//如果已经下发,则需要下到综合服务中
|
if(groupInfo.getIsIssued()==1) {//如果已经下发,则需要下到综合服务中
|
||||||
if(entity.getAsnIpCfgs()!=null) {
|
if(entity.getAsnIpCfgs()!=null) {
|
||||||
for(AsnIpCfg cfg:entity.getAsnIpCfgs()) {
|
for(AsnIpCfg cfg:entity.getAsnIpCfgs()) {
|
||||||
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
if(StringUtils.isNotBlank(entity.getCfgDesc())) {
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
|
}else {
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId","cfgDesc"});
|
||||||
|
}
|
||||||
|
|
||||||
cfg.setCreateTime(crateTime);
|
cfg.setCreateTime(crateTime);
|
||||||
cfg.setCreatorId(entity.getCurrentUser().getId());
|
cfg.setCreatorId(entity.getCurrentUser().getId());
|
||||||
cfg.setAsnIpGroup(entity.getAsnIpGroup());
|
cfg.setAsnIpGroup(entity.getAsnIpGroup());
|
||||||
|
|||||||
Reference in New Issue
Block a user