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); } }
/* 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: */ }
/* 76: */ /* 77: */ public String edit() /* 78: */ { /* 79: 97 */ SysUser loginMan = getSessionUserInfo(); /* 80: 98 */ if (this.pay == null) { /* 81: 99 */ this.pay = new Pay(); /* 82: */ } /* 83: */ try /* 84: */ { /* 85:103 */ if (StringUtils.isBlank(this.pay.getId())) /* 86: */ { /* 87:104 */ this.pay.setState("c"); /* 88:105 */ initModel(true, this.pay, loginMan); /* 89:106 */ this.pay.setHandlerId(loginMan.getId()); /* 90:107 */ this.pay.setHandlerName(loginMan.getName()); /* 91:108 */ this.pay.setDeptId(loginMan.getDeptId()); /* 92:109 */ this.pay.setDeptName(loginMan.getDeptName()); /* 93: */ try /* 94: */ { /* 95:111 */ this.pay.setCode( this.serialNumberService.getSerialNumberByDate("FKD", "pay")); /* 96: */ } /* 97: */ catch (Exception e) /* 98: */ { /* 99:113 */ logger.error("error occur when get code", e); /* 100: */ } /* 101: */ } /* 102: */ else /* 103: */ { /* 104:116 */ this.pay = ((Pay) this.payService.getModel(this.pay.getId())); /* 105:117 */ initModel(false, this.pay, loginMan); /* 106: */ } /* 107: */ } /* 108: */ catch (Exception e) /* 109: */ { /* 110:120 */ logger.error("error occur when list pay", e); /* 111:121 */ responseFlag(false); /* 112: */ } /* 113:123 */ return "edit_pay"; /* 114: */ }