可以对模型的查询和写入操作进行封装,例如: namespace app \ index \ model ; use think \ Model ; class User extends Model { protected function scopeThinkphp ($query) { $query-where( name , thinkphp )-field( id,name ); } p
CMSDISTINCT Expression #1 of ORDER BY clause is not in SELECT list, references column,使用DISTINCT语句保存时:Expression#1ofORDERBYclauseisnotinSELECTlist,referencescolumnwhichisnotinS...