分组配置增加以ud_flag字段标识状态
This commit is contained in:
@@ -33,6 +33,8 @@ public class IpCommGroupCfgService extends BaseService {
|
||||
@Autowired
|
||||
private IpCommGroupCfgDao ipCommGroupCfgDao;
|
||||
|
||||
private CommonGroupManageService groupManageService = SpringContextHolder.getBean(CommonGroupManageService.class);
|
||||
|
||||
/**
|
||||
* @param page
|
||||
* @param entity
|
||||
@@ -68,6 +70,10 @@ public class IpCommGroupCfgService extends BaseService {
|
||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||
public void update(IpCommCfg entity){
|
||||
ipCommGroupCfgDao.update(entity);
|
||||
// 更新分组状态
|
||||
groupManageService.updateGroupStatus(entity.getUserRegion1(), 5); // old
|
||||
groupManageService.updateGroupStatus(entity.getGroupId()+"", 5); // new
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -106,16 +112,20 @@ public class IpCommGroupCfgService extends BaseService {
|
||||
entity.getIpCommGroupCfgList().get(i).setGroupId(entity.getGroupId());
|
||||
ipCommGroupCfgDao.insertForBatch(entity.getIpCommGroupCfgList().get(i));
|
||||
}
|
||||
// 更新分组状态
|
||||
groupManageService.updateGroupStatus(entity.getGroupId()+"", 5);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void delete(String ids) {
|
||||
// TODO 公共组配置删除时 需检索是否被其它业务配置引用,没被引用可删除
|
||||
|
||||
public void delete(String ids, String compileIds) {
|
||||
if(ids==null) {
|
||||
throw new RuntimeException("ids is null!");
|
||||
}
|
||||
ipCommGroupCfgDao.delete(ids);
|
||||
// 更新分组状态
|
||||
groupManageService.updateGroupStatus(compileIds, 5);
|
||||
}
|
||||
|
||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||
|
||||
Reference in New Issue
Block a user