Data separation in MVC project

Data separation in MVC project

Note: The following takes the PNR query function in the aircraft electronic ticket system as an example to separate the data of the unissued PNR.
1. Before the separation of passenger information, the passenger PNR query must be performed to query the number of passengers in the PNR. Because the passenger information has been queried before, a variable is declared to obtain the number of passengers.
Insert picture description here
Insert picture description here
PassengerNum is equal to the length of PassengerInfors to get the number of passengers.
Insert picture description here
Judge whether passengerNum is greater than one. If it is less than one, it means that there is only one passenger, and the data separation operation cannot be performed and jump to the PNR separation page.
Insert picture description here
Pass the jump page,
Insert picture description here
get the PNR number and status,
Insert picture description here
Insert picture description here
Insert picture description here
get the checked passenger information traversal cycle, and the
Insert picture description here
data verification
Insert picture description here
New object is used to store the returned data. After the
Insert picture description here
PNR is separated, it becomes a new PNR, so save and add.
Insert picture description here
Insert picture description here
Insert picture description here
When PNRStatus == 0 indicates the current has been taken PNR
cancellation, when PNRStatus == 2 indicates that the PNR when there are two or among more than one passenger PNR has been ticketed passenger, when the PNR represents the PNRStatus == 3 All tickets have been issued successfully and cannot be separated.
Insert picture description here

Guess you like

Origin blog.csdn.net/Pzz_Lite/article/details/108076587