Commit 1749ee5b authored by suhuiguang's avatar suhuiguang

reafact(jyjc): 报检规则4.0开发

1.增加打印日志便于排查问题
parent e1ae4e44
......@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionApplication;
import com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcInspectionApplicationMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
......@@ -12,6 +13,7 @@ import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
@Service
@RequiredArgsConstructor
@Slf4j
public class DocUpdateService {
private final DocGenerateService docGenerateService;
......@@ -21,6 +23,7 @@ public class DocUpdateService {
@Async
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void genDocAndUpdate(String appSeq) {
log.info("开始异步生成报检申请表");
String filePath = docGenerateService.generateDoc(appSeq);
LambdaUpdateWrapper<JyjcInspectionApplication> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.set(JyjcInspectionApplication::getInspectAppUrl, filePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment