salaryAdjustmentFile.creat(idWorker.nextStringId()); //如果满足下面条件则删除元素 if((salaryAdjustmentFile.getValueBeforeAdjustment().subtract(salaryAdjustmentFile.getValueAfterAdjustment()) == BigDecimal.ZERO)){ fileList.remove(salaryAdjustmentFile); } }); 上面的代码在运行的时候,并不会如我们期望的...
//如果满⾜下⾯条件则删除元素 if((salaryAdjustmentFile.getValueBeforeAdjustment().subtract(salaryAdjustmentFile.getValueAfterAdjustment()) == BigDecimal.ZERO)){ fileList.remove(salaryAdjustmentFile); } });上⾯的代码在运⾏的时候,并不会如我们期望的⼀样删除list元素成功,⽽是...