A data processing method, system, and storage medium for a ceramics e-commerce platform.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-16
- Publication Date
- 2026-08-14
AI Technical Summary
对于同时承接工程供货和零售成交的陶瓷销售业务,不仅要求门店在弱网状态下能够完成即时成交,还要求工程项目在后续分段领货、补片追加及同批次延续过程中保持供货连续;现有处理方式虽然能够反映已落单业务对应的实际占用数量,但对于尚未形成正式订单、却已因样板确认、区段排货、备货预留或续供安排而实际附着于特定批次的后续供货责任,缺乏有效识别和约束机制,由此容易出现平台账面可售数量充足、零售订单能够正常释放,而在后续执行阶段却发生工程批次断续、补片色差不一致、分段到货无法衔接,甚至零售成交挤占后续连续供货空间的情况;其根本原因在于,现有平台对库存的处理仍主要停留在当前数量占用层面,未将特定批次已经承担的后续连续供货能力纳入可售判断过程;
通过对边缘网络中各业务节点写入的续供内容执行接续、切分和保留量计算,能够将尚未形成正式订单但已实际附着于特定批次的后续续供责任纳入可售判断过程,从而相对降低承担未来连续供货能力的批次库存被提前释放的情况;
Smart Images

Figure CN122573364A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and more specifically, to a data processing method, system, and storage medium for a ceramic platform e-commerce platform. Background Technology
[0002] In the data processing of ceramic platform malls, existing technologies usually focus on realizing the sharing of product, batch, inventory and order status among stores, regional warehouses, project order tracking terminals and online transaction terminals. Especially in the edge network environment, each node usually completes local reading, pre-occupation, transaction and retransmission first, and then the platform updates the available information by combining the inventory balance, batch ownership and the occupancy results of formed orders. For ceramic sales businesses that simultaneously undertake project supply and retail transactions, it is not only required that stores be able to complete immediate transactions even under weak network conditions, but also that project projects maintain continuous supply during subsequent phased delivery, additional piece replenishment, and continuation of the same batch. Although the existing processing method can reflect the actual quantity occupied for orders, it lacks an effective identification and constraint mechanism for subsequent supply responsibilities actually attached to specific batches due to sample confirmation, phased scheduling, stock reservation, or continuation supply arrangements, even though formal orders have not yet been formed. As a result, it is easy for the platform to have sufficient available quantity for sale and retail orders to be released normally, but in the subsequent execution stage, there will be interruptions in project batches, inconsistent color differences in additional pieces, inability to connect phased deliveries, and even retail transactions crowding out the space for subsequent continuous supply. The root cause is that the current platform's handling of inventory is still mainly at the level of current quantity occupancy, and does not include the subsequent continuous supply capacity already undertaken for specific batches in the saleability judgment process. Therefore, the technical problem to be solved by this application is: how to identify the subsequent supply responsibility of ceramic platform mall that has not yet formed a formal order but has actually been attached to a specific batch under the condition of edge network, so as to avoid releasing the batch inventory that bears the ability to supply the future as the current available inventory. Summary of the Invention
[0003] To overcome the aforementioned deficiencies of the prior art, embodiments of the present invention provide a data processing method, system, and storage medium for a ceramic platform e-commerce platform. By performing sequential sorting, breakpoint segmentation, calculation of the continued supply quantity, verification of the release quantity, and result write-back on the continued supply content corresponding to the same batch of goods, the problems mentioned in the background art are solved.
[0004] To achieve the above objectives, the present invention provides the following technical solution: a data processing method for a ceramic platform e-commerce platform, comprising: S1. Obtain the supply continuation content written sequentially by each business node in the edge network for the same product batch, arrange them in ascending order by the writing time, and connect the adjacent supply continuation content whose end quantity of the previous supply continuation content is connected to the start quantity of the next supply continuation content in sequence, and output the supply continuation sequence of the corresponding product batch. S2. Extract the quantity before and after the connection of each adjacent position in the supply sequence, determine the position where the quantity before and after the connection are not equal as the breakpoint, and divide the supply sequence according to the breakpoint, and output the supply segment of the corresponding product batch. S3. Extract the quantity at the beginning and end of each supply segment, subtract the quantity at the beginning from the quantity at the end to obtain the retention quantity of each supply segment, and sum the retention quantities of each supply segment to generate the supply retention quantity of the corresponding product batch. S4. Obtain the target product batch and the requested quantity corresponding to the current transaction request. Subtract the quantity occupied by the transaction and the quantity reserved for continued supply from the book inventory quantity of the target product batch to obtain the release quantity. Compare the requested quantity with the release quantity. Output the transaction release result when the requested quantity is not greater than the release quantity, and output the transaction restriction result when the requested quantity is greater than the release quantity. S5. Process the current transaction request according to the transaction release result or the transaction restriction result. Under the transaction release result, write the request quantity into the already sold and occupied quantity of the target product batch and write it back to the corresponding business node. Under the transaction restriction result, retain the current transaction request and write it back to the corresponding business node, and output the saleable processing result of the target product batch.
[0005] In a preferred embodiment, S1 includes: S1-1. Obtain the supply continuation content written sequentially by each business node in the edge network for the same batch of goods, extract the start quantity, end quantity and writing time of each supply continuation content, sort each supply continuation content in ascending order of writing time, and output the supply continuation content sequence. S1-2. Extract the end quantity of the previous continuation content and the start quantity of the next continuation content in sequence. Connect the end quantity of adjacent continuation content with the start quantity, and keep the end quantity of adjacent continuation content with the start quantity separately. Output the continuation sequence. S1-3. Extract the start quantity of the first continuing content and the end quantity of the last continuing content in the continuation sequence, and write the continuing content connected to the first and last continuing content in sequence, and output the continuing sequence of the corresponding product batch.
[0006] In a preferred embodiment, S2 includes: S2-1. Extract the number of adjacent positions before and after connection in the continuation sequence, subtract the number of adjacent positions before connection from the number after connection to obtain the number difference between adjacent positions, and write the adjacent positions with a non-zero number difference into the position to be checked, and keep the adjacent positions with a zero number difference in the continuation sequence. S2-2. Extract the quantity difference of the current position one by one along the position to be inspected, and accumulate the quantity difference of the subsequent adjacent positions one by one along the continuous supply sequence. When the accumulated result is equal to the opposite number of the quantity difference of the current position to be inspected for the first time, write each adjacent position between the current position to be inspected and the corresponding adjacent position into the offset position; otherwise, write the current position to be inspected into the breakpoint position.
[0007] In a preferred embodiment, S2 further includes: S2-3. Extract the quantity before the connection of the first adjacent position, the quantity after the connection of the last adjacent position, and the quantity difference of each intermediate adjacent position for each hedging position. Subtract the quantity before the connection of the first adjacent position from the quantity after the connection of the last adjacent position to obtain the first-to-last difference. Add the quantity differences of each intermediate adjacent position one by one to obtain the intermediate sum. When the first-to-last difference is equal to zero and the intermediate sum is not equal to zero, write the corresponding hedging position into the parallel segment position. Otherwise, write the first adjacent position of the corresponding hedging position into the breakpoint position. S2-4. Extract the segment location and breakpoint location, merge the adjacent locations corresponding to the segment location into the same supply segment, determine the adjacent locations corresponding to the breakpoint location as breakpoints, and divide the supply sequence according to the breakpoints, and output the supply segment of the corresponding product batch.
[0008] In a preferred embodiment, S3 includes: S3-1. Extract the number of the beginning and end of each continuation segment, subtract the number of the beginning from the number of the end to obtain the retention amount within each continuation segment, and output the retention sequence within each segment according to the order of each continuation segment in the continuation sequence. S3-2. Extract the number of segments at the end of the previous supply segment and the number of segments at the beginning of the next supply segment in pairs along the retained sequence within the segment. Subtract the number of segments at the beginning of the next supply segment from the number of segments at the end of the previous supply segment to obtain the segment difference. If the segment difference is greater than zero, deduct the segment difference from the retained amount within the previous supply segment. If the segment difference is less than or equal to zero, keep the retained amount within the previous supply segment unchanged and output the previous segment correction amount.
[0009] In a preferred embodiment, S3 further includes: S3-3. Extract the number of segments at the end of the previous supply segment and the number of segments at the beginning of the next supply segment in pairs along the retained sequence within the segment. Subtract the number of segments at the end of the previous supply segment from the number of segments at the beginning of the next supply segment to obtain the acceptance difference. Keep the number of segments retained within the next supply segment unchanged when the acceptance difference is greater than zero. Output the number of segments retained within the next supply segment as the correction amount for the next segment when the acceptance difference is less than or equal to zero. S3-4. Extract the front-end correction amount and the back-end correction amount, and add the front-end correction amount that has not been deducted to the back-end correction amount to generate the continued supply retention amount for the corresponding product batch.
[0010] In a preferred embodiment, S4 includes: S4-1. Obtain the target product batch and requested quantity corresponding to the current transaction request, extract the book inventory quantity, the quantity occupied by transactions and the reserve quantity of continued supply corresponding to the target product batch, and subtract the quantity occupied by transactions and the reserve quantity of continued supply from the book inventory quantity to generate the releaseable quantity. S4-2. Extract the request quantity and the release quantity. Subtract the release quantity from the request quantity to get the quantity difference. If the quantity difference is less than or equal to zero, determine the request quantity as the release quantity. If the quantity difference is greater than zero, determine the release quantity as the release quantity and the quantity difference as the restriction quantity. S4-3. Extract the release quantity and the restriction quantity. When the restriction quantity is equal to zero, output the transaction release result. When the restriction quantity is greater than zero, output the transaction restriction result.
[0011] In a preferred embodiment, S5 includes: S5-1. Extract the target product batch, requested quantity, and transaction release result or transaction restriction result corresponding to the current transaction request. Under the transaction release result, add the already traded and occupied quantity of the target product batch to the requested quantity to generate the updated already traded and occupied quantity. Under the transaction restriction result, retain the current transaction request and generate a pending record. S5-2. Extract the updated completed and occupied quantity or pending record. Under the transaction release result, write the updated completed and occupied quantity into the target product batch. Under the transaction restriction result, write the pending record into the target product batch and generate the write-back result. S5-3. Extract the write-back result and send it to the corresponding business node. When the write-back result is the updated number of transactions already completed, output the transaction release record. When the write-back result is the pending record, output the transaction restriction record and generate the saleable processing result for the target product batch.
[0012] In a preferred embodiment, a ceramic platform e-commerce data processing system includes: The supply continuation module is used to obtain the supply continuation content written by each business node in the edge network for the same product batch, arrange them in ascending order by the writing time, and connect the adjacent supply continuation content whose end quantity of the previous supply continuation content is connected to the start quantity of the next supply continuation content in sequence, and output the supply continuation sequence of the corresponding product batch. The breakpoint segmentation module is used to extract the quantity before and after the connection of each adjacent position in the supply sequence, determine the position where the quantity before and after the connection are not equal as the breakpoint, segment the supply sequence according to the breakpoint, and output the supply segment of the corresponding product batch. The renewing supply retention module is used to extract the quantity at the beginning and end of each renewing supply segment, subtract the quantity at the beginning of the segment from the quantity at the end of the segment to obtain the retention quantity of each renewing supply segment, and sum the retention quantities of each renewing supply segment to generate the renewing supply retention quantity of the corresponding product batch. The available quantity verification module is used to obtain the target product batch and the requested quantity corresponding to the current transaction request. It deducts the quantity occupied by the transaction and the quantity reserved for continued supply from the book inventory quantity of the target product batch to obtain the release quantity. It compares the requested quantity with the release quantity. If the requested quantity is not greater than the release quantity, it outputs the transaction release result. If the requested quantity is greater than the release quantity, it outputs the transaction restriction result. The result write-back module is used to process the current transaction request according to the transaction release result or the transaction restriction result. Under the transaction release result, the request quantity is written into the already sold and occupied quantity of the target product batch and written back to the corresponding business node. Under the transaction restriction result, the current transaction request is retained and written back to the corresponding business node, and the saleable processing result of the target product batch is output.
[0013] In a preferred embodiment, a storage medium stores a computer program that, when executed by a processor, implements the various steps of the ceramic platform mall data processing method.
[0014] The technical effects and advantages of this invention are as follows: By performing continuity, splitting, and retention calculations on the supply continuation content written by each business node in the edge network, the subsequent supply responsibility that has not yet formed a formal order but has actually been attached to a specific batch can be included in the saleability judgment process, thereby relatively reducing the situation where batch inventory that bears the ability to supply continuously in the future is released in advance. By first forming a supply continuation sequence, then identifying breakpoints and outputting supply continuation segments, it is possible to distinguish between intermediate quantity fluctuations and the actual breakpoints, thus relatively improving the accuracy of identifying subsequent supply continuation responsibility boundaries and providing a clearer segmentation basis for calculating supply continuation retention amounts. By extracting the number of the first and last items of each supply segment and generating the reserve quantity, and then performing correction in combination with the connection relationship between the previous and subsequent supply segments, the problem of quantity amplification caused by repeated counting of adjacent supply segments can be relatively suppressed, so that the supply reserve quantity is closer to the actual supply occupancy status. By using the book inventory quantity, the quantity already occupied by transactions, and the reserve quantity for continued supply together to calculate the quantity that can be released, the release judgment of the current transaction request can simultaneously reflect the current occupancy and the subsequent continued supply occupancy, which relatively improves the effectiveness of the saleability verification of the ceramic platform mall in the scenario of parallel engineering supply and retail transactions. By writing back the updated quantity of completed transactions under the transaction release result, and retaining the current transaction request and writing back the corresponding business node under the transaction restriction result, subsequent processing can directly inherit the previous processing result, thereby improving the consistency between the subsequent inventory judgment of the target product batch and the node feedback. Attached Figure Description
[0015] Figure 1 This is a flowchart of the method steps of the present invention.
[0016] Figure 2 This is a schematic diagram of the system modules of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Refer to the instruction manual appendix Figures 1-2 The present invention provides a data processing method for a ceramic platform e-commerce platform, comprising: S1. Obtain the supply continuation content written sequentially by each business node in the edge network for the same product batch, arrange them in ascending order by the writing time, and connect the adjacent supply continuation content whose end quantity of the previous supply continuation content is connected to the start quantity of the next supply continuation content in sequence, and output the supply continuation sequence of the corresponding product batch. In this specific implementation, S1 is used to organize the supply renewal content written sequentially by each business node in the edge network into ordered content that can be processed continuously under the same product batch, and on this basis, identify adjacent supply renewal content that can be connected one after another, and write the supply renewal content connected end to end into the same sequence to form the supply renewal sequence used for subsequent breakpoint segmentation; in specific processing, first extract the supply renewal content written by each business node around the same product batch, then determine the order of the front and back according to the writing time, and then perform connection or separate retention according to whether the end quantity of the previous supply renewal content is equal to the start quantity of the next supply renewal content, and finally output the supply renewal sequence of the corresponding product batch. The implementation process includes the following steps: First, the replenishment content corresponding to the same product batch is extracted and sorted. Specifically, the replenishment content is extracted from the business content written by store nodes, regional warehouse nodes, project order tracking nodes, and other business nodes, and replenishment content with the same product batch identifier is grouped into the same processing set. For each replenishment content, the start quantity, end quantity, and write time are read, where the start quantity indicates the starting quantity position corresponding to the replenishment content, and the end quantity indicates the ending quantity position corresponding to the replenishment content. When the original written content is the segmented distribution quantity, the reserved quantity for inventory preparation, or the replenishment arrangement quantity, the start quantity and end quantity are first calculated according to the quantity range corresponding to the written content, and then the replenishment content is written. After the extraction is completed, the replenishment content under the same product batch is arranged in ascending order of write time. When replenishment content with the same write time appears, it is arranged in a fixed order corresponding to the node identifier. When both the write time and the node identifier are the same, it is arranged in the original arrival order, and the replenishment content sequence is output. Next, a continuation determination is performed along the continuation content sequence. Specifically, starting from the first continuation content in the sequence, the end quantity of the previous continuation content and the start quantity of the next continuation content are extracted in pairs and compared. When the end quantity equals the start quantity, the two adjacent continuation contents are connected end to end and recorded in the same continuation chain. When the end quantity does not equal the start quantity, the two adjacent continuation contents are separated and retained, and the next continuation content is taken as the new continuation starting point. The above comparison is continued along the continuation content sequence until the comparison of the last continuation content is completed, resulting in a continuation sequence. The same judgment criterion is used for connection here, that is, when the end quantity of the previous continuation content equals the start quantity of the next continuation content, it is considered to be connected, and no connection is processed in other cases. Subsequently, a supply sequence for the corresponding product batch is formed based on the successive sequence. Specifically, the start quantity of the first supply item and the end quantity of the last supply item in the successive sequence are extracted. The start quantity of the first supply item is used as the starting boundary of the supply sequence, and the end quantity of the last supply item is used as the ending boundary. Then, all supply items that are connected end-to-end between the first and last supply items are written sequentially to form the supply sequence for the corresponding product batch. When the successive sequence contains only one supply item, that supply item is directly output as the supply sequence. When there is no supply item under the same product batch, the supply sequence corresponding to that product batch is recorded as an empty sequence. After this processing, the order and connection relationship of each continuation content under the same product batch can be determined in advance. When extracting the quantity before and after the connection of adjacent positions, it can be directly executed according to this order, and the processing confusion caused by the same writing time, inconsistent connection judgment or too little continuation content can be reduced. In practical applications: For example, for the same batch of goods, the regional warehouse node first writes a supply update, with a start quantity of 0 and an end quantity of 80. Then, the project order tracking node writes a supply update, with a start quantity of 80 and an end quantity of 140. Finally, the store node writes a supply update, with a start quantity of 160 and an end quantity of 200. The system first sorts the supply updates by the time they are written, and then compares the end quantity with the start quantity of two adjacent supply updates. The first two supply updates satisfy the condition that 80 equals 80, so they are connected end to end. The start quantity of the third supply update, 160, is not equal to the end quantity of the previous supply update, 140, so they are kept separately. In the final supply update sequence, the first two supply updates form a continuous part, and the third supply update forms a separate part, which serves as the input for subsequent breakpoint segmentation.
[0019] S2. Extract the quantity before and after the connection of each adjacent position in the supply sequence, determine the position where the quantity before and after the connection are not equal as the breakpoint, and divide the supply sequence according to the breakpoint, and output the supply segment of the corresponding product batch. In this specific embodiment, S2 is used to distinguish between the actual breakpoints that should be cut in the supply sequence and the positions where the difference only occurs temporarily due to fluctuations in the intermediate quantity, and to form the supply segment for the corresponding product batch based on this. In specific processing, the quantity before and after the connection of adjacent positions is extracted one by one in the supply sequence. The difference between the two is calculated and the adjacent positions with a quantity difference of not equal to zero are screened out as positions to be inspected. Then, starting from each position to be inspected, the corresponding adjacent positions that can offset the quantity difference to zero are searched along the supply sequence. After the corresponding adjacent positions are found, the beginning and end checks and intermediate checks are performed on the range to distinguish between positions that can be merged into the same supply segment and positions that should be retained as breakpoints. Finally, the supply sequence is divided according to the breakpoints to obtain the supply segment for the corresponding product batch. The implementation process includes the following steps: First, difference extraction and preliminary splitting are performed on each adjacent position in the continuation sequence. Specifically, the end quantity of the previous continuation content in the continuation sequence is used as the quantity before the connection of the adjacent position, and the beginning quantity of the next continuation content is used as the quantity after the connection of the adjacent position. The adjacent positions are read sequentially according to the order in the continuation sequence. Then, the quantity after the connection is subtracted from the quantity before the connection to obtain the quantity difference of the adjacent position. If the quantity difference is equal to zero, it means that the quantities before and after the adjacent position are continuous, and it is not entered into the subsequent breakpoint judgment, but is retained in the continuation sequence. If the quantity difference is not equal to zero, it means that there is a change in the quantity before and after the adjacent position. The adjacent position is written to the position to be checked, and the order position of the adjacent position in the continuation sequence and the corresponding quantity difference are recorded simultaneously for subsequent offsetting. If the quantity difference of all adjacent positions in the continuation sequence is equal to zero, the continuation sequence will no longer generate a position to be checked, and the entire continuation sequence will be directly processed as a continuation segment. Next, a backward offset search is performed on each position to be inspected. Specifically, the current position to be inspected is retrieved one by one according to its order in the supply sequence. The quantity difference of the current position is read, and then, starting from the next adjacent position, the quantity differences of subsequent adjacent positions are extracted and accumulated bit by bit along the supply sequence until an adjacent position appears whose accumulated result is first equal to the opposite of the quantity difference of the current position to be inspected. Once this is the first match, all adjacent positions between the current position to this adjacent position are written to the same offset position. Here, "first equal to" means the adjacent position that first satisfies the opposite condition during the bit-by-bit accumulation process according to the supply sequence. Once this is achieved, the accumulation stops, and subsequent matched positions are not retained. If no adjacent position appears whose accumulated result is equal to the opposite of the quantity difference of the current position to be inspected after accumulating to the end of the supply sequence, the current position to be inspected is written to the breakpoint position. Thus, the range where the quantity difference can be offset in subsequent positions is extracted first, and the positions that cannot be offset are retained. Furthermore, first-end and intermediate checks are performed on each hedging position. Specifically, for each hedging position, the quantity before the connection of the first adjacent position, the quantity after the connection of the last adjacent position, and the quantity differences between the first and last adjacent positions are extracted. The quantity after the connection of the last adjacent position is subtracted from the quantity before the connection of the first adjacent position to obtain the first-end difference. Then, the quantity differences of each intermediate adjacent position are accumulated position by position according to their order in the supply sequence to obtain the intermediate sum. If there are no other adjacent positions between the first and last adjacent positions, the intermediate sum is recorded as zero. Then, a joint judgment is performed on the difference between the first and last positions and the sum of the middle positions: when the difference between the first and last positions is equal to zero and the sum of the middle positions is not equal to zero, it means that the first and last positions of the offset position have returned to the same quantity boundary, but there is an actual quantity fluctuation in the middle. The offset position is not cut off as a breakpoint, but is written into the segment position; when the difference between the first and last positions is not equal to zero, or the difference between the first and last positions is equal to zero but the sum of the middle positions is equal to zero, it means that the offset position does not meet the segment condition. Then, the first and last adjacent positions of the offset position are written into the breakpoint position. After this processing, it avoids directly merging segments based on only one offset hit, and also avoids mistakenly merging positions where the first and last positions return to zero but there is no actual change in the middle into the continuation supply segment. Subsequently, a continuation supply segment is formed based on the merging and breakpoint positions. Specifically, all merging and breakpoint positions are extracted, and adjacent positions corresponding to the same merging position are merged into the same continuation supply segment. If two merging positions have overlapping adjacent positions, or the last adjacent position of the preceding merging position is connected to the first adjacent position of the following merging position, then these two merging positions are merged into the same continuation supply segment. If the merging positions neither overlap nor connect, then different continuation supply segments are formed. For breakpoint positions, the adjacent positions corresponding to the breakpoint position are determined as breakpoints, and the continuation supply sequence is segmented according to the order of the breakpoints in the continuation supply sequence to obtain the continuation supply segment for the corresponding product batch. If there are no breakpoint positions in the continuation supply sequence corresponding to a product batch, then the entire continuation supply sequence is output as a single continuation supply segment. If only one breakpoint position exists, then the continuation supply sequence is segmented into two continuation supply segments according to that breakpoint position. After this processing, the quantity changes in the supply sequence will not be directly identified as breakpoints based solely on the inequality of a single adjacent position. Instead, they will first undergo inspection, offsetting, first and last verification, and intermediate verification before being distinguished as either parallel segments or breakpoints. This allows us to retain the parts with quantity fluctuations in the middle that should still be classified into the same supply segment as a whole, while accurately cutting off the positions of quantity changes that cannot be closed as breakpoints. This provides clear boundaries when extracting the first and last quantities of each supply segment and calculating the supply retention amount. In practical applications: For example, in the supply sequence corresponding to a certain batch of goods, adjacent positions successively form quantity differences of 20, -5, -15, 30, -10, and -20. The system first writes the adjacent positions with quantity differences that are not equal to zero into the inspection position, and then starts from the first inspection position with a quantity difference of 20 and adds it bit by bit. First, it adds it up to -5 to get 15, and then it adds it up to -15 to get 0. So, the adjacent positions from the inspection position to the position with a quantity difference of -15 are written into the same offset position. Then, the system extracts the quantity before the connection of the first adjacent position and the connection of the last adjacent position of the offset position. If the difference between the two quantities is zero, and the sum of the differences in the intermediate quantities is not zero, then the offset position is written to the parallel segment position, without being cut off at the breakpoint. For the position to be checked with a quantity difference of 30, continue to accumulate -10 and -20 and return to 0, and enter the first and last checks and intermediate checks in the same way. If the check passes, it is merged into the same supply segment. If the check fails, the first and second adjacent positions of the offset position are written to the breakpoint position. Finally, the system divides the supply sequence into corresponding supply segments according to the parallel segment position and the breakpoint position, and then sends the obtained supply segments into the subsequent supply retention amount calculation process.
[0020] S3. Extract the quantity at the beginning and end of each supply segment, subtract the quantity at the beginning from the quantity at the end to obtain the retention quantity of each supply segment, and sum the retention quantities of each supply segment to generate the supply retention quantity of the corresponding product batch. In this specific embodiment, S3 is used to calculate the retention amount formed by each continuous supply segment based on the already obtained continuous supply segments, and then process the possible preceding and following relationships between adjacent continuous supply segments to avoid double counting of the preceding and following parts, and finally obtain the continuous supply retention amount of the corresponding product batch. In specific processing, the number of the first segment and the number of the last segment are extracted from each continuous supply segment, and the retention amount within each segment corresponding to each continuous supply segment is calculated. Then, along the order in the continuous supply sequence, the number of the last segment of the previous continuous supply segment is compared with the number of the first segment of the next continuous supply segment to form the preceding segment correction amount and the following segment correction amount respectively. Finally, the corresponding positions of the first segment, the last segment and the middle continuous supply segment are accumulated to obtain the continuous supply retention amount of the corresponding product batch. The implementation process includes the following steps: First, calculate the retention amount within each renewal segment. Specifically, extract the start and end quantities of each renewal segment according to their order in the renewal sequence. The start quantity is the quantity corresponding to the first renewal content of the segment, and the end quantity is the quantity corresponding to the last renewal content of the segment. Then, subtract the start quantity from the end quantity to obtain the retention amount within the renewal segment. If the end quantity is greater than the start quantity, the difference is used directly as the retention amount. If the end quantity equals the start quantity, the retention amount is recorded as zero. If the end quantity is less than the start quantity, the renewal segment is not output as a negative value, but its retention amount is recorded as zero. After calculating all renewal segments, output the retention sequence according to their order in the renewal sequence, ensuring that each renewal segment corresponds to a retention amount. Next, the correction relationship between the preceding and following supply segments is processed. Specifically, along the retained sequence within each segment, the number of segments ending in the preceding supply segment and the number of segments beginning in the following supply segment are extracted pair by pair. The number of segments ending in the preceding supply segment is subtracted from the number of segments beginning in the following supply segment to obtain the segment difference between the supply segment pairs. When the segment difference is greater than zero, it indicates that the position of the ending quantity of the preceding supply segment has exceeded the position of the starting quantity of the following supply segment, and there is a repetitive part in the preceding supply segment that connects to the following supply segment. In this case, the segment is... The difference is subtracted from the segment retention amount of the previous supply segment to obtain the segment correction amount of the previous supply segment; if the subtraction result is greater than zero, the segment correction amount is output; if the subtraction result is equal to zero or less than zero, the segment correction amount is recorded as zero; if the difference between segments is less than or equal to zero, it means that the number of the end of the segment of the previous supply segment has not exceeded the number of the beginning of the segment of the next supply segment, and there is no duplicate part that needs to be subtracted from the previous supply segment. At this time, the segment retention amount of the previous supply segment remains unchanged, and the segment retention amount is output as the segment correction amount. Subsequently, the correction relationship corresponding to the next continuation segment is processed. Specifically, along the segment-preserved sequence, the number of segments ending in the previous continuation segment and the number of segments beginning in the next continuation segment are extracted pair by pair. The number of segments beginning in the next continuation segment is subtracted from the number of segments ending in the previous continuation segment to obtain the acceptance difference. When the acceptance difference is greater than zero, it indicates that the starting position of the next continuation segment is after the number of segments ending in the previous continuation segment, and there is no segment boundary overlay between the next and previous continuation segments. The next continuation segment maintains its own intra-segment... The retention amount remains unchanged; when the difference in acceptance is less than or equal to zero, it means that the quantity at the beginning of the next supply segment has fallen within the range of the quantity at the end of the previous supply segment. The next supply segment, as a subsequent supply segment, still retains its corresponding retention amount within the segment. At this time, the retention amount within the segment of the next supply segment is output as the subsequent segment correction amount. Here, the subsequent segment correction amount is no longer deducted again, but is used to coordinate with the previous segment correction amount to prevent the same supply segment from being deducted in the previous segment correction and reduced again in the subsequent segment correction. Finally, the corresponding product batch's continued supply reserve quantity is generated based on the pre- and post-correction quantities. Specifically, the process involves first distinguishing the first, last, and intermediate continued supply segments according to their position in the continued supply sequence. For the first continued supply segment, only the pre-correction quantity corresponding to that segment is used for accumulation. For the last continued supply segment, only the post-correction quantity corresponding to that segment is used for accumulation. For intermediate continued supply segments located between the first and last segments, the post-correction quantity formed in the previous round of continued supply segment comparisons is used for accumulation, without repeatedly adding the pre-correction quantity corresponding to that segment. If a product batch contains only one continued supply segment, the in-segment reserve quantity of that segment is directly output as the continued supply reserve quantity. If it contains only two continued supply segments, the pre-correction quantity of the previous segment and the post-correction quantity of the next segment are added together to obtain the continued supply reserve quantity. After all continued supply segment values are obtained, the accumulated correction quantities are added sequentially to generate the corresponding product batch's continued supply reserve quantity. This approach preserves the quantity range formed by each renewal segment while deducting the portion already taken between the previous and subsequent renewal segments from the previous segment, thus avoiding duplicate counting of the same quantity range in the previous and subsequent renewal segments. At the same time, by using different value methods for the first, last, and intermediate renewal segments, the generation process of the renewal reserve quantity can be closed, providing a clear value basis when calculating the release quantity by combining it with the book inventory quantity and the quantity occupied by transactions. In practical applications: For example, after a batch of goods is divided into three supply segments, the first supply segment has 0 units at the beginning and 100 units at the end; the second supply segment has 80 units at the beginning and 150 units at the end; and the third supply segment has 150 units at the beginning and 210 units at the end. The system first calculates the intra-segment retention for each of the three supply segments, obtaining 100, 70, and 60 units respectively. Then, it compares the first and second supply segments. The inter-segment difference is 100 minus 80, which equals 20. This indicates that 20 units in the first supply segment are connected to the beginning of the second supply segment. Therefore, the pre-segment correction for the first supply segment is 100 minus 20, which equals 80. Comparing the second and third supply segments, the difference between segments is 150 minus 150, resulting in 0. The pre-segment correction amount of the second supply segment remains unchanged at 70. The corresponding acceptance differences are 80 minus 100, resulting in -20, and 150 minus 150, resulting in 0. Therefore, both the second and third supply segments output the post-segment correction amount according to their respective segment retention amounts. Subsequently, the first supply segment, as the first supply segment, takes the pre-segment correction amount of 80, the second supply segment, as the middle supply segment, takes the post-segment correction amount of 70, and the third supply segment, as the last supply segment, takes the post-segment correction amount of 60. The sum of these three amounts yields a supply retention amount of 210 for this batch of goods.
[0021] S4. Obtain the target product batch and the requested quantity corresponding to the current transaction request. Subtract the quantity occupied by the transaction and the quantity reserved for continued supply from the book inventory quantity of the target product batch to obtain the release quantity. Compare the requested quantity with the release quantity. Output the transaction release result when the requested quantity is not greater than the release quantity, and output the transaction restriction result when the requested quantity is greater than the release quantity. In this specific implementation, S4 is used to compare the current transaction request with the actual release quantity of the target product batch after obtaining the resupply reserve quantity, to determine whether the current transaction request can be released directly or should be restricted. Specifically, the target product batch and the requested quantity are extracted for the current transaction request. Then, the release quantity is calculated by combining the book inventory quantity, the quantity already traded and occupied, and the resupply reserve quantity corresponding to the target product batch. Then, the quantity difference between the requested quantity and the release quantity is used as the basis for judgment to form the release quantity and the restriction quantity. Finally, the transaction release result or transaction restriction result is output based on whether the restriction quantity is zero. Here, the release quantity and the restriction quantity are used to complete the quantity comparison and result generation of the current transaction request, and the current transaction request is not split for execution. The implementation process includes the following steps: First, calculate the releaseable quantity corresponding to the target product batch. Specifically, read the target product batch and requested quantity recorded in the current transaction request, then extract the book inventory quantity, the quantity already traded and occupied, and the reserve quantity from the inventory data corresponding to the target product batch. The book inventory quantity is the total inventory currently registered for the target product batch; the quantity already traded and occupied is the quantity that has been released for trade and is occupied in the target product batch; and the reserve quantity is the quantity calculated in the previous steps and reserved for subsequent supply responsibilities. Then, subtract the traded and occupied quantity from the book inventory quantity, and then subtract the reserve quantity to obtain the releaseable quantity. When the calculation result is greater than zero, directly output the calculation result as the releaseable quantity; when the calculation result is equal to zero or less than zero, record the releaseable quantity as zero. After this processing, the releaseable quantity always corresponds to the actual release range of the target product batch that can be used for transaction judgment at the current moment. Next, based on the number of requests and the number of releases, the release quantity and the restriction quantity are formed. Specifically, the number of requests and the number of releases are extracted, and the number of requests is subtracted from the number of releases to obtain the quantity difference. When the quantity difference is less than or equal to zero, it means that the number of requests has not exceeded the number of releases. In this case, the number of requests is determined as the release quantity, and the restriction quantity is recorded as zero. When the quantity difference is greater than zero, it means that the number of requests has exceeded the number of releases. In this case, the number of releases is determined as the release quantity, and the quantity difference is determined as the restriction quantity. Here, the release quantity represents the portion that can be released in the current comparison process, corresponding to the number of releases, and the restriction quantity represents the portion that exceeds the number of releases. When the restriction quantity is greater than zero, only the release quantity and the restriction quantity are retained as intermediate quantities in the result generation. The current transaction request is not split into two transactions of partial release and partial restriction. Instead, the transaction restriction result is output uniformly in the next step. Subsequently, the processing result corresponding to the current transaction request is generated based on the release quantity and the restriction quantity. In specific execution, the release quantity and the restriction quantity are extracted. When the restriction quantity is equal to zero, it means that the number of requests corresponding to the current transaction request falls within the range of the release quantity, the current transaction request meets the release condition, and the transaction release result is output. When the restriction quantity is greater than zero, it means that the number of requests corresponding to the current transaction request exceeds the release quantity, the current transaction request does not meet the overall release condition, and the transaction restriction result is output. Thus, although the release quantity and the restriction quantity are retained in the calculation process, the final processing result is still generated according to the current transaction request as a whole, and the current transaction request is not split for release. After this processing, the quantity of the target product batch available for transaction judgment at the current moment can be directly calculated from the book inventory quantity, the quantity already traded and occupied, and the replenishment reserve quantity. Whether the current transaction request can be released can also be directly determined by the quantity difference between the requested quantity and the available quantity. At the same time, when the available quantity is less than zero, it is recorded as zero, and when the restricted quantity is greater than zero, the transaction restriction result is output uniformly. This can avoid the situation where negative quantities are involved in the comparison or the same current transaction request is split for execution, so that the subsequent writing of the quantity already traded and the retention of the current transaction request have a consistent basis. In practical applications: For example, if the book inventory quantity of a target product batch is 500, the quantity already sold and occupied is 180, and the reserve quantity for continued supply is 140, then the system first calculates 500 minus 180 minus 140 to obtain a release quantity of 180. If the requested quantity in the current transaction request is 150, then the quantity difference between the requested quantity and the release quantity is -30. The system determines the requested quantity of 150 as the release quantity, records the restricted quantity as zero, and finally outputs the transaction release result. If the requested quantity in the current transaction request is 230, then the quantity difference between the requested quantity and the release quantity is 50. The system determines the release quantity of 180 as the release quantity and the quantity difference of 50 as the restricted quantity. However, the current transaction request is not split for execution, but the transaction restriction result is directly output so that the current transaction request is retained as a whole in subsequent processing.
[0022] S5. Process the current transaction request according to the transaction release result or the transaction restriction result. Under the transaction release result, write the request quantity into the already sold and occupied quantity of the target product batch and write it back to the corresponding business node. Under the transaction restriction result, retain the current transaction request and write it back to the corresponding business node, and output the saleable processing result of the target product batch. In this specific implementation, S5 is used to write the processing result corresponding to the current transaction request back to the target product batch after the transaction release result or transaction restriction result has been formed, and synchronously return it to the corresponding business node, so that the subsequent inventory calculation of the target product batch is consistent with the processing status of the current transaction request. In specific processing, the target product batch, the requested quantity, and the transaction release result or transaction restriction result corresponding to the current transaction request are extracted first. Under the transaction release result, the already sold and occupied quantity of the target product batch is updated. Under the transaction restriction result, the current transaction request is retained and a pending record is formed. Then, the updated already sold and occupied quantity or pending record is written to the target product batch to form a write-back result. Then, the write-back result is sent to the corresponding business node, and the transaction release record or transaction restriction record is output accordingly to generate the saleable processing result of the target product batch. The implementation process includes the following steps: First, write-back content is generated based on the transaction release result or transaction restriction result. Specifically, the target product batch, requested quantity, and transaction release or restriction result corresponding to the current transaction request are extracted. When the transaction release result is valid, the currently occupied quantity corresponding to the target product batch is read, and this quantity is added to the requested quantity to obtain the updated occupied quantity. The requested quantity is entirely included in the occupied quantity of the target product batch. When the transaction restriction result is valid, the currently occupied quantity corresponding to the target product batch is not changed; instead, the current transaction request is retained, and a pending record is generated based on the current transaction request. This pending record includes at least the target product batch and the requested quantity, indicating that the current transaction request has not been released but still corresponds to the target product batch. After completing the above processing, the updated occupied quantity is output under the transaction release result, and the pending record is output under the transaction restriction result. Next, the updated completed transaction quantity or pending record is written to the target product batch. Specifically, under the transaction release result, the updated completed transaction quantity is written to the inventory data location corresponding to the target product batch to replace the previous completed transaction quantity, so that the target product batch can directly use the updated completed transaction quantity when recalculating the release quantity in the future. Under the transaction restriction result, the pending record is written to the restriction record location corresponding to the target product batch, so that the target product batch retains the current transaction request not being released. Here, the updated completed transaction quantity and pending record are written to different data locations under the target product batch. The former is used for subsequent quantity deduction calculations, and the latter is used for subsequent release re-checks or continued retention. After the writing is completed, a write-back result is generated. Under the transaction release result, the write-back result is the updated completed transaction quantity; under the transaction restriction result, the write-back result is the pending record. Subsequently, based on the write-back results, the available-for-sale processing result for the target product batch is generated. Specifically, the write-back result is extracted and sent to the corresponding business node that initiated the current transaction request. When the write-back result shows the updated quantity already sold, it indicates that the current transaction request has been released, and a transaction release record is generated and sent to the corresponding business node. When the write-back result shows a pending record, it indicates that the current transaction request has not been released, and a transaction restriction record is generated and sent to the corresponding business node. Thus, the business node receives a clear processing result corresponding to the current transaction request. The transaction release record indicates that the current transaction request can proceed to subsequent transaction processing, while the transaction restriction record indicates that the current transaction request is in a reserved state. Finally, the available-for-sale processing result for the target product batch is output as either the transaction release record or the transaction restriction record. With this processing, the current transaction request can directly rewrite the already occupied quantity of the target product batch under the transaction release result, and the updated already occupied quantity will be included in the subsequent calculation of the release quantity; under the transaction restriction result, the current transaction request will not be discarded, but will be retained in the target product batch as a pending record, which is convenient for subsequent judgment or waiting for the release conditions to change before processing again; at the same time, the write-back result corresponds one-to-one with the record type of the returned business node, which can reduce the situation where the already occupied quantity is not included in the subsequent calculation after the update, or there is no corresponding retention position after the transaction restriction result is formed; In practical applications: For example, if a business node initiates a current transaction request with a quantity of 120, and the corresponding target product batch currently has a transaction-occupied quantity of 260; if the previous step has already output a transaction release result, the system adds 260 and 120 to obtain the updated transaction-occupied quantity of 380, writes 380 to the inventory data location corresponding to the target product batch, and then returns the transaction release record to the business node, so that when the target product batch is recalculated for the release quantity in the future, it will directly use 380 as the transaction-occupied quantity; as another example, if another current transaction request corresponds to a target product batch that has a book inventory quantity, but the previous step outputs a transaction restriction result, the system will keep the original transaction-occupied quantity of the target product batch unchanged, and at the same time generate a pending record for the current transaction request, write it to the restriction record location corresponding to the target product batch, and then return the transaction restriction record to the corresponding business node, so that the current transaction request will be retained until the release conditions change.
[0023] Furthermore, it also includes a data processing system for a ceramic platform e-commerce platform, comprising: The supply continuation module is used to obtain the supply continuation content written by each business node in the edge network for the same product batch, arrange them in ascending order by the writing time, and connect the adjacent supply continuation content whose end quantity of the previous supply continuation content is connected to the start quantity of the next supply continuation content in sequence, and output the supply continuation sequence of the corresponding product batch. The breakpoint segmentation module is used to extract the quantity before and after the connection of each adjacent position in the supply sequence, determine the position where the quantity before and after the connection are not equal as the breakpoint, segment the supply sequence according to the breakpoint, and output the supply segment of the corresponding product batch. The renewing supply retention module is used to extract the quantity at the beginning and end of each renewing supply segment, subtract the quantity at the beginning of the segment from the quantity at the end of the segment to obtain the retention quantity of each renewing supply segment, and sum the retention quantities of each renewing supply segment to generate the renewing supply retention quantity of the corresponding product batch. The available quantity verification module is used to obtain the target product batch and the requested quantity corresponding to the current transaction request. It deducts the quantity occupied by the transaction and the quantity reserved for continued supply from the book inventory quantity of the target product batch to obtain the release quantity. It compares the requested quantity with the release quantity. If the requested quantity is not greater than the release quantity, it outputs the transaction release result. If the requested quantity is greater than the release quantity, it outputs the transaction restriction result. The result write-back module is used to process the current transaction request according to the transaction release result or the transaction restriction result. Under the transaction release result, the request quantity is written into the already sold and occupied quantity of the target product batch and written back to the corresponding business node. Under the transaction restriction result, the current transaction request is retained and written back to the corresponding business node, and the saleable processing result of the target product batch is output.
[0024] Furthermore, it also includes a storage medium storing a computer program, which, when executed by a processor, implements the various steps of the ceramic platform mall data processing method.
[0025] Working Principle: This solution, in an edge network environment, first organizes, then segments, calculates retention, and finally determines the transaction and writes back the results for the same batch of goods. First, the renewal content written by each business node is arranged in the order of writing, and the content that can be connected end-to-end is linked into a renewal sequence. Then, the renewal sequence is checked to identify which positions are merely intermediate fluctuations and which positions are the actual breakpoints that need to be broken, thus segmenting the renewal into renewal segments. Next, the renewal retention amount is calculated for each renewal segment, and any duplicate calculations between adjacent renewal segments are handled to obtain the actual retention amount required for the batch of goods. The system retains the remaining supply reserve; then, it deducts the quantity already used for transactions and the remaining supply reserve from the book inventory quantity to calculate the current release quantity. It then compares the number of current transaction requests with the release quantity to determine whether the request should be allowed or restricted. Finally, it writes the processing result back to the target product batch and returns it to the corresponding business node, so that subsequent processing of the same product batch can directly continue the calculation based on the updated result. Overall, it solves the problem of the platform only looking at the current inventory and not considering subsequent supply responsibility, avoiding the premature release of quantities that should have been reserved for subsequent continuous supply. In practical application, it can be viewed as a ceramic platform mall that simultaneously serves retail stores and project supply. For example, under the edge network, a certain batch of goods is stored in a regional warehouse for subsequent projects. The project order tracking end then writes subsequent supply information, and the store receives a retail order request. The system doesn't just look at how much stock is left in the warehouse; instead, it connects all the previous supply information to determine which items belong to the same continuous supply range and which have been disconnected. It then calculates how much of this batch of goods has actually been occupied by the continuous supply for subsequent projects. Then, it compares the remaining truly releaseable quantity with the store's request quantity. If the quantity requested by the store does not exceed this releaseable quantity, it is released normally. If the quantity requested by the store will crowd out the goods that the subsequent project needs to use continuously, the request is directly restricted, and the result is written back to the corresponding node. In this way, the platform, under edge network conditions, can both support stores to process requests in a timely manner and take into account actual business constraints such as subsequent replenishment and segmented supply for projects.
[0026] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A data processing method for a ceramic platform e-commerce platform, characterized in that, include: S1. Obtain the supply continuation content written sequentially by each business node in the edge network for the same product batch, arrange them in ascending order by the writing time, and connect the adjacent supply continuation content whose end quantity of the previous supply continuation content is connected to the start quantity of the next supply continuation content in sequence, and output the supply continuation sequence of the corresponding product batch. S2. Extract the quantity before and after the connection of each adjacent position in the supply sequence, determine the position where the quantity before and after the connection are not equal as the breakpoint, and divide the supply sequence according to the breakpoint, and output the supply segment of the corresponding product batch. S3. Extract the quantity at the beginning and end of each supply segment, subtract the quantity at the beginning from the quantity at the end to obtain the retention quantity of each supply segment, and sum the retention quantities of each supply segment to generate the supply retention quantity of the corresponding product batch. S4. Obtain the target product batch and the requested quantity corresponding to the current transaction request. Subtract the quantity occupied by the transaction and the quantity reserved for continued supply from the book inventory quantity of the target product batch to obtain the release quantity. Compare the requested quantity with the release quantity. Output the transaction release result when the requested quantity is not greater than the release quantity, and output the transaction restriction result when the requested quantity is greater than the release quantity. S5. Process the current transaction request according to the transaction release result or the transaction restriction result. Under the transaction release result, write the request quantity into the already sold and occupied quantity of the target product batch and write it back to the corresponding business node. Under the transaction restriction result, retain the current transaction request and write it back to the corresponding business node, and output the saleable processing result of the target product batch.
2. The data processing method for a ceramic platform e-commerce mall according to claim 1, characterized in that: S1 includes: S1-1. Obtain the supply continuation content written sequentially by each business node in the edge network for the same batch of goods, extract the start quantity, end quantity and writing time of each supply continuation content, sort each supply continuation content in ascending order of writing time, and output the supply continuation content sequence. S1-2. Extract the end quantity of the previous continuation content and the start quantity of the next continuation content in sequence. Connect the end quantity of adjacent continuation content with the start quantity, and keep the end quantity of adjacent continuation content with the start quantity separately. Output the continuation sequence. S1-3. Extract the start quantity of the first continuing content and the end quantity of the last continuing content in the continuation sequence, and write the continuing content connected to the first and last continuing content in sequence, and output the continuing sequence of the corresponding product batch.
3. The data processing method for a ceramic platform e-commerce mall according to claim 2, characterized in that: S2 includes: S2-1. Extract the number of adjacent positions before and after connection in the continuation sequence, subtract the number of adjacent positions before connection from the number after connection to obtain the number difference between adjacent positions, and write the adjacent positions with a non-zero number difference into the position to be checked, and keep the adjacent positions with a zero number difference in the continuation sequence. S2-2. Extract the quantity difference of the current position one by one along the position to be inspected, and accumulate the quantity difference of the subsequent adjacent positions one by one along the continuous supply sequence. When the accumulated result is equal to the opposite number of the quantity difference of the current position to be inspected for the first time, write each adjacent position between the current position to be inspected and the corresponding adjacent position into the offset position; otherwise, write the current position to be inspected into the breakpoint position.
4. The data processing method for a ceramic platform e-commerce mall according to claim 3, characterized in that: S2 further includes: S2-3. Extract the quantity before the connection of the first adjacent position, the quantity after the connection of the last adjacent position, and the quantity difference of each intermediate adjacent position for each hedging position. Subtract the quantity before the connection of the first adjacent position from the quantity after the connection of the last adjacent position to obtain the first-to-last difference. Add the quantity differences of each intermediate adjacent position one by one to obtain the intermediate sum. When the first-to-last difference is equal to zero and the intermediate sum is not equal to zero, write the corresponding hedging position into the parallel segment position. Otherwise, write the first adjacent position of the corresponding hedging position into the breakpoint position. S2-4. Extract the segment location and breakpoint location, merge the adjacent locations corresponding to the segment location into the same supply segment, determine the adjacent locations corresponding to the breakpoint location as breakpoints, and divide the supply sequence according to the breakpoints, and output the supply segment of the corresponding product batch.
5. The data processing method for a ceramic platform e-commerce mall according to claim 4, characterized in that: S3 includes: S3-1. Extract the number of the beginning and end of each continuation segment, subtract the number of the beginning from the number of the end to obtain the retention amount within each continuation segment, and output the retention sequence within each segment according to the order of each continuation segment in the continuation sequence. S3-2. Extract the number of segments at the end of the previous supply segment and the number of segments at the beginning of the next supply segment in pairs along the retained sequence within the segment. Subtract the number of segments at the beginning of the next supply segment from the number of segments at the end of the previous supply segment to obtain the segment difference. If the segment difference is greater than zero, deduct the segment difference from the retained amount within the previous supply segment. If the segment difference is less than or equal to zero, keep the retained amount within the previous supply segment unchanged and output the previous segment correction amount.
6. The data processing method for a ceramic platform e-commerce mall according to claim 5, characterized in that: S3 further includes: S3-3. Extract the number of segments at the end of the previous supply segment and the number of segments at the beginning of the next supply segment in pairs along the retained sequence within the segment. Subtract the number of segments at the end of the previous supply segment from the number of segments at the beginning of the next supply segment to obtain the acceptance difference. Keep the number of segments retained within the next supply segment unchanged when the acceptance difference is greater than zero. Output the number of segments retained within the next supply segment as the correction amount for the next segment when the acceptance difference is less than or equal to zero. S3-4. Extract the front-end correction amount and the back-end correction amount, and add the front-end correction amount that has not been deducted to the back-end correction amount to generate the continued supply retention amount for the corresponding product batch.
7. The data processing method for a ceramic platform e-commerce mall according to claim 6, characterized in that: S4 includes: S4-1. Obtain the target product batch and requested quantity corresponding to the current transaction request, extract the book inventory quantity, the quantity occupied by transactions and the reserve quantity of continued supply corresponding to the target product batch, and subtract the quantity occupied by transactions and the reserve quantity of continued supply from the book inventory quantity to generate the releaseable quantity. S4-2. Extract the request quantity and the release quantity. Subtract the release quantity from the request quantity to get the quantity difference. If the quantity difference is less than or equal to zero, determine the request quantity as the release quantity. If the quantity difference is greater than zero, determine the release quantity as the release quantity and the quantity difference as the restriction quantity. S4-3. Extract the release quantity and the restriction quantity. When the restriction quantity is equal to zero, output the transaction release result. When the restriction quantity is greater than zero, output the transaction restriction result.
8. The data processing method for a ceramic platform e-commerce mall according to claim 7, characterized in that: S5 includes: S5-1. Extract the target product batch, requested quantity, and transaction release result or transaction restriction result corresponding to the current transaction request. Under the transaction release result, add the already traded and occupied quantity of the target product batch to the requested quantity to generate the updated already traded and occupied quantity. Under the transaction restriction result, retain the current transaction request and generate a pending record. S5-2. Extract the updated completed and occupied quantity or pending record. Under the transaction release result, write the updated completed and occupied quantity into the target product batch. Under the transaction restriction result, write the pending record into the target product batch and generate the write-back result. S5-3. Extract the write-back result and send it to the corresponding business node. When the write-back result is the updated number of transactions already completed, output the transaction release record. When the write-back result is the pending record, output the transaction restriction record and generate the saleable processing result for the target product batch.
9. A data processing system for a ceramic platform e-commerce platform, characterized in that, include: The supply continuation module is used to obtain the supply continuation content written by each business node in the edge network for the same product batch, arrange them in ascending order by the writing time, and connect the adjacent supply continuation content whose end quantity of the previous supply continuation content is connected to the start quantity of the next supply continuation content in sequence, and output the supply continuation sequence of the corresponding product batch. The breakpoint segmentation module is used to extract the quantity before and after the connection of each adjacent position in the supply sequence, determine the position where the quantity before and after the connection are not equal as the breakpoint, segment the supply sequence according to the breakpoint, and output the supply segment of the corresponding product batch. The renewing supply retention module is used to extract the quantity at the beginning and end of each renewing supply segment, subtract the quantity at the beginning of the segment from the quantity at the end of the segment to obtain the retention quantity of each renewing supply segment, and sum the retention quantities of each renewing supply segment to generate the renewing supply retention quantity of the corresponding product batch. The available quantity verification module is used to obtain the target product batch and the requested quantity corresponding to the current transaction request. It deducts the quantity occupied by the transaction and the quantity reserved for continued supply from the book inventory quantity of the target product batch to obtain the release quantity. It compares the requested quantity with the release quantity. If the requested quantity is not greater than the release quantity, it outputs the transaction release result. If the requested quantity is greater than the release quantity, it outputs the transaction restriction result. The result write-back module is used to process the current transaction request according to the transaction release result or the transaction restriction result. Under the transaction release result, the request quantity is written into the already sold and occupied quantity of the target product batch and written back to the corresponding business node. Under the transaction restriction result, the current transaction request is retained and written back to the corresponding business node, and the saleable processing result of the target product batch is output.
10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the various steps of the ceramic platform mall data processing method as described in any one of claims 1-8.