ariesy 增加throw

release
yefei 2 years ago
parent 80a101850c
commit 338b0f4b9e
  1. 2
      dxhy-core/src/main/java/com/dxhy/core/job/service/InvoiceInterfaceService.java
  2. 9
      dxhy-core/src/main/java/com/dxhy/core/job/service/impl/InvoiceInterfaceServiceImpl.java

@ -48,7 +48,7 @@ public interface InvoiceInterfaceService {
* @param aceKey
* @return void
*/
void sendSelectRequest(String string, String db, String aceId, String aceKey);
void sendSelectRequest(String string, String db, String aceId, String aceKey) throws Exception;
/**
* 获取税号

@ -11,11 +11,7 @@ import java.util.*;
import javax.annotation.Resource;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import com.dxhy.core.job.thread.InvoiceParseHandle;
import org.apache.commons.lang.StringUtils;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
@ -40,6 +36,7 @@ import com.dxhy.core.rabbitmq.Sender;
import cn.hutool.core.codec.Base64;
import cn.hutool.http.HttpUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional;
/**
* 功能描述
@ -531,7 +528,7 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService {
*/
@Override
@Transactional(rollbackFor = Exception.class)
public void sendSelectRequest(String taxno, String db, String aceId, String aceKey) {
public void sendSelectRequest(String taxno, String db, String aceId, String aceKey) throws Exception {
// 请求通用头
GlobalInfo globalInfo = new GlobalInfo();
// 请求通用
@ -615,7 +612,7 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService {
} catch (Exception e) {
e.printStackTrace();
throw new Exception(e);
}
}

Loading…
Cancel
Save