摘要: 笔记:使用mongo聚合查询(一开始根本没接触过mongo,一点一点慢慢的查资料完成了工作需求) 需求:在订单表中,根据buyerNick分组,统计每个buyerNick的电话、地址、支付总金额以及总商品数,返回结果是CustomerDetail。 Trade表: CustomerDetail: O 阅读全文
posted @ 2018-03-15 12:09 MrBeanzz 阅读(8158) 评论(2) 推荐(0) 编辑
摘要: js: function chart(data,title){ $('#container').highcharts({ chart: { type: 'bar' }, title: { text: title }, subtitle: { text: '数据来源:' }, xAxis: { cat 阅读全文
posted @ 2017-06-06 18:45 MrBeanzz 阅读(413) 评论(0) 推荐(0) 编辑
摘要: ...... // 通过GSON解析,使用4个实体类来接受(TotalResponse、TradeRateResponse、TradeRatess、TbTradeRates) GsonBuilder gsonBuidler = new GsonBuilder();//使用GsonBuilder来创建 阅读全文
posted @ 2017-03-09 18:01 MrBeanzz 阅读(2633) 评论(0) 推荐(0) 编辑
摘要: var itemCount;//符合查找条件的商品总页数,分页参考 var pageIndex = 0;//当前页,默认为0 var pageSize = 8;//每页显示个数为8 //按条件查找用户 function searchItem(pageIndex,pageSize){ //清空要app 阅读全文
posted @ 2017-03-09 09:36 MrBeanzz 阅读(1647) 评论(0) 推荐(0) 编辑