| | |
| | | |
| | | public void exportOrderDetail(HttpServletResponse response, OrderQueryDTO dto) { |
| | | List<OrderListExportDTO> ls = getOrderExportListBase( dto); |
| | | String[] rowsName = new String[]{"序号","订单号", "用户账号", "收货人", "收货人电话", "收获地址", "订单金额" |
| | | String[] rowsName = new String[]{"序号","订单号", "用户账号", "收货人", "收货人电话", "收货地址", "订单金额" |
| | | , "底价", "订单状态", "下单时间", "合伙人", "库位", "特殊需求", "备注"}; |
| | | List<Object[]> dataList = new ArrayList<>(); |
| | | int sn = 1; |
| | |
| | | |
| | | } |
| | | |
| | | public void exportPartnerOrderList(HttpServletResponse response, OrderQueryDTO dto) { |
| | | Partner p = getCurrentPartner(); |
| | | dto.setPartnerId(p.getId()); |
| | | exportOrderDetail(response, dto); |
| | | } |
| | | |
| | | } |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | |
| | | dto.setPartnerId(partner.getId()); |
| | | return returnData(R.SUCCESS.getCode(), orderService.selectOrderCheckLocationList(dto)); |
| | | } |
| | | |
| | | @GetMapping("/list/export") |
| | | @ApiOperation(value = "合伙人订单导出") |
| | | public void exportPartnerOrderList(HttpServletResponse response, OrderQueryDTO queryOrderDTO) { |
| | | orderService.exportPartnerOrderList(response, queryOrderDTO); |
| | | } |
| | | } |