杂记 SY
$pid = M('xxx')->getField('product_id',true);
$sum_orders_total = M("Order")->where( array( 'uid' => 1, 'status' => array( 'in','1,2,3' ) ) ) ->sum('total');
$map['_string']="find_in_set('".$_SESSION['loginuserid']."',tj_str)>0";