A kind of method and system for realizing comprehensive improvement patrol based on two dimensional codeTechnical field
The present invention relates to comprehensive approach to the management of social problems fields, and in particular to it is a kind of based on two dimensional code realize comprehensive improvement patrol method andSystem.
Background technique
When comprehensive improvement patrol at present generally only focus on downtown key sections, as the biggish market of flow of personnel, organ and itsHis complicated place etc., and the general region such as ignore the suburbs, lead to the appearance of patrol no-man's-land, to cause partial regionIncidence of criminal offenses is more, mismanagement.Meanwhile objective, true patrol record-keeping system is not implemented really, thus one about social faceA little basic conditions just lack objective effective statistics, and authorities also just can not really grasp this part public security information, noCan according to society actual needs scientific arrangement patrol troop carry out patrol, can not understand in time patrol work in occur askTopic.
Summary of the invention
Technical problem to be solved by the invention is to provide it is a kind of based on two dimensional code realize comprehensive improvement patrol method and system,By putting up two dimensional code in each patrol point in area under one's jurisdiction, and obtain GPS information automatically when grid person scans the two-dimensional code, it is rightGrid person goes on patrol operating path and is accurately recorded, and carries out examination to patrol action for the later period and provides strong data branchEffective management to patrol track and point is realized in support.
The technical scheme to solve the above technical problems is that
In a first aspect, this application provides a kind of method for realizing comprehensive improvement patrol based on two dimensional code, the method is applied toThe host computer connecting with terminal wireless is equipped with comprehensive improvement management system software in the host computer comprising following steps:
According to the requirement of comprehensive improvement patrol, patrol task and patrol rule are set, and by the patrol route of patrol task settingIt marks on map;
The patrol task and patrol rule are wirelessly transmitted to the terminal of grid person;
According to the patrol route of patrol task setting, the patrol point information of the patrol route is extracted;It is patrolled according to describedAnti- point information generates two dimensional code, while the patrol point information being stored in database server;
The patrol point number information that terminal uploads is received, and the patrol point number information is stored in database clothesIt is engaged in device;
According to the patrol point number information of upload, corresponding patrol point information is transferred from database server, andBy the warp of the patrol point, latitude information and patrol effective distance feedback to terminal;
The success that terminal uploads is received to check card record, and by the record mark to map of successfully checking card be stored in numberAccording in the server of library;It successfully checks card record, is counted by region and time dimension based on the received, it is real for obtaining statistical resultBorder patrol point bit quantity and patrol point bit quantity absent from duty;
Statistical result is studied, is analyzed, analysis result is obtained;
Adjustment is optimized to existing patrol point based on the analysis results, to strengthen patrol work.
Second aspect, provides a kind of method for realizing comprehensive improvement patrol based on two dimensional code, and the method is applied to be connected toThe terminal of position machine comprising following steps:
Grid person checks card according to the two dimensional code at the fixed point of patrol that the scanning of patrol rule is posted in patrol route;
The success if barcode scanning is checked card, will acquire the patrol point number information stored in two dimensional code, and by the patrolPoint number information uploads to host computer;
Receive warp, the latitude information of the patrol point of host computer feedback;
Obtain warp, the latitude information of current patrol point;
Two o'clock is calculated according to the warp of the patrol point of feedback, latitude information and the warp of current patrol point, latitude informationBetween distance of actually checking card;
If distance of actually checking card is less than preset patrol effective distance, success of checking card is prompted, this patrol point is completedPatrol task, and record of successfully checking card is uploaded into host computer.
The third aspect provides a kind of host computer, and the host computer is wirelessly connected terminal, and is equipped in the host computer comprehensiveControl management system software comprising:
Setting module sets patrol task and patrol rule according to the requirement of comprehensive improvement patrol, and by patrol task settingOn patrol route mark to map;
Sending module, for the patrol task and patrol rule to be wirelessly transmitted to the terminal of grid person;
Two-dimensional code generation module extracts the patrol of the patrol route for the patrol route according to patrol task settingPoint information;Two dimensional code is generated according to the patrol point information, while the patrol point information is stored in database clothesIt is engaged in device;
Receiving module, for receiving the patrol point number information of terminal upload, and by the patrol point number informationIt is stored in database server;
Feedback module is transferred from database server and is patrolled accordingly for the patrol point number information according to uploadAnti- point information, and warp, latitude information and the patrol effective distance of the patrol point are fed back to terminal;
Statistical module, the success for receiving terminal upload are checked card record, and by the record mark of successfully checking card to groundOn figure and it is stored in database server;It successfully checks card based on the received record, is counted, obtained by region and time dimensionIt is practical patrol point bit quantity and patrol point bit quantity absent from duty to statistical result;
Analysis module obtains analysis result for being studied statistical result, being analyzed;
Patrol optimization module, for optimizing adjustment to existing patrol point based on the analysis results, to strengthen patrolWork.
Fourth aspect, provides a kind of terminal, and the terminal wireless connects host computer comprising:
Barcode scanning is checked card module, at the fixed point of patrol for being posted in patrol route according to the scanning of patrol rule for grid personTwo dimensional code check card;
Uploading module will acquire the patrol point number information stored in two dimensional code if checking card success for barcode scanning,And the patrol point number information is uploaded into host computer;
Receiving module, the warp of the patrol point for receiving host computer feedback, latitude information;
Module is obtained, for obtaining warp, the latitude information of current patrol point;
Computing module, for being believed according to the warp of patrol point, the warp of latitude information and current patrol point, latitude of feedbackBreath calculates the distance of actually checking card of point-to-point transmission;
Judgment module prompts success of checking card if being less than preset patrol effective distance for distance of actually checking card, and completesThe patrol task of this patrol point, and record of successfully checking card is uploaded into host computer.
5th aspect provides a kind of system for realizing comprehensive improvement patrol based on two dimensional code, including upper described in the third aspectTerminal described in machine and fourth aspect, the host computer are connected with the terminal wireless.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
The embodiment of the invention provides a kind of method and system that comprehensive improvement patrol is realized based on two dimensional code, and the present invention is according to patrollingThe patrol route of anti-task setting extracts the patrol point information of patrol route;Two dimensional code, benefit are generated according to patrol point informationBarcode scanning is carried out with terminal and obtains patrol point number information, and is uploaded to host computer, and host computer is transferred from database serverCorresponding patrol point information, and warp, latitude information and the patrol effective distance of patrol point are fed back to terminal;Terminal will be anti-The warp of feedback, the warp of latitude information and itself acquisition, latitude information carry out the distance of actually checking card that point-to-point transmission is calculated;If practicalDistance of checking card is less than preset patrol effective distance, then prompt is checked card success, completes the patrol task of this patrol point, and will be atFunction record of checking card uploads to host computer;Host computer receives the success that terminal uploads and checks card record, and the record that will successfully check card marksOn to map and it is stored in database server;It successfully checks card record, unites by region and time dimension based on the receivedMeter, obtaining statistical result is practical patrol point bit quantity and patrol point bit quantity absent from duty;Statistical result is studied, is analyzed,Obtain analysis result;Adjustment is optimized to existing patrol point based on the analysis results, to strengthen patrol work.Therefore, originallyInvention obtains GPS letter by putting up two dimensional code in each patrol point in area under one's jurisdiction automatically when grid person scans the two-dimensional codeBreath goes on patrol operating path to grid person and is accurately recorded, and carries out examination to patrol action for the later period and provides strong numberAccording to support, effective management to patrol track and point is realized.
Information is got ready using patrol trace information and patrol positioning, and patrol track and the positioning of grid person are shown on mapGet information ready, realize the visualized management to patrol work overall process, and number is got ready to patrol point, patrol number is unitedMeter analysis, intuitively shows statistical result using chart modes such as histogram, pie chart, line charts, the patrol submitted in conjunction with grid personLog information realizes the comprehensive examination supervision to work patrol.Patrol route is marked onto map by information-based means, it canThe intuitive region overlay situation that patrol route is presented;By the detailed record to patrol task, and the visual presentation provided, it canIt checks at any time, count patrol record, departments at different levels is facilitated to grasp the concrete condition of patrol work at any time;Pass through record of checking card, areaDomain statistics, realizes the intuitive presentation to the patrol task execution situation of grid person, facilitates the inspection of higher level department and inspection patrol workMake;By marking event position information on the map of patrol track, it can reflect local real-time public security situation, patrol workAuthorities periodically can targetedly optimize and revise existing patrol point according to the public security situation in area under one's jurisdiction, and patrol work is strengthenedThe effect of work.
Detailed description of the invention
Fig. 1 is the method flow diagram of the embodiment of the present invention one;
Fig. 2 is the showing interface figure of the embodiment of the present invention one;
Fig. 3 is the schematic diagram of the embodiment of the present invention two;
Fig. 4 is the method flow diagram of the embodiment of the present invention three;
Fig. 5 is the schematic diagram of the embodiment of the present invention four;
Fig. 6 is the schematic diagram of the embodiment of the present invention five;
Fig. 7 is the work flow diagram of the embodiment of the present invention five.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, andIt is non-to be used to limit the scope of the invention.
Embodiment one
For above-mentioned deficiency in the prior art, the present invention provides one kind to work for comprehensive improvement patrol, realizes objective, trueScientific management patrol troop is realized in real record patrol work, and the method for reasonable arrangement patrol work, use cost is low, sideJust quick, information transmission is fast, and popularization is strong.
As shown in Figure 1 and Figure 2, the present embodiment provides a kind of method for realizing comprehensive improvement patrol based on two dimensional code, the method is answeredHost computer for connecting with terminal wireless is equipped with comprehensive improvement management system software in the host computer comprising following steps:
According to the requirement of comprehensive improvement patrol, patrol task and patrol rule are set, and by the patrol route of patrol task settingIt marks on map;The patrol rule are as follows: on the security risk that will be seen that during comprehensive improvement patrol by terminal APP is real-timeSmall towns (street) comprehensive improvement center or (city) county, area comprehensive improvement centers at different levels are passed to, comprehensive improvement centers at different levels are confirmed whether in management systemIt signs for and quickly assigns the security risk to each department, each department formulates disposal method or prevention according to the information that grid person reports and submitsMeasure strangles security risk in the budding stage.
The patrol task and patrol rule are wirelessly transmitted to the terminal of grid person;
According to the patrol route of patrol task setting, the patrol point information of the patrol route is extracted;It is patrolled according to describedAnti- point information generates two dimensional code, while the patrol point information being stored in database server;The patrol pointInformation includes: affiliated street, affiliated community, affiliated grid, should patrol number, longitude, latitude, patrol effective distance, address dailyDescription.
Wherein, the process of two dimensional code is generated are as follows: in the input page input specified data of management system, click additionAfter, latitude selects correct patrol point, clicks and save the page and produce corresponding two dimensional code and two dimensional code number, and willThe patrol point information preservation is in database server.Management system also provide the modification to patrol route point information,It checks, download, printing, it can the point information for modifying two dimensional code can regenerate new two dimensional code after modification;It is logicalThe data crossed in selective listing delete corresponding two-dimensional barcode information;It can check specific certain two dimensional code point relevant information;It canTo download single or multiple two dimensional codes, it can choose the single or multiple two-dimension code images of selection and printed.
The patrol point number information that terminal uploads is received, and the patrol point number information is stored in database clothesIt is engaged in device;
According to the patrol point number information of upload, corresponding patrol point information is transferred from database server, andBy the warp of the patrol point, latitude information and patrol effective distance feedback to terminal;
The success that terminal uploads is received to check card record, and by the record mark to map of successfully checking card be stored in numberAccording in the server of library;It successfully checks card record, is counted by region and time dimension based on the received, it is real for obtaining statistical resultBorder patrol point bit quantity and patrol point bit quantity absent from duty;
Statistical result is studied, is analyzed, analysis result is obtained;
Adjustment is optimized to existing patrol point based on the analysis results, to strengthen patrol work.
The patrol that terminal uploads is recorded and is shown with list, and is recorded with date and grid person's title to inquire patrol, instituteIt states patrol record list and shows content are as follows: grid person's title should patrol point, patrol point in fact;The patrol that terminal is uploaded simultaneously is rememberedPatrol barcode scanning in record checks card record and absence record is shown on map in different colors.
The method of the present embodiment show and count according to patrol rule the daily patrol of grid person answer patrol point digit and number,A digit and number are patrolled in fact, provides data supporting for higher level's department appraisal grid person's patrol work.The patrol note that terminal is uploadedRecord is shown with list, and supports to record with date and grid person's title to inquire patrol, and the patrol record list shows contentAre as follows: grid person's title should patrol point, patrol point in fact;The patrol barcode scanning in patrol record that terminal uploads is checked card record simultaneouslyIt is shown in GIS map in different colors with absence record.According to record of checking card, the absence record etc. shown in GIS map, knotThe region heating power distribution that conjunction event occurs, can intuitively analyze the shortcoming of patrol route, patrol route formulates unit can rootAccording to analysis as a result, periodically targetedly being optimized and revised to existing patrol point, to strengthen patrol work.
Based on the same inventive concept, this application provides the corresponding host computer of embodiment one, detailed in Example two.
Embodiment two
Corresponding to embodiment one, as shown in figure 3, present embodiments providing a kind of host computer, the host computer is wirelessly connectedTerminal, and comprehensive improvement management system software is installed in the host computer comprising:
Setting module sets patrol task and patrol rule for the requirement according to comprehensive improvement patrol, and patrol task is setOn fixed patrol route mark to map;
Sending module, for the patrol task and patrol rule to be wirelessly transmitted to the terminal of grid person;
Two-dimensional code generation module extracts the patrol of the patrol route for the patrol route according to patrol task settingPoint information;Two dimensional code is generated according to the patrol point information, while the patrol point information is stored in database clothesIt is engaged in device;
Receiving module, for receiving the patrol point number information of terminal upload, and by the patrol point number informationIt is stored in database server;
Feedback module is transferred from database server and is patrolled accordingly for the patrol point number information according to uploadAnti- point information, and warp, latitude information and the patrol effective distance of the patrol point are fed back to terminal;
Statistical module, the success for receiving terminal upload are checked card record, and by the record mark of successfully checking card to groundOn figure and it is stored in database server;It successfully checks card based on the received record, is counted, obtained by region and time dimensionIt is practical patrol point bit quantity and patrol point bit quantity absent from duty to statistical result;
Analysis module obtains analysis result for being studied statistical result, being analyzed;
Patrol optimization module, for optimizing adjustment to existing patrol point based on the analysis results, to strengthen patrolWork.
Embodiment three
As shown in figure 4, present embodiments providing a kind of method for realizing comprehensive improvement patrol based on two dimensional code, the method applicationIn the terminal for being connected to host computer comprising following steps:
Grid person checks card according to the two dimensional code at the fixed point of patrol that the scanning of patrol rule is posted in patrol route;
The success if barcode scanning is checked card, will acquire the patrol point number information stored in two dimensional code, and by the patrolPoint number information uploads to host computer;
Receive warp, the latitude information of the patrol point of host computer feedback;
Obtain warp, the latitude information of current patrol point;
Two o'clock is calculated according to the warp of the patrol point of feedback, latitude information and the warp of current patrol point, latitude informationBetween distance of actually checking card;
If distance of actually checking card is less than preset patrol effective distance, success of checking card is prompted, this patrol point is completedPatrol task, and record of successfully checking card is uploaded into host computer.
Based on the same inventive concept, this application provides the corresponding terminal of embodiment three, detailed in Example four.
Example IV
As shown in figure 5, this implementation provides a kind of terminal, the terminal wireless connects host computer comprising:
Barcode scanning is checked card module, at the fixed point of patrol for being posted in patrol route according to the scanning of patrol rule for grid personTwo dimensional code check card;
Uploading module will acquire the patrol point number information stored in two dimensional code if checking card success for barcode scanning,And the patrol point number information is uploaded into host computer;
Receiving module, the warp of the patrol point for receiving host computer feedback, latitude information;
Module is obtained, for obtaining warp, the latitude information of current patrol point;
Computing module, for being believed according to the warp of patrol point, the warp of latitude information and current patrol point, latitude of feedbackBreath calculates the distance of actually checking card of point-to-point transmission;
Judgment module prompts success of checking card if being less than preset patrol effective distance for distance of actually checking card, and completesThe patrol task of this patrol point, and record of successfully checking card is uploaded into host computer.
Embodiment five
As shown in fig. 6, the present invention provides a kind of system for realizing comprehensive improvement patrol based on two dimensional code, including two institute of embodimentTerminal described in the host computer and example IV stated, the host computer are connected with the terminal wireless.
Host computer is that can be PC (personal computer, PC), tablet computer, smart phone, a numberWord assistant (personal digital assistant, PDA) etc..In the present embodiment, host computer can be PC.TerminalIt can be the equipment that smart phone or tablet computer etc. can be carried out wireless communication with host computer.In the present embodiment, terminal can be withFor smart phone.The APP software installed on the comprehensive improvement management system software and terminal that host computer passes through installation carries out information exchange,To realize the purpose of comprehensive improvement patrol.
As shown in fig. 7, requirement of the host computer according to comprehensive improvement patrol, set in comprehensive improvement management system software patrol task andPatrol rule, and grid person will be tasked under the patrol task and patrol rule;The patrol rule are as follows: in comprehensive improvement patrol processIn the security risk that will be seen that by terminal APP upload to small towns (street) comprehensive improvement center or area's (city) county comprehensive improvements at different levels in real timeCenter, comprehensive improvement centers at different levels are confirmed whether to sign for and quickly assign the security risk to each department, each department's root in management systemDisposal method or precautionary measures are formulated according to the information that grid person reports and submits, security risk was strangled in the budding stage.
The patrol route that patrol task is created in comprehensive improvement management system software, extracts the patrol point of the patrol routeInformation, and two dimensional code is generated according to the patrol point information, while by the patrol point information preservation in database serviceIn device.The patrol point information include: affiliated street, affiliated community, affiliated grid, should patrol daily number, longitude, latitude,Patrol effective distance, address descriptor.
Wherein, the process of two dimensional code is generated are as follows: in the input page input specified data of management system, click additionAfter, latitude selects correct patrol point, clicks and save the page and produce corresponding two dimensional code and two dimensional code number, and willThe patrol point information preservation is in database server.Management system also provide the modification to patrol route point information,It checks, download, printing, it can the point information for modifying two dimensional code can regenerate new two dimensional code after modification;It is logicalThe data crossed in selective listing delete corresponding two-dimensional barcode information;It can check specific certain two dimensional code point relevant information;It canTo download single or multiple two dimensional codes, it can choose the single or multiple two-dimension code images of selection and printed.
At the fixed point of the patrol that the two dimensional code is posted in patrol route, grid person reaches patrol at the appointed timePoint carries out barcode scanning according to the two dimensional code of patrol rule using terminal APP scanning patrol point and checks card, will acquire after barcode scanning successThe patrol point number information stored into two dimensional code, terminal APP will be numbered automatically by the mode for calling management system interfaceInformation is uploaded in database server and is stored;If barcode scanning is checked card in vain, check card mistake in terminal APP prompt grid personIt loses, system does not record failure operation of checking card, and grid person barcode scanning two dimensional code can check card again.
Comprehensive improvement management system software inquires corresponding patrol point according to the patrol point bit number of upload from databaseInformation, and warp, latitude information and the patrol effective distance of the patrol point are fed back to terminal APP.
Terminal APP gets the warp of the patrol point of management system feedback, after latitude information, passes through calling terminal APP collectionInterface is obtained at the GPS that Baidu Android positioning SDK is provided, obtains warp, the latitude information of mobile terminal current location, and tiePoint warp, the latitude information for closing management system record, calculate the distance of actually checking card between two o'clock, if actually checking card apart from smallIn preset patrol effective distance, then prompt is checked card success, completes the patrol task of this patrol point, and by record of successfully checking cardTo uploading to host computer mark on map and being stored in database server;It successfully checks card based on the received record, by areaDomain and time dimension are counted, and obtaining statistical result is practical patrol point bit quantity and patrol point bit quantity absent from duty;To statisticsAs a result it studied, analyzed, obtain analysis result;Adjustment is optimized to existing patrol point based on the analysis results, so as to strongChange patrol work.
The present invention extracts the patrol point information of patrol route according to the patrol route of patrol task setting;According to patrolPoint information generates two dimensional code, carries out barcode scanning using terminal and obtains patrol point number information, and is uploaded to host computer, host computerTransfer corresponding patrol point information from database server, and by warp, latitude information and the patrol of patrol point effectively away fromTerminal is arrived from feedback;Terminal carries out the warp of feedback, latitude information and the warp itself obtained, latitude information that point-to-point transmission is calculatedDistance of actually checking card;If distance of actually checking card is less than preset patrol effective distance, success of checking card is prompted, this patrol is completedThe patrol task of point, and record of successfully checking card is uploaded into host computer;Host computer receives the success that terminal uploads and checks card record,And it will successfully check card on record mark to map and be stored in database server;It successfully checks card record, presses based on the receivedRegion and time dimension are counted, and obtaining statistical result is practical patrol point bit quantity and patrol point bit quantity absent from duty;To systemMeter result is studied, is analyzed, and analysis result is obtained;Adjustment is optimized to existing patrol point based on the analysis results, so as toStrengthen patrol work.Therefore, the present invention is by putting up two dimensional code in each patrol point in area under one's jurisdiction, and scans the two-dimensional code in grid personWhen obtain GPS information automatically, to grid person go on patrol operating path accurately recorded, for the later period to patrol action intoRow examination provides strong data supporting, realizes effective management to patrol track and point.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention andAny modification, equivalent replacement, improvement and so within principle, should all be included in the protection scope of the present invention.