Merge pull request '10-12优化' (#9) from 孙英皓 into master

master
pkcs2aq9m 2 years ago
commit cf74b231f8

@ -293,3 +293,22 @@ ID | NAME Amount
``` ```
#### sort
Step1 : 输入需要排序的商品编号
Step2 : 进行排序
Step3 : 排序完成
![排序模块流程图](images/sort.drawio.svg)
#### delete_from_list
Step1: if数据库为空则返回“数据库数据为空请先添加商品信息”
Step2: 输入需要删除的商品id
Step3: 删除商品并显示删除成功
Step4: if输入的商品id不存在则返回“您输入的商品名称没有找到
![删除数据流程图](images/delete_from_list.drawio.svg)
#### Show
Step1if没有商品数据则显示“您的数据库内没有商品
step2: 输入商品编号打印表格
![图表模块流程图](images/Show.drawio.svg)

@ -1,56 +1,56 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="151px" height="331px" viewBox="-0.5 -0.5 151 331" content="&lt;mxfile&gt;&lt;diagram id=&quot;foU8mDb0TlC7YyvVAcvL&quot; name=&quot;第 1 页&quot;&gt;1VZNj5swEP01c60AAzFHCGx7qVQph7ZHN/YCEuDIMUvor69dm2+QVtVuq14szxvP2PNmHgmgc/34KMit+Mwpq8Bz6ANQCp4XBZFaNdAbIHCQAXJRUgO5E3ApfzILOhZtS8rui4OS80qWtyV45U3DrnKBESF4tzz2zKvlrTeSsw1wuZJqi34tqSwMir3ThH9iZV4MN7uhLbgmw2Fbyb0glHczCGWAzoJzaXb148wqzd3Ai4l7OvCODxOska8J8EzAC6laWxtkAUQJJBlkGGIXYgxZqFe1164UIlvmXfYDIaLg9Y9WsZp0RSnZ5Uau2tOp7iuskHWlLFdt7XVMSPY4fLI7EqEGiPGaSdGrIzYAW+rs7Li+tbupE65jsWLWhSGO2ObnY+aJH7WxFO3ThbZ0ralgDY31iCmr4Q1blq9KFP03ZTgfgsH8PvelukhntHprmVsY3YzlijSlAyJyJmfN3fI4IyrY4WnABKuILF+WN+6RZ2/4wkv1lrFNYw9snzb833krrsxGzUd0nShYJUKrRKbkTaLfvRzLflV7/R01hIAjiJCefZxC4kDmQ4IBD5s4PlCMA8lZu9SKn7aK4W1DGbX9fX/VrEnEO6rxdqYhfAPVBP+Vavx/qZrVx813/1Q0aJkIrfv4dqIJd0SDtVCwEs0JIt8KYi0jtTlBkmpXFGjkWCLuX5EIOuD+HSSizOk33nA+/VFC2S8=&lt;/diagram&gt;&lt;/mxfile&gt;"> <svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="121px" height="331px" viewBox="-0.5 -0.5 121 331" content="&lt;mxfile&gt;&lt;diagram id=&quot;foU8mDb0TlC7YyvVAcvL&quot; name=&quot;第 1 页&quot;&gt;3VbLjpwwEPwaXyPemCMM7OYSKdIckj1agwNIgJHHM0C+Pu3BPAzMCilREu0Fuavttt1VBSD7VHWvnDT5F5bSEllG2iE7Rpbl2TY8JdAPgOvhAch4kQ6QOQPn4idVoKHQW5HSqzZRMFaKotHBC6trehEaRjhnrT7tByv1XRuS0Q1wvpByi34rUpEPKLb8Gf9Miywfdza9YMhUZJysbnLNScraBWQnyD5xxsQwqroTLWXvxr4M616eZKeDcVqLIwsUEXdS3tTd1LlEP16W1mkoewZRzWoAo1xUJUQmDGEb3n+HwPjkjuHbMhdLzo0p6seoK8RiGURvi8y8SAbjmu3d1HVpuqLrym78oiBn6iqokbKKwjFgSjvz5iou8gVlI8ZpSURx18sTJZ9sKjft8JUVcDjL6EbBqjpK6BY29BLDSdWqJU/rQvaqkLUqJAjPqNgUgsHi2jP0kMG+JJytJBIP4QAFNkpchGMUGShxUIQRHgdhKFNBhKIEJRCaKMRyVWig6CRT8MQvG2lxdqtTmiq9tHkh6LkhD+ZaeHHoUntK/51yQbsFtGVbZf0nbCzEYFo7avCM58RrnX6nre5HcNqgMk0n75rP+5fmwzrbjvmHvGev5fDEe8Al6RfTGjnh+pvu9HbciaUjMbjTR4GjnLf2Kwx8FMUyFbgS+c+8OLHzN7zo7zRx9/X1GMtUjAJ/69eyhD8OerRdm97sdPBou0znYLvWH5wD7YJw/gEZJDr/xdnJLw==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/> <defs/>
<g> <g>
<path d="M 100 0 L 150 40 L 100 80 L 50 40 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/> <path d="M 60 140 L 60 80" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="0" y="140" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 40px; margin-left: 51px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 170px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
图表模块 打印一个图表格式
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="100" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="60" y="174" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
图表模块 打印一个图表格式
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 70 140 L 100 80" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 60 270 L 60 200" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="20" y="140" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/> <rect x="0" y="270" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 170px; margin-left: 21px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 300px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
打印一个图表格式 调用打印函数
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="80" y="174" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="60" y="304" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
打印一个图表格式 调用打印函数
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 50 270 L 80 200" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <ellipse cx="60" cy="40" rx="60" ry="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<rect x="0" y="270" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 300px; margin-left: 1px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 40px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
调用打印函数 图表模块
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="60" y="304" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="60" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
调用打印函数 图表模块
</text> </text>
</switch> </switch>
</g> </g>
@ -59,7 +59,7 @@
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/> <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"> <a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%"> <text text-anchor="middle" font-size="10px" x="50%" y="100%">
Viewer does not support full SVG 1.1 Text is not SVG - cannot display
</text> </text>
</a> </a>
</switch> </switch>

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

@ -1,101 +1,85 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="271px" height="426px" viewBox="-0.5 -0.5 271 426" content="&lt;mxfile&gt;&lt;diagram id=&quot;Z0kfLe1TwEOepRIeOdqV&quot; name=&quot;第 1 页&quot;&gt;1ZfNjpswFIWfxtsKY0zsJUlIu6lUaRadWdLgBiTAkeNMkj59r8EEMGSazihJK41Gvgf/4HPvFxtEFuXxs0q22VeZigL5XnpEZIl8n1MO/41wagTqkUbYqDxtJNwJT/kvYUXPqvs8FbtBRy1lofPtUFzLqhJrPdASpeRh2O2nLIarbpONGAlP66QYq9/zVGeNyvxZp38R+SZrV8ah3XCZtJ3tTnZZkspDTyIxIgslpW5a5XEhCuNd60szbnXh6fnFlKj0NQP8ZsBrUuzt3lAcIsYRJyimiC3R3DNKxFCEjcKXiNtt7vSpNURlsvyxB1fnhyzX4mmbrM2TA2QftEyXBUQYmnY5obQ4XnxlfDYCCkjIUmh1gi52QGCts7WDuY0PXSZw2yfrZYFZLbHJ35xn7vyBhrVo2i4ytsu1QlRpZEoMokpWYrh92KI6PUPgfaJt+NJ/tjSb9M7RyUbNKiIdlaVjGnCQqI3QveSOfewZRSd8ajUlikTnr8MVp8yzK3yTObzLOU18mCYSOvbv5F6thR3Ur1BnHuzkm2BnombHo4nqVJ53fVV2gwkYgAEo/cAwwAGDpVEgnNcKWyA2QzHQ4ptuIyrkvkpFavN7ezLIBcv7ZPgTGXdT8x4y6H9FRvBIMsJhmgL3h+lqMrAzEbkZGeEEGQABQ/MIxTMU8boB4QrxoD4m5ojHNRkB4tw8ilbmz4xa1UcJ0ION8mhoXBPZHaGZfRSaY66fe+2Xjh+IOmJM8PfANHU4+GnsM8QeyRB2IXJr/1qIRvmnN4OIXYIIblkTNME5EyMe1Y+4uZKNDxxzOgFxzCigs7do8u5Dk5sXekec+AdxuhaNhxW9c6ei771TuXdoers7VTvzH74w4MSAdlg3iDkZ/sGDgjqmUXqz0oaw+wZsXO8+pEn8Gw==&lt;/diagram&gt;&lt;/mxfile&gt;"> <svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="311px" height="471px" viewBox="-0.5 -0.5 311 471" content="&lt;mxfile&gt;&lt;diagram id=&quot;Z0kfLe1TwEOepRIeOdqV&quot; name=&quot;第 1 页&quot;&gt;zVfLjpswFP0aL1vxxl6ShEw3lSrNop2lG1xAAhw5zqtfXxsM2EDSPCaZkSLF99jXmHPPsQ1w5+XhheF19p0mpACOlRyAuwCOY3uBJf4kcmwQP4ANkLI8UYN64DX/SxSo8tJtnpCNMZBTWvB8bYIrWlVkxQ0MM0b35rA/tDCfusYpGQGvK1yM0Z95wrMGhU7Y499Inmbtk+0ANT0lbgerN9lkOKF7DXJj4M4ZpbxplYc5KSR5LS9N3vJEb7cwRip+SYLbJOxwsVXvptbFj+3LkiqJJGciqmglwFnGy0JEtmiKx7DjLxFYX/02fNP7FrLoVhcdVTRep1o6SQzq1apfCC2JyBcD9j3hviIx07huMUYKzPOdWTCs6p5203VP+EFzsRLHUhpFaholULdVbDvDhm7Ziqgknd/z8zjhYB6OWUr4aB7R0F66h+rqTVfSf79KOleVkhxyrilARG9aT58kg2vLL5ZfE91AwUcqIjAr6cEbFTGcx7lMEaJw+KgNW8sBmzs1E4w1E3tgBsEsAnEIIlQ3RLgEyAOxD9AMoBjESIYIya5oKX8ySzRsEAcA2hIZao/RbZWQROlpn+WcvK5xXdm9OCRMLZ6Ux44wTg7g3P6ger+EJ+qlqcV2JuQydLquDIPqM7yG93qxs1Soe8q+zVONotQZ9al22a4Ap8xwqam6m0E7kf+wfRae8gxcTJnHB1EMUFR3IQBR7ZA5gGHtIgdAKMdAYTAoEYHDjzfPqC7PNA96N/Ncfh49+hozaUL9aLOt6YI8yYe+WW8f3epDazCR9zAfto43jBhIhyG3ttQCzKz6zBLtoG648mz6fEfV0G2B9US32RNfAJI9cbJ7kiIUgGhRb2OCN29i9xqxl9Hy93bzf+Z6mnsnjUiboHbMY3tJ9yd4gxO8Da9uN/E2cXcabVNFIb5IyTVU2HdSoRJcU1E2ulBRNzAjwv5ztfFx/9Hvxv8A&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/> <defs/>
<g> <g>
<path d="M 100 0 L 170 40 L 100 80 L 30 40 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/> <path d="M 160 170 L 160 80" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<g transform="translate(-0.5 -0.5)"> <path d="M 60 290 L 130 230" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<switch> <rect x="0" y="290" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 138px; height: 1px; padding-top: 40px; margin-left: 31px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
打印模块
</div>
</div>
</div>
</foreignObject>
<text x="100" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
打印模块
</text>
</switch>
</g>
<path d="M 80 170 L 100 80" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="20" y="170" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 200px; margin-left: 21px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 320px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
判断头指针 为空返回错误信息
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="80" y="204" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="60" y="324" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
判断头指针 为空返回错误信息
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 50 290 L 80 230" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 190 230 L 230 290" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="0" y="290" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/> <rect x="190" y="290" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 320px; margin-left: 1px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 320px; margin-left: 191px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
为空返回错误信息 不为空定义指针变量
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="60" y="324" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="250" y="324" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
为空返回错误信息 不为空定义指针变量
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 140 200 L 186.67 260" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 250 410 L 250 350" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="150" y="260" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/> <rect x="190" y="410" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 290px; margin-left: 151px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 440px; margin-left: 191px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
不为空定义指针变量 打印商品信息
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="210" y="294" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="250" y="444" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
不为空定义指针变量 打印商品信息
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 180 370 L 230 320" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 160 160 L 250 200 L 160 240 L 70 200 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="140" y="365" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 395px; margin-left: 141px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 178px; height: 1px; padding-top: 200px; margin-left: 71px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
打印商品信息 判断头指针
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="200" y="399" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="160" y="204" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
打印商品信息 判断头指针
</text> </text>
</switch> </switch>
</g> </g>
<ellipse cx="160" cy="40" rx="60" ry="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
</g> </g>
<switch> <switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/> <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"> <a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%"> <text text-anchor="middle" font-size="10px" x="50%" y="100%">
Viewer does not support full SVG 1.1 Text is not SVG - cannot display
</text> </text>
</a> </a>
</switch> </switch>

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

@ -1,56 +1,56 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="181px" height="331px" viewBox="-0.5 -0.5 181 331" content="&lt;mxfile&gt;&lt;diagram id=&quot;N5vIadnCPQ0VjbP5Tubx&quot; name=&quot;第 1 页&quot;&gt;1ZZLj5swFIV/zd1WgIHgJSSk3VSqNIu2Szd4AhLgyHEmSX99rx+8iTQaKWq7ieyDfc09x58IkG1z+yzZqfwqCl5D4BU3IDsIAhpR/NXC3QqRR6xwlFVhJX8QXqrf3ImeUy9Vwc+ThUqIWlWnqXgQbcsPaqIxKcV1uuxV1NNTT+zIF8LLgdVL9XtVqNKqSbAZ9C+8OpbdyX7sGm5Yt9h1ci5ZIa4jieRAtlIIZUfNbctr7V3ni923f/C0fzHJW/WeDYHd8Mbqi+sN8hiSHCgOIshSSPZaSRNIfa3QHVDX5lndO0NkKZpfF3Q1u5aV4i8ndtBPrpg+aqVqapz5OHTHcan47eEr+70ReIG4aLiSd1xy6y6L3eHujt9ZeR2S8EOnlaMUEqcxF/6xrzz4gwNn0bpdZGnX3AreFqm+YjhrRcun7WOL8v4DJ96nqJv+HD/b6Sa9fnZ3M3sKLxbXcmYacsDkkatRuEsfR0ZFKz51muQ1U9Xb9MQ189wJ30SF79LHRKcxBfHM/rO4yAN3m8Y3dFanz7Ir5M8K2Y4XhUyUfdfvSjdcgYECJZDlkBsAEIN8AxSpCDUMSWw4iSEjBo8FOQtOxKUteOESfz4rwYMQxqwEK3dgHtZHWIn+K1bCv8nKZhoToR9lZZY3CZ/GSrzCSgRpruHIQ8goJNQggoOd+XB4Gg6NyBaSjQErgCQxu/Z6PYKFi1OzC5lLfDwKqcv2QDOHH27VtTNTCRnzzNcp0mVwrCuFkG5GiP5zQPoPkn4CkDgd/kfYhIc/YyT/Aw==&lt;/diagram&gt;&lt;/mxfile&gt;"> <svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="121px" height="331px" viewBox="-0.5 -0.5 121 331" content="&lt;mxfile&gt;&lt;diagram id=&quot;N5vIadnCPQ0VjbP5Tubx&quot; name=&quot;第 1 页&quot;&gt;3VbLrpswEP2a2VaAedhLSEi7qVQpi/YureAGJIIjx0lIv75jMGBC7m0q9aVuIs/xzNg+Z04EkNWhfa/4sfwoC1FD4BUtkDUEQUwI/hrg1gNRTHtgr6qih/wJ2FbfhAU9i56rQpxmiVrKWlfHObiTTSN2eoZxpeR1nvZV1vNTj3wvFsB2x+sl+rkqdNmjNEgm/IOo9uVwsh+zfufAh2T7klPJC3l1IJIDWSkpdb86tCtRG+4GXvq6zSu748WUaPQzBVaIC6/P9m32Xvo2PFY0RWo4w6iRDYJZqQ81Rj4u8Rh1+4KB9y4awhd3b20098boNkRtpZ0yjF6cnanIBEPN8m2D9lzthYWsBKK4U/Akz2pnoXAkGgdUyIPAm2HKdZIysvKUjooDpkTNdXWZt+d2ovZju/GET7LC+waeHX5m29jRD2Jv3qG/qC1ylbvr4wd3jby7Rj0ri0a4cF49Qd1gPB6ScDkkOQNGIMshp5D6kFLIE2Ap0BDyCGgMDHNiyIjZxQXNOySCDHM2ixlT8twUorCDcy0rLbZH3ul1xX+Q+cy9OgcXobRoHWipcTuQ9VgEZwRGft0ZuBfLlXtG8BtsRv+b5cInLBf/Tcslc7UJ+0WWI+Fvs1z8wHIRpLnxWB5CxoCyzmm4WJsFvgk9Zpy2App0/gyA0q5qY/LRn5icdlVoXerjUWjebAMssy7GUtM76zqhVT1jVXMINWvTKYQ0cZz+r/t6VPpP+Dp5INmCIETSjmujwhpYsvR+XeNnjHiWrgU3Dxh8lq6Rmh/RRX+eLgynr5reENOnIcm/Aw==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/> <defs/>
<g> <g>
<path d="M 110 0 L 180 40 L 110 80 L 40 40 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/> <path d="M 60 140 L 60 80" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="0" y="140" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 138px; height: 1px; padding-top: 40px; margin-left: 41px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 170px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
排序模块 链表的冒泡排序
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="110" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="60" y="174" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
排序模块 链表的冒泡排序
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 80 140 L 110 80" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 60 270 L 60 200" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="10" y="140" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/> <rect x="0" y="270" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 170px; margin-left: 11px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 300px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
链表的冒泡排序 定义前后指针对物品id进行从小到大的排序
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="70" y="174" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="60" y="304" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
链表的冒泡排序 定义前后指针对物品id进行从小到大的排序
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 60 270 L 70 200" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <ellipse cx="60" cy="40" rx="60" ry="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<rect x="0" y="270" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 300px; margin-left: 1px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 40px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
定义前后指针对物品id进行从小到大的排序 排序模块
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="60" y="304" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="60" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
定义前后指针对物品id进行从小到大的排序 排序模块
</text> </text>
</switch> </switch>
</g> </g>
@ -59,7 +59,7 @@
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/> <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"> <a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%"> <text text-anchor="middle" font-size="10px" x="50%" y="100%">
Viewer does not support full SVG 1.1 Text is not SVG - cannot display
</text> </text>
</a> </a>
</switch> </switch>

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Loading…
Cancel
Save