摘要: 装饰器模式 代理模式 Interface中只定义最核心的业务,比如doXXX AbstractService1中定义其他扩展方法,比如prepare, afterExectute, doLog等抽象方法 AbstractService2中有很多业务和AbstractService1不同,但是核心业务 阅读全文
posted @ 2018-07-02 21:25 funny_coding 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 日期类型可以直接和string格式的字符串比较 select * from xxx where event_time>'2018-06-02' 可以使用索引, mysql默认会把后面的字符串转成date类型。可以使用between and select * from xxx where date(e 阅读全文
posted @ 2018-07-02 21:05 funny_coding 阅读(9628) 评论(0) 推荐(0) 编辑
build beautiful things, share happiness