|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|