解决单据单号模糊查询的bug
This commit is contained in:
@@ -305,27 +305,39 @@ public class DepotHeadService {
|
||||
public Map<String, BigDecimal> getFinishDepositMapByNumberList(List<String> numberList) {
|
||||
List<FinishDepositVo> list = depotHeadMapperEx.getFinishDepositByNumberList(numberList);
|
||||
Map<String,BigDecimal> finishDepositMap = new HashMap<>();
|
||||
if(list!=null && list.size()>0) {
|
||||
for (FinishDepositVo finishDepositVo : list) {
|
||||
if(finishDepositVo!=null) {
|
||||
finishDepositMap.put(finishDepositVo.getNumber(), finishDepositVo.getFinishDeposit());
|
||||
}
|
||||
}
|
||||
}
|
||||
return finishDepositMap;
|
||||
}
|
||||
|
||||
public Map<String, Integer> getBillSizeMapByLinkNumberList(List<String> numberList) throws Exception {
|
||||
List<DepotHead> list = getBillListByLinkNumberList(numberList);
|
||||
Map<String, Integer> billListMap = new HashMap<>();
|
||||
if(list!=null && list.size()>0) {
|
||||
for (DepotHead depotHead : list) {
|
||||
if(depotHead!=null) {
|
||||
billListMap.put(depotHead.getLinkNumber(), list.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
return billListMap;
|
||||
}
|
||||
|
||||
public Map<Long,Integer> getFinancialBillNoMapByBillIdList(List<Long> idList) {
|
||||
List<AccountItem> list = accountHeadService.getFinancialBillNoByBillIdList(idList);
|
||||
Map<Long, Integer> billListMap = new HashMap<>();
|
||||
if(list!=null && list.size()>0) {
|
||||
for (AccountItem accountItem : list) {
|
||||
if(accountItem!=null) {
|
||||
billListMap.put(accountItem.getBillId(), list.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
return billListMap;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user