{"id":1585,"date":"2026-01-21T11:15:02","date_gmt":"2026-01-21T03:15:02","guid":{"rendered":"https:\/\/www.jumoon.top\/?p=1585"},"modified":"2026-01-21T11:15:02","modified_gmt":"2026-01-21T03:15:02","slug":"%e9%bc%8e%e6%8d%b7e10%e6%9f%a5%e7%9c%8b%e5%b7%a5%e5%8d%95%e5%85%a5%e5%ba%93%e6%83%85%e5%86%b5","status":"publish","type":"post","link":"https:\/\/www.jumoon.top\/?p=1585","title":{"rendered":"\u9f0e\u6377E10\u67e5\u770b\u5de5\u5355\u5165\u5e93\u60c5\u51b5"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>with aa as(\nselect a.DOC_NO as \u5355\u53f7,CONVERT(char(10),a.ApproveDate, 120) as \u5ba1\u6838\u65e5\u671f,c.ITEM_CODE,b.ITEM_DESCRIPTION,b.ITEM_SPECIFICATION,d.UNIT_NAME,\ncase b.PRODUCT_TYPE when '1' then '\u4e3b\u4ea7\u54c1' when '2' then '\u8054\u4ea7\u54c1' when '3' then '\u526f\u4ea7\u54c1' when '4' then '\u56de\u6536\u6599' ELSE '' end as \u4ea7\u51fa\u7c7b\u578b,\nb.PLAN_QTY as \u9884\u8ba1\u4ea7\u91cf,b.REQ_QTY as \u5165\u5e93\u7533\u8bf7\u6570\u91cf,b.COMPLETED_QTY as \u5165\u5e93\u6570\u91cf,\nb.PLAN_QTY-b.COMPLETED_QTY as \u672a\u5165\u5e93\u6570\u91cf\nfrom MO a left join  MO_PRODUCT b on a.MO_ID=b.MO_ID\nleft join ITEM c on b.ITEM_ID=c.ITEM_BUSINESS_ID\nleft join UNIT d on b.UNIT_ID=d.UNIT_ID\n)\nselect * from aa where \u672a\u5165\u5e93\u6570\u91cf&lt;> '0' ORDER BY \u5ba1\u6838\u65e5\u671f,\u5355\u53f7 DESC\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[19],"tags":[],"class_list":["post-1585","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts\/1585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1585"}],"version-history":[{"count":1,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts\/1585\/revisions"}],"predecessor-version":[{"id":1586,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=\/wp\/v2\/posts\/1585\/revisions\/1586"}],"wp:attachment":[{"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jumoon.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}