Preface:
Some time ago, we performed a [automatic switch] batch processing (bts01 ),
Follow the code in reference (btc02) to correct the common function of bts01 code.
That is to say, in bts01, common methods are used for processing.
Now, you need to write your own method according to the reference.
Use your own method. (Do not use common processing)
For such jobs, you must understand the relationship between the three.
Confirm the reserved [Storage] and those for use [Reference ].
[Storage] (in the following cases, the storage is generally used, but not completely)
Generally, the [overall logic] is reserved for storage, and some [Exception Handling Methods] are also reserved for storage.
(For example, processing when db 0 is updated, the method used when an exception is thrown, and the overall processing sequence.
When updating the database, whether there is any update processing in finally after an update fails)
[Reference] (in the following cases, the reference is generally used, but not completely)
The logic of [implementation of each method] is as follows:
(The updated field when dB is updated, and the condition before dB is updated)
[Style book]
The format sometimes mentions [handling method for exceptions]
(In this case, the correction part of the style book is generally copied directly from the style book of the reference code)
(However, the overall exception handling is sometimes different)
In a word, you must confirm who is used for this assignment and who you refer!