摘要: 关键词: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 灬花生酱 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 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 灬花生酱 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 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 灬花生酱 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 在实体类中进行排序: 1:实现implements Comparable<Object>接口来进行比较的重写 2:添加compareTo方法 进行比较 3:Collections.sort(X);调用方法传入集合进行排序 阅读全文
posted @ 2017-06-24 10:23 灬花生酱 阅读(795) 评论(0) 推荐(0) 编辑
摘要: 插入数据时用参数进行判断,插入哪条数据(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 灬花生酱 阅读(166) 评论(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 灬花生酱 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 根据2点间的经纬度判断距离 阅读全文
posted @ 2017-06-23 09:51 灬花生酱 阅读(347) 评论(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 灬花生酱 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 只需要填入购买的APPKEY,然后直接调用方法JuheDemo.info(user_name, anchor_card);传入姓名和身份证号,根据获取的返回参数进行拆分,如res=1说明正确。 //进行实名认证 String result=JuheDemo.info(user_name, ancho 阅读全文
posted @ 2017-06-23 09:23 灬花生酱 阅读(3325) 评论(0) 推荐(1) 编辑