{"id":625,"date":"2022-07-27T11:03:40","date_gmt":"2022-07-27T03:03:40","guid":{"rendered":"https:\/\/www.furyblog.com\/?p=625"},"modified":"2023-06-20T09:16:26","modified_gmt":"2023-06-20T01:16:26","slug":"%e6%b5%b7%e5%ba%b7%e5%a8%81%e8%a7%86pms%e6%89%b9%e9%87%8f%e6%9b%b4%e6%96%b0%e6%9c%88%e5%8d%a1%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.furyblog.com\/?p=625","title":{"rendered":"\u6d77\u5eb7\u5a01\u89c6PMS\u6279\u91cf\u66f4\u65b0\u6708\u5361\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u6d77\u5eb7\u5a01\u89c6PMS\u662f\u6d77\u5eb7\u5a01\u89c6\u7814\u53d1\u7684\u672c\u5730\u505c\u8f66\u5e73\u53f0\uff0c\u4f46\u5982\u679c\u9700\u8981\u6279\u91cf\u66f4\u65b0\u7cfb\u7edf\u5185\u5df2\u5b58\u5728\u7684\u6708\u5361\uff0c\u5219\u9700\u8981\u5bf9\u63a5\u6d77\u5eb7\u505c\u8f66\u4e91\u5e73\u53f0\u7531\u5ba2\u6237\u81ea\u5df1\u5f55\u5165\uff0c\u5bf9\u4e8e\u5927\u91cf\u6708\u5361\u8f66\u800c\u53c8\u9700\u8981\u672c\u5730\u7ba1\u7406\u5458\u624b\u52a8\u5f55\u5165\u7684\u60c5\u51b5\u4e0b\u975e\u5e38\u9ebb\u70e6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u5e93\u8fdb\u884c\u6279\u91cf\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b0\u5efa\u4e00\u4e2a\u5b58\u653e\u9700\u8981\u66f4\u65b0\u6708\u5361\u8f66\u724c\u7684\u8868<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE \"public\".\"xxb_input\" (\n  \"car_no\" varchar COLLATE \"pg_catalog\".\"default\" NOT NULL, \/\/\u5b58\u653e\u8f66\u724c\u53f7\uff0c\u5305\u542b\u7701\u4efd\u7b80\u79f0\n  \"end_datetime\" varchar COLLATE \"pg_catalog\".\"default\" \/\/\u7ed3\u675f\u65e5\u671f\uff0c\u5b58\u653e\u683c\u5f0f\u4e3aYYYY-MM-DD\n)\n;\n\nALTER TABLE \"public\".\"Untitled\" \n  OWNER TO \"pms_db_role\";<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6e90\u6570\u636e\u5904\u7406<\/h2>\n\n\n\n<p>\u4ee5\u6e90\u6570\u636e\u4e3aExcel\u8868\u683c\u4e3a\u4f8b\uff0c\u53ea\u9700\u8981\u4fdd\u7559\u201c\u8f66\u724c\u53f7\u201d\u201c\u7ed3\u675f\u65e5\u671f\u201d\u5373\u53ef\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/\u5fae\u4fe1\u56fe\u7247_20220727104952-1024x333.jpg\" alt=\"\" class=\"wp-image-628\" srcset=\"https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/\u5fae\u4fe1\u56fe\u7247_20220727104952-1024x333.jpg 1024w, https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/\u5fae\u4fe1\u56fe\u7247_20220727104952-300x98.jpg 300w, https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/\u5fae\u4fe1\u56fe\u7247_20220727104952-768x250.jpg 768w, https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/\u5fae\u4fe1\u56fe\u7247_20220727104952.jpg 1363w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">\u5904\u7406\u524d<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"169\" height=\"271\" src=\"https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/\u5fae\u4fe1\u56fe\u7247_20220727105030.jpg\" alt=\"\" class=\"wp-image-629\"\/><figcaption class=\"wp-element-caption\">\u5904\u7406\u540e<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u4f7f\u7528\u8f6f\u4ef6\u5bfc\u5165\u65b0\u5efa\u7acb\u7684\u8868\uff0c\u786e\u4fddend_datetime\u5217\u4e3a\u65e5\u671f\u683c\u5f0f\uff0c\u5426\u5219\u5bfc\u5165\u6570\u636e\u5e93\u53ef\u80fd\u5931\u8d25\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/image-1024x576.png\" alt=\"\" class=\"wp-image-631\" srcset=\"https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/image-1024x576.png 1024w, https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/image-300x169.png 300w, https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/image-768x432.png 768w, https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/image-1536x864.png 1536w, https:\/\/www.furyblog.com\/wp-content\/uploads\/2022\/07\/image.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">\u5bfc\u5165\u6570\u636e\u5e93<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528SQL\u5bf9\u6708\u5361\u8fdb\u884c\u66f4\u65b0<\/h2>\n\n\n\n<p>\u4f7f\u7528\u5982\u4e0bSQL\u5bf9\u9700\u8981\u66f4\u65b0\u7684\u8f66\u724c\u8fdb\u884c\u6708\u5361\u66f4\u65b0\u64cd\u4f5c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE vehicleinfo \nSET endtime = to_timestamp( ( SELECT CONCAT ( i.end_datetime, ' 23:59:59' ) FROM xxb_input i WHERE i.car_no = plateno ), 'yyyy-MM-DD hh24:mi:ss' ) \nWHERE\n\tplateno IN ( SELECT car_no FROM xxb_input )<\/code><\/pre>\n\n\n\n<p>\u8bed\u53e5\u6210\u529f\u540e\u68c0\u67e5\u7ed3\u679c\uff0c\u6ca1\u95ee\u9898\u7684\u8bdd\u4ee5\u540e\u5c31\u53ef\u4ee5\u7701\u4e0b\u5927\u91cf\u7684\u65f6\u95f4\u6765<s>\u6478\u9c7c<\/s>\u8fdb\u884c\u5176\u4ed6\u5de5\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6d77\u5eb7\u5a01\u89c6PMS\u662f\u6d77\u5eb7\u5a01\u89c6\u7814\u53d1\u7684\u672c\u5730\u505c\u8f66\u5e73\u53f0\uff0c\u4f46\u5982\u679c\u9700\u8981\u6279\u91cf\u66f4\u65b0\u7cfb\u7edf\u5185\u5df2\u5b58\u5728\u7684\u6708\u5361\uff0c\u5219\u9700\u8981\u5bf9\u63a5\u6d77\u5eb7\u505c\u8f66\u4e91\u5e73\u53f0\u7531\u5ba2\u6237\u81ea\u5df1\u5f55\u5165\uff0c\u5bf9\u4e8e\u5927\u91cf\u6708\u5361\u8f66\u800c\u53c8\u9700\u8981\u672c\u5730\u7ba1\u7406\u5458\u624b\u52a8\u5f55\u5165\u7684\u60c5\u51b5\u4e0b\u975e\u5e38\u9ebb\u70e6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u5e93\u8fdb\u884c\u6279\u91cf\u64cd\u4f5c\u3002 \u65b0\u5efa\u4e00\u4e2a\u5b58\u653e\u9700\u8981\u66f4\u65b0\u6708\u5361\u8f66\u724c\u7684&#8230;<\/p>\n","protected":false},"author":1,"featured_media":634,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,35],"tags":[49,48],"topic":[],"class_list":["post-625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-21","category-course","tag-pms","tag-48"],"_links":{"self":[{"href":"https:\/\/www.furyblog.com\/index.php?rest_route=\/wp\/v2\/posts\/625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.furyblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.furyblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=625"}],"version-history":[{"count":7,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=\/wp\/v2\/posts\/625\/revisions"}],"predecessor-version":[{"id":747,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=\/wp\/v2\/posts\/625\/revisions\/747"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=\/wp\/v2\/media\/634"}],"wp:attachment":[{"href":"https:\/\/www.furyblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=625"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.furyblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}