摘要:
1 检查cron 2 安装 crontab : apt-get install cron 3 启动服务 /etc/init.d/cron status /etc/init.d/cron start 或 service start cron 阅读全文
摘要:
select max(CONVERT(replace(reverse(FORMAT(reverse(name), 0)), ',', ''), UNSIGNED )) from dual 阅读全文
摘要:
Integer[] rank = {1}; entry.getValue().stream().peek(ro->ro.setRank(rank[0]++)).collect(Collectors.toList()) 阅读全文
摘要:
import com.alibaba.druid.support.json.JSONUtils Map<String,String> map = new HashMap<>(); map.put("test","AA"); String str = JSONUtils.toJSONString(ma 阅读全文
摘要:
import com.alibaba.fastjson.JSONObject; Map<String, Object> map = JSONObject.parseObject(obj.toString(), new TypeReference<Map<String, Object>>(){}); 阅读全文
摘要:
String codes = lineVOList.stream().filter(ro->!ObjectUtils.isEmpty(ro.getCode())) .collect(Collectors.groupingBy(lineVO::getCode,Collectors.counting() 阅读全文
摘要:
private static final String UN_KNOWN = "unKnown"; private static String getIpAddress() { if (ObjectUtils.isEmpty(RequestContextHolder.getRequestAttrib 阅读全文
摘要:
let keys = Object.keys(data) for (let i =0; i < keys.length; i++) { if(keys[i]!='creationDate'){ this.$set(this.config.data[index], keys[i], data[keys 阅读全文
摘要:
let notIdList = data.filter(item => !!!item.lineId); let ids = notIdList.map(ro=>ro.itemId).join(",") 阅读全文
摘要:
BigDecimal a = new BigDecimal("34.560000"); BigDecimal b = a.stripTrailingZeros(); String c = a.stripTrailingZeros().toPlainString(); 阅读全文