摘要 |
<p>A method and an apparatus for generating phone bill are provided, which are applied in a charging system of communication field, the generating method includes a pre-processing process and a phone bill combination process; wherein, in the pre-processing process, the charging system adopts a plurality of threads to carry out the pre-processing to multiple service logs simultaneously, each service log generates one or a plurality of intermediate phone bills after pre-processing and the information in the service logs is needed to be converted into the required information in the phone bill in the pre-processing; the phone bill combination process adopts a single thread for processing to gradually generate the required phone bills and in the generating process of each phone bill, the charging system collects and combines the intermediate phone bills required by the phone bill generation and then completes the coding of serial numbers and the document serial numbers, thus generating a phone bill. The invention reduces the treatment complexity while ensuring the processing ability of the system.</p> |