commit 3aa40f4336bef5765c83b12c2da76d97a3b05ce5 Author: 曹磊 <45566618@qq.com> Date: Wed Jul 2 08:57:45 2025 +0800 老系统采集代码初始化 diff --git a/psgr/.classpath b/psgr/.classpath new file mode 100644 index 0000000..a709c65 --- /dev/null +++ b/psgr/.classpath @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/psgr/.metadata/.lock b/psgr/.metadata/.lock new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.log b/psgr/.metadata/.log new file mode 100644 index 0000000..590b3cd --- /dev/null +++ b/psgr/.metadata/.log @@ -0,0 +1,33 @@ +!SESSION 2022-11-03 08:26:55.389 ----------------------------------------------- +eclipse.buildId=4.6.0.I20160606-1100 +java.version=1.8.0_60 +java.vendor=Oracle Corporation +BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN +Framework arguments: -product org.eclipse.epp.package.jee.product +Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product + +!ENTRY org.eclipse.egit.ui 2 0 2022-11-03 08:27:40.649 +!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git +user global configuration and to define the default location to store repositories: 'C:\Users\86170'. If this is +not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and +EGit might behave differently since they see different configuration options. +This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. + +!ENTRY org.eclipse.epp.logging.aeri.ide 2 16 2022-11-03 08:27:46.445 +!MESSAGE Server ‘org.eclipse.epp.logging.aeri.ide.server’ failed with exception: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1. ; version: 2.0.1.v20160605-1811 +!STACK 0 +com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 + at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) + at com.google.gson.Gson.fromJson(Gson.java:803) + at com.google.gson.Gson.fromJson(Gson.java:768) + at com.google.gson.Gson.fromJson(Gson.java:717) + at org.eclipse.epp.internal.logging.aeri.ide.server.json.Json.deserialize(Json.java:88) + at org.eclipse.epp.internal.logging.aeri.ide.server.mars.IO.refreshConfiguration(IO.java:70) + at org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerConnection.startUp(ServerConnection.java:101) + at com.google.common.util.concurrent.AbstractIdleService$2$1.run(AbstractIdleService.java:54) + at com.google.common.util.concurrent.Callables$3.run(Callables.java:93) + at java.lang.Thread.run(Unknown Source) +Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 + at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:374) + at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165) + ... 9 more diff --git a/psgr/.metadata/.mylyn/repositories.xml.zip b/psgr/.metadata/.mylyn/repositories.xml.zip new file mode 100644 index 0000000..397fd69 Binary files /dev/null and b/psgr/.metadata/.mylyn/repositories.xml.zip differ diff --git a/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version new file mode 100644 index 0000000..25cb955 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index new file mode 100644 index 0000000..c0afb6e Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index differ diff --git a/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version new file mode 100644 index 0000000..6b2aaa7 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree new file mode 100644 index 0000000..af0d998 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree differ diff --git a/psgr/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/psgr/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources new file mode 100644 index 0000000..7fcf31e Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.collabnet.subversion.merge.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.collabnet.subversion.merge.prefs new file mode 100644 index 0000000..7ae6d53 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.collabnet.subversion.merge.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +merge_provider_set=true diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..dffc6b5 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +version=1 diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.logging.aeri.ide.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.logging.aeri.ide.prefs new file mode 100644 index 0000000..c186df8 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.logging.aeri.ide.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +resetSendMode=KEEP +resetSendModeOn=0 +sendMode=NOTIFY diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..a0fcc98 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,15 @@ +content_assist_proposals_background=255,255,255 +content_assist_proposals_foreground=0,0,0 +eclipse.preferences.version=1 +fontPropagated=true +org.eclipse.jdt.internal.ui.navigator.layout=2 +org.eclipse.jdt.internal.ui.navigator.librariesnode=true +org.eclipse.jdt.ui.editor.tab.width= +org.eclipse.jdt.ui.formatterprofiles.version=12 +org.eclipse.jdt.ui.javadoclocations.migrated=true +org.eclipse.jface.textfont=1|Consolas|10.0|0|WINDOWS|1|0|0|0|0|0|0|0|0|1|0|0|0|0|Consolas; +proposalOrderMigrated=true +spelling_locale_initialized=true +tabWidthPropagated=true +useAnnotationsPrefPage=true +useQuickDiffPrefPage=true diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs new file mode 100644 index 0000000..553bb96 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs @@ -0,0 +1,2 @@ +areThereWebServices=false +eclipse.preferences.version=1 diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs new file mode 100644 index 0000000..67b1d96 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.m2e.discovery.pref.projects= diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs new file mode 100644 index 0000000..43e97e4 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +mylyn.attention.migrated=true diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs new file mode 100644 index 0000000..8d462a6 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000..5330e43 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +migrated.task.repositories.secure.store=true +org.eclipse.mylyn.tasks.ui.filters.nonmatching=true +org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs new file mode 100644 index 0000000..b715e17 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs @@ -0,0 +1,3 @@ +activeuserprofiles=DESKTOP-16FC8LL;Team +eclipse.preferences.version=1 +org.eclipse.rse.systemtype.local.systemType.defaultUserId=86170 diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs new file mode 100644 index 0000000..06ee7fa --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.rse.preferences.order.connections=DESKTOP-16FC8LL.Local diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs new file mode 100644 index 0000000..56cd496 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.team.ui.first_time=false diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs new file mode 100644 index 0000000..61f3bb8 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +overviewRuler_migration=migrated_3.1 diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs new file mode 100644 index 0000000..c4e5376 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs @@ -0,0 +1,5 @@ +PROBLEMS_FILTERS_MIGRATE=true +eclipse.preferences.version=1 +platformState=1631086012775 +quickStart=false +tipsAndTricks=true diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs new file mode 100644 index 0000000..6e3143d --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs @@ -0,0 +1,4 @@ +//org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false +//org.eclipse.ui.commands/state/org.eclipse.wst.xml.views.XPathView.processor.xpathprocessor/org.eclipse.ui.commands.radioState=xpath10 +PLUGINS_NOT_ACTIVATED_ON_STARTUP=org.eclipse.m2e.discovery; +eclipse.preferences.version=1 diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.tools.usage.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.tools.usage.prefs new file mode 100644 index 0000000..b446e4e --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.tools.usage.prefs @@ -0,0 +1,3 @@ +allow_usage_report_preference=true +ask_user_for_usage_report_preference=false +eclipse.preferences.version=1 diff --git a/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.ui.prefs b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.ui.prefs new file mode 100644 index 0000000..1c00496 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.ui.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +pref_merge_provider=CollabNet Desktop diff --git a/psgr/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/psgr/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi new file mode 100644 index 0000000..f90ae21 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi @@ -0,0 +1,2958 @@ + + + + activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration + ModelMigrationProcessor.001 + + + + + + + + topLevel + shellMaximized + + + + + persp.actionSet:org.eclipse.mylyn.doc.actionSet + persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation + persp.actionSet:org.eclipse.ui.cheatsheets.actionSet + persp.actionSet:org.eclipse.rse.core.search.searchActionSet + persp.actionSet:org.eclipse.search.searchActionSet + persp.actionSet:org.eclipse.ui.edit.text.actionSet.annotationNavigation + persp.actionSet:org.eclipse.ui.edit.text.actionSet.navigation + persp.actionSet:org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo + persp.actionSet:org.eclipse.ui.externaltools.ExternalToolsSet + persp.actionSet:org.eclipse.ui.actionSet.keyBindings + persp.actionSet:org.eclipse.ui.actionSet.openFiles + persp.actionSet:org.eclipse.wst.jsdt.chromium.debug.ui.actionSets + persp.actionSet:org.eclipse.jst.j2ee.J2eeMainActionSet + persp.actionSet:org.eclipse.jdt.ui.JavaActionSet + persp.actionSet:org.eclipse.debug.ui.launchActionSet + persp.actionSet:org.eclipse.debug.ui.debugActionSet + persp.actionSet:org.eclipse.ui.NavigateActionSet + persp.viewSC:org.eclipse.ui.navigator.ProjectExplorer + persp.viewSC:org.eclipse.wst.server.ui.ServersView + persp.viewSC:org.eclipse.datatools.connectivity.DataSourceExplorerNavigator + persp.viewSC:org.eclipse.ui.views.BookmarkView + persp.viewSC:org.eclipse.ui.views.ContentOutline + persp.viewSC:org.eclipse.ui.views.PropertySheet + persp.viewSC:org.eclipse.ui.views.ResourceNavigator + persp.viewSC:org.eclipse.wst.common.snippets.internal.ui.SnippetsView + persp.viewSC:org.eclipse.ui.views.AllMarkersView + persp.viewSC:org.eclipse.mylyn.tasks.ui.views.tasks + persp.viewSC:org.eclipse.search.ui.views.SearchView + persp.viewSC:org.eclipse.ui.console.ConsoleView + persp.showIn:org.eclipse.ui.navigator.ProjectExplorer + persp.newWizSC:org.eclipse.jpt.jpa.ui.wizard.newJpaProject + persp.perspSC:org.eclipse.jpt.ui.jpaPerspective + persp.perspSC:org.eclipse.debug.ui.DebugPerspective + persp.perspSC:org.eclipse.jdt.ui.JavaPerspective + persp.perspSC:org.eclipse.ui.resourcePerspective + persp.perspSC:org.eclipse.wst.web.ui.webDevPerspective + persp.newWizSC:org.eclipse.jst.j2ee.ui.project.facet.EarProjectWizard + persp.newWizSC:org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard + persp.newWizSC:org.eclipse.jst.ejb.ui.project.facet.EjbProjectWizard + persp.newWizSC:org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorProjectWizard + persp.newWizSC:org.eclipse.jst.j2ee.ui.project.facet.appclient.AppClientProjectWizard + persp.newWizSC:org.eclipse.wst.web.ui.internal.wizards.SimpleWebProjectWizard + persp.newWizSC:org.eclipse.jpt.ui.wizard.newJpaProject + persp.newWizSC:org.eclipse.jst.servlet.ui.internal.wizard.AddServletWizard + persp.newWizSC:org.eclipse.jst.ejb.ui.internal.wizard.AddSessionBeanWizard + persp.newWizSC:org.eclipse.jst.ejb.ui.internal.wizard.AddMessageDrivenBeanWizard + persp.newWizSC:org.eclipse.jpt.ui.wizard.newEntity + persp.newWizSC:org.eclipse.jst.ws.creation.ui.wizard.serverwizard + persp.newWizSC:org.eclipse.ui.wizards.new.folder + persp.newWizSC:org.eclipse.ui.wizards.new.file + persp.actionSet:org.eclipse.wst.server.ui.internal.webbrowser.actionSet + persp.actionSet:org.eclipse.debug.ui.breakpointActionSet + persp.newWizSC:org.eclipse.m2e.core.wizards.Maven2ProjectWizard + persp.showIn:org.eclipse.tm.terminal.view.ui.TerminalsView + persp.actionSet:org.eclipse.wst.ws.explorer.explorer + + + active + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + View + categoryTag:Help + + + + + View + categoryTag:General + + ViewMenu + menuContribution:menu + + + + + + + View + categoryTag:Help + + + + org.eclipse.e4.primaryDataStack + EditorStack + + + + + + + View + categoryTag:General + active + activeOnClose + + ViewMenu + menuContribution:menu + + + + + + + View + categoryTag:General + + + + + View + categoryTag:Java + + + + + View + categoryTag:Java Browsing + + + + + + View + categoryTag:General + + ViewMenu + menuContribution:menu + + + + + + + View + categoryTag:General + + + + + View + categoryTag:Server + + + + + View + categoryTag:Data Management + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + + View + categoryTag:General + + ViewMenu + menuContribution:menu + + + + + + + View + categoryTag:Mylyn + + + + toolbarSeparator + + + + Draggable + + + + toolbarSeparator + + + + Draggable + + + Draggable + + + Draggable + + + Draggable + + + Draggable + + + toolbarSeparator + + + + Draggable + + + + toolbarSeparator + + + + toolbarSeparator + + + + Draggable + + + stretch + SHOW_RESTORE_MENU + + + Draggable + HIDEABLE + SHOW_RESTORE_MENU + + + + + stretch + + + Draggable + + + Draggable + + + + + TrimStack + Draggable + + + + + + + + + + + + + + + + locale:zh + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + platform:win32 + + + + + + + + + + + + + + + + + + + + + + locale:zh + + + + + + + locale:zh + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + locale:zh + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + platform:win32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Editor + + + + + View + categoryTag:SVN + + + + + View + categoryTag:AmaterasUML + + + + + View + categoryTag:Ant + + + + + View + categoryTag:Data Management + + + + + View + categoryTag:Data Management + + + + + View + categoryTag:Data Management + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Git + + + + + View + categoryTag:Git + + + + + View + categoryTag:Git + + + + + View + categoryTag:Git + + + + + View + categoryTag:Git + + + + + View + categoryTag:General + + + + + View + categoryTag:Help + + + + + View + categoryTag:Debug + + + + + View + categoryTag:Java + + + + + View + categoryTag:Java + + + + + View + categoryTag:Java + + + + + View + categoryTag:Java Browsing + + + + + View + categoryTag:Java Browsing + + + + + View + categoryTag:Java Browsing + + + + + View + categoryTag:Java Browsing + + + + + View + categoryTag:Java + + + + + View + categoryTag:General + + + + + View + categoryTag:Java + + + + + View + categoryTag:Java + + + + + View + categoryTag:JPA + + + + + View + categoryTag:JPA + + + + + View + categoryTag:JavaServer Faces + + + + + View + categoryTag:JavaServer Faces + + + + + View + categoryTag:Web Services + + + + + View + categoryTag:Maven + + + + + View + categoryTag:Maven + + + + + View + categoryTag:Mylyn + + + + + View + categoryTag:Mylyn + + + + + View + categoryTag:Mylyn + + + + + View + categoryTag:Oomph + + + + + View + categoryTag:API Tools + + + + + View + categoryTag:Plug-in Development + + + + + View + categoryTag:Plug-in Development + + + + + View + categoryTag:Plug-in Development + + + + + View + categoryTag:Plug-in Development + + + + + View + categoryTag:Plug-in Development + + + + + View + categoryTag:Code Recommenders + + + + + View + categoryTag:Code Recommenders + + + + + View + categoryTag:Code Recommenders + + + + + View + categoryTag:Code Recommenders + + + + + View + categoryTag:Remote Systems + + + + + View + categoryTag:Remote Systems + + + + + View + categoryTag:Remote Systems + + + + + View + categoryTag:Remote Systems + + + + + View + categoryTag:Remote Systems + + + + + View + categoryTag:Remote Systems + + + + + View + categoryTag:Remote Systems + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:Team + + + + + View + categoryTag:Team + + + + + View + categoryTag:Terminal + + + + + View + categoryTag:Other + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:Help + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:General + + + + + View + categoryTag:Debug + + + + + View + categoryTag:JavaScript + + + + + View + categoryTag:JavaScript + + + + + View + categoryTag:JavaScript + + + + + View + categoryTag:JavaScript + + + + + View + categoryTag:JavaScript + + + + + View + categoryTag:Server + + + + + View + categoryTag:XML + + + + + View + categoryTag:XML + + + + + View + categoryTag:XML + + + + + View + categoryTag:XML + + + + + View + categoryTag:XML + + + + + View + categoryTag:SVN + + + + + View + categoryTag:SVN + + + + + View + categoryTag:SVN + + + + + View + categoryTag:SVN + + + + + View + categoryTag:SVN + + + + + + + glue + move_after:PerspectiveSpacer + SHOW_RESTORE_MENU + + + move_after:Spacer Glue + HIDEABLE + SHOW_RESTORE_MENU + + + glue + move_after:SearchField + SHOW_RESTORE_MENU + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdt b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdt new file mode 100644 index 0000000..d5abf41 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdt differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdx b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdx new file mode 100644 index 0000000..b8ee809 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdx differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fnm b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fnm new file mode 100644 index 0000000..523c92e --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fnm @@ -0,0 +1 @@ +version \ No newline at end of file diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.frq b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.frq new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.nrm b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.nrm new file mode 100644 index 0000000..cf8dc75 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.nrm @@ -0,0 +1 @@ +NRM \ No newline at end of file diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tii b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tii new file mode 100644 index 0000000..ebd518d Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tii differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tis b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tis new file mode 100644 index 0000000..ebd518d Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tis differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments.gen b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments.gen new file mode 100644 index 0000000..63a7ec9 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments.gen differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments_1 b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments_1 new file mode 100644 index 0000000..5775a51 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments_1 differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/write.lock b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdt b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdt new file mode 100644 index 0000000..d5abf41 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdt differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdx b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdx new file mode 100644 index 0000000..b8ee809 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdx differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fnm b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fnm new file mode 100644 index 0000000..523c92e --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fnm @@ -0,0 +1 @@ +version \ No newline at end of file diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.frq b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.frq new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.nrm b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.nrm new file mode 100644 index 0000000..cf8dc75 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.nrm @@ -0,0 +1 @@ +NRM \ No newline at end of file diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tii b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tii new file mode 100644 index 0000000..ebd518d Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tii differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tis b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tis new file mode 100644 index 0000000..ebd518d Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tis differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments.gen b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments.gen new file mode 100644 index 0000000..63a7ec9 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments.gen differ diff --git a/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments_1 b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments_1 new file mode 100644 index 0000000..5775a51 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments_1 differ diff --git a/psgr/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache b/psgr/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache new file mode 100644 index 0000000..593f470 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache differ diff --git a/psgr/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache b/psgr/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache new file mode 100644 index 0000000..593f470 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache differ diff --git a/psgr/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache b/psgr/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache new file mode 100644 index 0000000..593f470 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache differ diff --git a/psgr/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat b/psgr/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat new file mode 100644 index 0000000..3de398e Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat differ diff --git a/psgr/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml b/psgr/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml new file mode 100644 index 0000000..a4ee3cb --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml @@ -0,0 +1,2 @@ + + diff --git a/psgr/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/psgr/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml new file mode 100644 index 0000000..9e390f5 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml @@ -0,0 +1,2 @@ + + diff --git a/psgr/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/psgr/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml new file mode 100644 index 0000000..304eb7b --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml @@ -0,0 +1,5 @@ + +
+
+
+
diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core.ui/dialog_settings.xml b/psgr/.metadata/.plugins/org.eclipse.m2e.core.ui/dialog_settings.xml new file mode 100644 index 0000000..09e4b9e --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.m2e.core.ui/dialog_settings.xml @@ -0,0 +1,63 @@ + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + + + + + + + +
+
+ + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs new file mode 100644 index 0000000..10c0c85 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen new file mode 100644 index 0000000..225a55b Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2 b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2 new file mode 100644 index 0000000..625fff0 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2 differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/write.lock b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs new file mode 100644 index 0000000..2510e88 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen new file mode 100644 index 0000000..225a55b Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2 b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2 new file mode 100644 index 0000000..ad50fa5 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2 differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/write.lock b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/_0.cfs b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/_0.cfs new file mode 100644 index 0000000..393fad9 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/_0.cfs differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments.gen b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments.gen new file mode 100644 index 0000000..225a55b Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments.gen differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments_2 b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments_2 new file mode 100644 index 0000000..f3b73b7 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments_2 differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/write.lock b/psgr/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser b/psgr/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser new file mode 100644 index 0000000..4632fc4 Binary files /dev/null and b/psgr/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser differ diff --git a/psgr/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml b/psgr/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml new file mode 100644 index 0000000..e33758c --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml @@ -0,0 +1,43 @@ + + + + %date [%thread] %-5level %logger{35} - %msg%n + + + OFF + + + + + ${org.eclipse.m2e.log.dir}/0.log + + ${org.eclipse.m2e.log.dir}/%i.log + 1 + 10 + + + 100MB + + + %date [%thread] %-5level %logger{35} - %msg%n + + + + + + WARN + + + + + + + + + + + + + + + diff --git a/psgr/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup b/psgr/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup new file mode 100644 index 0000000..1f73e14 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup @@ -0,0 +1,6 @@ + + diff --git a/psgr/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties b/psgr/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties new file mode 100644 index 0000000..81d0012 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties @@ -0,0 +1,2 @@ +#Cached timestamps +#Thu Nov 03 08:29:33 CST 2022 diff --git a/psgr/.metadata/.plugins/org.eclipse.rse.core/.log b/psgr/.metadata/.plugins/org.eclipse.rse.core/.log new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark b/psgr/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/FP.local.files_0/node.properties b/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/FP.local.files_0/node.properties new file mode 100644 index 0000000..8ef00e6 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/FP.local.files_0/node.properties @@ -0,0 +1,57 @@ +# RSE DOM Node +00-name=DESKTOP-16FC8LL\:local.files +01-type=FilterPool +03-attr.default=true +03-attr.deletable=true +03-attr.id=local.files +03-attr.nonRenamable=false +03-attr.owningParentName=null +03-attr.release=200 +03-attr.singleFilterStringOnly=false +03-attr.singleFilterStringOnlyESet=false +03-attr.stringsCaseSensitive=true +03-attr.supportsDuplicateFilterStrings=false +03-attr.supportsNestedFilters=true +03-attr.type=default +06-child.00000.00-name=My Home +06-child.00000.01-type=Filter +06-child.00000.03-attr.default=false +06-child.00000.03-attr.filterType=default +06-child.00000.03-attr.id=My Home +06-child.00000.03-attr.nonChangable=false +06-child.00000.03-attr.nonDeletable=false +06-child.00000.03-attr.nonRenamable=false +06-child.00000.03-attr.promptable=false +06-child.00000.03-attr.relativeOrder=0 +06-child.00000.03-attr.release=200 +06-child.00000.03-attr.singleFilterStringOnly=false +06-child.00000.03-attr.stringsCaseSensitive=false +06-child.00000.03-attr.stringsNonChangable=false +06-child.00000.03-attr.supportsDuplicateFilterStrings=false +06-child.00000.03-attr.supportsNestedFilters=true +06-child.00000.06-child.00000.00-name=C\:\\Users\\86170\\* +06-child.00000.06-child.00000.01-type=FilterString +06-child.00000.06-child.00000.03-attr.default=false +06-child.00000.06-child.00000.03-attr.string=C\:\\Users\\86170\\* +06-child.00000.06-child.00000.03-attr.type=default +06-child.00001.00-name=Drives +06-child.00001.01-type=Filter +06-child.00001.03-attr.default=false +06-child.00001.03-attr.filterType=default +06-child.00001.03-attr.id=Drives +06-child.00001.03-attr.nonChangable=false +06-child.00001.03-attr.nonDeletable=false +06-child.00001.03-attr.nonRenamable=false +06-child.00001.03-attr.promptable=false +06-child.00001.03-attr.relativeOrder=0 +06-child.00001.03-attr.release=200 +06-child.00001.03-attr.singleFilterStringOnly=false +06-child.00001.03-attr.stringsCaseSensitive=false +06-child.00001.03-attr.stringsNonChangable=false +06-child.00001.03-attr.supportsDuplicateFilterStrings=false +06-child.00001.03-attr.supportsNestedFilters=true +06-child.00001.06-child.00000.00-name=* +06-child.00001.06-child.00000.01-type=FilterString +06-child.00001.06-child.00000.03-attr.default=false +06-child.00001.06-child.00000.03-attr.string=* +06-child.00001.06-child.00000.03-attr.type=default diff --git a/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/H.local_16/node.properties b/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/H.local_16/node.properties new file mode 100644 index 0000000..a69e744 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/H.local_16/node.properties @@ -0,0 +1,25 @@ +# RSE DOM Node +00-name=Local +01-type=Host +03-attr.description= +03-attr.hostname=LOCALHOST +03-attr.offline=false +03-attr.promptable=false +03-attr.systemType=org.eclipse.rse.systemtype.local +03-attr.type=Local +06-child.00000.00-name=Local Connector Service +06-child.00000.01-type=ConnectorService +06-child.00000.03-attr.group=Local Connector Service +06-child.00000.03-attr.port=0 +06-child.00000.03-attr.useSSL=false +06-child.00000.06-child.00000.00-name=Local Files +06-child.00000.06-child.00000.01-type=SubSystem +06-child.00000.06-child.00000.03-attr.hidden=false +06-child.00000.06-child.00000.03-attr.type=local.files +06-child.00000.06-child.00000.06-child.00000.00-name=DESKTOP-16FC8LL___DESKTOP-16FC8LL\:local.files +06-child.00000.06-child.00000.06-child.00000.01-type=FilterPoolReference +06-child.00000.06-child.00000.06-child.00000.03-attr.refID=local.files +06-child.00000.06-child.00001.00-name=Local Shells +06-child.00000.06-child.00001.01-type=SubSystem +06-child.00000.06-child.00001.03-attr.hidden=false +06-child.00000.06-child.00001.03-attr.type=local.shells diff --git a/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/node.properties b/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/node.properties new file mode 100644 index 0000000..1490258 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/node.properties @@ -0,0 +1,7 @@ +# RSE DOM Node +00-name=DESKTOP-16FC8LL +01-type=Profile +03-attr.defaultPrivate=true +03-attr.isActive=true +05-ref.00000=FP.local.files_0 +05-ref.00001=H.local_16 diff --git a/psgr/.metadata/.plugins/org.eclipse.rse.ui/.log b/psgr/.metadata/.plugins/org.eclipse.rse.ui/.log new file mode 100644 index 0000000..e69de29 diff --git a/psgr/.metadata/.plugins/org.eclipse.tm.terminal.view.ui/.executables/data.properties b/psgr/.metadata/.plugins/org.eclipse.tm.terminal.view.ui/.executables/data.properties new file mode 100644 index 0000000..82c1325 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.tm.terminal.view.ui/.executables/data.properties @@ -0,0 +1,6 @@ +#Thu Nov 03 08:27:28 CST 2022 +0.Path=D\:\\APPLICATION\\GIT\\Git\\bin\\sh.exe +0.Name=Git Bash +0.Args=--login -i +0.Translate=true +0.Icon=D\:\\APPLICATION\\GIT\\Git\\mingw64\\share\\git\\git-for-windows.ico diff --git a/psgr/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml b/psgr/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml new file mode 100644 index 0000000..95ca575 --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml @@ -0,0 +1,5 @@ + +
+
+
+
diff --git a/psgr/.metadata/.plugins/org.eclipse.ui.intro/introstate b/psgr/.metadata/.plugins/org.eclipse.ui.intro/introstate new file mode 100644 index 0000000..236d56c --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.ui.intro/introstate @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/psgr/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml b/psgr/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml new file mode 100644 index 0000000..347a32c --- /dev/null +++ b/psgr/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml @@ -0,0 +1,17 @@ + +
+
+ + + + + + + + + + +
+
+
+
diff --git a/psgr/.metadata/version.ini b/psgr/.metadata/version.ini new file mode 100644 index 0000000..b774c31 --- /dev/null +++ b/psgr/.metadata/version.ini @@ -0,0 +1,3 @@ +#Thu Nov 03 08:27:23 CST 2022 +org.eclipse.core.runtime=2 +org.eclipse.platform=4.6.0.v20160606-1100 diff --git a/psgr/.project b/psgr/.project new file mode 100644 index 0000000..37031bc --- /dev/null +++ b/psgr/.project @@ -0,0 +1,31 @@ + + + collection + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/psgr/.settings/.jsdtscope b/psgr/.settings/.jsdtscope new file mode 100644 index 0000000..92e666d --- /dev/null +++ b/psgr/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/psgr/.settings/org.eclipse.jdt.core.prefs b/psgr/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..0c68a61 --- /dev/null +++ b/psgr/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/psgr/.settings/org.eclipse.wst.common.component b/psgr/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..a36c765 --- /dev/null +++ b/psgr/.settings/org.eclipse.wst.common.component @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/psgr/.settings/org.eclipse.wst.common.project.facet.core.xml b/psgr/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..c4292f0 --- /dev/null +++ b/psgr/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/psgr/.settings/org.eclipse.wst.jsdt.ui.superType.container b/psgr/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/psgr/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/psgr/.settings/org.eclipse.wst.jsdt.ui.superType.name b/psgr/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/psgr/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/psgr/RemoteSystemsTempFiles/.project b/psgr/RemoteSystemsTempFiles/.project new file mode 100644 index 0000000..5447a64 --- /dev/null +++ b/psgr/RemoteSystemsTempFiles/.project @@ -0,0 +1,12 @@ + + + RemoteSystemsTempFiles + + + + + + + org.eclipse.rse.ui.remoteSystemsTempNature + + diff --git a/psgr/WebContent/META-INF/MANIFEST.MF b/psgr/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/psgr/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/psgr/WebContent/WEB-INF/classes/application.xml b/psgr/WebContent/WEB-INF/classes/application.xml new file mode 100644 index 0000000..8f24326 --- /dev/null +++ b/psgr/WebContent/WEB-INF/classes/application.xml @@ -0,0 +1,35 @@ + + + + Spring Configuration + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/AnalysisRule.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/AnalysisRule.class new file mode 100644 index 0000000..9533c38 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/AnalysisRule.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/HeatAnalyze.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/HeatAnalyze.class new file mode 100644 index 0000000..e6b2af7 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/HeatAnalyze.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/Instrucation.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/Instrucation.class new file mode 100644 index 0000000..4855a20 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/bean/Instrucation.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/AnalysisRuleDao.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/AnalysisRuleDao.class new file mode 100644 index 0000000..f873074 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/AnalysisRuleDao.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/HeatAnalyzeDao.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/HeatAnalyzeDao.class new file mode 100644 index 0000000..56bd102 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/HeatAnalyzeDao.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/HeatCollectDao.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/HeatCollectDao.class new file mode 100644 index 0000000..4a72eae Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/HeatCollectDao.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/InstrucationDao.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/InstrucationDao.class new file mode 100644 index 0000000..666494f Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/dao/InstrucationDao.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/HeatAnalyzeService.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/HeatAnalyzeService.class new file mode 100644 index 0000000..3ae9e14 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/HeatAnalyzeService.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/HeatCollectService.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/HeatCollectService.class new file mode 100644 index 0000000..1f18523 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/HeatCollectService.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/InstrucationService.class b/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/InstrucationService.class new file mode 100644 index 0000000..d6fba4d Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/business/service/InstrucationService.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/common/annotation/MultipleDataSourceAspectAdvice.class b/psgr/WebContent/WEB-INF/classes/com/blxc/common/annotation/MultipleDataSourceAspectAdvice.class new file mode 100644 index 0000000..bbef4e2 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/common/annotation/MultipleDataSourceAspectAdvice.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/common/annotation/MyBatis.class b/psgr/WebContent/WEB-INF/classes/com/blxc/common/annotation/MyBatis.class new file mode 100644 index 0000000..4020390 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/common/annotation/MyBatis.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/common/dao/CommonDao.class b/psgr/WebContent/WEB-INF/classes/com/blxc/common/dao/CommonDao.class new file mode 100644 index 0000000..29b7d31 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/common/dao/CommonDao.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/common/service/CommonService.class b/psgr/WebContent/WEB-INF/classes/com/blxc/common/service/CommonService.class new file mode 100644 index 0000000..e3a9bef Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/common/service/CommonService.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/common/service/SqlServerService.class b/psgr/WebContent/WEB-INF/classes/com/blxc/common/service/SqlServerService.class new file mode 100644 index 0000000..caa32f4 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/common/service/SqlServerService.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/common/util/JdbcInstance.class b/psgr/WebContent/WEB-INF/classes/com/blxc/common/util/JdbcInstance.class new file mode 100644 index 0000000..4019482 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/common/util/JdbcInstance.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/analysisRule.xml b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/analysisRule.xml new file mode 100644 index 0000000..9d5e864 --- /dev/null +++ b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/analysisRule.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/heatAnalyze.xml b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/heatAnalyze.xml new file mode 100644 index 0000000..7d5026a --- /dev/null +++ b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/heatAnalyze.xml @@ -0,0 +1,19 @@ + + + + + CALL P_Q_D_HEATANALYSIS_PACKAGE(#{code}, #{sim}, #{datatime}, #{view005}, #{view006}, #{view007}, #{view008}, #{view009}, #{view010}, #{view011}, #{view012}) + + + + + + + + + + \ No newline at end of file diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/heatCollect.xml b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/heatCollect.xml new file mode 100644 index 0000000..4ebf3f3 --- /dev/null +++ b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/heatCollect.xml @@ -0,0 +1,11 @@ + + + + + + + DELETE FROM BL_T_T_O_DEVICEDATA WHERE NAME = #{sim} + + \ No newline at end of file diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/instrucation.xml b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/instrucation.xml new file mode 100644 index 0000000..e2c98d4 --- /dev/null +++ b/psgr/WebContent/WEB-INF/classes/com/blxc/mapper/instrucation.xml @@ -0,0 +1,7 @@ + + + + + CALL P_Q_D_DATACOLLECT(#{content}, #{instrucation}) + + \ No newline at end of file diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/bean/Client.class b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/bean/Client.class new file mode 100644 index 0000000..db2bb8d Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/bean/Client.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/listener/SocketListener.class b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/listener/SocketListener.class new file mode 100644 index 0000000..5b7c6e7 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/listener/SocketListener.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/service/MultiSocket.class b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/service/MultiSocket.class new file mode 100644 index 0000000..92eaa5a Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/service/MultiSocket.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/service/SocketServer.class b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/service/SocketServer.class new file mode 100644 index 0000000..62efe30 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/socket/server/service/SocketServer.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/CRC16Util.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/CRC16Util.class new file mode 100644 index 0000000..e3159d6 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/CRC16Util.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/ClientCollect.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/ClientCollect.class new file mode 100644 index 0000000..21584a1 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/ClientCollect.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/DataCollect.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/DataCollect.class new file mode 100644 index 0000000..65ec3f2 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/DataCollect.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/Global.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/Global.class new file mode 100644 index 0000000..a97f63a Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/Global.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/MultipleDataSource.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/MultipleDataSource.class new file mode 100644 index 0000000..f217727 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/MultipleDataSource.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/DataFormula.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/DataFormula.class new file mode 100644 index 0000000..8b03676 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/DataFormula.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/DataHandle.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/DataHandle.class new file mode 100644 index 0000000..e0522b7 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/DataHandle.class differ diff --git a/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/Recordable.class b/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/Recordable.class new file mode 100644 index 0000000..5fc3162 Binary files /dev/null and b/psgr/WebContent/WEB-INF/classes/com/blxc/util/convert/Recordable.class differ diff --git a/psgr/WebContent/WEB-INF/classes/config.xml b/psgr/WebContent/WEB-INF/classes/config.xml new file mode 100644 index 0000000..0ef2f1c --- /dev/null +++ b/psgr/WebContent/WEB-INF/classes/config.xml @@ -0,0 +1,87 @@ + + + + MyBatis Data Source Configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/psgr/WebContent/WEB-INF/lib/aspectjweaver-1.9.1.jar b/psgr/WebContent/WEB-INF/lib/aspectjweaver-1.9.1.jar new file mode 100644 index 0000000..bf0e856 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/aspectjweaver-1.9.1.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar b/psgr/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar new file mode 100644 index 0000000..c4c1c4f Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar b/psgr/WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar new file mode 100644 index 0000000..131f192 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/commons-io-2.0.1.jar b/psgr/WebContent/WEB-INF/lib/commons-io-2.0.1.jar new file mode 100644 index 0000000..5b64b7d Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/commons-io-2.0.1.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/commons-lang-2.6.jar b/psgr/WebContent/WEB-INF/lib/commons-lang-2.6.jar new file mode 100644 index 0000000..98467d3 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/commons-lang-2.6.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar b/psgr/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar new file mode 100644 index 0000000..8758a96 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/commons-pool-1.5.6.jar b/psgr/WebContent/WEB-INF/lib/commons-pool-1.5.6.jar new file mode 100644 index 0000000..ce5ff60 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/commons-pool-1.5.6.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/jstl-1.2.jar b/psgr/WebContent/WEB-INF/lib/jstl-1.2.jar new file mode 100644 index 0000000..0fd275e Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/jstl-1.2.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/jtds-1.3.1.jar b/psgr/WebContent/WEB-INF/lib/jtds-1.3.1.jar new file mode 100644 index 0000000..d866860 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/jtds-1.3.1.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/mail.jar b/psgr/WebContent/WEB-INF/lib/mail.jar new file mode 100644 index 0000000..f726e13 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/mail.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/mybatis-3.1.0-SNAPSHOT.jar b/psgr/WebContent/WEB-INF/lib/mybatis-3.1.0-SNAPSHOT.jar new file mode 100644 index 0000000..9d0edc2 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/mybatis-3.1.0-SNAPSHOT.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/mybatis-spring-1.1.0-SNAPSHOT.jar b/psgr/WebContent/WEB-INF/lib/mybatis-spring-1.1.0-SNAPSHOT.jar new file mode 100644 index 0000000..2a386d4 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/mybatis-spring-1.1.0-SNAPSHOT.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar b/psgr/WebContent/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar new file mode 100644 index 0000000..ebfe068 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-aop-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-aop-5.0.7.RELEASE.jar new file mode 100644 index 0000000..f7c3057 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-aop-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-aspects-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-aspects-5.0.7.RELEASE.jar new file mode 100644 index 0000000..7ad2804 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-aspects-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-beans-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-beans-5.0.7.RELEASE.jar new file mode 100644 index 0000000..cb4d504 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-beans-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-context-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-context-5.0.7.RELEASE.jar new file mode 100644 index 0000000..2296e5e Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-context-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-context-support-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-context-support-5.0.7.RELEASE.jar new file mode 100644 index 0000000..4c8284d Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-context-support-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-core-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-core-5.0.7.RELEASE.jar new file mode 100644 index 0000000..a388feb Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-core-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-expression-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-expression-5.0.7.RELEASE.jar new file mode 100644 index 0000000..b569831 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-expression-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-jdbc-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-jdbc-5.0.7.RELEASE.jar new file mode 100644 index 0000000..df4f8f6 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-jdbc-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-orm-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-orm-5.0.7.RELEASE.jar new file mode 100644 index 0000000..43679f2 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-orm-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-tx-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-tx-5.0.7.RELEASE.jar new file mode 100644 index 0000000..2daca86 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-tx-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-web-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-web-5.0.7.RELEASE.jar new file mode 100644 index 0000000..4e96d8f Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-web-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/spring-webmvc-5.0.7.RELEASE.jar b/psgr/WebContent/WEB-INF/lib/spring-webmvc-5.0.7.RELEASE.jar new file mode 100644 index 0000000..591ef56 Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/spring-webmvc-5.0.7.RELEASE.jar differ diff --git a/psgr/WebContent/WEB-INF/lib/standard-1.1.2.jar b/psgr/WebContent/WEB-INF/lib/standard-1.1.2.jar new file mode 100644 index 0000000..bc528ac Binary files /dev/null and b/psgr/WebContent/WEB-INF/lib/standard-1.1.2.jar differ diff --git a/psgr/WebContent/WEB-INF/plugin/DATABASE.SQL b/psgr/WebContent/WEB-INF/plugin/DATABASE.SQL new file mode 100644 index 0000000..2bf344b --- /dev/null +++ b/psgr/WebContent/WEB-INF/plugin/DATABASE.SQL @@ -0,0 +1,259 @@ +-- ɼݴ洢. +DROP PROCEDURE IF EXISTS P_Q_D_HEATANALYSIS; +-- ɼݴ洢. +CREATE PROCEDURE P_Q_D_HEATANALYSIS(V_CODE VARCHAR(50), V_SIM VARCHAR(50), V_DATATIME VARCHAR(50), V_VIEW01 DOUBLE, V_VIEW02 DOUBLE, V_VIEW03 DOUBLE, V_VIEW04 DOUBLE, V_VIEW05 DOUBLE, V_VIEW06 DOUBLE, V_VIEW07 DOUBLE, V_VIEW08 DOUBLE) +BEGIN + -- ֻ. + SET @SIM = V_SIM; + -- 豸. + SET @CODE = V_CODE; + -- ϱʱ. + SET @DATATIME = V_DATATIME; + -- õһ·ģ. + SET @VIEW01 = V_VIEW01; + -- õڶ·ģ. + SET @VIEW02 = V_VIEW02; + -- õ·ģ. + SET @VIEW03 = V_VIEW03; + -- õ·ģ. + SET @VIEW04 = V_VIEW04; + -- õ·ģ. + SET @VIEW05 = V_VIEW05; + -- õ·ģ. + SET @VIEW06 = V_VIEW06; + -- õ·ģ. + SET @VIEW07 = V_VIEW07; + -- õڰ·ģ. + SET @VIEW08 = V_VIEW08; + -- ʷݱ. + SET @HISTORY_TABLE = CONCAT('HEATANALYSIS_', DATE_FORMAT(NOW(), '%y%m')); + -- ˾ + SET @COMPANY = (SELECT COMPANY_COMPANY_ID FROM SIMCONFIG WHERE CODE = @CODE ORDER BY ID LIMIT 0, 1); + -- ԴϢ. + SET @SOURCE = (SELECT SOURCE_SOURCE_ID FROM SIMCONFIG WHERE CODE = @CODE ORDER BY ID LIMIT 0, 1); + -- ûվϢ. + SET @STATION = (SELECT STATION_STATION_ID FROM SIMCONFIG WHERE CODE = @CODE ORDER BY ID LIMIT 0, 1); + -- ֤Դݻǹ¯. + IF IFNULL(@STATION, 0) > 0 THEN + -- һˮ¶() + -- SET @FEED_WATER_UPPER_ONE = (SELECT WDGO_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- һˮ¶() + -- SET @FEED_WATER_LOWER_ONE = (SELECT WDGO_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- һˮ¶() + -- SET @BACK_WATER_UPPER_ONE = (SELECT WDCOME_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- һˮ¶() + -- SET @BACK_WATER_LOWER_ONE = (SELECT WDCOME_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- һˮѹ() + -- SET @FEED_STRESS_UPPER_ONE = (SELECT YLGO_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- һˮѹ() + -- SET @FEED_STRESS_LOWER_ONE = (SELECT YLGO_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- һˮѹ() + -- SET @BACK_STRESS_UPPER_ONE = (SELECT YLCOME_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- һˮѹ() + -- SET @BACK_STRESS_LOWER_ONE = (SELECT YLCOME_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮ¶() + SET @FEED_WATER_UPPER_TWO = (SELECT WDGO_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮ¶() + SET @FEED_WATER_LOWER_TWO = (SELECT WDGO_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮ¶() + SET @BACK_WATER_UPPER_TWO = (SELECT WDCOME_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮ¶() + SET @BACK_WATER_LOWER_TWO = (SELECT WDCOME_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮѹ() + SET @FEED_STRESS_UPPER_TWO = (SELECT YLGO_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮѹ() + SET @FEED_STRESS_LOWER_TWO = (SELECT YLGO_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮѹ() + SET @BACK_STRESS_UPPER_TWO = (SELECT YLCOME_UP FROM HEATSOURCESTATION WHERE ID = @STATION); + -- öˮѹ() + SET @BACK_STRESS_LOWER_TWO = (SELECT YLCOME_DOWN FROM HEATSOURCESTATION WHERE ID = @STATION); + -- ֤Ƿ. + -- IF @FEED_WATER_UPPER_ONE < @VIEW01 OR @FEED_WATER_LOWER_ONE > @VIEW01 THEN + -- һˮ¶Ȳ걨. + -- SET @CAVEAT = 1; + -- ELSEIF @BACK_WATER_UPPER_ONE < @VIEW02 OR @BACK_WATER_LOWER_ONE > @VIEW02 THEN + -- һˮ¶Ȳ걨. + -- SET @CAVEAT = 1; + -- ELSEIF @FEED_STRESS_UPPER_ONE < @VIEW03 OR @FEED_STRESS_LOWER_ONE > @VIEW03 THEN + -- һˮѹ걨. + -- SET @CAVEAT = 1; + -- ELSEIF @BACK_STRESS_UPPER_ONE < @VIEW04 OR @BACK_STRESS_LOWER_ONE > @VIEW04 THEN + -- һˮѹ걨. + -- SET @CAVEAT = 1; + -- ELSEIF @FEED_WATER_UPPER_TWO < @VIEW05 OR @FEED_WATER_LOWER_TWO > @VIEW05 THEN + IF @FEED_WATER_UPPER_TWO < @VIEW05 OR @FEED_WATER_LOWER_TWO > @VIEW05 THEN + -- ˮѹ걨. + SET @CAVEAT = 1; + ELSEIF @BACK_WATER_UPPER_TWO < @VIEW06 OR @BACK_WATER_LOWER_TWO > @VIEW06 THEN + -- ˮѹ걨. + SET @CAVEAT = 1; + ELSEIF @FEED_STRESS_UPPER_TWO < @VIEW07 OR @FEED_STRESS_LOWER_TWO > @VIEW07 THEN + -- ˮѹ걨. + SET @CAVEAT = 1; + ELSEIF @BACK_STRESS_UPPER_TWO < @VIEW08 OR @BACK_STRESS_LOWER_TWO > @VIEW08 THEN + -- ˮѹ걨. + SET @CAVEAT = 1; + ELSE + -- 趨ݳʼֵ. + SET @CAVEAT = 0; + END IF; + ELSE + -- һˮ¶() + SET @FEED_WATER_UPPER_ONE = (SELECT WDGO_UP FROM HEATSOURCE WHERE ID = @SOURCE); + -- һˮ¶() + SET @FEED_WATER_LOWER_ONE = (SELECT WDGO_DOWN FROM HEATSOURCE WHERE ID = @SOURCE); + -- һˮ¶() + SET @BACK_WATER_UPPER_ONE = (SELECT WDCOME_UP FROM HEATSOURCE WHERE ID = @SOURCE); + -- һˮ¶() + SET @BACK_WATER_LOWER_ONE = (SELECT WDCOME_DOWN FROM HEATSOURCE WHERE ID = @SOURCE); + -- һˮѹ() + SET @FEED_STRESS_UPPER_ONE = (SELECT YLGO_UP FROM HEATSOURCE WHERE ID = @SOURCE); + -- һˮѹ() + SET @FEED_STRESS_LOWER_ONE = (SELECT YLGO_DOWN FROM HEATSOURCE WHERE ID = @SOURCE); + -- һˮѹ() + SET @BACK_STRESS_UPPER_ONE = (SELECT YLCOME_UP FROM HEATSOURCE WHERE ID = @SOURCE); + -- һˮѹ() + SET @BACK_STRESS_LOWER_ONE = (SELECT YLCOME_DOWN FROM HEATSOURCE WHERE ID = @SOURCE); + -- ֤Ƿ. + IF @FEED_WATER_UPPER_ONE < @VIEW01 OR @FEED_WATER_LOWER_ONE > @VIEW01 THEN + -- һˮ¶Ȳ걨. + SET @CAVEAT = 1; + ELSEIF @BACK_WATER_UPPER_ONE < @VIEW02 OR @BACK_WATER_LOWER_ONE > @VIEW02 THEN + -- һˮ¶Ȳ걨. + SET @CAVEAT = 1; + ELSEIF @FEED_STRESS_UPPER_ONE < @VIEW03 OR @FEED_STRESS_LOWER_ONE > @VIEW03 THEN + -- һˮѹ걨. + SET @CAVEAT = 1; + ELSEIF @BACK_STRESS_UPPER_ONE < @VIEW04 OR @BACK_STRESS_LOWER_ONE > @VIEW04 THEN + -- һˮѹ걨. + SET @CAVEAT = 1; + ELSE + -- 趨ݳʼֵ. + SET @CAVEAT = 0; + END IF; + END IF; + -- ѯȡվһ(). + SET @VIRTUAL_FIRST_COUNT = (SELECT IFNULL(SIMBEFOR, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1); + -- ֤Ƿһݸ. + IF @VIRTUAL_FIRST_COUNT > 0 THEN + -- һˮ¶. + SET @VIEW01 = (SELECT VIEW005 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMBEFOR, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- һˮ¶. + SET @VIEW02 = (SELECT VIEW006 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMBEFOR, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- һˮѹ. + SET @VIEW03 = (SELECT VIEW007 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMBEFOR, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- һˮѹ. + SET @VIEW04 = (SELECT VIEW008 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMBEFOR, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- δѯݣʼ. + SET @VIEW01 = IFNULL(@VIEW01, 0); + -- δѯݣʼ. + SET @VIEW02 = IFNULL(@VIEW02, 0); + -- δѯݣʼ. + SET @VIEW03 = IFNULL(@VIEW03, 0); + -- δѯݣʼ. + SET @VIEW04 = IFNULL(@VIEW04, 0); + END IF; + -- ѯȡվ(). + SET @VIRTUAL_SECOND_COUNT = (SELECT IFNULL(SIMAFTER, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1); + -- ֤Ƿڶݸ. + IF @VIRTUAL_SECOND_COUNT > 0 THEN + -- ¶ˮ¶. + SET @VIEW05 = (SELECT VIEW009 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMAFTER, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- ¶ˮ¶. + SET @VIEW06 = (SELECT VIEW010 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMAFTER, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- ¶ˮѹ. + SET @VIEW07 = (SELECT VIEW011 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMAFTER, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- ¶ˮѹ. + SET @VIEW08 = (SELECT VIEW012 FROM HEATANALYSIS WHERE SIM = (SELECT IFNULL(SIMAFTER, 0) FROM JOINSIMCONFIG WHERE SIM = @SIM AND LABEL = 1)); + -- δѯݣʼ. + SET @VIEW05 = IFNULL(@VIEW05, 0); + -- δѯݣʼ. + SET @VIEW06 = IFNULL(@VIEW06, 0); + -- δѯݣʼ. + SET @VIEW07 = IFNULL(@VIEW07, 0); + -- δѯݣʼ. + SET @VIEW08 = IFNULL(@VIEW08, 0); + END IF; + -- ʵʱʷ. + DELETE FROM HEATANALYSIS WHERE CODE = @CODE; + -- ʵʱ. + INSERT INTO HEATANALYSIS(SIM, CODE, VIEW001, VIEW002, VIEW004, DATATIME, CAVEAT, VIEW005, VIEW006, VIEW007, VIEW008, VIEW009, VIEW010, VIEW011, VIEW012, DEL_FLAG) VALUES(@SIM, @CODE, @COMPANY, @SOURCE, @STATION, @DATATIME, @CAVEAT, @VIEW01, @VIEW02, @VIEW03, @VIEW04, @VIEW05, @VIEW06, @VIEW07, @VIEW08, 0); + -- 洢ʷԤ. + SET @HISTORY_DATA_SQL = CONCAT('INSERT INTO ', @HISTORY_TABLE, '(SIM, CODE, VIEW001, VIEW002, VIEW004, DATATIME, CAVEAT, VIEW005, VIEW006, VIEW007, VIEW008, VIEW009, VIEW010, VIEW011, VIEW012, DEL_FLAG) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0)'); + -- Ԥ. + PREPARE INSERT_HEATANALY_HISTORY FROM @HISTORY_DATA_SQL; + -- ִԤ. + EXECUTE INSERT_HEATANALY_HISTORY USING @SIM, @CODE, @COMPANY, @SOURCE, @STATION, @DATATIME, @CAVEAT, @VIEW01, @VIEW02, @VIEW03, @VIEW04, @VIEW05, @VIEW06, @VIEW07, @VIEW08; + -- ͷԤ. + DEALLOCATE PREPARE INSERT_HEATANALY_HISTORY; + -- վ㿨. + SET @VIRTUAL_STATION_SIM = (SELECT SIM FROM JOINSIMCONFIG WHERE SIMBEFOR = @SIM AND LABEL = 2 ORDER BY ID LIMIT 0, 1); + -- ֤ǷȡվϢ. + IF IFNULL(@VIRTUAL_STATION_SIM, 0) > 0 THEN + -- ʷ. + DELETE FROM HEATANALYSIS WHERE SIM = @VIRTUAL_STATION_SIM; + -- վ. + SET @VIRTUAL_STATION_CODE = (SELECT CODE FROM SIMCONFIG WHERE SIM = @VIRTUAL_STATION_SIM LIMIT 0, 1); + -- վ㹫˾. + SET @VIRTUAL_STATION_COMPANY = (SELECT COMPANY_COMPANY_ID FROM SIMCONFIG WHERE SIM = @VIRTUAL_STATION_SIM LIMIT 0, 1); + -- վԴ. + SET @VIRTUAL_STATION_SOURCE = (SELECT SOURCE_SOURCE_ID FROM SIMCONFIG WHERE SIM = @VIRTUAL_STATION_SIM LIMIT 0, 1); + -- վ㻻վ. + SET @VIRTUAL_STATION_STATION = (SELECT STATION_STATION_ID FROM SIMCONFIG WHERE SIM = @VIRTUAL_STATION_SIM LIMIT 0, 1); + -- վվ㿨. + SET @VIRTUAL_STATION_SECOND_SIM = (SELECT SIMAFTER FROM JOINSIMCONFIG WHERE SIM = @VIRTUAL_STATION_SIM); + -- ʼˮ¶. + SET @VIEW05 = 0; + -- ʼˮ¶. + SET @VIEW06 = 0; + -- ʼˮ¶ѹ. + SET @VIEW07 = 0; + -- ʼˮ¶ѹ. + SET @VIEW08 = 0; + -- ֤Ƿڶݳȡ. + IF IFNULL(@VIRTUAL_STATION_SECOND_SIM, 0) > 0 THEN + -- öˮ¶. + SET @VIEW05 = (SELECT VIEW009 FROM HEATANALYSIS WHERE SIM = @VIRTUAL_STATION_SECOND_SIM); + -- öˮ¶. + SET @VIEW06 = (SELECT VIEW010 FROM HEATANALYSIS WHERE SIM = @VIRTUAL_STATION_SECOND_SIM); + -- öˮѹ. + SET @VIEW07 = (SELECT VIEW011 FROM HEATANALYSIS WHERE SIM = @VIRTUAL_STATION_SECOND_SIM); + -- öˮѹ. + SET @VIEW08 = (SELECT VIEW012 FROM HEATANALYSIS WHERE SIM = @VIRTUAL_STATION_SECOND_SIM); + -- δѯݣʼ. + SET @VIEW05 = IFNULL(@VIEW05, 0); + -- δѯݣʼ. + SET @VIEW06 = IFNULL(@VIEW06, 0); + -- δѯݣʼ. + SET @VIEW07 = IFNULL(@VIEW07, 0); + -- δѯݣʼ. + SET @VIEW08 = IFNULL(@VIEW08, 0); + END IF; + -- ʵʱ. + INSERT INTO HEATANALYSIS(SIM, CODE, VIEW001, VIEW002, VIEW004, DATATIME, CAVEAT, VIEW005, VIEW006, VIEW007, VIEW008, VIEW009, VIEW010, VIEW011, VIEW012, DEL_FLAG) VALUES(@VIRTUAL_STATION_SIM, @VIRTUAL_STATION_CODE, @VIRTUAL_STATION_COMPANY, @VIRTUAL_STATION_SOURCE, @VIRTUAL_STATION_STATION, @DATATIME, @CAVEAT, @VIEW01, @VIEW02, @VIEW03, @VIEW04, @VIEW05, @VIEW06, @VIEW07, @VIEW08, 0); + -- 洢ʷԤ. + SET @VIRTUAL_HISTORY_DATA_SQL = CONCAT('INSERT INTO ', @HISTORY_TABLE, '(SIM, CODE, VIEW001, VIEW002, VIEW004, DATATIME, CAVEAT, VIEW005, VIEW006, VIEW007, VIEW008, VIEW009, VIEW010, VIEW011, VIEW012, DEL_FLAG) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0)'); + -- Ԥ. + PREPARE INSERT_VIRTUAL_HEATANALY_HISTORY FROM @VIRTUAL_HISTORY_DATA_SQL; + -- ִԤ. + EXECUTE INSERT_VIRTUAL_HEATANALY_HISTORY USING @VIRTUAL_STATION_SIM, @VIRTUAL_STATION_CODE, @VIRTUAL_STATION_COMPANY, @VIRTUAL_STATION_SOURCE, @VIRTUAL_STATION_STATION, @DATATIME, @CAVEAT, @VIEW01, @VIEW02, @VIEW03, @VIEW04, @VIEW05, @VIEW06, @VIEW07, @VIEW08; + -- ͷԤ. + DEALLOCATE PREPARE INSERT_VIRTUAL_HEATANALY_HISTORY; + END IF; +END; + +-- ѯվƺ. +DROP FUNCTION IF EXISTS F_Q_D_STATIONCONVERT; +-- ѯվƺ. +CREATE FUNCTION F_Q_D_STATIONCONVERT(P_SIM VARCHAR(50)) RETURNS VARCHAR(300) +BEGIN + -- ѯԴվ/վ. + SET @STATION = (SELECT IFNULL(C.STATION_NAME, B.SOURCE_NAME) FROM SIMCONFIG A JOIN HEATSOURCE B ON A.SOURCE_SOURCE_ID = B.ID LEFT JOIN HEATSOURCESTATION C ON A.STATION_STATION_ID = C.ID WHERE SIM = P_SIM); + -- زѯ. + RETURN @STATION; +END; + +CALL P_Q_D_HEATANALYSIS('242310100', '13104417363', DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s'), 60.2, 30.1, 0.61, 0.12, 30.5, 25.8, 0.2, 0.1); + +UPDATE HEATSOURCE SET WDGO_UP = 80, WDGO_DOWN = 30, WDCOME_UP = 80, WDCOME_DOWN = 20, YLGO_UP = 1.6, YLGO_DOWN = 0, YLCOME_UP = 1.6, YLCOME_DOWN = 0; +UPDATE HEATSOURCESTATION SET WDGO_UP = 80, WDGO_DOWN = 30, WDCOME_UP = 80, WDCOME_DOWN = 20, YLGO_UP = 1.6, YLGO_DOWN = 0, YLCOME_UP = 1.6, YLCOME_DOWN = 0; \ No newline at end of file diff --git a/psgr/WebContent/WEB-INF/web.xml b/psgr/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..e6eb914 --- /dev/null +++ b/psgr/WebContent/WEB-INF/web.xml @@ -0,0 +1,36 @@ + + + Heat Supply Data Collection + + + socket + 20000 + + + + com.blxc.socket.server.listener.SocketListener + + + + mvc + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath:application.xml, classpath:config.xml + + 1 + + + mvc + *.do + + + + index.html + index.htm + index.jsp + default.html + default.htm + default.jsp + + \ No newline at end of file diff --git a/psgr/src/application.xml b/psgr/src/application.xml new file mode 100644 index 0000000..8f24326 --- /dev/null +++ b/psgr/src/application.xml @@ -0,0 +1,35 @@ + + + + Spring Configuration + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/psgr/src/com/blxc/business/bean/AnalysisRule.java b/psgr/src/com/blxc/business/bean/AnalysisRule.java new file mode 100644 index 0000000..730270c --- /dev/null +++ b/psgr/src/com/blxc/business/bean/AnalysisRule.java @@ -0,0 +1,22 @@ +package com.blxc.business.bean; + +public class AnalysisRule { + + private String sim; + private String code; + + public String getCode() { + return code; + } + public void setCode(String code) { + this.code = code; + } + public String getSim() { + return sim; + } + public void setSim(String sim) { + this.sim = sim; + } + + +} diff --git a/psgr/src/com/blxc/business/bean/HeatAnalyze.java b/psgr/src/com/blxc/business/bean/HeatAnalyze.java new file mode 100644 index 0000000..cd644e4 --- /dev/null +++ b/psgr/src/com/blxc/business/bean/HeatAnalyze.java @@ -0,0 +1,118 @@ +package com.blxc.business.bean; + +public class HeatAnalyze { + + private String code; + private String caveat; + private String datatime; + private String sim; + private String view001; + private String view002; + private String view003; + private String view004; + private String view005; + private String view006; + private String view007; + private String view008; + private String view009; + private String view010; + private String view011; + private String view012; + + public String getCode() { + return code; + } + public void setCode(String code) { + this.code = code; + } + public String getCaveat() { + return caveat; + } + public void setCaveat(String caveat) { + this.caveat = caveat; + } + public String getDatatime() { + return datatime; + } + public void setDatatime(String datatime) { + this.datatime = datatime; + } + public String getSim() { + return sim; + } + public void setSim(String sim) { + this.sim = sim; + } + public String getView001() { + return view001; + } + public void setView001(String view001) { + this.view001 = view001; + } + public String getView002() { + return view002; + } + public void setView002(String view002) { + this.view002 = view002; + } + public String getView004() { + return view004; + } + public void setView004(String view004) { + this.view004 = view004; + } + public String getView005() { + return view005; + } + public void setView005(String view005) { + this.view005 = view005; + } + public String getView006() { + return view006; + } + public void setView006(String view006) { + this.view006 = view006; + } + public String getView007() { + return view007; + } + public void setView007(String view007) { + this.view007 = view007; + } + public String getView008() { + return view008; + } + public void setView008(String view008) { + this.view008 = view008; + } + public String getView009() { + return view009; + } + public void setView009(String view009) { + this.view009 = view009; + } + public String getView010() { + return view010; + } + public void setView010(String view010) { + this.view010 = view010; + } + public String getView011() { + return view011; + } + public void setView011(String view011) { + this.view011 = view011; + } + public String getView012() { + return view012; + } + public void setView012(String view012) { + this.view012 = view012; + } + public String getView003() { + return view003; + } + public void setView003(String view003) { + this.view003 = view003; + } +} diff --git a/psgr/src/com/blxc/business/bean/Instrucation.java b/psgr/src/com/blxc/business/bean/Instrucation.java new file mode 100644 index 0000000..66974fb --- /dev/null +++ b/psgr/src/com/blxc/business/bean/Instrucation.java @@ -0,0 +1,21 @@ +package com.blxc.business.bean; + +public class Instrucation { + private String content; //. + private String instrucation; //˵. + + public String getContent() { + return content; + } + public void setContent(String content) { + this.content = content; + } + public String getInstrucation() { + return instrucation; + } + public void setInstrucation(String instrucation) { + this.instrucation = instrucation; + } + + +} diff --git a/psgr/src/com/blxc/business/dao/AnalysisRuleDao.java b/psgr/src/com/blxc/business/dao/AnalysisRuleDao.java new file mode 100644 index 0000000..0ae0824 --- /dev/null +++ b/psgr/src/com/blxc/business/dao/AnalysisRuleDao.java @@ -0,0 +1,8 @@ +package com.blxc.business.dao; + +import com.blxc.business.bean.AnalysisRule; +import com.blxc.common.annotation.MyBatis; +import com.blxc.common.dao.CommonDao; + +@MyBatis +public interface AnalysisRuleDao extends CommonDao {} diff --git a/psgr/src/com/blxc/business/dao/HeatAnalyzeDao.java b/psgr/src/com/blxc/business/dao/HeatAnalyzeDao.java new file mode 100644 index 0000000..3824c80 --- /dev/null +++ b/psgr/src/com/blxc/business/dao/HeatAnalyzeDao.java @@ -0,0 +1,8 @@ +package com.blxc.business.dao; + +import com.blxc.business.bean.HeatAnalyze; +import com.blxc.common.annotation.MyBatis; +import com.blxc.common.dao.CommonDao; + +@MyBatis +public interface HeatAnalyzeDao extends CommonDao {} diff --git a/psgr/src/com/blxc/business/dao/HeatCollectDao.java b/psgr/src/com/blxc/business/dao/HeatCollectDao.java new file mode 100644 index 0000000..33a2ee6 --- /dev/null +++ b/psgr/src/com/blxc/business/dao/HeatCollectDao.java @@ -0,0 +1,8 @@ +package com.blxc.business.dao; + +import com.blxc.business.bean.HeatAnalyze; +import com.blxc.common.annotation.MyBatis; +import com.blxc.common.dao.CommonDao; + +@MyBatis +public interface HeatCollectDao extends CommonDao {} diff --git a/psgr/src/com/blxc/business/dao/InstrucationDao.java b/psgr/src/com/blxc/business/dao/InstrucationDao.java new file mode 100644 index 0000000..c76421e --- /dev/null +++ b/psgr/src/com/blxc/business/dao/InstrucationDao.java @@ -0,0 +1,8 @@ +package com.blxc.business.dao; + +import com.blxc.business.bean.Instrucation; +import com.blxc.common.annotation.MyBatis; +import com.blxc.common.dao.CommonDao; + +@MyBatis +public interface InstrucationDao extends CommonDao {} diff --git a/psgr/src/com/blxc/business/service/HeatAnalyzeService.java b/psgr/src/com/blxc/business/service/HeatAnalyzeService.java new file mode 100644 index 0000000..0f3ea91 --- /dev/null +++ b/psgr/src/com/blxc/business/service/HeatAnalyzeService.java @@ -0,0 +1,10 @@ +package com.blxc.business.service; + +import org.springframework.stereotype.Service; + +import com.blxc.business.bean.HeatAnalyze; +import com.blxc.business.dao.HeatAnalyzeDao; +import com.blxc.common.service.CommonService; + +@Service +public class HeatAnalyzeService extends CommonService {} diff --git a/psgr/src/com/blxc/business/service/HeatCollectService.java b/psgr/src/com/blxc/business/service/HeatCollectService.java new file mode 100644 index 0000000..71c35cb --- /dev/null +++ b/psgr/src/com/blxc/business/service/HeatCollectService.java @@ -0,0 +1,10 @@ +package com.blxc.business.service; + +import org.springframework.stereotype.Service; + +import com.blxc.business.bean.HeatAnalyze; +import com.blxc.business.dao.HeatCollectDao; +import com.blxc.common.service.SqlServerService; + +@Service +public class HeatCollectService extends SqlServerService {} diff --git a/psgr/src/com/blxc/business/service/InstrucationService.java b/psgr/src/com/blxc/business/service/InstrucationService.java new file mode 100644 index 0000000..8a1378b --- /dev/null +++ b/psgr/src/com/blxc/business/service/InstrucationService.java @@ -0,0 +1,10 @@ +package com.blxc.business.service; + +import org.springframework.stereotype.Service; + +import com.blxc.business.bean.Instrucation; +import com.blxc.business.dao.InstrucationDao; +import com.blxc.common.service.CommonService; + +@Service +public class InstrucationService extends CommonService {} diff --git a/psgr/src/com/blxc/common/annotation/MultipleDataSourceAspectAdvice.java b/psgr/src/com/blxc/common/annotation/MultipleDataSourceAspectAdvice.java new file mode 100644 index 0000000..687640a --- /dev/null +++ b/psgr/src/com/blxc/common/annotation/MultipleDataSourceAspectAdvice.java @@ -0,0 +1,28 @@ +package com.blxc.common.annotation; + +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.springframework.stereotype.Component; + +import com.blxc.common.service.SqlServerService; +import com.blxc.common.service.CommonService; +import com.blxc.util.Global; +import com.blxc.util.MultipleDataSource; + +@Aspect +@Component +public class MultipleDataSourceAspectAdvice { + @Around("execution(* com.blxc..*Service.*(..))") + public Object doAround(ProceedingJoinPoint jp) throws Throwable { + if (jp.getTarget() instanceof CommonService) { + MultipleDataSource.setDataSourceKey(Global.DATA_SOURCE_MYSQL); +// } else if (jp.getTarget() instanceof SqlServerService) { +// MultipleDataSource.setDataSourceKey(Global.DATA_SOURCE_SQLSERVER); + } + else { + MultipleDataSource.removeDataSourceKey(); + } + return jp.proceed(); + } +} diff --git a/psgr/src/com/blxc/common/annotation/MyBatis.java b/psgr/src/com/blxc/common/annotation/MyBatis.java new file mode 100644 index 0000000..d772277 --- /dev/null +++ b/psgr/src/com/blxc/common/annotation/MyBatis.java @@ -0,0 +1,17 @@ +package com.blxc.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import org.springframework.stereotype.Component; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +@Documented +@Component +public @interface MyBatis { + String value() default ""; +} \ No newline at end of file diff --git a/psgr/src/com/blxc/common/dao/CommonDao.java b/psgr/src/com/blxc/common/dao/CommonDao.java new file mode 100644 index 0000000..b985db2 --- /dev/null +++ b/psgr/src/com/blxc/common/dao/CommonDao.java @@ -0,0 +1,19 @@ +package com.blxc.common.dao; + +import java.util.List; + +public interface CommonDao { + public int save(T object); + + public int edit(T object); + public int edit(String id); + + public int clear(T object); + public int clear(String id); + + public T show(T object); + public T show(String id); + + public List list(); + public List list(T object); +} diff --git a/psgr/src/com/blxc/common/service/CommonService.java b/psgr/src/com/blxc/common/service/CommonService.java new file mode 100644 index 0000000..6255382 --- /dev/null +++ b/psgr/src/com/blxc/common/service/CommonService.java @@ -0,0 +1,49 @@ +package com.blxc.common.service; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + +import com.blxc.common.dao.CommonDao; + +public class CommonService, T> { + + @Autowired + private D dao; + + public int save(T object) { + return dao.save(object); + } + + public int edit(T object) { + return dao.edit(object); + } + + public int edit(String id) { + return dao.edit(id); + } + + public int clear(T object) { + return dao.clear(object); + } + + public int clear(String id) { + return dao.clear(id); + } + + public T show(T object) { + return dao.show(object); + } + + public T show(String id) { + return dao.show(id); + } + + public List list() { + return dao.list(); + } + + public List list(T object) { + return dao.list(object); + } +} \ No newline at end of file diff --git a/psgr/src/com/blxc/common/service/SqlServerService.java b/psgr/src/com/blxc/common/service/SqlServerService.java new file mode 100644 index 0000000..5340914 --- /dev/null +++ b/psgr/src/com/blxc/common/service/SqlServerService.java @@ -0,0 +1,49 @@ +package com.blxc.common.service; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + +import com.blxc.common.dao.CommonDao; + +public class SqlServerService, T> { + + @Autowired + private D dao; + + public int save(T object) { + return dao.save(object); + } + + public int edit(T object) { + return dao.edit(object); + } + + public int edit(String id) { + return dao.edit(id); + } + + public int clear(T object) { + return dao.clear(object); + } + + public int clear(String id) { + return dao.clear(id); + } + + public T show(T object) { + return dao.show(object); + } + + public T show(String id) { + return dao.show(id); + } + + public List list() { + return dao.list(); + } + + public List list(T object) { + return dao.list(object); + } +} diff --git a/psgr/src/com/blxc/common/util/JdbcInstance.java b/psgr/src/com/blxc/common/util/JdbcInstance.java new file mode 100644 index 0000000..7c5de6e --- /dev/null +++ b/psgr/src/com/blxc/common/util/JdbcInstance.java @@ -0,0 +1,148 @@ +package com.blxc.common.util; + +import java.sql.SQLException; +import java.util.List; + +import org.mybatis.spring.SqlSessionTemplate; +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; + +public class JdbcInstance { + private static JdbcInstance instance; + private static SqlSessionTemplate sql; + private static ApplicationContext ctx; + + /** + *ģʽ˽л췽 + **/ + private JdbcInstance(){}; + + /** + * ṩʸ÷. + * @return + * @throws SQLException + **/ + public static JdbcInstance instance() throws SQLException { + if(instance == null) { + instance = new JdbcInstance(); + ctx = new ClassPathXmlApplicationContext("classpath:config.xml"); + sql = (SqlSessionTemplate)ctx.getBean("sqlSessionTemplate"); + } + return instance; + } + + /** + * . + * @param name + * @return + * @throws Exception + **/ + public static int save(String name)throws Exception{ + JdbcInstance.instance(); + return sql.insert(name); + } + + /** + * . + * @param name + * @param object + * @return + * @throws Exception + **/ + public static int save(String name, Object object)throws Exception{ + JdbcInstance.instance(); + return sql.insert(name, object); + } + + /** + * ɾ. + * @param name + * @return + * @throws Exception + **/ + public static int clear(String name)throws Exception{ + JdbcInstance.instance(); + return sql.delete(name); + } + + /** + * ɾ. + * @param name + * @param object + * @return + * @throws Exception + **/ + public static int clear(String name, Object object)throws Exception{ + JdbcInstance.instance(); + return sql.delete(name, object); + } + + /** + * ޸. + * @param name + * @return + * @throws Exception + **/ + public static int edit(String name)throws Exception { + JdbcInstance.instance(); + return sql.update(name); + } + + /** + * ޸. + * @param name + * @param object + * @return + * @throws Exception + **/ + public static int edit(String name, Object object)throws Exception { + JdbcInstance.instance(); + return sql.update(name, object); + } + + /** + * ѯ. + * @param name + * @return + * @throws SQLException + **/ + public static Object show(String name) throws SQLException { + JdbcInstance.instance(); + return sql.selectOne(name); + } + + /** + * ѯ. + * @param name + * @param object + * @return + * @throws SQLException + **/ + public static Object show(String name, Object object) throws SQLException { + JdbcInstance.instance(); + return sql.selectOne(name, object); + } + + /** + * ѯ. + * @param name + * @return + * @throws SQLException + **/ + public static List select(String name) throws SQLException { + JdbcInstance.instance(); + return sql.selectList(name); + } + + /** + * ѯ. + * @param name + * @param object + * @return + * @throws SQLException + **/ + public static List select(String name, Object object) throws SQLException { + JdbcInstance.instance(); + return sql.selectList(name, object); + } +} diff --git a/psgr/src/com/blxc/mapper/analysisRule.xml b/psgr/src/com/blxc/mapper/analysisRule.xml new file mode 100644 index 0000000..9d5e864 --- /dev/null +++ b/psgr/src/com/blxc/mapper/analysisRule.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/psgr/src/com/blxc/mapper/heatAnalyze.xml b/psgr/src/com/blxc/mapper/heatAnalyze.xml new file mode 100644 index 0000000..7d5026a --- /dev/null +++ b/psgr/src/com/blxc/mapper/heatAnalyze.xml @@ -0,0 +1,19 @@ + + + + + CALL P_Q_D_HEATANALYSIS_PACKAGE(#{code}, #{sim}, #{datatime}, #{view005}, #{view006}, #{view007}, #{view008}, #{view009}, #{view010}, #{view011}, #{view012}) + + + + + + + + + + \ No newline at end of file diff --git a/psgr/src/com/blxc/mapper/heatCollect.xml b/psgr/src/com/blxc/mapper/heatCollect.xml new file mode 100644 index 0000000..4ebf3f3 --- /dev/null +++ b/psgr/src/com/blxc/mapper/heatCollect.xml @@ -0,0 +1,11 @@ + + + + + + + DELETE FROM BL_T_T_O_DEVICEDATA WHERE NAME = #{sim} + + \ No newline at end of file diff --git a/psgr/src/com/blxc/mapper/instrucation.xml b/psgr/src/com/blxc/mapper/instrucation.xml new file mode 100644 index 0000000..e2c98d4 --- /dev/null +++ b/psgr/src/com/blxc/mapper/instrucation.xml @@ -0,0 +1,7 @@ + + + + + CALL P_Q_D_DATACOLLECT(#{content}, #{instrucation}) + + \ No newline at end of file diff --git a/psgr/src/com/blxc/socket/server/bean/Client.java b/psgr/src/com/blxc/socket/server/bean/Client.java new file mode 100644 index 0000000..14b4c63 --- /dev/null +++ b/psgr/src/com/blxc/socket/server/bean/Client.java @@ -0,0 +1,41 @@ +package com.blxc.socket.server.bean; + +public class Client { + + private String address; //ַ. + private String code; //豸. + private String mobile; //ֻ. + private String port; //˿. + private String order; //ָ. + + public String getAddress() { + return address; + } + public void setAddress(String address) { + this.address = address; + } + public String getPort() { + return port; + } + public String getCode() { + return code; + } + public void setCode(String code) { + this.code = code; + } + public String getMobile() { + return mobile; + } + public void setMobile(String mobile) { + this.mobile = mobile; + } + public String getOrder() { + return order; + } + public void setOrder(String order) { + this.order = order; + } + public void setPort(String port) { + this.port = port; + } +} \ No newline at end of file diff --git a/psgr/src/com/blxc/socket/server/listener/SocketListener.java b/psgr/src/com/blxc/socket/server/listener/SocketListener.java new file mode 100644 index 0000000..6415fd9 --- /dev/null +++ b/psgr/src/com/blxc/socket/server/listener/SocketListener.java @@ -0,0 +1,23 @@ +package com.blxc.socket.server.listener; + +import javax.servlet.ServletContext; +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; + +import com.blxc.socket.server.service.SocketServer; + +public class SocketListener implements ServletContextListener{ + + @Override + public void contextDestroyed(ServletContextEvent event) {} + + @Override + public void contextInitialized(ServletContextEvent event) { + + System.out.println(""); + ServletContext context = event.getServletContext(); + String socket = context.getInitParameter("socket"); + SocketServer server = new SocketServer(Integer.valueOf(socket)); + new Thread(server).start(); + } +} \ No newline at end of file diff --git a/psgr/src/com/blxc/socket/server/service/MultiSocket.java b/psgr/src/com/blxc/socket/server/service/MultiSocket.java new file mode 100644 index 0000000..676c118 --- /dev/null +++ b/psgr/src/com/blxc/socket/server/service/MultiSocket.java @@ -0,0 +1,94 @@ +package com.blxc.socket.server.service; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.Socket; +import java.util.Map; + +import com.blxc.socket.server.bean.Client; +import com.blxc.util.convert.DataHandle; +import com.blxc.util.convert.Recordable; + +public class MultiSocket implements Runnable { + + private int size; + private byte[] buffer; + private Client client; + private Socket socket; + private InputStream reader; + private OutputStream writer; + private Map mclient; + + public MultiSocket(Socket socket, Map mclient){ + //ͻ˼. + this.mclient = mclient; + //óӼ. + this.socket = socket; + //ÿͻζ. + this.client = new Client(); + //ÿͻ˵ַ. + client.setAddress(socket.getInetAddress().getHostAddress()); + //ÿͻ˶˿. + client.setPort(String.valueOf(socket.getPort())); + //¼־. + Recordable.record("ͻӣ" + client.getAddress() + "" + client.getPort() + "."); + } + + /** + * رͨš. + **/ + public void close(){ + try { + if(writer != null) + writer.close(); + if(reader!=null) + reader.close(); + if(socket!=null) + socket.close(); + //ϿĿͻ. + mclient.remove(client.getAddress() + ":" + client.getPort()); + //¼Ͽҽӿͻ. + Recordable.record("ͻ˶Ͽӣ" + client.getAddress() + "" + client.getPort() + "."); + } catch (IOException e) { + e.printStackTrace(); + } + } + + private void initialize()throws IOException{ + this.buffer = new byte[1024]; + this.reader = socket.getInputStream(); + this.writer = socket.getOutputStream(); + } + + public void run() { + try { + this.initialize(); + while(true){ + if((size = reader.read(buffer))>=0){ + String receive = new String(buffer, 0, size); + String analysis = DataHandle.toHexString(buffer, size); + DataHandle.toParseData(writer, client, receive, analysis, size); + } else { + this.close(); + break; + } + } + } catch (IOException e) { + e.printStackTrace(); + } finally { + this.close(); + } + } + + public Client getClient() { + return client; + } + public Socket getSocket() { + return socket; + } + public OutputStream getWriter() { + return writer; + } + +} \ No newline at end of file diff --git a/psgr/src/com/blxc/socket/server/service/SocketServer.java b/psgr/src/com/blxc/socket/server/service/SocketServer.java new file mode 100644 index 0000000..6eefa0a --- /dev/null +++ b/psgr/src/com/blxc/socket/server/service/SocketServer.java @@ -0,0 +1,41 @@ +package com.blxc.socket.server.service; + +import java.io.IOException; +import java.net.ServerSocket; +import java.net.Socket; +import java.util.Map; + +import com.blxc.util.ClientCollect; + +public class SocketServer implements Runnable{ + private ServerSocket server; + private Map mclient; + + /** + * SOCKET + * @param serPort:˿. + * @param interval:ʱʱ(). + * @throws IOException + **/ + public SocketServer(int serPort){ + try { + this.server = new ServerSocket(serPort); + this.mclient = ClientCollect.instance().getClient(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + public void run() { + try { + while(true){ + Socket socket = server.accept(); + MultiSocket multi = new MultiSocket(socket, mclient); + new Thread(multi).start(); + mclient.put(multi.getClient().getAddress() + ":" + multi.getClient().getPort(), multi); + } + } catch (IOException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/psgr/src/com/blxc/util/CRC16Util.java b/psgr/src/com/blxc/util/CRC16Util.java new file mode 100644 index 0000000..5184123 --- /dev/null +++ b/psgr/src/com/blxc/util/CRC16Util.java @@ -0,0 +1,140 @@ +package com.blxc.util; + +import java.math.BigInteger; + +public class CRC16Util { + static byte[] crc16_tab_h = { (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, (byte) 0x81, (byte) 0x40, (byte) 0x01, (byte) 0xC0, + (byte) 0x80, (byte) 0x41, (byte) 0x01, (byte) 0xC0, (byte) 0x80, (byte) 0x41, (byte) 0x00, (byte) 0xC1, + (byte) 0x81, (byte) 0x40 }; + + static byte[] crc16_tab_l = { (byte) 0x00, (byte) 0xC0, (byte) 0xC1, (byte) 0x01, (byte) 0xC3, (byte) 0x03, + (byte) 0x02, (byte) 0xC2, (byte) 0xC6, (byte) 0x06, (byte) 0x07, (byte) 0xC7, (byte) 0x05, (byte) 0xC5, + (byte) 0xC4, (byte) 0x04, (byte) 0xCC, (byte) 0x0C, (byte) 0x0D, (byte) 0xCD, (byte) 0x0F, (byte) 0xCF, + (byte) 0xCE, (byte) 0x0E, (byte) 0x0A, (byte) 0xCA, (byte) 0xCB, (byte) 0x0B, (byte) 0xC9, (byte) 0x09, + (byte) 0x08, (byte) 0xC8, (byte) 0xD8, (byte) 0x18, (byte) 0x19, (byte) 0xD9, (byte) 0x1B, (byte) 0xDB, + (byte) 0xDA, (byte) 0x1A, (byte) 0x1E, (byte) 0xDE, (byte) 0xDF, (byte) 0x1F, (byte) 0xDD, (byte) 0x1D, + (byte) 0x1C, (byte) 0xDC, (byte) 0x14, (byte) 0xD4, (byte) 0xD5, (byte) 0x15, (byte) 0xD7, (byte) 0x17, + (byte) 0x16, (byte) 0xD6, (byte) 0xD2, (byte) 0x12, (byte) 0x13, (byte) 0xD3, (byte) 0x11, (byte) 0xD1, + (byte) 0xD0, (byte) 0x10, (byte) 0xF0, (byte) 0x30, (byte) 0x31, (byte) 0xF1, (byte) 0x33, (byte) 0xF3, + (byte) 0xF2, (byte) 0x32, (byte) 0x36, (byte) 0xF6, (byte) 0xF7, (byte) 0x37, (byte) 0xF5, (byte) 0x35, + (byte) 0x34, (byte) 0xF4, (byte) 0x3C, (byte) 0xFC, (byte) 0xFD, (byte) 0x3D, (byte) 0xFF, (byte) 0x3F, + (byte) 0x3E, (byte) 0xFE, (byte) 0xFA, (byte) 0x3A, (byte) 0x3B, (byte) 0xFB, (byte) 0x39, (byte) 0xF9, + (byte) 0xF8, (byte) 0x38, (byte) 0x28, (byte) 0xE8, (byte) 0xE9, (byte) 0x29, (byte) 0xEB, (byte) 0x2B, + (byte) 0x2A, (byte) 0xEA, (byte) 0xEE, (byte) 0x2E, (byte) 0x2F, (byte) 0xEF, (byte) 0x2D, (byte) 0xED, + (byte) 0xEC, (byte) 0x2C, (byte) 0xE4, (byte) 0x24, (byte) 0x25, (byte) 0xE5, (byte) 0x27, (byte) 0xE7, + (byte) 0xE6, (byte) 0x26, (byte) 0x22, (byte) 0xE2, (byte) 0xE3, (byte) 0x23, (byte) 0xE1, (byte) 0x21, + (byte) 0x20, (byte) 0xE0, (byte) 0xA0, (byte) 0x60, (byte) 0x61, (byte) 0xA1, (byte) 0x63, (byte) 0xA3, + (byte) 0xA2, (byte) 0x62, (byte) 0x66, (byte) 0xA6, (byte) 0xA7, (byte) 0x67, (byte) 0xA5, (byte) 0x65, + (byte) 0x64, (byte) 0xA4, (byte) 0x6C, (byte) 0xAC, (byte) 0xAD, (byte) 0x6D, (byte) 0xAF, (byte) 0x6F, + (byte) 0x6E, (byte) 0xAE, (byte) 0xAA, (byte) 0x6A, (byte) 0x6B, (byte) 0xAB, (byte) 0x69, (byte) 0xA9, + (byte) 0xA8, (byte) 0x68, (byte) 0x78, (byte) 0xB8, (byte) 0xB9, (byte) 0x79, (byte) 0xBB, (byte) 0x7B, + (byte) 0x7A, (byte) 0xBA, (byte) 0xBE, (byte) 0x7E, (byte) 0x7F, (byte) 0xBF, (byte) 0x7D, (byte) 0xBD, + (byte) 0xBC, (byte) 0x7C, (byte) 0xB4, (byte) 0x74, (byte) 0x75, (byte) 0xB5, (byte) 0x77, (byte) 0xB7, + (byte) 0xB6, (byte) 0x76, (byte) 0x72, (byte) 0xB2, (byte) 0xB3, (byte) 0x73, (byte) 0xB1, (byte) 0x71, + (byte) 0x70, (byte) 0xB0, (byte) 0x50, (byte) 0x90, (byte) 0x91, (byte) 0x51, (byte) 0x93, (byte) 0x53, + (byte) 0x52, (byte) 0x92, (byte) 0x96, (byte) 0x56, (byte) 0x57, (byte) 0x97, (byte) 0x55, (byte) 0x95, + (byte) 0x94, (byte) 0x54, (byte) 0x9C, (byte) 0x5C, (byte) 0x5D, (byte) 0x9D, (byte) 0x5F, (byte) 0x9F, + (byte) 0x9E, (byte) 0x5E, (byte) 0x5A, (byte) 0x9A, (byte) 0x9B, (byte) 0x5B, (byte) 0x99, (byte) 0x59, + (byte) 0x58, (byte) 0x98, (byte) 0x88, (byte) 0x48, (byte) 0x49, (byte) 0x89, (byte) 0x4B, (byte) 0x8B, + (byte) 0x8A, (byte) 0x4A, (byte) 0x4E, (byte) 0x8E, (byte) 0x8F, (byte) 0x4F, (byte) 0x8D, (byte) 0x4D, + (byte) 0x4C, (byte) 0x8C, (byte) 0x44, (byte) 0x84, (byte) 0x85, (byte) 0x45, (byte) 0x87, (byte) 0x47, + (byte) 0x46, (byte) 0x86, (byte) 0x82, (byte) 0x42, (byte) 0x43, (byte) 0x83, (byte) 0x41, (byte) 0x81, + (byte) 0x80, (byte) 0x40 }; + + /** + * CRC16У Ľӿ + * + * @param data Ҫ + * @return CRC16Уֵ + */ + public static int calcCrc16(byte[] data) { + return calcCrc16(data, 0, data.length); + } + + /** + * CRC16У + * + * @param data Ҫ + * @param offset ʼλ + * @param len + * @return CRC16Уֵ + */ + public static int calcCrc16(byte[] data, int offset, int len) { + return calcCrc16(data, offset, len, 0xffff); + } + + /** + * CRC16У + * + * @param data Ҫ + * @param offset ʼλ + * @param len + * @param preval ֮ǰУֵ + * @return CRC16Уֵ + */ + public static int calcCrc16(byte[] data, int offset, int len, int preval) { + int ucCRCHi = (preval & 0xff00) >> 8; + int ucCRCLo = preval & 0x00ff; + int iIndex; + for (int i = 0; i < len; ++i) { + iIndex = (ucCRCLo ^ data[offset + i]) & 0x00ff; + ucCRCLo = ucCRCHi ^ crc16_tab_h[iIndex]; + ucCRCHi = crc16_tab_l[iIndex]; + } + return ((ucCRCHi & 0x00ff) << 8) | (ucCRCLo & 0x00ff) & 0xffff; + } + + /** + * üCRCֵ. + * @param res + * @return + */ + public static String toModbus(String arg) { + //CRC16Уֵ. + int crc = calcCrc16(new BigInteger(arg, 16).toByteArray()); + //ߵλع߶ModbusCRC16. + crc = ((crc & 0xFF00) >> 8) | ( (crc & 0x00FF ) << 8); + //CRCУ. + return String.format("%04x", crc).toUpperCase(); + } + + /** + * 10ת16(Զλ). + * @param arg + * @return + **/ + public static String toHexFormat(int arg) { + String hex = Integer.toHexString(arg).toUpperCase(); + return hex.length()<2 ? "0".concat(hex) : hex; + } +} \ No newline at end of file diff --git a/psgr/src/com/blxc/util/ClientCollect.java b/psgr/src/com/blxc/util/ClientCollect.java new file mode 100644 index 0000000..49962d6 --- /dev/null +++ b/psgr/src/com/blxc/util/ClientCollect.java @@ -0,0 +1,24 @@ +package com.blxc.util; + +import java.util.HashMap; +import java.util.Map; + +import com.blxc.socket.server.service.MultiSocket; + +public class ClientCollect { + private static ClientCollect instance = new ClientCollect(); + private static Map client; + + private ClientCollect() {} + + public static ClientCollect instance() { + if(client == null) { + client = new HashMap(); + } + return instance; + } + + public Map getClient() { + return client; + } +} diff --git a/psgr/src/com/blxc/util/DataCollect.java b/psgr/src/com/blxc/util/DataCollect.java new file mode 100644 index 0000000..9ea1b50 --- /dev/null +++ b/psgr/src/com/blxc/util/DataCollect.java @@ -0,0 +1,119 @@ +package com.blxc.util; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; + +import com.blxc.business.bean.HeatAnalyze; +import com.blxc.business.bean.Instrucation; +import com.blxc.business.service.HeatAnalyzeService; +import com.blxc.business.service.HeatCollectService; +import com.blxc.business.service.InstrucationService; +import com.blxc.socket.server.service.MultiSocket; +import com.blxc.util.convert.DataHandle; +import com.blxc.util.convert.Recordable; + +@Component +public class DataCollect { + @Autowired + private HeatAnalyzeService analyze; + @Autowired + private HeatCollectService collect; + @Autowired + private InstrucationService instrucation; + + /** + * ־. + **/ +// @Scheduled(cron="0 0 0 * * ?") + public void clear() { + Recordable.record("ݲɼ־(TQL_DATACOLLECT)."); + //ɼ־. + analyze.clear(new HeatAnalyze()); + } + + /** + * ݲɼָ·ʱ. + **/ +// @Scheduled(cron="0 * * * * ?") + public void instructions() { + Map client = ClientCollect.instance().getClient(); + Recordable.record("ǰӿͻˣ" + client.size() + "."); + for(Map.Entry object : client.entrySet()) { + MultiSocket socket = object.getValue(); + try { + socket.getWriter().write(DataHandle.toStringByte(socket.getClient().getOrder())); + socket.getWriter().flush(); + } catch(Exception e) { + socket.close(); + } + } + } + + /** + * SQL SERVER ݲɼת涨ʱ(). + **/ + public void collect() { + StringBuffer buffer = new StringBuffer(); + List list = collect.list(); + buffer.append("ɼݣ"); + buffer.append(list.size()); + buffer.append(""); + if(list.size() > 0 ) { + buffer.append("ݣ["); + for(HeatAnalyze heat : list) { + //ͨSIMѯCODE. + HeatAnalyze heatObject = analyze.show(heat); + if(heatObject != null) { + //豸. + heat.setCode(heatObject.getCode()); + //Ϣ. + analyze.save(heat); + //. + collect.clear(heat); + buffer.append("("); + buffer.append(heat.getCode()).append(","); + buffer.append(heat.getSim()).append(","); + buffer.append(heat.getDatatime()).append(","); + buffer.append(heat.getView005()).append(","); + buffer.append(heat.getView006()).append(","); + buffer.append(heat.getView007()).append(","); + buffer.append(heat.getView008()).append(","); + buffer.append(heat.getView009()).append(","); + buffer.append(heat.getView010()).append(","); + buffer.append(heat.getView011()).append(","); + buffer.append(heat.getView012()); + buffer.append(")"); + } else { + System.out.println("[" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "] - δע豸ֻ" + heat.getSim()); + } + } + buffer.append("]."); + } else { + buffer.append("."); + } + //¼ݲɼ־ + this.toInstrucation(buffer.toString(), "ݲɼ-ת"); + } + + /** + * ¼ݲɼ־. + * @param content:־. + * @param label:־˵. + **/ + private void toInstrucation(String content, String label) { + //־. + Instrucation insObject = new Instrucation(); + //־. + insObject.setContent(content); + //־. + insObject.setInstrucation(label); + //־Ϣ. + instrucation.save(insObject); + } +} diff --git a/psgr/src/com/blxc/util/Global.java b/psgr/src/com/blxc/util/Global.java new file mode 100644 index 0000000..71d0654 --- /dev/null +++ b/psgr/src/com/blxc/util/Global.java @@ -0,0 +1,14 @@ +package com.blxc.util; + +public class Global { + //MYSQLԴ. + public static final String DATA_SOURCE_MYSQL = "dataSource1"; + //SQLSERVERԴ. +// public static final String DATA_SOURCE_SQLSERVER = "dataSource2"; + //豸ٻָ(4202-1). + public static final String XMYN_RTU_4202 = "0104000000227013"; + //豸ٻָ(4212-1). + public static final String XMYN_RTU_4212 = "01040000000D31CF"; + //豸ٻָ. + public static final String XMYN_RTU_RECALL = "040000000D"; +} diff --git a/psgr/src/com/blxc/util/MultipleDataSource.java b/psgr/src/com/blxc/util/MultipleDataSource.java new file mode 100644 index 0000000..d0dd04e --- /dev/null +++ b/psgr/src/com/blxc/util/MultipleDataSource.java @@ -0,0 +1,20 @@ +package com.blxc.util; + +import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; + +public class MultipleDataSource extends AbstractRoutingDataSource { + + private static final ThreadLocal dataSourceKey = new InheritableThreadLocal(); + + public static void setDataSourceKey(String dataSource) { + dataSourceKey.set(dataSource); + } + + public static void removeDataSourceKey() { + dataSourceKey.remove(); + } + + protected Object determineCurrentLookupKey() { + return dataSourceKey.get(); + } +} \ No newline at end of file diff --git a/psgr/src/com/blxc/util/convert/DataFormula.java b/psgr/src/com/blxc/util/convert/DataFormula.java new file mode 100644 index 0000000..8e3f13c --- /dev/null +++ b/psgr/src/com/blxc/util/convert/DataFormula.java @@ -0,0 +1,44 @@ +package com.blxc.util.convert; + +import java.text.DecimalFormat; + +/** + * 4-20Maתʽ. + * @author Administrator + * 2018.11.05 +**/ +public class DataFormula { + + /** + * ¶ȱ(0-100) + * @param value + * @return + **/ + public static String toT100(String value) { + DecimalFormat format = new DecimalFormat("#####0.##"); + int result = Integer.parseInt(value, 16); + return format.format(result/160.0); + } + + /** + * ¶ȱ(0-150) + * @param value + * @return + **/ + public static String toT150(String value) { + DecimalFormat format = new DecimalFormat("#####0.##"); + int result = Integer.parseInt(value, 16); + return format.format(result/106.67); + } + + /** + * Сһٱ. + * @param value + * @return + **/ + public static String toSmallerHundred(String value) { + DecimalFormat format = new DecimalFormat("#####0.##"); + int result = Integer.parseInt(value, 16); + return format.format(result/100.0); + } +} diff --git a/psgr/src/com/blxc/util/convert/DataHandle.java b/psgr/src/com/blxc/util/convert/DataHandle.java new file mode 100644 index 0000000..a62e64d --- /dev/null +++ b/psgr/src/com/blxc/util/convert/DataHandle.java @@ -0,0 +1,440 @@ +package com.blxc.util.convert; + +import java.io.IOException; +import java.io.OutputStream; +import java.text.DecimalFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +import org.apache.commons.lang.StringUtils; + +import com.blxc.business.bean.AnalysisRule; +import com.blxc.business.bean.HeatAnalyze; +import com.blxc.business.bean.Instrucation; +import com.blxc.common.util.JdbcInstance; +import com.blxc.socket.server.bean.Client; +import com.blxc.util.CRC16Util; +import com.blxc.util.Global; + +public class DataHandle { + + /** + * ַתΪ16ַ . + * @param str + * @return + **/ + public static byte[] toStringByte(String str) { + int m = 0, n = 0; + int byteLength = str.length() / 2; // ÿַһֽ + byte[] byteArray = new byte[byteLength]; + for (int i = 0; i < byteLength; i++) { + m = i * 2 + 1; + n = m + 1; + int intVal = Integer.decode("0x" + str.substring(i * 2, m) + str.substring(m, n)); + byteArray[i] = Byte.valueOf((byte) intVal); + } + return byteArray; + } + + /** + * 16ַתΪַ. + * @param byteArray + * @param size + * @return + **/ + public static String toHexString(byte[] byteArray, int size) { + StringBuilder hexString = new StringBuilder(); + for (int i = 0; i < size; i++) { + if ((byteArray[i] & 0xff) < 0x10) {// 0~Fǰ治 + hexString.append("0"); + } + hexString.append(Integer.toHexString(0xFF & byteArray[i])); + } + return hexString.toString().toLowerCase(); + } + + public static void main(String args[]){ + Client client = new Client(); + client.setMobile(""); + boolean mobileIsNull = StringUtils.isBlank(client.getMobile()); + System.out.print(mobileIsNull); + } + + /** + * RTUشϢ. + * @param writer:ͨ. + * @param receive:յ. + * @param analysis:. + * @param size:յݳ. + **/ + public static void toParseData(OutputStream writer, Client client, String receive, String analysis, int size) { + StringBuffer buffer = new StringBuffer(); + if(size == 1) {//. + DataHandle.toHandleHeartbeat(writer, receive); + }else{ + if(size == 26) {//ע. + DataHandle.toHandleRegister(client, receive); + buffer.append("Э飺ӵַ").append(client.getAddress()); + buffer.append("Ӷ˿ڣ").append(client.getPort()); + buffer.append("豸룺").append(client.getCode()); + buffer.append("豸ţ").append(client.getMobile()); + buffer.append("ݳȣ").append(size); + buffer.append("ݣ").append(analysis); + buffer.append("ݣ").append(receive).append("."); + DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); + }else{ + boolean mobileIsNull = StringUtils.isBlank(client.getMobile()); + if(mobileIsNull){ + buffer.append("쳣ݣӵַ").append(client.getAddress()); + buffer.append("Ӷ˿ڣ").append(client.getPort()); + buffer.append("豸룺").append(StringUtils.isBlank(client.getCode()) ? "" : client.getCode()); + buffer.append("豸ţ").append(StringUtils.isBlank(client.getMobile()) ? "" : client.getMobile()); + buffer.append("ݳȣ").append(size); + buffer.append("ݣ").append(analysis); + buffer.append("ݣ").append(receive).append("."); + DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); + }else{ + String code = DataHandle.getAnalysisRule(client.getMobile()); + if(code.equals("1")){ + // 0141 + String data = analysis.substring(0, 4); + if(data.equals("0141")){ + buffer.append("ݲɼӵַ").append(client.getAddress()); + buffer.append("Ӷ˿ڣ").append(client.getPort()); + buffer.append("豸룺").append(client.getCode()); + buffer.append("豸ţ").append(client.getMobile()); + buffer.append("ݳȣ").append(size); + buffer.append("ݣ").append(analysis); + buffer.append("ݣ").append(receive).append("."); + DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); + DataHandle.toHandleData41(client, analysis); + } + }else if(code.equals("2")){ + // 31ֽڳȴһ豸 + if(size == 31) {//ݰ. + buffer.append("ݲɼӵַ").append(client.getAddress()); + buffer.append("Ӷ˿ڣ").append(client.getPort()); + buffer.append("豸룺").append(client.getCode()); + buffer.append("豸ţ").append(client.getMobile()); + buffer.append("ݳȣ").append(size); + buffer.append("ݣ").append(analysis); + buffer.append("ݣ").append(receive).append("."); + DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); + DataHandle.toHandleData4212(client, analysis); + } + }else if(code.equals("3")){ + // 73ֽڳȴһ豸 + if(size == 73) { + buffer.append("ݲɼӵַ").append(client.getAddress()); + buffer.append("Ӷ˿ڣ").append(client.getPort()); + buffer.append("豸룺").append(client.getCode()); + buffer.append("豸ţ").append(client.getMobile()); + buffer.append("ݳȣ").append(size); + buffer.append("ݣ").append(analysis); + buffer.append("ݣ").append(receive).append("."); + DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); + DataHandle.toHandleData4202(client, analysis); + } + }else if(code.equals("4")){ + // 26ֽڳȴһע + if(size == 26) {//ע. + buffer.append("Э飺ӵַ").append(client.getAddress()); + buffer.append("Ӷ˿ڣ").append(client.getPort()); + buffer.append("豸룺").append(client.getCode()); + buffer.append("豸ţ").append(client.getMobile()); + buffer.append("ݳȣ").append(size); + buffer.append("ݣ").append(analysis); + buffer.append("ݣ").append(receive).append("."); + DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); + DataHandle.toHandleRegister(client, receive); + } + }else if(code.equals("5")){ + // + buffer.append("ݣӵַ").append(client.getAddress()); + buffer.append("Ӷ˿ڣ").append(client.getPort()); + buffer.append("豸룺").append(client.getCode()); + buffer.append("豸ţ").append(client.getMobile()); + buffer.append("ݳȣ").append(size); + buffer.append("ݣ").append(analysis); + buffer.append("ݣ").append(receive).append("."); + DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); + } + } + } + } + + +// StringBuffer buffer = new StringBuffer(); +// if(size == 1) {//. +// DataHandle.toHandleHeartbeat(writer, receive); +// } else if(size == 26) {//ע. +// DataHandle.toHandleRegister(client, receive); +// buffer.append("Э飺ӵַ").append(client.getAddress()); +// buffer.append("Ӷ˿ڣ").append(client.getPort()); +// buffer.append("豸룺").append(client.getCode()); +// buffer.append("豸ţ").append(client.getMobile()); +// buffer.append("ݣ").append(receive).append("."); +// DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); +// } else if(size == 31) {//ݰ. +// DataHandle.toHandleData4212(client, analysis); +// buffer.append("ݲɼӵַ").append(client.getAddress()); +// buffer.append("Ӷ˿ڣ").append(client.getPort()); +// buffer.append("豸룺").append(client.getCode()); +// buffer.append("豸ţ").append(client.getMobile()); +// buffer.append("ݣ").append(analysis).append("."); +// DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); +// } else if(size == 73) { +// String mobile = client.getMobile(); +//// if(!mobile.equals("12423005000") && !mobile.equals("12423011000")){ //ų +// if(!mobile.equals("12423005000")){ //ų +// DataHandle.toHandleData4202(client, analysis); +// buffer.append("ݲɼӵַ").append(client.getAddress()); +// buffer.append("Ӷ˿ڣ").append(client.getPort()); +// buffer.append("豸룺").append(client.getCode()); +// buffer.append("豸ţ").append(mobile); +// buffer.append("ݣ").append(analysis).append("."); +// DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); +// } +// } else { +// String data = analysis.substring(0, 4); +// if(data.equals("0141")){ +// DataHandle.toHandleData41(client, analysis); +// buffer.append("ݲɼӵַ").append(client.getAddress()); +// buffer.append("Ӷ˿ڣ").append(client.getPort()); +// buffer.append("豸룺").append(client.getCode()); +// buffer.append("豸ţ").append(client.getMobile()); +// buffer.append("ݳȣ").append(size); +// buffer.append("ݣ").append(analysis); +// buffer.append("ݣ").append(receive).append("."); +// DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); +// }else {//쳣ݴ. +// buffer.append("쳣ݣӵַ").append(client.getAddress()); +// buffer.append("Ӷ˿ڣ").append(client.getPort()); +// buffer.append("豸룺").append(StringUtils.isBlank(client.getCode()) ? "" : client.getCode()); +// buffer.append("豸ţ").append(StringUtils.isBlank(client.getMobile()) ? "" : client.getMobile()); +// buffer.append("ݳȣ").append(size); +// buffer.append("ݣ").append(analysis); +// buffer.append("ݣ").append(receive).append("."); +// DataHandle.toInstrucation(buffer.toString(), "ݲɼ-ݽ"); +// } +// } + } + + + /** + * 豸. + * @param writer:ͨ. + * @param data:. + **/ + private static void toHandleHeartbeat(OutputStream writer, String data) { + try { + if(StringUtils.isNotBlank(data) && data.equals("$")) + writer.write("%".getBytes()); + } catch (IOException e) { + e.printStackTrace(); + } + } + + /** + * 豸ע. + * @param client:ͨſͻ˶. + * @param data:. + **/ + private static void toHandleRegister(Client client, String data) { + if(StringUtils.isNotBlank(data) && data.toUpperCase().startsWith("XMYN")) { + String info = data.toUpperCase(); + info = info.replace("\r", "").replace("\n", "").replace("XMYN", ""); + client.setCode(info.substring(0, 9)); + client.setMobile(info.substring(9, info.length())); + //ʱ̬RTUָΪIJ˾ + //client.setOrder(Integer.parseInt(client.getMobile().substring(0, 1)) == 1 ? Global.XMYN_RTU_4202 : Global.XMYN_RTU_4212); + //ҪŻRTUָ + if(Integer.parseInt(client.getMobile().substring(0, 1)) == 1) { + client.setOrder(Global.XMYN_RTU_4202); + } else if(Integer.parseInt(client.getMobile().substring(0, 1)) == 3) { + //ȡ豸ַ. + int index = Integer.parseInt(client.getMobile().substring(8, client.getMobile().length())); + //ٻָ. + String instruct = CRC16Util.toHexFormat(index).concat(Global.XMYN_RTU_RECALL); + //CRC16ٻָ. + client.setOrder(instruct.concat(CRC16Util.toModbus(instruct))); + } else { + client.setOrder(Global.XMYN_RTU_4212); + } + } + } + + /** + * 洢Ϣ. + * @param client:ͻ˶. + * @param data1:һ·ģ. + * @param data2:ڶ·ģ. + * @param data3:·ģ. + * @param data4:·ģ. + * @param data5:·ģ. + * @param data6:·ģ. + * @param data7:·ģ. + * @param data8:ڰ·ģ. + **/ + private static void toHandleData(Client client, String data1, String data2, String data3, String data4, String data5, String data6, String data7, String data8 ) { + try { + HeatAnalyze heatAnalyze = new HeatAnalyze(); + heatAnalyze.setCode(client.getCode()); + heatAnalyze.setSim(client.getMobile()); + heatAnalyze.setDatatime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); + if("4".equals(data1)){data1 = "0";} + if("4".equals(data2)){data2 = "0";} + if("4".equals(data3)){data3 = "0";} + if("4".equals(data4)){data4 = "0";} + if("4".equals(data5)){data5 = "0";} + if("4".equals(data6)){data6 = "0";} + if("4".equals(data7)){data7 = "0";} + if("4".equals(data8)){data8 = "0";} + heatAnalyze.setView005(data1); + heatAnalyze.setView006(data2); + heatAnalyze.setView007(data3); + heatAnalyze.setView008(data4); + heatAnalyze.setView009(data5); + heatAnalyze.setView010(data6); + heatAnalyze.setView011(data7); + heatAnalyze.setView012(data8); + JdbcInstance.save("com.blxc.business.dao.HeatAnalyzeDao.save", heatAnalyze); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * RTUϱϢ(Ͽ). + * @param client:ͨſͻ˶. + * @param data:. + **/ + private static void toHandleData4202(Client client, String data) { + try { + data = data.substring(14, data.length()); + String data1 = data.substring(0, 4); + String data2 = data.substring(8, 12); + String data3 = data.substring(16, 20); + String data4 = data.substring(24, 28); + String data5 = data.substring(32, 36); + String data6 = data.substring(40, 44); + String data7 = data.substring(48, 52); + String data8 = data.substring(56, 60); + DecimalFormat format = new DecimalFormat("#####0.##"); + data1 = format.format(Integer.parseInt(data1, 16)/100.0); + data2 = format.format(Integer.parseInt(data2, 16)/100.0); + data3 = format.format(Integer.parseInt(data3, 16)/100.0); + data4 = format.format(Integer.parseInt(data4, 16)/100.0); + data5 = format.format(Integer.parseInt(data5, 16)/100.0); + data6 = format.format(Integer.parseInt(data6, 16)/100.0); + data7 = format.format(Integer.parseInt(data7, 16)/100.0); + data8 = format.format(Integer.parseInt(data8, 16)/100.0); + DataHandle.toHandleData(client, data1, data2, data3, data4, data5, data6, data7, data8); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * RTUϱϢ(¿). + * @param client:ͨſͻ˶. + * @param data:. + **/ + private static void toHandleData4212(Client client, String data) { + try { + data = data.substring(22, data.length()); + String data1 = data.substring(0, 4); + String data2 = data.substring(4, 8); + String data3 = data.substring(8, 12); + String data4 = data.substring(12, 16); + String data5 = data.substring(16, 20); + String data6 = data.substring(20, 24); + String data7 = data.substring(24, 28); + String data8 = data.substring(28, 32); + DecimalFormat format = new DecimalFormat("#####0.##"); + data1 = format.format(Integer.parseInt(data1, 16)/100.0); + data2 = format.format(Integer.parseInt(data2, 16)/100.0); + data3 = format.format(Integer.parseInt(data3, 16)/100.0); + data4 = format.format(Integer.parseInt(data4, 16)/100.0); + data5 = format.format(Integer.parseInt(data5, 16)/100.0); + data6 = format.format(Integer.parseInt(data6, 16)/100.0); + data7 = format.format(Integer.parseInt(data7, 16)/100.0); + data8 = format.format(Integer.parseInt(data8, 16)/100.0); +// DataHandle.toHandleData(client, DataFormula.toSmallerHundred(data1), DataFormula.toSmallerHundred(data2), DataFormula.toSmallerHundred(data3), DataFormula.toSmallerHundred(data4), DataFormula.toSmallerHundred(data5), DataFormula.toSmallerHundred(data6), DataFormula.toSmallerHundred(data7), DataFormula.toSmallerHundred(data8)); + DataHandle.toHandleData(client, data1, data2, data3, data4, data5, data6, data7, data8); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * RTUϱϢ(41). + * @param client:ͨſͻ˶. + * @param data:. + **/ + private static void toHandleData41(Client client, String data) { + try { + data = data.substring(24, data.length()); + String data1 = data.substring(0, 4); + String data2 = data.substring(4, 8); + String data3 = data.substring(8, 12); + String data4 = data.substring(12, 16); + String data5 = data.substring(16, 20); + String data6 = data.substring(20, 24); + String data7 = data.substring(24, 28); + String data8 = data.substring(28, 32); + DecimalFormat format = new DecimalFormat("#####0.##"); + data1 = format.format(Integer.parseInt(data1, 16)/100.0); + data2 = format.format(Integer.parseInt(data2, 16)/100.0); + data3 = format.format(Integer.parseInt(data3, 16)/100.0); + data4 = format.format(Integer.parseInt(data4, 16)/100.0); + data5 = format.format(Integer.parseInt(data5, 16)/100.0); + data6 = format.format(Integer.parseInt(data6, 16)/100.0); + data7 = format.format(Integer.parseInt(data7, 16)/100.0); + data8 = format.format(Integer.parseInt(data8, 16)/100.0); + DataHandle.toHandleData(client, data1, data2, data3, data4, data5, data6, data7, data8); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * ȡɼ. + * @param sim:. + **/ + private static String getAnalysisRule(String sim) { + try { + // + AnalysisRule releObject = new AnalysisRule(); + //ÿ. + releObject.setSim(sim); + //ȡ. + AnalysisRule rule = (AnalysisRule)JdbcInstance.show("com.blxc.business.dao.AnalysisRuleDao.show", releObject); + return rule.getCode(); + } catch (Exception e) { + e.printStackTrace(); + } + return ""; + } + + + /** + * ¼ݲɼ־. + * @param content:־. + * @param label:־˵. + **/ + private static void toInstrucation(String content, String label) { + try { + //־. + Instrucation insObject = new Instrucation(); + //־. + insObject.setContent(content); + //־. + insObject.setInstrucation(label); + //־Ϣ. + JdbcInstance.save("com.blxc.business.dao.InstrucationDao.save", insObject); + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/psgr/src/com/blxc/util/convert/Recordable.java b/psgr/src/com/blxc/util/convert/Recordable.java new file mode 100644 index 0000000..a028dc6 --- /dev/null +++ b/psgr/src/com/blxc/util/convert/Recordable.java @@ -0,0 +1,44 @@ +package com.blxc.util.convert; + +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; + +public class Recordable { + + public static void record(String value) { + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + StringBuffer buffer = new StringBuffer(); + buffer.append("["); + buffer.append(format.format(new Date())); + buffer.append("] - "); + buffer.append(value); + Recordable.writer(buffer.toString()); + } + + private static void writer(String value) { +// String disk = Recordable.class.getResource("").getPath(); +// disk = disk.substring(0, disk.indexOf("webapps")) + "logs" + System.getProperty("file.separator") + "blxc"; + String disk = "d://blxc"; + File floder = new File(disk); + try { + if(!floder.exists()) { + floder.mkdirs(); + } + File file = new File(disk + System.getProperty("file.separator") + "COLLECTION[" + new SimpleDateFormat("yyyyMMdd").format(new Date()) + "].txt"); + if(!file.exists()) { + file.createNewFile(); + } + FileWriter writer = new FileWriter(file.getAbsolutePath(), true); + BufferedWriter buffer = new BufferedWriter(writer); + buffer.write(value); + buffer.write(System.getProperty("line.separator")); + buffer.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } +} diff --git a/psgr/src/config.xml b/psgr/src/config.xml new file mode 100644 index 0000000..0ef2f1c --- /dev/null +++ b/psgr/src/config.xml @@ -0,0 +1,87 @@ + + + + MyBatis Data Source Configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file