更新财务导入清分回执的判断
This commit is contained in:
parent
7268ed6c18
commit
982b5eb35e
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user