|
@@ -18,6 +18,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Optional;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -69,10 +70,10 @@ public class CustomsDeclarationServiceImpl extends ServiceImpl<CustomsDeclaratio
|
|
.setHggq(customsDeclarationDtlVO.getSbhggqkajc() + "(" + customsDeclarationDtlVO.getSbhggqkaDm() + ")");
|
|
.setHggq(customsDeclarationDtlVO.getSbhggqkajc() + "(" + customsDeclarationDtlVO.getSbhggqkaDm() + ")");
|
|
customsDeclarationDtlVO.setCustomsDeclarationGoodsDtlVOList(customsDeclarationGoodsService
|
|
customsDeclarationDtlVO.setCustomsDeclarationGoodsDtlVOList(customsDeclarationGoodsService
|
|
.listWithCustomsDeclarationDtlByOrderId(customsDeclarationDtlVO.getOrderId()));
|
|
.listWithCustomsDeclarationDtlByOrderId(customsDeclarationDtlVO.getOrderId()));
|
|
- customsDeclarationDtlVO.setEntrustFile(new FileAbstractDto(
|
|
|
|
- tFileStorageService.getFileStorageById(customsDeclarationDtlVO.getEntrustFileId())));
|
|
|
|
- customsDeclarationDtlVO.setCustomsFile(new FileAbstractDto(
|
|
|
|
- tFileStorageService.getFileStorageById(customsDeclarationDtlVO.getCustomsFileId())));
|
|
|
|
|
|
+ Optional.ofNullable(customsDeclarationDtlVO.getEntrustFileId()).ifPresent(fileId -> customsDeclarationDtlVO
|
|
|
|
+ .setEntrustFile(new FileAbstractDto(tFileStorageService.getFileStorageById(fileId))));
|
|
|
|
+ Optional.ofNullable(customsDeclarationDtlVO.getCustomsFileId()).ifPresent(fileId -> customsDeclarationDtlVO
|
|
|
|
+ .setCustomsFile(new FileAbstractDto(tFileStorageService.getFileStorageById(fileId))));
|
|
return customsDeclarationDtlVO;
|
|
return customsDeclarationDtlVO;
|
|
}
|
|
}
|
|
|
|
|