| | |
| | | package com.vincent.rsf.server.manager.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | | import com.vincent.rsf.framework.common.R; |
| | |
| | | @PreAuthorize("hasAuthority('manager:asnOrderItemLog:list')") |
| | | @PostMapping("/asnOrderItemLog/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(asnOrderItemLogService.list(), AsnOrderItemLog.class), response); |
| | | LambdaQueryWrapper<AsnOrderItemLog> itemLogLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | itemLogLambdaQueryWrapper.eq(AsnOrderItemLog::getLogId, map.get("logId")); |
| | | List<AsnOrderItemLog> list = asnOrderItemLogService.list(itemLogLambdaQueryWrapper); |
| | | ExcelUtil.build(ExcelUtil.create(list, AsnOrderItemLog.class), response); |
| | | } |
| | | |
| | | } |