优化根据原单号批量查询关联的单据列表的方法

This commit is contained in:
季圣华
2022-12-01 21:27:24 +08:00
parent 32d2dd45f2
commit 1171ae18f2

View File

@@ -835,9 +835,13 @@ public class DepotHeadService {
* @throws Exception * @throws Exception
*/ */
public List<DepotHead> getBillListByLinkNumberList(List<String> linkNumberList)throws Exception { public List<DepotHead> getBillListByLinkNumberList(List<String> linkNumberList)throws Exception {
DepotHeadExample example = new DepotHeadExample(); if(linkNumberList!=null && linkNumberList.size()>0) {
example.createCriteria().andLinkNumberIn(linkNumberList).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED); DepotHeadExample example = new DepotHeadExample();
return depotHeadMapper.selectByExample(example); example.createCriteria().andLinkNumberIn(linkNumberList).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
return depotHeadMapper.selectByExample(example);
} else {
return new ArrayList<>();
}
} }
/** /**