$goods = M('Goods')->where($map)->buildSql(); echo $goods; 转载于:https://www.cnblogs.com/bushe/p/4121276.html