给进销存统计报表增加商品类别的筛选参数

This commit is contained in:
季圣华
2023-05-14 18:05:28 +08:00
parent fbdfdd73ed
commit 6594130333
4 changed files with 34 additions and 7 deletions

View File

@@ -299,20 +299,20 @@ public class DepotItemService {
return list;
}
public List<DepotItemVo4WithInfoEx> findByAll(String materialParam, String endTime, Integer offset, Integer rows)throws Exception {
public List<DepotItemVo4WithInfoEx> findByAll(String materialParam, List<Long> categoryIdList, String endTime, Integer offset, Integer rows)throws Exception {
List<DepotItemVo4WithInfoEx> list =null;
try{
list = depotItemMapperEx.findByAll(materialParam, endTime, offset, rows);
list = depotItemMapperEx.findByAll(materialParam, categoryIdList, endTime, offset, rows);
}catch(Exception e){
JshException.readFail(logger, e);
}
return list;
}
public int findByAllCount(String materialParam, String endTime)throws Exception {
public int findByAllCount(String materialParam, List<Long> categoryIdList, String endTime)throws Exception {
int result=0;
try{
result = depotItemMapperEx.findByAllCount(materialParam, endTime);
result = depotItemMapperEx.findByAllCount(materialParam, categoryIdList, endTime);
}catch(Exception e){
JshException.readFail(logger, e);
}