|
|
|
@ -1,7 +1,10 @@
|
|
|
|
package com.ruoyi.web.controller.nanjing;
|
|
|
|
package com.ruoyi.web.controller.nanjing;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.page.PageDomain;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.page.TableSupport;
|
|
|
|
import com.ruoyi.common.core.text.Convert;
|
|
|
|
import com.ruoyi.common.core.text.Convert;
|
|
|
|
import com.ruoyi.framework.util.ShiroUtils;
|
|
|
|
import com.ruoyi.framework.util.ShiroUtils;
|
|
|
|
import com.ruoyi.nanjing.domain.ProRpList;
|
|
|
|
import com.ruoyi.nanjing.domain.ProRpList;
|
|
|
|
@ -79,10 +82,34 @@ public class SelectProRpListController extends BaseController
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public TableDataInfo getData(ProRpList proRpList)
|
|
|
|
public TableDataInfo getData(ProRpList proRpList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
startPage();
|
|
|
|
|
|
|
|
List<ProRpList> list = new ArrayList<ProRpList>();
|
|
|
|
|
|
|
|
if(proRpList.getBeginTime()==null||proRpList.getEndTime()==null)
|
|
|
|
if(proRpList.getBeginTime()==null||proRpList.getEndTime()==null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
return getDataTable(new ArrayList<ProRpList>());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
|
|
|
|
|
Integer pageNum = pageDomain.getPageNum();
|
|
|
|
|
|
|
|
Integer pageSize = pageDomain.getPageSize();
|
|
|
|
|
|
|
|
Map map = new HashMap<String,Object>();
|
|
|
|
|
|
|
|
map.put("beginTime",proRpList.getBeginTime());
|
|
|
|
|
|
|
|
map.put("endTime",proRpList.getEndTime());
|
|
|
|
|
|
|
|
map.put("productId",proRpList.getProductID());
|
|
|
|
|
|
|
|
map.put("productType",proRpList.getProductType());
|
|
|
|
|
|
|
|
map.put("state",proRpList.getState());
|
|
|
|
|
|
|
|
map.put("semiBarcode",proRpList.getSemiBarcode());
|
|
|
|
|
|
|
|
//过滤数据
|
|
|
|
|
|
|
|
List<ProRpList> list = itBdProducttypeService.selectProLists(map);
|
|
|
|
|
|
|
|
//获取处理好的list集合
|
|
|
|
|
|
|
|
int num = list.size();
|
|
|
|
|
|
|
|
list = list.stream().skip((pageNum - 1) * pageSize).limit(pageSize).collect(Collectors.toList());
|
|
|
|
|
|
|
|
TableDataInfo rspData = new TableDataInfo();
|
|
|
|
|
|
|
|
rspData.setCode(0);
|
|
|
|
|
|
|
|
rspData.setRows(list);
|
|
|
|
|
|
|
|
rspData.setTotal(num);
|
|
|
|
|
|
|
|
return rspData;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
List<ProRpList> list = new ArrayList<ProRpList>();
|
|
|
|
|
|
|
|
if(proRpList.getBeginTime()==null||proRpList.getEndTime()==null)
|
|
|
|
|
|
|
|
{ startPage();
|
|
|
|
return getDataTable(list);
|
|
|
|
return getDataTable(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Map map = new HashMap<String,Object>();
|
|
|
|
Map map = new HashMap<String,Object>();
|
|
|
|
@ -92,9 +119,11 @@ public class SelectProRpListController extends BaseController
|
|
|
|
map.put("productType",proRpList.getProductType());
|
|
|
|
map.put("productType",proRpList.getProductType());
|
|
|
|
map.put("state",proRpList.getState());
|
|
|
|
map.put("state",proRpList.getState());
|
|
|
|
map.put("semiBarcode",proRpList.getSemiBarcode());
|
|
|
|
map.put("semiBarcode",proRpList.getSemiBarcode());
|
|
|
|
list = itBdProducttypeService.selectProLists(map);
|
|
|
|
startPage();
|
|
|
|
return getDataTable(list);
|
|
|
|
List<ProRpList> list1 = itBdProducttypeService.selectProLists(map);
|
|
|
|
|
|
|
|
return getDataTable(list1);*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 导出时段统计
|
|
|
|
* 导出时段统计
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ -111,8 +140,8 @@ public class SelectProRpListController extends BaseController
|
|
|
|
map.put("productType",proRpList.getProductType());
|
|
|
|
map.put("productType",proRpList.getProductType());
|
|
|
|
map.put("state",proRpList.getState());
|
|
|
|
map.put("state",proRpList.getState());
|
|
|
|
map.put("semiBarcode",proRpList.getSemiBarcode());
|
|
|
|
map.put("semiBarcode",proRpList.getSemiBarcode());
|
|
|
|
List<ProRpList> list = itBdProducttypeService.selectProLists(map);
|
|
|
|
|
|
|
|
ExcelUtil<ProRpList> util = new ExcelUtil<ProRpList>(ProRpList.class);
|
|
|
|
ExcelUtil<ProRpList> util = new ExcelUtil<ProRpList>(ProRpList.class);
|
|
|
|
|
|
|
|
List<ProRpList> list = itBdProducttypeService.selectProLists(map);
|
|
|
|
return util.exportExcel(list, "ProRpList");
|
|
|
|
return util.exportExcel(list, "ProRpList");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|