| | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.fasterxml.jackson.databind.PropertyNamingStrategy; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import net.sourceforge.pinyin4j.PinyinHelper; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | |
| | |
| | | import java.util.Date; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | @Slf4j |
| | | public class Constants { |
| | | public static final String HEADER_USER_TOKEN = "dm_user_token"; |
| | | public static final String REDIS_USER_KEY = "user_token_list_"; |
| | |
| | | // 访客来访配置 |
| | | public static final String VISIT_CONFIG = "VISIT_CONFIG"; |
| | | public static final String MEMBER_IMG = "MEMBER_IMG"; |
| | | public static final String ACTIVATE = "ACTIVATE"; |
| | | public static final String PLATFORM_EVENT_IMG = "PLATFORM_EVENT_IMG"; |
| | | public static final String VISIT_NOTICE = "VISIT_NOTICE"; |
| | | public static final String TIME_OUT_CONFIG = "TIME_OUT_CONFIG"; |
| | |
| | | } |
| | | |
| | | |
| | | public static boolean betweenTimeConfig(String timeConfigData){ |
| | | public static boolean betweenTimeConfig(String timeConfigData,String now){ |
| | | log.error("钥匙柜获取保洁时间配置项"+timeConfigData); |
| | | if(StringUtils.isNotBlank(timeConfigData)){ |
| | | Integer nowTime = Integer.valueOf(DateUtil.getFormattedDateUtil(new Date(),"HH:mm").replace(":","")); |
| | | log.error("钥匙柜获取保洁时间 - 当前时间信息"+now); |
| | | Integer nowTime = Integer.valueOf(now.substring(11,16).replace(":","")); |
| | | |
| | | List<String> cleanConfigList = Arrays.asList(StringUtils.split(timeConfigData,",")); |
| | | for (String config:cleanConfigList) { |
| | | String [] timeArr = config.split("-"); |