修改审核不通过状态的配置,再次修改,配置状态未修改为“未审核”,并且没有记录修改人员和修改日期问题

This commit is contained in:
leijun
2018-08-24 17:47:11 +08:00
parent ab2ca5ecc2
commit d404305509
2 changed files with 8 additions and 0 deletions

View File

@@ -80,6 +80,8 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
public void saveBgpCfg(CfgIndexInfo entity){ public void saveBgpCfg(CfgIndexInfo entity){
//设置区域运营商信息 //设置区域运营商信息
setAreaEffectiveIds(entity); setAreaEffectiveIds(entity);
entity.setIsValid(0);
entity.setIsAudit(0);
if(entity.getCfgId()==null){ if(entity.getCfgId()==null){
Integer compileId = 0; Integer compileId = 0;
try { try {
@@ -142,6 +144,8 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
} }
}else{ }else{
entity.setEditorId(entity.getCurrentUser().getId());
entity.setEditTime(new Date());
bgpCfgDao.updateCfgIndex(entity); bgpCfgDao.updateCfgIndex(entity);
//无效子配置后,再新增子配置 //无效子配置后,再新增子配置
bgpCfgDao.deleteIpCfg(entity); bgpCfgDao.deleteIpCfg(entity);

View File

@@ -72,6 +72,8 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
public void saveXmppCfg(CfgIndexInfo entity){ public void saveXmppCfg(CfgIndexInfo entity){
//设置区域运营商信息 //设置区域运营商信息
setAreaEffectiveIds(entity); setAreaEffectiveIds(entity);
entity.setIsValid(0);
entity.setIsAudit(0);
if(entity.getCfgId()==null){ if(entity.getCfgId()==null){
Integer compileId = 0; Integer compileId = 0;
try { try {
@@ -112,6 +114,8 @@ public class XmppCfgService extends CrudService<XmppCfgDao,CfgIndexInfo> {
}else{ }else{
entity.setEditorId(entity.getCurrentUser().getId());
entity.setEditTime(new Date());
xmppCfgDao.updateCfgIndex(entity); xmppCfgDao.updateCfgIndex(entity);
//无效子配置后,再新增子配置 //无效子配置后,再新增子配置
xmppCfgDao.deleteXmppIpCfg(entity); xmppCfgDao.deleteXmppIpCfg(entity);