|
|
|
@@ -61,6 +61,7 @@ public class HaiKangWeiShiUtil { |
|
|
|
public static final String GET_FEE = "https://open.hikyun.com/artemis/api/pmsc/v1/pay/quickGetVehicleBill"; |
|
|
|
public static final String COUPON_USE = "https://open.hikyun.com/artemis/api/pmsc/v1/coupon/addition"; |
|
|
|
public static final String SUBSCRIPTION = "https://open.hikyun.com/artemis/api/pmsc/v1/sub/subscription"; |
|
|
|
public static final String CAR_STOP_INFO = "https://open.hikyun.com/artemis/api/pmsc/v1/tempCarInRecords/page"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@@ -211,6 +212,45 @@ public class HaiKangWeiShiUtil { |
|
|
|
return attribute; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 3.5.7 查询停车信息 |
|
|
|
* |
|
|
|
* "inRecordSyscode": "h45h45h45ghhn45tg245g45r", |
|
|
|
"parkId": "6534543543554", |
|
|
|
"parkName": "停车库 1", |
|
|
|
"plateNo": "浙 A12345", |
|
|
|
"plateNoPicId": "hj53h4h45t45t45t3t234t2t2t45t45t", |
|
|
|
"vehiclePicId": "u65h45g45yh56y54y34y34y345y3" |
|
|
|
"inTime": "2018-07-26T15:00:00+08:00", |
|
|
|
"parkTime": "3 小时 10 分钟" |
|
|
|
*/ |
|
|
|
public JSONObject getCarStopInfo(WxPark wxPark,String token,String Authrozitaion,String carNumber) { |
|
|
|
String vendroParams = wxPark.getVendorParams(); |
|
|
|
JSONObject vp = JSON.parseObject(vendroParams); |
|
|
|
Map<String,Object> params = new HashMap<String,Object>(); |
|
|
|
params.put("pageNo", 1); |
|
|
|
params.put("pageSize", 1); |
|
|
|
params.put("parkId", wxPark.getParkingId());//商户编号 |
|
|
|
params.put("plateNo", carNumber); |
|
|
|
String retCode = ProcBussiness(CAR_STOP_INFO, params,token,Authrozitaion); |
|
|
|
if (StringUtils.isBlank(retCode)) { |
|
|
|
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(), "haikang getCarStopInfo error. has no result"); |
|
|
|
} |
|
|
|
JSONObject result = JSON.parseObject(retCode); |
|
|
|
|
|
|
|
Integer errStatus = result.getInteger("status"); |
|
|
|
if (null != errStatus) { |
|
|
|
throw new MallinkException(errStatus,"haikang getCarStopInfo error.["+result.getString("error")+"]"+result.getString("message")); |
|
|
|
} |
|
|
|
|
|
|
|
if (!result.getString("code").equals("0") ) { |
|
|
|
String message = result.getString("msg"); |
|
|
|
throw new MallinkException(result.getInteger("code"), "haikang getCarStopInfo error."+message); |
|
|
|
} |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 2、有优惠券方式 |
|
|
|
发优惠券的时候是会返回一个优惠券id(3.5.9.1), |
|
|
|
@@ -223,6 +263,7 @@ public class HaiKangWeiShiUtil { |
|
|
|
public JSONObject useCoupon(WxPark wxPark,String couponNo,String carNumber,String orderNo,String token,String Authrozitaion){ |
|
|
|
String vendroParams = wxPark.getVendorParams(); |
|
|
|
JSONObject vp = JSON.parseObject(vendroParams); |
|
|
|
|
|
|
|
Map<String,Object> params = new HashMap<String,Object>(); |
|
|
|
Map couponmap = new HashMap(); |
|
|
|
couponmap.put("plateNo", carNumber); |
|
|
|
|