文件摘要IsValid、IsAudit状态修改时,域配置也相应修改.
This commit is contained in:
@@ -501,8 +501,13 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
fileTransferCfgDao.updateFileDigestCfg(entity);
|
fileTransferCfgDao.updateFileDigestCfg(entity);
|
||||||
|
|
||||||
entity = fileTransferCfgDao.getFileDigest(Long.parseLong(id));
|
entity = this.getFileDigestCfg(Long.parseLong(id));
|
||||||
|
// 修改子域配置状态
|
||||||
|
if((entity.getNtcSubscribeIdCfgList() != null) && (entity.getNtcSubscribeIdCfgList().size() > 0)) {
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[] {"cfgId"});
|
||||||
|
stringCfgDao.updateSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
||||||
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
||||||
,"cfgType"
|
,"cfgType"
|
||||||
@@ -522,20 +527,24 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
|||||||
entity.setAuditTime(auditTime);
|
entity.setAuditTime(auditTime);
|
||||||
fileTransferCfgDao.updateFileDigestCfg(entity);
|
fileTransferCfgDao.updateFileDigestCfg(entity);
|
||||||
|
|
||||||
entity = fileTransferCfgDao.getFileDigest(Long.parseLong(id));
|
entity = this.getFileDigestCfg(Long.parseLong(id));
|
||||||
|
// 修改域配置审核状态
|
||||||
|
if((entity.getNtcSubscribeIdCfgList() != null) && (entity.getNtcSubscribeIdCfgList().size() > 0)) {
|
||||||
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
|
BeanUtils.copyProperties(entity, cfg, new String[] {"cfgId"});
|
||||||
|
stringCfgDao.updateSubscribeIdCfg(cfg);
|
||||||
|
}
|
||||||
|
|
||||||
List list=new ArrayList();
|
List list=new ArrayList();
|
||||||
list.add(entity);
|
list.add(entity);
|
||||||
|
|
||||||
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
AreaIpCfg areaIpCfg=new AreaIpCfg();
|
||||||
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
BeanUtils.copyProperties(entity, areaIpCfg,new String[]{"cfgRegionCode"
|
||||||
,"cfgType"
|
,"cfgType"
|
||||||
,"cfgId"
|
,"cfgId"
|
||||||
});
|
});
|
||||||
areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg);
|
areaIpCfgDao.updateAreaIpCfgValid(areaIpCfg);
|
||||||
|
|
||||||
List<AreaIpCfg> areaIpCfgList=areaIpCfgDao.getByCompileId(entity.getCompileId());
|
List<AreaIpCfg> areaIpCfgList=areaIpCfgDao.getByCompileId(entity.getCompileId());
|
||||||
|
|
||||||
|
|
||||||
ToMaatBean maatBean = new ToMaatBean();
|
ToMaatBean maatBean = new ToMaatBean();
|
||||||
MaatCfg maatCfg = new MaatCfg();
|
MaatCfg maatCfg = new MaatCfg();
|
||||||
List<MaatCfg> configCompileList = new ArrayList();
|
List<MaatCfg> configCompileList = new ArrayList();
|
||||||
|
|||||||
Reference in New Issue
Block a user