Commit b54140d6 authored by 孙磊's avatar 孙磊

chaxun

parent a15f2bf5
......@@ -80,10 +80,9 @@ class UserComplain extends BaseModel
public function UserComplainInfo($phone)
{
$query = static::find()
->from('shop_user su')
->from('shop_user_complain suc')
->select('su.GUID,su.NAME,suc.TS_PHONE,suc.TS_CONTENT,suc.TS_COMMIT_DATE,suc.COMPLAIN_TYPE')
->leftJoin('shop_user_complain suc', 'su.GUID = suc.TS_USER_GUID');
->leftjoin('shop_user su', 'su.GUID = suc.TS_USER_GUID');
if($phone){
$query->Where(['like', 'suc.TS_PHONE', $phone]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment