{"id":75,"date":"2026-11-10T14:59:52","date_gmt":"2026-11-10T06:59:52","guid":{"rendered":"https:\/\/www.meihuaan.cn\/?p=75"},"modified":"2026-11-10T14:59:52","modified_gmt":"2026-11-10T06:59:52","slug":"tp%e6%a1%86%e6%9e%b6%e7%bb%9f%e8%ae%a1%e8%ae%a2%e5%8d%95%e9%87%91%e9%a2%9d%e6%80%bb%e6%95%b0%e8%81%94%e5%90%88%e6%9f%a5%e8%af%a2%e6%97%b6%e5%86%99%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.meihuaan.cn\/index.php\/2026\/11\/10\/tp%e6%a1%86%e6%9e%b6%e7%bb%9f%e8%ae%a1%e8%ae%a2%e5%8d%95%e9%87%91%e9%a2%9d%e6%80%bb%e6%95%b0%e8%81%94%e5%90%88%e6%9f%a5%e8%af%a2%e6%97%b6%e5%86%99%e6%b3%95\/","title":{"rendered":"tp\u6846\u67b6\u7edf\u8ba1\u8ba2\u5355\u91d1\u989d\u603b\u6570\u8054\u5408\u67e5\u8be2\u65f6\u5199\u6cd5"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">$xiaofei = Db::<em>name<\/em>('order')-&gt;alias('a')<br>    -&gt;whereRaw('a.user_id =' . $member['user_id'] . ' and a.pay_status=20 and a.order_status!=20')<br>    -&gt;whereExists(function($query){<br>        $query-&gt;name('order_product')-&gt;alias('b')<br>            -&gt;join('product c','b.product_id = c.product_id')<br>            -&gt;whereRaw('b.order_id = a.order_id AND c.iszhaoshang=0');<br>    })<br>    -&gt;sum('a.order_price');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$xiaofei = Db::name(&#8216;order&#8217;)-&gt;alias(&#8216;a&#8217;) -&gt;whereR [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":1,"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/posts\/75\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meihuaan.cn\/index.php\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}