| | |
| | | "\n" + |
| | | " " + poName + " find = mapper.get(id);\n" + |
| | | " if (null != find) {\n" + |
| | | " // 转换vo\n" + |
| | | " result = " + convertMapperName + ".INSTANCE.toVo(find);\n" + |
| | | " }\n" + |
| | | " return ExecutedResult.success(result);\n" + |
| | |
| | | "\n" + |
| | | " List<" + poName + "> list = mapper.getList(listId);\n" + |
| | | " if (ListUtil.isNotNullOrEmpty(list)) {\n" + |
| | | " // 转换vo\n" + |
| | | " result = " + convertMapperName + ".INSTANCE.toVo(list);\n" + |
| | | " }\n" + |
| | | " return ExecutedResult.success(result);\n" + |
| | |
| | | " if (ListUtil.isNotNullOrEmpty(list)) {\n" + |
| | | " pageList.setLastId(list.get(list.size() - 1).getId());\n" + |
| | | " // 转换vo\n" + |
| | | " listVo = TroopsInfoConvert.INSTANCE.toVo(list);\n" + |
| | | " listVo = " + convertMapperName + ".INSTANCE.toVo(list);\n" + |
| | | " }\n" + |
| | | " PagerResult<" + responseDTOName + "> result = new PagerResult<>(pageList.getLimit(), pageList.getPage(), pageList.getTotal(), listVo);\n" + |
| | | " result.setLastId(pageList.getLastId());\n" + |