更新财务导入清分回执的判断

This commit is contained in:
panshuling321 2022-06-30 15:21:18 +08:00
parent 7268ed6c18
commit 982b5eb35e

View File

@ -290,8 +290,14 @@ public class XhpcClearingCheckoutServiceImpl extends BaseService implements Xhpc
File dataFile = DownloadUtil.downloadFile(fileUrl);
com.xhpc.common.core.utils.poi.ExcelUtil<CheckoutBankVo> util = new com.xhpc.common.core.utils.poi.ExcelUtil<CheckoutBankVo>(CheckoutBankVo.class);
List<CheckoutBankVo> checkoutList = util.importExcel(new FileInputStream(dataFile));
if(checkoutList.size() < 1){
throw new CustomException("请检查表格数据是否正确");
}
String checkoutIds = checkoutList.stream().map(CheckoutBankVo::getIndex).collect(Collectors.joining(","));
if(StringUtils.isEmpty(checkoutIds)){
throw new CustomException("请检查表格中是否包括“顺序号”列");
}
String unReceiptIds = checkoutMapper.selectIdsByStatusAndIds(checkoutIds, 1);
if (StringUtils.isNotEmpty(unReceiptIds)) {