@Before(value = "execution(* com.kcp*..*Service.*(..))") public void clearBeforeExcute(JoinPoint pjp) { if (StringUtils.isEmpty(SqlContextHolder.getJoinPoint())) { // 清空sql上下文信息 SqlContextHolder.clear(); SqlContextHolder.setJoinPoint(pjp.toLongString()); } }
/** 组装页面传递过来的参数 */ private BpmFormDef assembleBpmFormDef(HttpServletRequest request) { String formDefId = StringUtils.getNullBlankStr(request.getParameter("formDefId")); String catalogId = StringUtils.getNullBlankStr(request.getParameter("catalogId")); String formKey = StringUtils.getNullBlankStr(request.getParameter("formKey")); String subject = StringUtils.getNullBlankStr(request.getParameter("subject")); String formDesc = StringUtils.getNullBlankStr(request.getParameter("formDesc")); String html = StringUtils.getNullBlankStr(request.getParameter("html")); BpmFormDef bpmFormDef = null; if (StringUtils.isEmpty(formDefId)) { bpmFormDef = new BpmFormDef(); } else { bpmFormDef = bpmFormDefService.getBpmFormDefById(formDefId); } bpmFormDef.setCatalogId(catalogId); bpmFormDef.setFormKey(formKey); bpmFormDef.setSubject(subject); bpmFormDef.setFormDesc(formDesc); bpmFormDef.setHtml(html); return bpmFormDef; }