{"id":187903,"date":"2020-11-09T10:06:51","date_gmt":"2020-11-09T02:06:51","guid":{"rendered":"http:\/\/4563.org\/?p=187903"},"modified":"2020-11-09T10:06:51","modified_gmt":"2020-11-09T02:06:51","slug":"%e5%85%84%e5%bc%9f%e4%bb%ac%ef%bc%8c%e6%9d%a5%e5%90%90%e6%a7%bd%e4%b8%80%e6%ae%b5%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=187903","title":{"rendered":"\u5144\u5f1f\u4eec\uff0c\u6765\u5410\u69fd\u4e00\u6bb5\u4ee3\u7801"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5144\u5f1f\u4eec\uff0c\u6765\u5410\u69fd\u4e00\u6bb5\u4ee3\u7801               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zwj2885 <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9700\u6c42\u5f88\u660e\u786e\uff0c\u8981\u67e5\u8be2\u67d0\u4e2a\u65f6\u95f4\u6bb5\u5185\u83b7\u5f97\u67d0\u79cd\u79ef\u5206(\u5173\u6ce8\u7b49\u884c\u4e3a\uff0c\u6d88\u8d39\u7b49)\u6700\u591a\u7684\u4eba\u3002\u7136\u540e\u5c31\u6709\u4e86\u4e00\u6bb5\u5982\u4e0b\u7684 mybatis \u7684\u914d\u7f6e\u6587\u4ef6\u3002 &lt;select id=&#8221;selectForMember&#8221; resultType=&#8221;java.lang.String&#8221;&gt; SELECT member_code AS memberCode FROM mem_member_point WHERE point_status = &#8216;1&#8217; &lt;if test=&#8221;params.list != null and params.list.size() &gt;0&#8243; &gt; AND member_code in ( &lt;foreach collection=&#8221;params.list&#8221; item=&#8221;m&#8221; index=&#8221;index&#8221; separator=&#8221;,&#8221; &gt; #{m} &lt;\/foreach&gt; ) &lt;\/if&gt; AND DATE_FORMAT(create_time, &#8216;%Y-%m-%d&#8217;) &lt; #{params.endTime} AND DATE_FORMAT(create_time, &#8216;%Y-%m-%d&#8217;) &gt;= #{params.beginTime} GROUP BY memberCode ORDER BY SUM(point_value) DESC LIMIT 1 &lt;\/select&gt; \u7136\u540e\uff0c\u5982\u5927\u5bb6\u6240\u613f\u3002\u53d1\u5c55\u4e86 1 \u4e07\u4e2a\u4f1a\u5458\u7684\u65f6\u5019\uff0c\u611f\u89c9\u5f88\u723d\uff0c\u79d2\u51fa\u3002\u5f53\u53d1\u5c55\u4e86 200 \u4e07\u4f1a\u5458\u7684\u65f6\u5019\uff0c\u753b\u98ce\u53d8\u6210\u4e86\u4ee5\u4e0b\u8fd9\u4e2a\u6837\u5b50\u3002 FROM mem_member_point WHERE point_status = &#8216;1&#8217; AND member_code IN ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 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?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?<\/p>\n<p>\u5927\u6982\u5c31\u662f\u8fd9\u79cd\uff0c200 \u4e07\u95ee\u53f7\u554a\u5367\u69fd\u3002 \u4e94\u5473\u6742\u9648\u554a\u5fc3\u60c5\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4020079\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zwj2885 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u683c\u5f0f\u4e71\u4e86\uff0c\u4e0d\u77e5\u9053\u548b\u4fdd\u6301\u683c\u5f0f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020080\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : boris93 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &#8230;&#8230;&#8230;&#8230;.<br \/>\u6211\u4e0d\u77e5\u9053\u8bf4\u4ec0\u4e48<br \/>Orz                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020081\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aragakiyuii <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e9b\u6570\u636e\u5e93 in \u662f\u6709\u6570\u91cf\u9650\u5236\u7684\u5427\uff0c\u8fd8\u6709\u63d0\u4ea4 sql \u7684\u5927\u5c0f\u9650\u5236&#8230;<\/p>\n<p>\u539f\u8868 join \u4e00\u4e0b\u6216\u8005\u653e\u5230\u4e34\u65f6\u8868\u91cc join \u4e00\u4e0b\u518d\u6216\u8005\u4ee3\u7801\u91cc for \u4e00\u4e0b\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leafre <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u5c31 NOT IN                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020083\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SkyYu822 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020084\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : angryfish <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u600e\u4e48\u505a\u6bd4\u8f83\u597d\uff1f<br \/>\u4e2a\u4eba\u89c9\u5f97\uff0c\u8981\u662f\u540c\u4e00\u4e2a\u5e93\u7684\uff0c\u4e4b\u7c7b join \u4e24\u4e2a\u8868\u5c31\u884c\u4e86\uff0c\u4e0d\u8981\u628a params.list \u901a\u8fc7\u4ee3\u7801\u8fc7\u53bb\u51fa\u6765\u3002<br \/>\u4f46\u5982\u679c\u4e0d\u662f\u4e00\u4e2a\u5e93\uff0c\u8bf7\u5927\u795e\u8868\u6f14                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020085\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : arthas2234 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a member_code \u6709\u4ec0\u4e48\u89c4\u5f8b\uff0c\u53ef\u4ee5\u52a0\u4e2a\u5197\u4f59\u5b57\u6bb5\u6765\u533a\u5206                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020086\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luckyrayyy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u91cf\u5927\u7684\u8bdd\u5c31\u6ca1\u5fc5\u8981\u8bfb\u53d6\u5168\u91cf\u4e86\u554a\uff0c\u6eda\u52a8\u8bfb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020087\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kazeik <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b8c\u4e86\uff0c\u624b\u673a\u51fa\u95ee\u9898\u4e86\uff0c\u5168\u662f\u95ee\u53f7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020088\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wellsc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684\u773c\u775b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020089\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DEVN <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e0d\u7406\u89e3\u4f60\u4eec\u7684\u4e1a\u52a1\uff0c\u4f46\u662f in \u7edd\u5bf9\u4e0d\u80fd\u8fd9\u4e48\u7528\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4020090\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zwj2885 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @DEVN \u662f\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5144\u5f1f\u4eec\uff0c\u6765\u5410\u69fd\u4e00\u6bb5\u4ee3\u7801 \u8cc7\u6df1\u5927\u4f6c &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\/187903"}],"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=187903"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187903\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187903"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}