|
|
|
|
@ -81,6 +81,7 @@ public class ${table.controllerName!} { |
|
|
|
|
QueryWrapper<${entityKey!}> qw = Condition.getQueryWrapper(${entityKeyPath!}); |
|
|
|
|
${entityKey!} detail = service.getOne(qw); |
|
|
|
|
${entityKey!}VO detailVO = ${entityKey!}Wrapper.build().entityVO(detail); |
|
|
|
|
service.setVOValue(detailVO); |
|
|
|
|
return R.data(detailVO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -95,6 +96,10 @@ public class ${table.controllerName!} { |
|
|
|
|
QueryWrapper<${entityKey!}> qw = Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}.class); |
|
|
|
|
IPage<${entityKey!}> pages = service.page(Condition.getPage(query), qw); |
|
|
|
|
IPage<${entityKey!}VO> pagesVO = ${entityKey!}Wrapper.build().pageVO(pages); |
|
|
|
|
pagesVO.getRecords() |
|
|
|
|
.stream() |
|
|
|
|
.peek(service::setVOValue) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
return R.data(pagesVO); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -186,7 +191,7 @@ public class ${table.controllerName!} { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* [工作中心] 修改批量 |
|
|
|
|
* ${table.comment!} 修改批量 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/updateBat") |
|
|
|
|
@ApiOperationSupport(order = 41) |
|
|
|
|
@ -251,7 +256,7 @@ public class ${table.controllerName!} { |
|
|
|
|
//} |
|
|
|
|
//queryWrapper.lambda().eq(${entityKey!}Entity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
|
|
|
|
List<${entityKey!}Excel> list = service.export${entityKey!}(qw); |
|
|
|
|
ExcelUtil.export(response, "${table.comment!}数据" + DateUtil.time(), |
|
|
|
|
ExcelUtil.export(response, "${table.comment!}数据" + org.springblade.core.tool.utils.DateUtil.time(), |
|
|
|
|
"${table.comment!}数据表", list, ${entityKey!}Excel.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|