Esempio n. 1
0
 /*     */ @Transactional(propagation = Propagation.REQUIRED)
 /*     */ public void deleteDomain(Integer domainid) {
   /* 131 */ EopSiteDomain domain = this.domainManager.get(domainid);
   /* 132 */ UserUtil.validUser(domain.getUserid());
   /* 133 */ int domainCount = this.domainManager.getDomainCount(domain.getSiteid());
   /* 134 */ if (domainCount <= 1) {
     /* 135 */ throw new RuntimeException("此站点只有一个域名不可删除,删除后将不可访问");
     /*     */ }
   /* 137 */ String sql = "delete from eop_sitedomain where id=?";
   /* 138 */ this.daoSupport.execute(sql, new Object[] {domainid});
   /*     */ }