|
|
@@ -109,6 +109,12 @@ public class MintOrderController extends BaseController {
|
|
|
@ApiOperation("导出")
|
|
|
@PostMapping("/excelPhone")
|
|
|
public void excelPhone(HttpServletResponse response, @RequestBody PageQuery pageQuery) throws IOException {
|
|
|
+ Long companyId = SecurityUtils.getAuthenticatedUser().getCompanyId();
|
|
|
+ if (companyId != null) {
|
|
|
+ Map<String, Object> query = pageQuery.getQuery();
|
|
|
+ query.put("companyId", companyId);
|
|
|
+ pageQuery.setQuery(query);
|
|
|
+ }
|
|
|
List<MintOrderDTO> data = all(pageQuery).map(MintOrderDTO::new).getContent();
|
|
|
ExcelUtils.export(response, data);
|
|
|
}
|