|
|
|
@@ -57,6 +57,9 @@ public class TJDUtil { |
|
|
|
public static final String TJD_PAY_DT = "payDt"; |
|
|
|
public static final String TJD_FREE_MINS = "freeMins"; |
|
|
|
|
|
|
|
public static final SimpleDateFormat dateInFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
public static final SimpleDateFormat dateOutFormat = new SimpleDateFormat("yyyyMMddHHmmss"); |
|
|
|
|
|
|
|
|
|
|
|
private final static Logger logger = LoggerFactory.getLogger(TJDUtil.class); |
|
|
|
|
|
|
|
@@ -117,8 +120,7 @@ public class TJDUtil { |
|
|
|
*/ |
|
|
|
public static String getCurrentDate() { |
|
|
|
Date currentDate = new Date(); |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
String timestamp = sdf.format(currentDate); |
|
|
|
String timestamp = dateInFormat.format(currentDate); |
|
|
|
return timestamp; |
|
|
|
} |
|
|
|
|
|
|
|
@@ -167,7 +169,7 @@ public class TJDUtil { |
|
|
|
String service = "parkhub.car.register"; |
|
|
|
|
|
|
|
Map<String, String> paramMap = MapUtil.getOrderMap(); |
|
|
|
paramMap.put("carNum", carNum); |
|
|
|
paramMap.put(TJD_CAR_NUMBER, carNum); |
|
|
|
paramMap.put("carNumColor", carNumColor); |
|
|
|
if (phone != null) { |
|
|
|
paramMap.put("phone", phone); |
|
|
|
@@ -326,7 +328,7 @@ public class TJDUtil { |
|
|
|
// 为指定订单抵扣停车费,如果此时车辆已经出场,返回isSuccess错误码为3,停简单系统不再接收此笔抵扣信息,对方系统 需要给用户发起退款。 |
|
|
|
String service = "parkhub.order.deductionNotSettle"; |
|
|
|
Map<String, String> paramMap = MapUtil.getOrderMap(); |
|
|
|
paramMap.put("tradeId", tradeId); |
|
|
|
paramMap.put(TJD_TRADE_ID, tradeId); |
|
|
|
paramMap.put("deductionAmount", deductionAmount); |
|
|
|
paramMap.put("outTradeNo", outTradeNo); |
|
|
|
paramMap.put("accountId", accountId); |
|
|
|
|