|
|
@@ -215,7 +215,7 @@ public enum KymCache {
|
|
|
* 通过productKey和deviceName获取设备短编号
|
|
|
*/
|
|
|
public String getShortIdByProductKeyAndDeviceName(String productKey, String deviceName) {
|
|
|
- return SHORT_ID_TO_PRODUCT_KEY_AND_DEVICE_NAME_MAPPING.entrySet().stream().filter(entry -> (productKey + "," + deviceName).equals(entry.getValue())).map(Map.Entry::getKey).findFirst().get();
|
|
|
+ return SHORT_ID_TO_PRODUCT_KEY_AND_DEVICE_NAME_MAPPING.entrySet().stream().filter(entry -> (productKey + "," + deviceName).equals(entry.getValue())).map(Map.Entry::getKey).findFirst().orElse(null);
|
|
|
}
|
|
|
|
|
|
public void setParkingCouponCode(String code, String parkingCouponUrl, Long seconds) {
|