自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 递归查询三级菜单

//预加载查询所有数据库数据@PostConstruct private void init(){ menuList = roleInfoService.sysMenuListss(); }//递归取@GetMapping("qiaodq")public ApiResponse qiaodq(){ System.out.printf(menuList.toStr...

2018-11-24 15:40:08 2222 2

原创 系统角色权限分配

角色添加权限:权限表角色表前端勾选权限列表,USER_AUTH转换成二进制,1 | 2 = 1 | 10 = 11 对应的角色ROLE_AUTH = 3角色权限回显:根据ROLE_AUTH循环比较USER_AUTH,3 & 1 = 11 & 01  = 01 ,3&2 = 11 & 10 = 10 = 2;...

2018-10-30 10:40:12 5528

原创 取商品不同规格的第一个价格

select t2.name,t2.flowersPic,t2.flowersId,t2.intro,group_concat(t1.price) as pricefrom b2017_mt_flowers t2 left join b2017_mt_format t1 on t1.flowersId = t2.flowersId wheret2.flag = 1 and t2.isDel =...

2018-08-13 15:01:12 257

原创 mysql解压版本安装

    1、新建my.ini配置文件,配置mysql路径    2、cmd cd mysql/bin路径    3、mysql -install    4、mysqld --initialize-insecure    初始化,生成data文件夹    5、net start mysql    启动mysql服务    6、mysql -u root -p     进入数据库,无密...

2018-08-02 13:17:31 182

原创 基础商城的订单展示商品

conroller层 public void flowersOrder(){                         String userId = getPara("userId", "");                         Flowerorder model = new Flowerorder(); Flowersrelation flowers = new F...

2018-07-14 12:22:16 254

原创 计算距离并根据距离排序

import java.util.Collections;import java.util.Comparator;import java.util.List;import com.alibaba.fastjson.JSONObject;import com.jfinal.plugin.activerecord.Record;import com.xiaheng.annotation.RouteVi...

2018-07-14 12:19:50 1572

原创 根据经纬度计算距离

//地球平均半径 public static final double EARTH_RADIUS = 6378.137; //把经纬度转为度 private static double rad(double d ){ return d * Math.PI / 180.0; } //开启计算,芭啦芭啦 public static double getDistance(double lng1, d...

2018-07-14 12:14:42 655

转载 地址解析经纬度

//开启地址解析public static final String KEY_1 = "百度云申请key";     /**     * 返回输入地址的经纬度坐标     * key lng(经度),lat(纬度)     */    public static Map<String,String> getGeocoderLatitude(String address){       ...

2018-07-14 12:13:26 1595

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除