|
|
|
@ -75,6 +75,7 @@ import java.time.LocalDate; |
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.concurrent.CompletableFuture; |
|
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
|
import java.util.function.Function; |
|
|
|
|
import java.util.function.Predicate; |
|
|
|
@ -2161,7 +2162,7 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
private boolean GenerateEntrustmentLetterPDF(EntrustmentVO ev /*, HttpServletRequest theHttpServletRequest, HttpServletResponse httpServletResponse*/) throws Exception { |
|
|
|
|
private boolean GenerateEntrustmentLetterPDF(EntrustmentVO ev) throws Exception { |
|
|
|
|
System.out.println("bizGenerateEntrustmentWord................."); |
|
|
|
|
|
|
|
|
|
//try {
|
|
|
|
@ -2519,7 +2520,15 @@ public class EntrustmentServiceImpl extends ServiceImpl<EntrustmentMapper, Entru |
|
|
|
|
if (!this.updateById(entrustment)) { |
|
|
|
|
throw new RuntimeException("保存委托信息失败"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 更新委托书和确认书
|
|
|
|
|
CompletableFuture.runAsync(() -> { |
|
|
|
|
this.generateIdentifyItemsBook(entrustment.getId()); |
|
|
|
|
try { |
|
|
|
|
GenerateEntrustmentLetterPDF(this.getEntrustmentVOById(entrustment.getId())); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("委托书重新生成失败, 失败原因: {}", e.getMessage()); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
//同步第三方禁毒系统的受理功能 开始--------------------------------------------------------------
|
|
|
|
|
boolean isSuccess = true; |
|
|
|
|