|
@@ -181,7 +181,7 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
//通知商户
|
|
|
MerchNoti merchNoti = builder.code(WxContants.ERROR_FAIL)
|
|
|
.msg(wxResponseMsgDto.getReturnMsg())
|
|
|
- .cusDeclStatus(WxDict.MerchNoticeStatus.i_12.getItem())
|
|
|
+ .cusDeclStatus(WxDict.MerchNoticeStatus.i_13.getItem())
|
|
|
.build();
|
|
|
merchNotis.add(merchNoti);
|
|
|
}
|
|
@@ -209,7 +209,7 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
|
|
|
MerchNoti merchNoti = builder.code(WxContants.ERROR_FAIL)
|
|
|
.msg("未申报")
|
|
|
- .cusDeclStatus(WxDict.MerchNoticeStatus.i_12.getItem())
|
|
|
+ .cusDeclStatus(WxDict.MerchNoticeStatus.i_10.getItem())
|
|
|
.build();
|
|
|
merchNotis.add(merchNoti);
|
|
|
}
|
|
@@ -242,7 +242,7 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
|
|
|
MerchNoti merchNoti = builder.code(wxResponseMsgDto.getErrCode())
|
|
|
.msg(wxResponseMsgDto.getErrCodeDes())
|
|
|
- .cusDeclStatus(WxDict.MerchNoticeStatus.i_13.getItem())
|
|
|
+ .cusDeclStatus(WxDict.MerchNoticeStatus.i_12.getItem())
|
|
|
.build();
|
|
|
merchNotis.add(merchNoti);
|
|
|
}
|
|
@@ -252,7 +252,7 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
|
|
|
MerchNoti merchNoti = builder.code(WxContants.ERROR_FAIL)
|
|
|
.msg("海关申报失败")
|
|
|
- .cusDeclStatus(WxDict.MerchNoticeStatus.i_12.getItem())
|
|
|
+ .cusDeclStatus(WxDict.MerchNoticeStatus.i_13.getItem())
|
|
|
.build();
|
|
|
merchNotis.add(merchNoti);
|
|
|
}
|
|
@@ -262,7 +262,7 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
|
|
|
MerchNoti merchNoti = builder.code(WxContants.ERROR_EXCEPT)
|
|
|
.msg("海关接口异常")
|
|
|
- .cusDeclStatus(WxDict.MerchNoticeStatus.i_12.getItem())
|
|
|
+ .cusDeclStatus(WxDict.MerchNoticeStatus.i_13.getItem())
|
|
|
.build();
|
|
|
merchNotis.add(merchNoti);
|
|
|
}
|
|
@@ -279,12 +279,12 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
|
|
|
MerchNoti merchNoti = builder.code(wxResponseMsgDto.getErrCode())
|
|
|
.msg(wxResponseMsgDto.getErrCodeDes())
|
|
|
- .cusDeclStatus(WxDict.MerchNoticeStatus.i_12.getItem())
|
|
|
+ .cusDeclStatus(WxDict.MerchNoticeStatus.i_13.getItem())
|
|
|
.build();
|
|
|
merchNotis.add(merchNoti);
|
|
|
}
|
|
|
|
|
|
- } catch (IOException e) {
|
|
|
+ } catch (Exception e) {
|
|
|
logger.error("数据请求异常的支付单请求数据为xml:"+xml, e);
|
|
|
WxPayError wxPayError = createWxPayError(wxCbPayDoc);
|
|
|
errors.add(wxPayError);
|
|
@@ -313,7 +313,7 @@ public class WxCusDeclare extends AbstractCusDeclare implements CusDeclare{
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("持久化支付申报异常信息数据失败data:" + errors, e);
|
|
|
- return;
|
|
|
+ throw new RuntimeException("持久化支付申报异常信息数据失败data:",e);
|
|
|
}
|
|
|
}
|
|
|
|