java8 检查
// 检查放款日期
boolean allMatch = cdiscountMonthBillDetails.stream().map(CdiscountMonthBillDetail::getTransferDate)
.distinct()
.allMatch(transferDate -> transferDate.getYear() * 100 + transferDate.getMonthValue() == exist
.getMonth());
Assert.isTrue(allMatch, "文件[" + file.getOriginalFilename() + "]放款日期错误");

浙公网安备 33010602011771号