ThinkPHP - 国内PHP框架 http://www.thinkphp.cn/、 OneThink-基于tp框架开发的CMS (适于小项目) http://www.onethink.cn/、 TP-Shop - 基于TP框架开发的商城网站 http://www.tp-shop.cn/、 Thi ...
分类:
Web程序 时间:
2016-06-14 17:40:26
阅读次数:
148
大众点评店铺的地图从HTML源码中却找不到坐标(经纬度)信息。 分析JS发现原来它是把坐标(经纬度)信息进行了转换(防采集),就是HTML中的poi参数。 以 http://www.dianping.com/shop/4101814 店铺为例。 源文件中有 poi 的部分(poi: 'HETSIFZ... ...
分类:
其他好文 时间:
2016-06-13 19:08:34
阅读次数:
195
方法1tmp_channel_hive_file="/tmp/tmp_channel_hive_file"tmp_channel_hive_file_new="/tmp/tmp_channel_hive_file_new"db="t_merchant_shop_channel_top_daily_n ...
分类:
数据库 时间:
2016-06-01 13:09:23
阅读次数:
187
有两个文件一个是 文件1:sync_shop_source_bimer.sh 文件2:sync_shop_source_bimer.py 在sync_shop_source_bimer.sh 中调用sync_shop_source_bimer.py 文件1中产生的文件要传递给文件2 文件1中的内容 ...
分类:
编程语言 时间:
2016-06-01 13:03:18
阅读次数:
286
1,写入值(30,31),更新到数据表的多条记录。 sqlStr= "selectcolumn_idfrom1dcq_shop_column2whereshop_id=‘"+db_Shop_id+"‘" defdbSettings=[] defdb_sub_column_id="" sqlResult=sql.eachRow(sqlStr) { dbSettings<<it.toRowResult() } for(i=0;i<dbSettings...
分类:
其他好文 时间:
2016-05-31 16:10:00
阅读次数:
2087
控制器:RoleController 操作方法:showlist 商品列表界面,在left.html中 <table id=child{$v.auth_id} style="display:none" cellspacing=0 cellpadding=0 width=150 border=0> { ...
分类:
其他好文 时间:
2016-05-30 12:36:41
阅读次数:
213
Model是对数据库的操作 之前两章已经说了MVC中的V(view)和C(controller),这一章主要讲M(model). 一、连接数据库 首先要创造一个操作数据库 之后打开shop查看原始配置 之后我们去配置自己的数据库 这样,数据库就配置好了。 二、创建model类 原则上来讲,一个mod ...
分类:
数据库 时间:
2016-05-29 16:48:31
阅读次数:
408
part1: 此语句属于Transact-SQL语言(SQL Server等适用的数据库语言) OFFSET=偏移,跳过 FETCH = 取 另外OFFSET可以单独使用,如下,既跳过前十万条: 假装有个表Shop,其中有一列ShopName,取100000到100050条数据。 ROW_NUMBE ...
分类:
其他好文 时间:
2016-05-28 14:23:46
阅读次数:
145
for(Shop s:list) { System.out.println(s.getName()); String sql="select shopId,sum(ele_bank+ele_card+water_card+water_bank+coal_card+coal_bank) as zong ...
分类:
其他好文 时间:
2016-05-28 14:18:31
阅读次数:
156
select a.id,a.ssmz,(select count(ssmz) from shop_tourist_key b where b.ssmz=a.ssmz) as count from shop_tourist_key a WHERE a.ssmz is not null group by ...
分类:
数据库 时间:
2016-05-25 14:41:17
阅读次数:
173