摘要: 示例场景:查询customer数据表中,update_time > create_time的数据第一种方法,使用专门用来进行两个字段比较的查询条件whereColumn方法:Db::table('customer')->whereColumn('update_time', '>' ,'create_time')->select();生成的SQL语句是: SELECT * FROM `custom... 阅读全文
posted @ 2019-07-25 10:48 绘梨衣 阅读(3700) 评论(0) 推荐(0)
摘要: 1,表单模块表xxx_fields_data 2,自定义字段表xxx_fields 两张表的关系xxx_fields_data.id=xxx_fields.field_data_id 使用场景,由于不同模块的表前缀不一样,所以在A模块使用XXX模块下的这两张表,表名总会补充成 A_xxx_table 阅读全文
posted @ 2019-07-13 17:33 绘梨衣 阅读(1176) 评论(0) 推荐(0)
摘要: 电脑系统win7,phpstudy的集成环境“php7.0.12-nts + Apache“: 1、在php.ini中开启curl扩展; 2、在php的目录下,找到如下三个文件,复制&粘贴到,apache的bin目录下; 3、重启apache,OK 阅读全文
posted @ 2019-07-08 19:08 绘梨衣 阅读(4630) 评论(0) 推荐(0)
摘要: if (!function_exists('curlRequest')) { /** * cURL请求 * @author ligeliang * @param [type] $url [description] * @param [type] $data 为空get请求,不为空post请求 * @return [type] [d... 阅读全文
posted @ 2019-07-03 15:41 绘梨衣 阅读(151) 评论(0) 推荐(0)
摘要: if (!function_exists('random')) { /** * 获取随机字符串 * @param number $length 长度 * @param string $type 类型 * @param number $convert 转换大小写 * @return string 随机字符串 */ ... 阅读全文
posted @ 2019-07-02 17:48 绘梨衣 阅读(420) 评论(0) 推荐(0)
摘要: if (!function_exists('excelTime')) { /** * phpexcel 对读出来的5位数时间进行转换 * @param [type] $date [description] * @param boolean $time [description] * @return [type] [description... 阅读全文
posted @ 2019-07-02 17:25 绘梨衣 阅读(1036) 评论(0) 推荐(0)