会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
灬花生酱
博客园
首页
新随笔
联系
管理
订阅
2018年3月16日
查询当天某个时段之前的数据
摘要: 关键词:hour(time)获取小时,date(time)获取当天时间,curdate()获取当天时间 select * from b_get_integral where hour(get_time)=18 and date(get_time)=date(curdate())
阅读全文
posted @ 2018-03-16 16:48 灬花生酱
阅读(202)
评论(0)
推荐(0)
2017年7月7日
List进行分页操作
摘要: package com.hughes.bcsc.app.core.util; /** *//** * List分页 * 实现:利用List的获取子List方法,实现对List的分页 * @author 显武 * @date 2010-1-8 16:27:31 * */ import java.util.ArrayList; import java.util.Lis...
阅读全文
posted @ 2017-07-07 10:23 灬花生酱
阅读(503)
评论(0)
推荐(0)
2017年7月6日
根据时间把数据拼接分配成一条
摘要: select DISTINCT(DATE_FORMAT(u_dynamic_time,'%Y年%m月')) as photo_time,group_concat(u_dynamic_picture) as photo_des from b_user_dynamic where user_id =2
阅读全文
posted @ 2017-07-06 11:01 灬花生酱
阅读(164)
评论(0)
推荐(0)
2017年6月24日
List根据对象中的参数进行排序
摘要: 在实体类中进行排序: 1:实现implements Comparable<Object>接口来进行比较的重写 2:添加compareTo方法 进行比较 3:Collections.sort(X);调用方法传入集合进行排序
阅读全文
posted @ 2017-06-24 10:23 灬花生酱
阅读(804)
评论(0)
推荐(0)
2017年6月23日
插入数据时用参数进行判断
摘要: 插入数据时用参数进行判断,插入哪条数据(type也是传入参数)
阅读全文
posted @ 2017-06-23 11:49 灬花生酱
阅读(275)
评论(0)
推荐(0)
根据生日来计算年龄
摘要: String[] birth = 生日.split("年"); Integer year = Calendar.getInstance().get(Calendar.YEAR);//得出年龄 Integer age = year-Integer.parseInt(birth[0]);
阅读全文
posted @ 2017-06-23 10:05 灬花生酱
阅读(168)
评论(0)
推荐(0)
某个时间与当前时间相差多久(年/月/日/小时)
摘要: //判断时间距今天还多少天 public String getBzTime(String bzrq) throws Exception{ Date myDate = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); ...
阅读全文
posted @ 2017-06-23 10:01 灬花生酱
阅读(630)
评论(0)
推荐(0)
根据两点间经纬度计算距离-方法
摘要: 根据2点间的经纬度判断距离
阅读全文
posted @ 2017-06-23 09:51 灬花生酱
阅读(355)
评论(0)
推荐(0)
查询固定经纬度范围内的人员-数据库
摘要: 插入模拟测试数据 address longitude latitude 1 115.966291 28.684432 115.959871 28.669313 115.930901 28.700844 120.251551 30.165675 115.906261 28.666856 115.873
阅读全文
posted @ 2017-06-23 09:45 灬花生酱
阅读(367)
评论(0)
推荐(0)
聚合数据实名认证接口-java方法
摘要: 只需要填入购买的APPKEY,然后直接调用方法JuheDemo.info(user_name, anchor_card);传入姓名和身份证号,根据获取的返回参数进行拆分,如res=1说明正确。 //进行实名认证 String result=JuheDemo.info(user_name, ancho
阅读全文
posted @ 2017-06-23 09:23 灬花生酱
阅读(3345)
评论(0)
推荐(1)
下一页
公告