Browse Source

历史运单 开始、结束指令 接口 关闭

mashengyi 1 year ago
parent
commit
6305d0c102

+ 16 - 0
src/main/java/com/jkcredit/invoice/credit/interserver/NoCarInterServiceImpl.java

@@ -528,6 +528,13 @@ public class NoCarInterServiceImpl implements NoCarInterService {
         result.setMsg("无法认证");
         try {
             log.info("[-NoCarInterServiceImpl.noCarHisWaybillStart-] request appKey=" + appKey + " ,api=" + api + " ,data=" + StringUtil.removeJSonField(data,"base64Str") + " ,requestid=" + requestid);
+
+            String param = paramService.getParamsByParamName("NO_CAR_HISWAY_BILL_ON_OFF").getParamValue();
+            if (StringUtils.isBlank(param) || !StringUtils.equals(ONE, param)) {
+                result.setMsg("历史运单开始指令接口已关闭");
+                return result;
+            }
+
             JSONObject jsonObject = JSONObject.parseObject(data);
             //运单编号 必选
             String num = jsonObject.getString("num");
@@ -749,6 +756,15 @@ public class NoCarInterServiceImpl implements NoCarInterService {
 
         try {
             log.info("[-NoCarInterServiceImpl.noCarHisWaybillEnd-] request appKey=" + appKey + " ,api=" + api + " ,data=" + StringUtil.removeJSonField(data,"base64Str") + " ,requestid=" + requestid);
+
+            String param = paramService.getParamsByParamName("NO_CAR_HISWAY_BILL_ON_OFF").getParamValue();
+
+            if (StringUtils.isBlank(param) || !StringUtils.equals(ONE, param)) {
+                result.setMsg("历史运单结束指令接口已关闭");
+                return result;
+            }
+
+
             JSONObject jsonObject = JSONObject.parseObject(data);
             //运单号 必输
             String num = jsonObject.getString("num");