|
|
@@ -240,7 +240,7 @@ public class HlwInvoiceServiceImpl extends ServiceImpl<HlwInvoiceMapper, HlwInvo
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void saveHlwInvoice(HlwInvoice hlwInvoice) {
|
|
|
+ public Result saveHlwInvoice(HlwInvoice hlwInvoice) {
|
|
|
//慧盈查询开票申请列表
|
|
|
String accessToken = OauthTokenUtils.getDayAccessToken();
|
|
|
String requestUrl = OauthApi.INVOICE_APPLY_INVOICE;
|
|
|
@@ -266,8 +266,9 @@ public class HlwInvoiceServiceImpl extends ServiceImpl<HlwInvoiceMapper, HlwInvo
|
|
|
if (jsonObject != null) {
|
|
|
if (jsonObject.getBoolean(HttpsContants.SUCCESS_FLAG)) {
|
|
|
log.info("开票===={}", jsonObject);
|
|
|
+ return Result.ok(jsonObject.getString("message"));
|
|
|
} else {
|
|
|
- throw new JeecgBootException("开票异常");
|
|
|
+ return Result.error(jsonObject.getString("message"));
|
|
|
}
|
|
|
} else {
|
|
|
throw new JeecgBootException("开票异常");
|