|
|
@ -33,6 +33,8 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.*; |
|
|
|
import java.util.concurrent.CompletableFuture; |
|
|
|
import java.util.concurrent.ThreadPoolExecutor; |
|
|
@ -185,10 +187,10 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
|
log.error("异常信息:" + e.toString()); |
|
|
|
} |
|
|
|
}, pool); |
|
|
|
CompletableFuture.runAsync(() -> { |
|
|
|
//todo 检查事务是否会失效
|
|
|
|
autoDeleteBill(easOutInBillDetails, existingIds); |
|
|
|
}, pool); |
|
|
|
// CompletableFuture.runAsync(() -> {
|
|
|
|
// //todo 检查事务是否会失效
|
|
|
|
// autoDeleteBill(easOutInBillDetails, existingIds);
|
|
|
|
// }, pool);
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -212,6 +214,8 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
|
} else { |
|
|
|
//srm的未入库改为提交
|
|
|
|
bill.setDjzt("提交"); |
|
|
|
bill.setCjsj(LocalDateTime.parse(bill.getCjsj(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")).toLocalDate().toString()); |
|
|
|
bill.setYwrq(LocalDateTime.parse(bill.getYwrq(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")).toLocalDate().toString()); |
|
|
|
} |
|
|
|
}) |
|
|
|
.collect(Collectors.toList()); |
|
|
|