/** * @param financeMainParse * @param request * @param response * @param model * @return * @Description * @author Liruilong * @date 2020年04月08日 14:04:50 **/ @PostMapping("/mainProjectAddUpdate") @ResponseBody public int mainProjectAddUpdate(FinanceMainParse financeMainParse, HttpServletRequest request, HttpServletResponse response, Model model) { User user = (User) request.getSession().getAttribute(Const.USER_INFO); if (user == null) { return 0; } financeMainParse.setAcct_id(user.getAcct_id()); financeMainParse.setCreate_by(user.getNick_name()); // financeMainParse.setAcct_id("20"); // financeMainParse.setCreate_by("张三"); int msg = projectService.saveMainProject(financeMainParse); return msg; }
*$param$
* @return
* @Description
* @author Liruilong
* @date $date$ $time$
**/
groovyScript("def result=‘‘; def params=\"${_1}\".replaceAll(‘[\\\\[|\\\\]|\\\\s]‘, ‘‘).split(‘,‘).toList(); for(i = 0; i < params.size(); i++) {result+=‘\\n * @param ‘ + params[i]}; return result", methodParameters())
原文:https://www.cnblogs.com/liruilong/p/12659781.html