Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hairEmbodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative effortsExample, shall fall within the protection scope of the present invention.
Concerning taxes data processing method provided by the present application, can be applicable in application environment as shown in Figure 1, the application environmentIncluding server-side, client and report and submit platform, wherein between server-side and client and server-side and report and submit between platformIt is attached by network, which can be cable network or wireless network, and client is specifically including but not limited to respectivelyKind of personal computer, laptop, smart phone and tablet computer etc., server-side and report and submit platform that can use independent clothesThe server cluster of business device or multiple servers composition is realized.Client sends out the concerning taxes data file of non-resident finance accountIt is sent to server-side, server-side, which is automatically performed, checks and report and submit file to the normative of the concerning taxes data file of non-resident finance accountGeneration, and report and submit file to be sent to report and submit platform by what structure verification passed through, and by reporting and submitting platform is unified to complete that text will be reported and submittedWhat part reported and submitted State Administration of Taxation reports and submits processing.
In one embodiment, it as shown in Fig. 2, providing a kind of concerning taxes data processing method, applies in Fig. 1 in this wayIt is illustrated for server-side, specifically includes step S1 to step S6, details are as follows:
S1: the concerning taxes data file that client is sent is received.
Specifically, personnel are declared dutiable goods after the tax-related information for being collected into non-resident finance account, tax-related information is uploaded into visitorFamily end, client generates the corresponding concerning taxes data file of the tax-related information, and sends server-side for the concerning taxes data file.
Wherein, the file type of concerning taxes data file can specifically include but be not limited to the types such as xls, xlsx and csv, relate toThe file type of tax data file can be by the personnel of declaring dutiable goods according to application environment self-setting.
Further, the mode that client provides that a key imports completes the generation of concerning taxes data file, can specifically pass throughThe key that following three kinds of modes complete tax-related information imports, and generates concerning taxes data file:
(1) tax-related information for the non-resident finance account being collected into is uploaded to client by the personnel that declare dutiable goods in the form of a fileThis document is saved as concerning taxes data file by end, client.
(2) personnel that declare dutiable goods select the tax-related information of non-resident finance account from preset account information database, and willThe corresponding identification information of selected tax-related information submits to client, and client is directly from account information database according to the markKnow the corresponding tax-related information of acquisition of information, and saves as concerning taxes data file.
(3) personnel that declare dutiable goods are manually entered the tax-related information of non-resident finance account by the input interface that client provides,Client obtains the tax-related information for personnel's input of declaring dutiable goods, and generates corresponding concerning taxes data file.
S2: according to the file type of concerning taxes data file, concerning taxes data file is parsed, obtains concerning taxes data fileIn include concerning taxes data record, and by the status indication of every concerning taxes data record be do not report and submit.
Specifically, after server-side receives concerning taxes data file, the file type of concerning taxes data file is obtained, and according to thisThe corresponding file structure of file type, parses concerning taxes data file, obtains every for including in concerning taxes data file and relates toTax data record.
It should be noted that the analysis mode parsed to concerning taxes data file depends on the file of concerning taxes data fileThe corresponding file structure of type, Excel form document type this kind of to xls, xlsx and csv etc. can be according to Excel table textThe file structure of part type, first from being obtained in the worksheet of the concerning taxes data file read in the first row in each unitHold, as the Property Name of each field in concerning taxes data record, then according to the row serial number of the second row and the row of last lineSerial number carries out capable traversal to worksheet, when traversing every a line, according to the column of the column serial number for getting first row and last columnSerial number traverses the traveling ranks, obtains the content of each unit, using the content of unit each in the row as where the unitThe corresponding property content of Property Name of field obtain the corresponding concerning taxes of the row after completing to the column of row traversalData record obtains every concerning taxes data record for including in concerning taxes data file after row to be done traverses.
Server-side is to the every increased state of concerning taxes data record this field, and the field is for identifying concerning taxes data recordReport and submit state, report and submit state can specifically include do not report and submit, reported and submitted with it is to be modified etc..
After every concerning taxes data record that server-side includes in getting concerning taxes data file, every for will acquire is related toThe state of tax data record marks to report and submit.
S3: according to preset text specification, normative inspection is carried out to every concerning taxes data record, and to every concerning taxes numberIt is modified according to the data for not meeting preset text specification in record, by revised every concerning taxes data record and state pairIt should be saved in preset concerning taxes database.
Specifically, preset text specification is according to the State Tax Administration to the report of the tax-related information of non-resident finance accountSend the requirement of specification pre-set text specification comprising but it is not limited to amount of money format, message length, forbidden character, countryThe call format of code, currency code etc..
Server-side successively traverses every concerning taxes data record, according to preset text specification, checks every concerning taxesWhether the field value in data record meets the requirement of preset text specification, and will be unsatisfactory for wanting for preset text specificationThe field value asked is modified according to the requirement of text specification, so that every concerning taxes data record is able to satisfy preset textThe requirement of this specification.
Server-side is after the completion of traversing every concerning taxes data record, by every concerning taxes data record and its corresponding guarantor of stateIt is stored to preset concerning taxes database.
Wherein, preset concerning taxes database is used to save the concerning taxes data record of non-resident finance account and every relates toThe state of tax data record.
S4: the concerning taxes data record for reporting and submitting personnel to select, and the concerning taxes Import data records that will be selected are obtained from clientIn preset extensible markup language document template, generate that selected concerning taxes data record is corresponding to report and submit file.
Specifically, revised every concerning taxes data record and its state are saved in preset concerning taxes database by server-sideAfterwards, by client to every concerning taxes data record after personnel's feedback modifiers is reported and submitted, so as to which personnel is reported and submitted therefrom to select needsThe concerning taxes data record reported and submitted.
It reports and submits personnel that can select the concerning taxes data record for needing to report and submit by way of clicking, and clicks submitting buttonAfterwards, the concerning taxes data record for reporting and submitting personnel to select is sent to server-side by client, and server-side is according to preset extensible markupLanguage format, generation is corresponding to report and submit file.
Wherein, extensible markup language format be XML (Extensible Markup Language) format, it is preset canExtended markup language file template is preset XML file template, which is according to the State Tax Administration to non-residenceThe requirement for reporting and submitting specification of the tax-related information of people's finance account, it is predetermined to report and submit file frame.
Server-side, will be in selected each concerning taxes data record according to the definition in XML file template to field descriptionThe field value of each field imported into the corresponding position of each field description in XML file template, and according to XML file templateStructure definition, nested layer by layer to field description, be assembled into XML format reports and submits file.
For example, to account, this field description is defined as follows in XML file template:
<cncrs:AccountNumber>account</cncrs:AccountNumber>
If the field value of the account number field in concerning taxes data record is CN1234567, server-side imports the accountThe field description obtained after XML file template are as follows:
<cncrs:AccountNumber>CN1234567</cncrs:AccountNumber>。
Further, server-side reports and submits file to increase the identification information of file type generation, and this document type is used forIt is that the modification of the tax-related information newly reported and submitted still to the tax-related information reported and submitted specifically uses identifier that mark, which reports and submits file," R1 " identifies the tax-related information newly reported and submitted, and identifies the modification to the tax-related information reported and submitted with identifier " R2 ", it is possible to understand that,The file type for reporting and submitting file is " R1 ".
S5: it is obtained according to the structural requirement of preset extensible markup language document to reporting and submitting file to carry out structure verificationReport and submit the structure check results of file.
Specifically, reporting and submitting file is XML format, and the structural requirement of preset extensible markup language document is used for XMLThe file structure of format is verified, and the structural requirement is according to the State Tax Administration to the tax-related information of non-resident finance accountIt reports and submits the call format of file to formulate, specifically can be the format with xsd document definition XML file.
Server-side, to reporting and submitting file to carry out structure verification, checks that the XML format for reporting and submitting file is using preset xsd fileThe no State Tax Administration that meets is to the call format for reporting and submitting file of the tax-related information of non-resident finance account.
If reporting and submitting the XML format of file to meet the State Tax Administration reports and submits text to the tax-related information of non-resident finance accountThe call format of part then reports and submits the structure check results of file to pass through for verification;
If the XML format of file is reported and submitted to be unsatisfactory for the State Tax Administration's reporting and submitting to the tax-related information of non-resident finance accountThe call format of file then reports and submits the structure check results of file not pass through for verification.
S6:, will according to preset cipher mode to reporting and submitting file to encrypt if structure check results are that verification passes throughIt is encrypted report and submit file be sent to it is preset report and submit platform, and by the state for every concerning taxes data record for reporting and submitting file to includeIt is changed to report and submit.
Specifically, if the structure check results that step S5 is obtained pass through for verification, server-side is according to preset encryption sideFormula reports and submits file to be sent to preset to report and submit platform to reporting and submitting file to be encrypted, and by encrypted.
Wherein, to reporting and submitting file to carry out encrypting the transmission security that tax-related information can be improved, preset cipher mode canTo need to select symmetric encipherment algorithm or rivest, shamir, adelman according to application, such as DES (Data EncryptionStandard, data encryption standards), AES (Advanced Encryption Standard, superencipherment mark), RSA it is non-rightClaim Encryption Algorithm, Base64 Encryption Algorithm etc..
It in one embodiment, include: that will report to the process for reporting and submitting file to be encrypted according to preset cipher modeIt send file to be split according to preset byte length, the file sub-block with the byte length is obtained, according to preset encryptionEach file sub-block is encrypted in algorithm, the corresponding ciphertext blocks of each file sub-block is obtained, then according to preset groupConjunction sequence is combined obtained each ciphertext blocks, obtains encrypted reporting and submitting file.
It is possible to further generate the encryption key for encryption according to preset generating mode, and it is close using the encryptionKey is to reporting and submitting file to encrypt, so that each reporting and submitting the encryption key of file different, to reinforce Information Security, reduction is related toThe risk that tax information is illegally leaked.
Server-side reports and submits file to be sent to report and submit platform by encrypted, report and submit platform according to preset cipher mode phaseCorresponding manner of decryption reports and submits file after being decrypted to reporting and submitting file to be decrypted, and reports and submits platform can also basisThe corresponding decruption key of encryption key obtained in advance from server-side, or according to solution corresponding with encryption key generating modeThe decruption key that key generating mode generates is completed to report and submit file after being decrypted to the decryption processing of encryption file.
Further, platform is reported and submitted file consolidation will to be reported and submitted to be reported to the State Tax Administration after decryption, by reporting and submitting platformUser on reporting and submitting platform, using the State Tax Administration provide tax control key complete to report this to report and submit to the State Tax AdministrationFile reports and submits operation.
Server-side by it is encrypted report and submit file be sent to it is preset report and submit platform after, will be reported and submitted in concerning taxes databaseThe state for every concerning taxes data record that file includes, which is never reported and submitted, to be changed to report and submit.
Wherein, it reports and submits platform for reporting and submitting file to be managed collectively and reported and submitted to what each affiliated institutions uploaded, reports and submitsThe user of platform is reported to the State Tax Administration in the tax control key for reporting and submitting platform to be provided using the State Tax Administration and reports and submits file;Meanwhile platform is reported and submitted also to receive the State Tax Administration to the modification file for reporting and submitting file to issue after auditing, and will modification textPart returns to server-side and is further processed.
It should be noted that if structure check results are that verification does not pass through, then server-side terminates this and reports and submits, and will report and submitThe State Tax Administration is specifically unsatisfactory in file to the call format for reporting and submitting file of the tax-related information of non-resident finance accountMistake XML format feeds back to preset related maintenance personnel, so that related maintenance personnel is according to wrong XML format to reporting and submitting textPart template is revised, and is reinformed after revising and is reported and submitted personnel to re-start to report and submit.
In the present embodiment, server-side is after receiving the concerning taxes data file of non-resident finance account, according to concerning taxes dataThe file type of file parses concerning taxes data file, obtains the concerning taxes data record for including in concerning taxes data file, soAfterwards according to preset text specification, normative inspection, the concerning taxes data note of amendment every are carried out to every concerning taxes data recordData content that preset text specification is not met in record, realizes to concerning taxes data file to advise from dynamic circuit connector and checks and from dynamic circuit connectorRule amendment;After reporting and submitting personnel's selected concerning taxes data record for needing to report and submit, concerning taxes Import data records that server-side will be selectedIn preset extensible markup language document template, generation is corresponding to report and submit file, and according to preset extensible markup languageThe structural requirement of file, to reporting and submitting file to carry out structure verification, verification pass through after according to preset cipher mode to reporting and submitting fileEncrypted, and by it is encrypted report and submit file be sent to it is preset report and submit platform, realize report and submit file automatically generate andFile structure verification is believed so that reporting and submitting personnel only and need to being absorbed in the collection of the tax-related information to non-resident finance account in concerning taxesAfter breath is logged, the conjunction rule verification to tax-related information is automatically performed by server-side and reports and submits the generation of file, is not necessarily to manual intervention,It improves and treatment effeciency is reported and submitted to the tax-related information of non-resident finance account, also avoid what artificial mode of submitting was likely to occurMistake is reported and submitted, improves the accuracy for reporting and submitting processing, while by effectively improving tax-related information to reporting and submitting file to carry out encryptionTransmission security, in addition, server-side records concerning taxes data record and its state by concerning taxes database in real time, by server-side according toStates such as " not the reporting and submitting ", " having reported and submitted " or " to be modified " of concerning taxes data-base recording carry out unified centralized management to tax-related information,Reflect tax-related information in real time reports and submits situation, realizes the orderly management to tax-related information and maintenance, avoids labor management modeThe error in data that may cause effectively improves the data accuracy of tax-related information.
In one embodiment, as shown in figure 3, in step s3, according to preset text specification, remembering to every concerning taxes dataRecord carries out normative verification, and is modified to the data for not meeting preset text specification in every concerning taxes data record, hasBody includes step S31 to step S37, and details are as follows:
S31: obtain concerning taxes data record reports and submits number.
Specifically, the field value that number field is reported and submitted in concerning taxes data record is read.
If reporting and submitting the field value of number field for sky, that is, failure is obtained, S32 is thened follow the steps;If reporting and submitting number fieldField value is not sky, that is, obtains successfully, then follow the steps S33.
S32: being that number is reported and submitted in the creation of concerning taxes data record according to preset numbering if obtaining failure.
It specifically, is concerning taxes data note according to preset numbering if reporting and submitting the field value of number field for skyNumber is reported and submitted in record creation, and reports and submits number as the field value for reporting and submitting number field creation.
Wherein, preset numbering be used to create concerning taxes data record it is globally unique report and submit number, i.e., in concerning taxesEvery concerning taxes data record reports and submits number to be all different in database.Preset numbering specifically can be concerning taxes dataRecord reports mechanism coding and random serial number to be combined to constitute the mode of number of reporting and submitting, wherein random serial number specifically can be withSerial number is carried out according to the sequencing of the concerning taxes data record got.For example, if concerning taxes data record reports mechanismIt is encoded to " CN2017Z0KUBYNSF7KV4O ", then the number of reporting and submitting of concerning taxes data record can be" CN2017Z0KUBYNSF7KV4O000000101 ", wherein " 000000101 " is random serial number.
S33: if obtaining successfully, verification reports and submits whether number has existed in concerning taxes database, if number is reported and submitted to existIt is had existed in concerning taxes database, is then re-created according to preset numbering for concerning taxes data record and report and submit number.
Specifically, if reporting and submitting the field value of number field for sky, illustrate the personnel of declaring dutiable goods when uploading concerning taxes data fileIt has been that concerning taxes data record has carried out manual number, has reported and submitted whether number closes rule at this time, it may be necessary to verify, i.e., whether in concerning taxes numberAccording in library have global uniqueness.
Server-side reads the field value for reporting and submitting number field, and whether to inquire the field value in concerning taxes databaseIn the presence of, if having existed, report and submit number to be renumberd for the concerning taxes data record according to preset numbering, andThe field value for reporting and submitting number field numbered as the concerning taxes data record is reported and submitted after renumbeing.
S34: the field value of preset amount field in concerning taxes data record is obtained.
Specifically, server-side reads the field value of the amount field in concerning taxes data record according to preset amount field.
S35: it if the field value of amount field is unsatisfactory for preset amount of money call format, is wanted according to preset amount of money formatIt asks, the field value of amount field is modified.
Specifically, server-side carries out the field value of amount field to close rule verification, and it is default to judge whether the field value meetsAmount of money call format, if being unsatisfactory for preset amount of money call format, to the field value of amount field according to the preset amount of moneyCall format is modified.
Wherein, preset amount of money call format is according to the State Tax Administration to the report of the tax-related information of non-resident finance accountIt send the call format of file to be arranged, is specifically including but not limited to value data and is used uniformly 2 significant digits decimal, less than twoPosition mends 0, the format to round up more than two.
S36: according to the user name and data type of concerning taxes data record, there will be same subscriber name and there is identical numberIt is merged according to the different concerning taxes data records of type.
Specifically, user name and data type of the server-side to every concerning taxes data record for including in concerning taxes data fileIt is traversed, searches user name and data type different concerning taxes data records all the same, and the concerning taxes data inquired are rememberedRecord merges processing, and the concrete mode of merging treatment can be to modify to a wherein concerning taxes data record, and deletesOther concerning taxes data records inquired.
Wherein, user name is specifically as follows the name on account of non-resident finance account, and data type is specifically as follows accountTake in type.
For example, if two concerning taxes data records of user A are two dividend incomes of same account, by this of user ATwo concerning taxes data records merge, and the dividend income in new concerning taxes data record after merging is original two concerning taxes numbersAccording to the aggregate value of the dividend income in record.
S37: it using the corresponding regular expression of preset forbidden character, checks and deletes present in concerning taxes data recordForbidden character.
Specifically, using the regular expression of pre-set forbidden character, the illegal word in concerning taxes data record is identifiedSymbol, and delete processing is carried out to the forbidden character identified.
Wherein, preset forbidden character includes but is not limited to "<", ">" and " & " etc..
Regular expression is to be described in character string for handling the character string in data by using some specific charactersThe character string for meeting the rule is extracted or is replaced in the rule that character occurs, matching, identification, can be real using regular expressionIt now quickly searches and precisely searches.
It should be noted that step S31 to step S33, step S34 to step S35, step S36 and step S37 itBetween it is uninevitable it is successive execute sequence, can be the relationship executed side by side, herein with no restrictions.
In the present embodiment, number creation, the field value inspection of amount field, similar concerning taxes are reported and submitted from concerning taxes data recordThe different dimensions such as the merging of data record and the deletion of forbidden character complete the verification to concerning taxes data record, realize pairAdvising from dynamic circuit connector for concerning taxes data file checks and advises amendment from dynamic circuit connector, and the verification for avoiding the cumbersome of desk checking and being likely to occur missesDifference reports and submits treatment effeciency and accuracy to the tax-related information of non-resident finance account to help to improve.
It in one embodiment, can also be according to the modification file for reporting and submitting platform to return as shown in figure 4, after step S6Automatically generating and reporting and submitting processing again for data modification report is carried out, specifically includes step S71 to step S76, details are as follows:
S71: if receiving the modification file for reporting and submitting platform to return, modification file is carried out according to preset file formatParsing obtains wrong data type and wrong data information that modification file includes.
Specifically, it reports and submits platform to receive and reports and submits file, by reporting and submitting the user of platform file will be reported and submitted to be reported to state taxBe engaged in after general bureau, the State Tax Administration to reporting and submitting file to audit, when audit discovery exist the case where being unsatisfactory for code requirement orPerson when due to data collection etc. needing that the information of certain customers is modified or augmented before exchanging data with foreign side,Platform is reported and submitted by needing the content modified to be handed down in the form of modifying file, it, will after reporting and submitting platform to receive the modification fileModification file returns to server-side.
Server-side parses the modification file received according to preset file format, includes in acquisition modification fileWrong data type and wrong data information.
Wherein, preset file format is file structure used in modification file, usually the default file of XML formatStructure.The server-side corresponding default label of Search Error data type and wrong data information from the modification file of XML formatCorresponding default label, and corresponding label value, i.e. wrong data type and error number are obtained according to the default label searchedIt is believed that breath.
Wherein, wrong data type is used to identify the type of error of wrong data, including but not limited to text formatting mistake,Data error of omission etc..Wrong data information is used to identify the relevant information of the concerning taxes data record in the presence of mistake, including but notBe limited to concerning taxes data record reports and submits number, the error field in concerning taxes data record and its field value.
S72: the corresponding concerning taxes data record of wrong data information, the concerning taxes number that will acquire are obtained from concerning taxes databaseIt is used as record to be modified according to record, and is to be modified by the Status Change of record to be modified.
Specifically, the wrong data information that server-side is parsed according to step S71, obtains the mistake from concerning taxes databaseThe corresponding concerning taxes data record of data information, for example, server-side is if wrong data information includes to report and submit number to report and submit numberIt is retrieved in concerning taxes database for index, inquires this and report and submit the corresponding concerning taxes data record of number, and should by what is retrievedConcerning taxes data record is as record to be modified.
Meanwhile server-side by the state of the record to be modified of this in concerning taxes database from reported and submitted be changed to it is to be modified.
It should be noted that server-side after determining record to be modified, can be taken different according to wrong data typeProcessing mode, to the wrong data type of text formatting mistake, server-side is modified automatically, i.e. execution step S73, to non-textThe wrong data type of this format error, server-side notice report and submit personnel to carry out manual modification, i.e. execution step S74.
S73: if wrong data type is text formatting mistake, according in wrong data acquisition of information record to be modifiedWrong data, and according to preset text specification, wrong data is modified, and revised record to be modified is used as and is repairedOrder record.
Specifically, whether the wrong data type that server-side judgment step S71 is parsed is text formatting mistake, if textThis format error, then server-side can be automatically repaired text format error according to preset text specification, that is, serviceEnd can obtain error on the face of the record field to be modified according to the error field and its field value for including in wrong data informationField value, and the field value of the error field is modified according to preset text specification, will be modified to be repairedChange record as Document History.
S74: if wrong data type is non-textual format mistake, record to be modified and wrong data information are fed back toIt reports and submits personnel, and obtains from client and personnel to be reported and submitted to treat repairing of obtaining after modification record is modified according to wrong data informationOrder record.
Specifically, if the wrong data type that server-side judgment step S71 is parsed is not belonging to the class of text formatting mistakeType, for example, wrong data type is data error of omission, then server-side by the step S71 wrong data information parsed andThe record to be modified that step S72 is obtained is sent to client, reports and submits personnel to carry out manual modification by client.
It reports and submits personnel after client receives wrong data information and record to be modified, is treated according to wrong data informationModification record is modified or is augmented, and the record to be modified after modification or supplement is mentioned as Document History, and by Document HistoryGive server-side.
S75: according to preset numbering, update revised record to be modified reports and submits number, obtains wait report and submit noteRecord.
Specifically, server-side is after obtaining Document History according to step S73 or step S74, according to preset number sideFormula re-creates the Document History and reports and submits number, reports and submits number replacement using newly created the Document History is original reports and submits volumeNumber, and will have updated and report and submit the Document History of number as wait report and submit record.
S76: generate comprising record to be reported and submitted data modification report, by data modification report be sent to it is preset report and submit it is flatPlatform, and be to have reported and submitted by the Status Change of record to be reported and submitted.
Specifically, the mode that server-side generates data modification report reports and submits the mode of file identical with generation in step S4,Data modification report will be obtained wait report and submit record to import in preset XML file template, it is no longer superfluous herein to avoid repeatingIt states.
It should be noted that server-side increases the data modification report of generation the identification information of file type, with markSymbol " R1 " identifies the tax-related information newly reported and submitted, for identifier " R2 " mark is to the modification for the tax-related information reported and submitted, Ke YiliSolution, the file type of data modification report is " R2 ".
Server-side sends data modification report to and reports and submits platform, meanwhile, data are repaired into original text report in concerning taxes databaseIn the concerning taxes data record that is related to, that is, the state of record to be reported and submitted is changed to report and submit to be modified.
In the present embodiment, server-side is after receiving the modification file for reporting and submitting platform to return, due to reporting and submitting platform to returnModification file is usually the file of XML file format, is not easy to that personnel is reported and submitted to directly read, therefore, server-side is according to presetFile format is parsed automatically, identifies wrong data type and wrong data information, and accurate according to wrong data informationRecord to be modified is oriented, the cumbersome and error manually read is avoided, improves execution efficiency, also, server-side being capable of basisWrong data type carries out different error correction processing, directly treats modification record according to text specification to text formatting mistakeAutomatically it is revised, record to be modified and wrong data information is sent to by non-textual format mistake, personnel is reported and submitted to carry out manuallyRevision, and the Document History obtained after handling two kinds of error corrections re-creates new after reporting and submitting number, generates data modificationReport is reported and submitted again, is realized orderly to wrong data and automatic modification processing, is avoided confusion caused by artificial treatment, furtherExecution efficiency is improved, and ensures the accuracy of concerning taxes data record, meanwhile, pass through the real-time change of the state to concerning taxes data recordMore, the orderly management to concerning taxes data record is realized.
It in one embodiment, can also be at predetermined time intervals to the concerning taxes that do not report and submit as shown in figure 5, after step S6Data record carries out reporting and submitting confirmation, specifically includes step S81 to step S82, details are as follows:
S81: being spaced at every predetermined time, and it is the concerning taxes data record that do not report and submit that state is obtained from concerning taxes database,And the concerning taxes data record that will acquire is as record to be confirmed.
Specifically, report and submit personnel can one or many importing concerning taxes data files, reported to concerning taxes data recordWhen sending, can also selectively it be reported and submitted several times, server-side identifies every concerning taxes by the state of concerning taxes data recordData record it is current report and submit state.
Server-side is spaced at every predetermined time, traverses the state of every concerning taxes data record in concerning taxes database, willState is the concerning taxes data record do not reported and submitted as record to be confirmed.
It should be noted that preset time interval can be configured according to the needs of practical application, do not limit hereinSystem.
S82: record to be confirmed is fed back into the personnel that report and submit, and the confirmation result pair for reporting and submitting personnel returned according to clientRecord to be confirmed carries out reporting and submitting processing.
Specifically, the record to be confirmed that step S81 is got is reported and submitted personnel by client feedback by server-side, by reportingThe person of making a gift to someone decides record or part to be confirmed record to be confirmed to the whole that do not report and submit whether is needed to report and submit in its sole discretion.
Server-side can be reported and submitted according to the confirmation for reporting and submitting personnel to feed back as a result, carry out reporting and submitting processing to record to be confirmedProcessing can use treatment process same with the above-mentioned embodiment, for example, processing is reported and submitted to can be used and step S3 to step S6Identical treatment process, to avoid repeating, details are not described herein again.
In the present embodiment, on the basis of the current processing status of use state mark concerning taxes data record, by regularThe concerning taxes data record that do not report and submit is carried out reporting and submitting confirmation, avoids reporting and submitting omission, realizes comprehensive prison to concerning taxes data recordPipe, effectively improves the automation ability to supervise to concerning taxes data record.
In one embodiment, in step s 6, it according to preset cipher mode, is specifically included to reporting and submitting file to carry out encryptionStep S61, details are as follows:
S61: according to reporting and submitting the date or reporting and submitting the mechanism coding of mechanism, it is close that encryption is generated according to preset generating modeKey, and using the encryption key to reporting and submitting file to encrypt.
Specifically, using the mechanism coding for reporting and submitting mechanism or report and submit the date according to preset generating mode generate for plusClose encryption key, to reinforce Information Security, reduces tax-related information quilt so that each reporting and submitting the encryption key of file differentThe risk illegally leaked.
Wherein, preset generating mode can be using to reporting and submitting the mechanism coding of mechanism, report and submit date and random numberIt carries out in such a way that preset format is combined.For example, it is assumed that mechanism coding is RAKJAXYZ, reporting and submitting the date is 2 months 2019 1Day, the random number of generation is 5600349804, and preset format is " mechanism coding & reports and submits date & random number ", then combination obtainsEncryption key is " RAKJAXYZ&20190201&5600349804 ".
Server-side can be obtained after generating encryption key directly using the encryption key to reporting and submitting file to encryptEncrypted to report and submit file, further, server-side can also will report and submit file according to preset word after generating encryption keySection length is split, and obtains K file sub-block, wherein K is positive integer, for example, the preset byte length can be 128Then byte is encrypted each file sub-block using the encryption key of generation, it is corresponding to obtain each file sub-blockThen K ciphertext blocks are combined by ciphertext blocks according to preset built-up sequence, obtain combination ciphertext, it is close to reuse the encryptionKey encrypts the combination ciphertext, obtains encrypted reporting and submitting file.
In the present embodiment, encryption key is generated by using ad hoc fashion, file is each reported and submitted to be all made of different addKey is encrypted, so that the encrypted safety for reporting and submitting file is higher, effectively improves the concerning taxes of non-resident finance accountThe Information Security of information.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each processExecution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limitIt is fixed.
In one embodiment, a kind of concerning taxes data processing equipment is provided, the concerning taxes data processing equipment and above-described embodimentMiddle concerning taxes data processing method corresponds.As shown in fig. 6, the concerning taxes data processing equipment includes: receiving module 10, parsing mouldBlock 20, correction module 30, import modul 40, correction verification module 50 and report and submit module 60.Detailed description are as follows for each functional module:
Receiving module 10, for receiving the concerning taxes data file of client transmission;
Parsing module 20 parses concerning taxes data file, obtains for the file type according to concerning taxes data fileThe concerning taxes data record for including in concerning taxes data file, and be not report and submit by the status indication of every concerning taxes data record;
Correction module 30, for carrying out normative inspection to every concerning taxes data record according to preset text specification, andThe data that preset text specification is not met in every concerning taxes data record are modified, by revised every concerning taxes dataRecord be saved in preset concerning taxes database corresponding with state;
Import modul 40, for obtaining the concerning taxes data record for reporting and submitting personnel to select, and the concerning taxes that will be selected from clientIn the preset extensible markup language document template of Import data records, generate that selected concerning taxes data record is corresponding to report and submit textPart;
Correction verification module 50, for the structural requirement according to preset extensible markup language document, to reporting and submitting file to carry outStructure verification, obtains the structure check results for reporting and submitting file;
Module 60 is reported and submitted, if being that verification passes through for structure check results, according to preset cipher mode to the reportIt send file to be encrypted, reports and submits file to be sent to preset every for reporting and submitting platform, and reporting and submitting that file includes for encryptedThe Status Change of concerning taxes data record is to have reported and submitted.
Further, correction module 30 includes:
Number acquisition submodule 301 reports and submits number for obtain concerning taxes data record;
Number creation submodule 302, if being concerning taxes data record wound according to preset numbering for obtaining failureIt builds and reports and submits number;
Number verification submodule 303, if verification reports and submits whether to number in concerning taxes database for obtaining successfullyIn the presence of, if report and submit number had existed in concerning taxes database, according to preset numbering be concerning taxes data record againNumber is reported and submitted in creation;
Amount of money acquisition submodule 304, for obtaining the field value of preset amount field in concerning taxes data record;
The amount of money corrects submodule 305, if preset amount of money call format is unsatisfactory for for field value, according to preset goldVolume call format, is modified field value;
Same subscriber name will be had for the user name and data type according to concerning taxes data record by merging submodule 306And the different concerning taxes data records with same data type merge;
Forbidden character deletes submodule 307, for checking and deleting using the corresponding regular expression of preset forbidden characterExcept forbidden character present in concerning taxes data record.
Further, concerning taxes data processing equipment further include:
Wrong data obtains module 71, if for receiving the modification file for reporting and submitting platform to return, according to preset textPart format parses modification file, obtains wrong data type and wrong data information that modification file includes;
Record obtains module 72, for obtaining the corresponding concerning taxes data record of wrong data information from concerning taxes database,The concerning taxes data record that will acquire is to be modified as record to be modified, and by the Status Change of record to be modified;
Automatic correction module 73 obtains if being text formatting mistake for wrong data type according to wrong data informationError on the face of the record data to be modified are taken, and according to preset text specification, wrong data are modified, and will be revisedRecord to be modified is used as Document History;
Manual correction module 74, if being non-textual format mistake for wrong data type, by record to be modified and mistakeAccidentally data information feeds back to the personnel that report and submit, and from client acquisition report and submit personnel according to wrong data information treat modification record intoThe Document History obtained after row amendment;
Number update module 75, for according to preset numbering, update Document History to report and submit number, obtains wait reportSend record;
Report generation module 76 is reported for generating the data modification comprising record to be reported and submitted, data modification is reported and is sent outBe sent to it is preset report and submit platform, and be to have reported and submitted by the Status Change of record to be reported and submitted.
Further, concerning taxes data processing equipment further include:
Module 81 is inspected periodically, for being spaced at every predetermined time, the state that obtains from concerning taxes database is to be modifiedThe concerning taxes data record that do not report and submit, and the concerning taxes data record that will acquire is as record to be confirmed;
Prosthetic processing module 82, for record to be confirmed to be fed back to the personnel that report and submit, and reported and submitted according to what client returnedThe confirmation result of personnel carries out record to be confirmed to report and submit processing.
Further, the module 60 is reported and submitted to include:
Submodule 601 is encrypted, report and submit the date for basis or reports and submits the mechanism coding of mechanism, according to preset generation sideFormula generates encryption key, and using the encryption key to reporting and submitting file to encrypt.
Specific about concerning taxes data processing equipment limits the limit that may refer to above for concerning taxes data processing methodFixed, details are not described herein.Modules in above-mentioned concerning taxes data processing equipment can fully or partially through software, hardware and itsCombination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be withIt is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution correspondingOperation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal structureFigure can be as shown in Figure 7.The computer equipment includes processor, the memory, network interface sum number connected by system busAccording to library.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includesNon-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and dataLibrary.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculatingThe network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor withRealize a kind of concerning taxes data processing method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory simultaneouslyThe computer program that can be run on a processor, processor are realized in above-described embodiment at concerning taxes data when executing computer programThe step of reason method, such as step S1 shown in Fig. 2 to step S6.Alternatively, being realized when processor execution computer program above-mentionedThe function of each module/unit of concerning taxes data processing equipment in embodiment, such as module 10 shown in Fig. 6 is to the function of module 60.To avoid repeating, details are not described herein again.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer are stored thereon withConcerning taxes data processing method in above method embodiment is realized when program is executed by processor, alternatively, the computer program is locatedManage the function that each module/unit in concerning taxes data processing equipment in above-mentioned apparatus embodiment is realized when device executes.To avoid repeating,Details are not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computerIn read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,To any reference of memory, storage, database or other media used in each embodiment provided herein,Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may includeRandom access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancingType SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each functionCan unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by differentFunctional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completingThe all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned realityApplying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned eachTechnical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modifiedOr replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should allIt is included within protection scope of the present invention.