优化根据仓库和商品查询单据列表接口
This commit is contained in:
@@ -168,28 +168,28 @@ public class DepotItemService {
|
||||
return list==null?0:list.size();
|
||||
}
|
||||
|
||||
public List<DepotItemVo4DetailByTypeAndMId> findDetailByDepotIdsAndMaterialIdList(String depotIds, Long mId, int offset, int rows)throws Exception {
|
||||
public List<DepotItemVo4DetailByTypeAndMId> findDetailByDepotIdsAndMaterialIdList(String depotIds, String sku, Long mId, int offset, int rows)throws Exception {
|
||||
String [] depotIdArray = null;
|
||||
if(StringUtil.isNotEmpty(depotIds)) {
|
||||
depotIdArray = depotIds.split(",");
|
||||
}
|
||||
List<DepotItemVo4DetailByTypeAndMId> list =null;
|
||||
try{
|
||||
list = depotItemMapperEx.findDetailByDepotIdsAndMaterialIdList(depotIdArray, mId, offset, rows);
|
||||
list = depotItemMapperEx.findDetailByDepotIdsAndMaterialIdList(depotIdArray, sku, mId, offset, rows);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public Long findDetailByDepotIdsAndMaterialIdCount(String depotIds, Long mId)throws Exception {
|
||||
public Long findDetailByDepotIdsAndMaterialIdCount(String depotIds, String sku, Long mId)throws Exception {
|
||||
String [] depotIdArray = null;
|
||||
if(StringUtil.isNotEmpty(depotIds)) {
|
||||
depotIdArray = depotIds.split(",");
|
||||
}
|
||||
Long result =null;
|
||||
try{
|
||||
result = depotItemMapperEx.findDetailByDepotIdsAndMaterialIdCount(depotIdArray, mId);
|
||||
result = depotItemMapperEx.findDetailByDepotIdsAndMaterialIdCount(depotIdArray, sku, mId);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user