The invention provides a customs clearance
declaration file automatic generation method and
system, and the method comprises the steps: analyzing a historical customs clearance
declaration file to construct a customs clearance
declaration rule base; the customs clearance declaration rule base comprises a file type determination rule for determining a customs clearance declaration file type corresponding to a customs clearance declaration program and a file
content generation rule for generating each type of customs clearance declaration file content; matching a file type determination rule corresponding to the basic declaration data in the customs clearance declaration rule base according to a customs clearance declaration file generation request, and determining a corresponding customs clearance declaration file type according to the file type determination rule, and generating a declaration file
list corresponding to the target customs clearance declaration program based on the customs clearance declaration file type, and matching a file
content generation rule corresponding to each file in the declaration file
list in the customs clearance declaration rule
library to generate a corresponding customs clearance declaration file, so that the customs clearance declaration file can be accurately and efficiently generated.