👎 商品订单全部导出不用分页
This commit is contained in:
@@ -365,7 +365,8 @@ public class StoreOrderController {
|
||||
@RequestParam(name = "listContent") String listContent) throws IOException, ParseException {
|
||||
List<YxStoreOrderDto> list;
|
||||
if (StringUtils.isEmpty(listContent)) {
|
||||
list = getYxStoreList(criteria, pageable, orderStatus, orderType).getContent();
|
||||
// 到处全部走这里直接把条件去掉了 如果需要增加导出本页可以对照git增加上分页
|
||||
list = getYxStoreList(criteria, orderStatus, orderType);
|
||||
} else {
|
||||
List<String> idList = JSONArray.parseArray(listContent).toJavaList(String.class);
|
||||
list = yxStoreOrderService.queryAll(idList).getContent();
|
||||
@@ -377,18 +378,17 @@ public class StoreOrderController {
|
||||
* 下载数据
|
||||
*
|
||||
* @param criteria criteria
|
||||
* @param pageable pageable
|
||||
* @param orderStatus orderStatus
|
||||
* @param orderType orderType
|
||||
* @return Map
|
||||
*/
|
||||
private AdminOrderDto getYxStoreList(YxStoreOrderQueryCriteria criteria,
|
||||
Pageable pageable,
|
||||
private List<YxStoreOrderDto> getYxStoreList(YxStoreOrderQueryCriteria criteria,
|
||||
String orderStatus,
|
||||
String orderType) {
|
||||
|
||||
YxStoreOrderQueryCriteria newCriteria = this.handleQuery(criteria, orderStatus, orderType);
|
||||
return yxStoreOrderService.queryAll(newCriteria, pageable);
|
||||
List<YxStoreOrder> list = yxStoreOrderService.queryAll(newCriteria);
|
||||
return yxStoreOrderService.newAssemble(list);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -256,6 +256,8 @@ public interface YxStoreOrderService extends BaseService<YxStoreOrder>{
|
||||
*/
|
||||
AdminOrderDto queryManyType(String[] typeList, Pageable pageable, YxStoreOrderQueryCriteria criteria, String orderStatus);
|
||||
|
||||
List<YxStoreOrderDto> newAssemble(List<YxStoreOrder> orderList);
|
||||
|
||||
/**
|
||||
* 查询数据分页
|
||||
* @param criteria 条件
|
||||
|
||||
+2
-2
@@ -110,7 +110,6 @@ import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
@@ -2574,7 +2573,8 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<StoreOrderMapper, Y
|
||||
* @param orderList 订单列表
|
||||
* @return 组装后的订单列表
|
||||
*/
|
||||
private List<YxStoreOrderDto> newAssemble(List<YxStoreOrder> orderList){
|
||||
@Override
|
||||
public List<YxStoreOrderDto> newAssemble(List<YxStoreOrder> orderList){
|
||||
//返回的数据List
|
||||
List<YxStoreOrderDto> dtoList = new ArrayList<>();
|
||||
if (!orderList.isEmpty()){
|
||||
|
||||
Reference in New Issue
Block a user