|
@@ -214,10 +214,10 @@ public class StorePlatformLoginServiceImpl extends ServiceImpl<StoreUserMapper,
|
|
|
|
|
|
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeId);
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeId);
|
|
|
if (storeInfo != null) {
|
|
if (storeInfo != null) {
|
|
|
- if (storeInfo.getExpirationTime().compareTo(new Date()) < 0) {
|
|
|
|
|
|
|
+ if (storeInfo.getExpirationTime() == null || storeInfo.getExpirationTime().compareTo(new Date()) < 0) {
|
|
|
jsonObject.put("expirationTime", 0);
|
|
jsonObject.put("expirationTime", 0);
|
|
|
}
|
|
}
|
|
|
- if (storeInfo.getFoodLicenceExpirationTime().compareTo(new Date()) < 0) {
|
|
|
|
|
|
|
+ if (storeInfo.getFoodLicenceExpirationTime() == null || storeInfo.getFoodLicenceExpirationTime().compareTo(new Date()) < 0) {
|
|
|
jsonObject.put("foodLicenceExpirationTime", 0);
|
|
jsonObject.put("foodLicenceExpirationTime", 0);
|
|
|
}
|
|
}
|
|
|
if (storeInfo.getEntertainmentLicenceExpirationTime() != null && storeInfo.getEntertainmentLicenceExpirationTime().compareTo(new Date()) < 0) {
|
|
if (storeInfo.getEntertainmentLicenceExpirationTime() != null && storeInfo.getEntertainmentLicenceExpirationTime().compareTo(new Date()) < 0) {
|