完善社交应用审核通过、取消审核通过界面端功能逻辑。
This commit is contained in:
@@ -10,7 +10,9 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.beust.jcommander.internal.Lists;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.specific.ConfigGroupInfo;
|
||||
import com.nis.domain.specific.SpecificServiceCfg;
|
||||
import com.nis.main.ConvertTool;
|
||||
import com.nis.util.StringUtil;
|
||||
import com.nis.web.dao.specific.SpecificServiceCfgDao;
|
||||
import com.nis.web.service.BaseService;
|
||||
@@ -60,11 +62,22 @@ public class SpecificServiceCfgService extends BaseService{
|
||||
/**
|
||||
* 保存或修改
|
||||
* @param specificServiceCfg
|
||||
* @throws Exception
|
||||
*/
|
||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||
public void saveOrUpdate(SpecificServiceCfg specificServiceCfg, Integer oldId) {
|
||||
if(specificServiceCfg.getGroupId()==null){
|
||||
specificServiceCfg.setGroupId(0);
|
||||
public void saveOrUpdate(SpecificServiceCfg specificServiceCfg, Integer oldId) throws Exception {
|
||||
if(specificServiceCfg.getGroupId()==null || specificServiceCfg.getGroupId()==0){
|
||||
specificServiceCfg.setGroupId(new ConvertTool().getGroupId());
|
||||
}
|
||||
//新增协议分组
|
||||
ConfigGroupInfo group = specificServiceCfgDao.getConfigGroupInfoByGroupId(specificServiceCfg.getGroupId());
|
||||
if(group==null){
|
||||
group = new ConfigGroupInfo();
|
||||
group.setGroupId(specificServiceCfg.getGroupId());
|
||||
group.setGroupName(specificServiceCfg.getSpecServiceName());
|
||||
group.setIsIssued(0);
|
||||
group.setGroupType(1);
|
||||
specificServiceCfgDao.insertConfigGroupInfo(group);
|
||||
}
|
||||
if(oldId==null){//新增
|
||||
specificServiceCfg.setIsValid(1);
|
||||
|
||||
Reference in New Issue
Block a user