{"id":316731,"date":"2021-02-04T22:54:23","date_gmt":"2021-02-04T14:54:23","guid":{"rendered":"http:\/\/4563.org\/?p=316731"},"modified":"2021-02-05T15:45:48","modified_gmt":"2021-02-05T07:45:48","slug":"%e6%b1%82%e4%b8%80%e4%b8%aa-mysql-%e8%af%ad%e5%8f%a5%e5%90%8c%e6%97%b6%e6%bb%a1%e8%b6%b3%e4%b8%a4%e5%88%97%e7%9a%84%e6%9d%a1%e4%bb%b6%e8%bf%9b%e8%a1%8c%e7%ad%9b%e9%80%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=316731","title":{"rendered":"\u6c42\u4e00\u4e2a mysql \u8bed\u53e5\u540c\u65f6\u6ee1\u8db3\u4e24\u5217\u7684\u6761\u4ef6\u8fdb\u884c\u7b5b\u9009"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6c42\u4e00\u4e2a mysql \u8bed\u53e5\u540c\u65f6\u6ee1\u8db3\u4e24\u5217\u7684\u6761\u4ef6\u8fdb\u884c\u7b5b\u9009               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cs5117155 <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code>SELECT `o`.`id`,`o`.`pay_type`,`o`.`operation_id`,`o`.`order_no` FROM `pay_auth_log` `o` WHERE  `o`.`status` &lt; 99  AND `pay_status` &lt;= 1; <\/code><\/pre>\n<p>\u8fd9\u6761\u8bed\u53e5\u600e\u4e48\u6539\u4e3a\uff0c\u5f53<code>pay_type=2 &amp;&amp; operation_id<\/code>\u4e3a\u7a7a\u7684\u65f6\u5019\u5c31\u8fc7\u6ee4\u6539\u6761\u4fe1\u606f\uff0c\u4f46\u662f<code>pay_type=1<\/code>\u65f6,<code>operation_id<\/code>\u4e3a\u7a7a\u65f6\uff0c\u8be5\u8bb0\u5f55\u9700\u8981\u5c55\u793a\u51fa\u6765\u3002 <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/600bea40827c9.jpg\" alt=\"\u6c42\u4e00\u4e2a mysql \u8bed\u53e5\u540c\u65f6\u6ee1\u8db3\u4e24\u5217\u7684\u6761\u4ef6\u8fdb\u884c\u7b5b\u9009\" \/><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5071307\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eason1874 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             `pay_type` = 1 OR (`pay_type` = 2 AND `operation_id` IS NOT NULL)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071308\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : easonzhang666 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             and ((xx ) or (xx))                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071309\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cs5117155 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             good                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071310\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : deargodfrey <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             mysql \u80fd\u7528 not \u5417\u5982\u679c\u6709\u7684\u8bdd\u5c31\u53ea\u8981\u52a0\u4e2a AND NOT (paytype=2 and operationid is null)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6c42\u4e00\u4e2a mysql \u8bed\u53e5\u540c\u65f6\u6ee1\u8db3\u4e24&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/316731"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316731"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/316731\/revisions"}],"predecessor-version":[{"id":316733,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/316731\/revisions\/316733"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316731"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}