Commit da1b8743 by 罗承锋

修改小白卡接口参数

parent 190bd4a4
...@@ -352,11 +352,11 @@ public enum CityCode { ...@@ -352,11 +352,11 @@ public enum CityCode {
c8654300("8654300","阿勒泰地区"), c8654300("8654300","阿勒泰地区"),
c8659000("8659000","自治区直辖县级行政区划"); c8659000("8659000","自治区直辖县级行政区划");
private String city;
private String code; private String code;
CityCode(String city, String code) { private String city;
CityCode(String code, String city) {
this.city = city; this.city = city;
this.code = code; this.code = code;
} }
...@@ -378,5 +378,4 @@ public enum CityCode { ...@@ -378,5 +378,4 @@ public enum CityCode {
} }
return ""; return "";
} }
} }
...@@ -470,9 +470,14 @@ public class PackageNewClothes { ...@@ -470,9 +470,14 @@ public class PackageNewClothes {
return ResponseData.error("请选择邮寄地区"); return ResponseData.error("请选择邮寄地区");
} }
String code = CityCode.getCodeByCity(shi);
if (StringUtils.isBlank(code)) {
return ResponseData.error("所选地区小白卡无法配送");
}
// 根据市获取编号 // 根据市获取编号
jsonObject = XbkUtil.xbkOrderJT0002(businessNumber, idCard, jsonObject = XbkUtil.xbkOrderJT0002(businessNumber, idCard,
customerName, contactNumber, xbId, netId, CityCode.getCodeByCity(shi), address); customerName, contactNumber, xbId, netId, code, address);
} catch (Exception e) { } catch (Exception e) {
log.error("小白卡下单接口调用异常", e.getMessage()); log.error("小白卡下单接口调用异常", e.getMessage());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment