コード例 #1
0
ファイル: SysRoleAction.java プロジェクト: shenzeyu/3dweb
  public void delete() {
    SysUser loginMan = getSessionUserInfo();

    String id = this.sysRole.getId();
    logger.info("delete role,id:" + id);
    try {
      String[] idArr = id.split(",");
      for (String idStr : idArr) {
        this.sysRoleService.delete(idStr);
      }
      logger.info(loginMan.getCode() + " delete role,id:" + id);
      responseFlag(true);
    } catch (Exception e) {
      responseFlag(false);
      logger.info("error occur when " + loginMan.getCode() + " delete role,id:" + id, e);
    }
  }
コード例 #2
0
ファイル: PayAction.java プロジェクト: shenzeyu/3dweb
 /* 204:    */
 /* 205:    */ public void delete() /* 206:    */ {
   /* 207:218 */ SysUser loginMan = getSessionUserInfo();
   /* 208:    */ try
   /* 209:    */ {
     /* 210:220 */ if (this.pay == null) {
       /* 211:221 */ this.pay = new Pay();
       /* 212:    */ }
     /* 213:223 */ this.cashItemService.deleteByIntoId(this.pay.getId());
     /* 214:224 */ this.payService.delete(this.pay.getId());
     /* 215:225 */ logger.info(loginMan.getCode() + " delete pay,id:" + this.pay.getId());
     /* 216:226 */ responseFlag(true);
     /* 217:    */ }
   /* 218:    */ catch (Exception e)
   /* 219:    */ {
     /* 220:228 */ responseFlag(false);
     /* 221:229 */ logger.error("error occur when delete a  pay", e);
     /* 222:    */ }
   /* 223:    */ }